* manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
[platform/upstream/glibc.git] / ChangeLog
1 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2
3         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
4
5 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
6
7         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
8         * sysdeps/unix/bsd/bits/stat.h: Likewise.
9         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
10         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
11         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
12         * sysdeps/unix/bsd/bsdstat.h: Likewise.
13         * sysdeps/unix/bsd/clock.c: Likewise.
14         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
15         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
16         * sysdeps/unix/bsd/init-posix.c: Likewise.
17         * sysdeps/unix/bsd/poll.c: Likewise.
18         * sysdeps/unix/bsd/ptsname.c: Likewise.
19         * sysdeps/unix/bsd/seekdir.c: Likewise.
20         * sysdeps/unix/bsd/setegid.c: Likewise.
21         * sysdeps/unix/bsd/seteuid.c: Likewise.
22         * sysdeps/unix/bsd/setgid.c: Likewise.
23         * sysdeps/unix/bsd/setrgid.c: Likewise.
24         * sysdeps/unix/bsd/setruid.c: Likewise.
25         * sysdeps/unix/bsd/setsid.c: Likewise.
26         * sysdeps/unix/bsd/setuid.c: Likewise.
27         * sysdeps/unix/bsd/sigaction.c: Likewise.
28         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
29         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
30         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
31         * sysdeps/unix/bsd/telldir.c: Likewise.
32         * sysdeps/unix/bsd/times.c: Likewise.
33         * sysdeps/unix/bsd/usleep.c: Likewise.
34
35         * misc/Makefile (install-lib): Remove libbsd-compat.a.
36         ($(objpfx)libbsd-compat.a): Remove rule.
37
38         * include/features.h (__FAVOR_BSD): Do not define.
39         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
40         features conflicting with POSIX.
41         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
42         (_BSD_SOURCE): Remove description of not being a subset of other
43         feature test macros.
44         * manual/job.texi (getpgrp): Do not document BSD version.
45         (getpgid): Do not document by reference to BSD getpgrp.
46         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
47         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
48         * signal/signal.h [__FAVOR_BSD]: Likewise.
49         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
50         instead of making contents conditional on [__FAVOR_BSD].
51         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
52
53 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54
55         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56
57 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
58
59         [BZ #16314]
60         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
61         values below 2**-450, not 2**-500.
62         * math/auto-libm-test-in: Don't allow spurious underflow from
63         hypot.
64         * math/auto-libm-test-out: Regenerated.
65
66         [BZ #16316]
67         [BZ #16330]
68         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
69         values of ha and hb and sort them after adjusting subnormal
70         arguments.
71         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
72         Likewise.
73         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
74         values of ea and eb and sort them after adjusting subnormal
75         arguments.
76         * math/auto-libm-test-in: Do not expect some hypot tests of
77         subnormals to fail.  Add more hypot tests.
78         * math/auto-libm-test-out: Regenerated.
79
80 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
81
82         [BZ #13304]
83         * sysdeps/sh/s_fma.c: New file.
84         * sysdeps/sh/s_fmaf.c: New file.
85         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
86         version.
87         * sysdeps/sh/Implies: Add sh/soft-fp.
88
89 2013-12-16  Roland McGrath  <roland@hack.frob.com>
90
91         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
92         level of indirection to members `objname', `errstring', `malloced'.
93         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
94         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
95         it as the __longjmp argument (just pass 1 instead).
96         (_dl_catch_error): Initialize C with argument pointers and address of
97         volatile local ERRCODE rather than copying values out of C at return.
98
99 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
100
101         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
102         * math/auto-libm-test-out: Regenerated.
103         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
104         (hypot_test_data): Likewise.
105         (pow_test_data): Likewise.
106         (pow_tonearest_test_data): Likewise.
107         * math/gen-auto-libm-tests.c (func_calc_method): Add value
108         mpfr_ff_f.
109         (func_calc_desc): Add mpfr_ff_f union field.
110         (FUNC_mpfr_ff_f): New macro.
111         (test_functions): Add atan2, hypot and pow.
112         (special_fill_min): New function.
113         (special_fill_minus_min): Likewise.
114         (special_fill_min_subnorm): Likewise.
115         (special_fill_minus_min_subnorm): Likewise.
116         (special_real_inputs): Add min, -min, min_subnorm and
117         -min_subnorm.
118         (calc_generic_results): Handle mpfr_ff_f.
119         * sysdeps/i386/fpu/libm-test-ulps: Update.
120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
121
122 2013-12-16  Will Newton  <will.newton@linaro.org>
123
124         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
125         (Aligned Memory Blocks): Add documentation for aligned_alloc
126         and suggest it as an alternative to posix_memalign.
127         (Hooks for Malloc): Document __memalign_hook is also called
128         for aligned_alloc.  (Summary of Malloc): Add summary for
129         aligned alloc.  Document __memalign_hook is also called
130         for aligned_alloc.
131
132 2013-12-16  Will Newton  <will.newton@linaro.org>
133
134         * manual/memory.texi (Malloc Examples): Clarify default
135         alignment documentation.  Suggest posix_memalign rather
136         than memalign or valloc.
137         (Aligned Memory Blocks): Remove suggestion to use memalign
138         or valloc.  Remove obsolete comment about BSD.
139         Document memalign errno values and mark the function obsolete.
140         Document posix_memalign returned error codes.  Mark valloc
141         as obsolete.  (Hooks for Malloc): __memalign_hook is also
142         called for posix_memalign and valloc.
143         (Summary of Malloc): Add posix_memalign to function summary.
144         __memalign_hook is also called for posix_memalign and valloc.
145
146 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
147
148         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
149         TAYLOR_SIN.
150         (__sin): Adjust.
151         (__cos): Likewise.
152         (sloww): Use mynumber union.  Expand ternary operator into
153         if-else statements.
154         (cslow): use mynumber union.
155
156 2013-12-16  Allan McRae  <allan@archlinux.org>
157
158         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
159         * configure: Regenerated.
160
161         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
162
163         [BZ #14120]
164         * configure.ac: Added --enable-maintainer-mode. Check for
165         autoconf when enabled.
166         * configure: Regenerated.
167
168         * nscd/nscd.service: New file.
169         * nscd/nscd.tmpfiles: New file.
170
171 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
172
173         [BZ #12100]
174         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
175         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
176         * sysdeps/x86_64/multiarch/strstr.c: ... here.
177         (strstr): Add __strstr_sse2_unaligned ifunc.
178         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
179         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
180         (strcasestr): Remove __strcasestr_sse42 ifunc.
181         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
182         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
183         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
184
185 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
186
187         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
188         * sysdeps/sh/bits/fenv.h: ... here.
189         * sysdeps/sh/sh4/fpu/bits: Remove directory.
190
191 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
192
193         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
194
195 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
196
197         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
198         hypotf multiarch implementations.
199         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
200         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
201         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
202         multiarch hypot for PPC64.
203         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
204         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
205         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
206         multiarch hypotf for PPC64.
207
208 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
209
210         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
211         modff multiarch implementations.
212         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
213         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
214         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
215         multiarch modf for PPC64.
216         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
217         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
218         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
219         multiarch modff for PPC64.
220
221 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
222
223         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
224         and logl multiarch implementations.
225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
226         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
227         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
228         multiarch logb for PPC64.
229         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
230         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
231         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
232         multiarch logb for PPC64.
233         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
234         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
235         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
236         multiarch logb for PPC64.
237
238 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
239
240         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
241         isinff multiarch implementation.
242         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
243         file.
244         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
245         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
246         multiarch isinf for PPC64.
247         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
248         file.
249         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
250         multiarch isinff for PPC64.
251
252 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
253
254         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
255         finitef multiarch implementation.
256         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
257         file.
258         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
260         multiarch finite for PPC64.
261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
262         file.
263         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
264         multiarch finitef for PPC64.
265
266 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
267
268         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
269         lrint multiarch implementation.
270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
271         file.
272         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
273         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
274         multiarch llrint for PPC64.
275         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
276         multiarch lrint for PPC64.
277
278 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
279
280         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
281         copysignf multiarch implementation.
282         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
283         file.
284         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
285         file.
286         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
287         multiarch copysign for PPC64.
288         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
289         multiarch copysignf for PPC64.
290
291 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
292
293         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
294         multiarch implementation.
295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
296         file.
297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
298         file.
299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
300         file.
301         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
302         file.
303         multiarch llround for PPC64.
304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
305         multiarch trunc for PPC64.
306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
307         multiarch truncf for PPC64.
308
309 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
310
311         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
312         multiarch implementation.
313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
314         file.
315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
316         file.
317         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
318         file.
319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
320         file.
321         multiarch llround for PPC64.
322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
323         multiarch round for PPC64.
324         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
325         multiarch roundf for PPC64.
326
327 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
328
329         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
330         multiarch implementation.
331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
332         file.
333         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
334         file.
335         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
336         file.
337         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
338         file.
339         multiarch llround for PPC64.
340         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
341         multiarch floor for PPC64.
342         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
343         multiarch floorf for PPC64.
344
345 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
346
347         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
348         multiarch implementation.
349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
350         file.
351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
352         file.
353         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
354         file.
355         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
356         file.
357         multiarch llround for PPC64.
358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
359         multiarch ceil for PPC64.
360         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
361         multiarch ceilf for PPC64.
362
363 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
364
365         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
366         multiarch implementation.
367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
368         file.
369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
370         file.
371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
372         file.
373         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
374         multiarch llround for PPC64.
375         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
376         multiarch lround for PPC64.
377
378 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
379
380         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
381         multiarch implementation.
382         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
384         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
385         file.
386         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
387         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
388         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
389         multiarch isnan for PPC64.
390         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
391         multiarch isnanf for PPC64.
392
393 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
394
395         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
396         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
397         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
398         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
399         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
401
402 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
403
404         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
405         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
406         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
407         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
408
409 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
410
411         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
412         multiarch implementations.
413         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
414         (__libc_ifunc_impl_list): Likewise.
415         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
416         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
417         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
418         multiarch stpcpy for PPC64.
419
420 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
421
422         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
423         multiarch implementations.
424         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
425         (__libc_ifunc_impl_list): Likewise.
426         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
427         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
428         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
429         multiarch strcpy for PPC64.
430
431 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
432
433         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
434         redefine function name.
435         (_wordcopy_fwd_dest_aligned): Likewise.
436         (_wordcopy_bwd_aligned): Likewise.
437         (_wordcopy_bwd_dest_aligned): Likewise.
438         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
439         multiarch implementations.
440         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
441         (__libc_ifunc_impl_list): Likewise.
442         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
443         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
444         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
445         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
446         multiarch wcscpy for PPC64.
447
448 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
449
450         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
451         multiarch implementations.
452         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
453         (__libc_ifunc_impl_list): Likewise.
454         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
455         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
456         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
457         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
458         multiarch wcscpy for PPC64.
459
460 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
461
462         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
463         multiarch implementations.
464         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
465         (__libc_ifunc_impl_list): Likewise.
466         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
467         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
468         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
469         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
470         multiarch wcsrchr for PPC64.
471
472 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
473
474         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
475         multiarch implementations.
476         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
477         (__libc_ifunc_impl_list): Likewise.
478         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
479         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
480         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
481         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
482         multiarch wcschr for PPC64.
483
484 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
485
486         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
487         multiarch implementations.
488         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
489         (__libc_ifunc_impl_list): Likewise.
490         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
491         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
492         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
493         multiarch strchrnul for PPC64.
494
495 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
496
497         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
498         implementations.
499         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
500         (__libc_ifunc_impl_list): Likewise.
501         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
502         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
503         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
504         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
505         strchr for PPC64.
506
507 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
508
509         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
510         implementations.
511         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
512         (__libc_ifunc_impl_list): Likewise.
513         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
514         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
515         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
516         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
517         strncmp for PPC64.
518
519 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
520
521         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
522         multiarch implementations.
523         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
524         (__libc_ifunc_impl_list): Likewise.
525         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
526         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
527         strncasecmp for PPC64.
528         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
529         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
530         multiarch strncasecmp_l for PPC64.
531
532 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
533
534         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
535         multiarch implementations.
536         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
537         (__libc_ifunc_impl_list): Likewise.
538         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
539         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
540         multiarch strcasecmp for PPC64.
541         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
542         file.
543         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
544         multiarch strcasecmp_l for PPC64.
545
546 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
547
548         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
549         implementations.
550         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
551         (__libc_ifunc_impl_list): Likewise.
552         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
553         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
554         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
555         strnlen for PPC64.
556
557 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
558
559         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
560         implementations.
561         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
562         (__libc_ifunc_impl_list): Likewise.
563         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
564         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
565         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
566         strlen for PPC64.
567
568 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
569
570         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
571         implementations.
572         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
573         (__libc_ifunc_impl_list): Likewise.
574         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
575         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
576         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
577         rawmemrchr for PPC64.
578
579 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
580
581         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
582         implementation.
583         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
584         (__libc_ifunc_impl_list): Likewise.
585         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
586         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
587         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
588         memrchr for PPC64.
589
590 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
591
592         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
593         implementation.
594         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
595         (__libc_ifunc_impl_list): Likewise.
596         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
597         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
598         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
599         memchr for PPC64.
600
601 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
602
603         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
604         implementation.
605         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
606         (__libc_ifunc_impl_list): Likewise.
607         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
608         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
609         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
610         mempcpy for PPC64.
611
612 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
613
614         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
615         avoid cretion of __bzero symbol.
616         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
617         Likewise.
618         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
619         Likewise.
620         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
621         Likewise.
622         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
623         multiarch implementations.
624         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
625         (__libc_ifunc_impl_list): Likewise.
626         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
627         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
628         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
629         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
630         bzero for PPC32.
631         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
632         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
633         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
634         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
635         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
636         memset for PPC64.
637         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
638
639 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
640
641         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
642         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
643         implementations.
644         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
645         (__libc_ifunc_impl_list): Likewise.
646         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
647         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
648         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
649         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
650         memcmp for PPC64.
651
652 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
653
654         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
655         multiarch for POWER/PPC64.
656         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
657         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
658         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
659         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
660         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
661         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
662         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
663         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
664         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
665         memcpy for PPC64.
666
667 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
668
669         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
670         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
671         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
672         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
673         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
674         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
675         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
676         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
677         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
678         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
679         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
680         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
681         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
682         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
683         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
691
692 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
693
694         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
695
696 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
697
698         * benchtests/Makefile (bench): Add exp2 and log2.
699         (LDLIBS-bench-exp2): Add -lm.
700         (LDLIBS-bench-log2): Likewise.
701         * benchtests/exp2-inputs: New inputs file.
702         * benchtests/log2-inputs: New inputs file.
703         * benchtests/log-inputs: Add new inputs.
704         * benchtests/tan-inputs: Likewise.
705
706 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
707
708         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
709         definition...
710         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2,
711         csloww1, csloww2): ... from here.
712
713         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
714         instead of structures.
715         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
716         (POLYNOMIAL): Likewise.
717         (TAYLOR_SLOW): Likewise.
718         (__sin): Likewise.
719         (__cos): Likewise.
720         (slow1): Likewise.
721         (slow2): Likewise.
722         (sloww): Likewise.
723         (sloww1); Likewise.
724         (sloww2): Likewise.
725         (bsloww1): Likewise.
726         (bsloww2): Likewise.
727         (cslow2): Likewise.
728         (csloww): Likewise.
729         (csloww1): Likewise.
730         (csloww2): Likewise.
731
732 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
733
734         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
735         (__malloc_assert, __libc_realloc, __libc_calloc,
736         _int_realloc): Expand MALLOC_COPY and MALLOC_ZERO to
737         memcpy and memset.
738         * malloc/hooks.c (realloc_check): Likewise.
739
740 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
741
742         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
743         * malloc/arena.c: Remove PER_THREAD conditional.
744         [!PER_THREAD]: Remove code.
745         (ptmalloc_unlock_all2): Likewise.
746         (ptmalloc_init): Likewise.
747         (_int_new_arena): Likewise.
748         (arena_get2): Likewise.
749         * malloc/hooks.c (__malloc_get_state): Likewise.
750         (__malloc_set_state): Likewise.
751         * malloc/malloc.c: Likewise.
752         (struct malloc_state): Likewise.
753         (struct malloc_par): Likewise.
754         (__libc_realloc): Likewise.
755         (__libc_mallopt): Likewise.
756
757 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
758
759         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
760
761 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
762
763         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
764         macro to a function.  Check for zero perturb_byte.
765         (_int_malloc, _int_free): Remove zero perturb_byte checks.
766
767 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
768
769         * malloc/malloc.c: (force_reg): Remove.
770         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
771         _mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
772         force_reg by atomic_forced_read.
773         * malloc/arena.c (ptmalloc_init): Likewise.
774         * malloc/hooks.c (top_check): Likewise.
775
776 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
777
778         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
779
780 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
781
782         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
783
784 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
785
786         * math/auto-libm-test-in: Add tests of lgamma.
787         * math/auto-libm-test-out: Regenerated.
788         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
789         (M_LOG_2_SQRT_PIl): Likewise.
790         (lgamma_test_data): Use AUTO_TESTS_f_f1.
791         * math/gen-auto-libm-tests.c (func_calc_method): Add value
792         mpfr_f_f1.
793         (func_calc_desc): Add mpfr_f_f1 union field.
794         (ARGS1): New macro.
795         (ARGS2): Likewise.
796         (ARGS3): Likewise.
797         (ARGS4): Likewise.
798         (RET1): Likewise.
799         (RET2): Likewise.
800         (CALC): Likewise.
801         (FUNC): Likewise.
802         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
803         (test_functions): Add lgamma.
804         (calc_generic_results): Handle mpfr_f_f1.
805         * sysdeps/i386/fpu/libm-test-ulps: Update.
806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
807
808 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
809
810         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
811         __mpn_add_n for PowerPC64/POWER7.
812         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
813         __mpn_sub_n for PowerPC64/POWER7.
814
815 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
816
817         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
818         __mpn_addmul_1 for PowerPC64.
819         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
820         __mpn_submul_1 for PowerPC64.
821         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
822         for PowerPC64.
823         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
824         for PowerPC64.
825
826 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
827
828         [BZ #15089]
829         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
830
831 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
832
833         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
834
835 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
836
837         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
838         add multiarch folders.
839         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
840         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
841         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
842         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
843         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
844         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
845         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
846         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
847         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
848         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
849         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
856
857 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
858
859         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
860         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
861         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
862         New file.
863         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
864         New file.
865         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
866         multiarch __ieee754_hypot for PowerPC32.
867         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
868         New file.
869         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
870         New file.
871         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
872         multiarch __ieee754_hypotf for PowerPC32.
873
874 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
875
876         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
877         long_double_symbol only if __logbl is defined.
878         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
879         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
880         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
881         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
882         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
883         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
884         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
885         path for implementation.
886         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
887         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
889         logb, and logbl multiarch implementations for PowerPC32.
890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
891         file.
892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
893         file.
894         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
895         multiarch logb for PowerPC32.
896         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
897         file.
898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
899         file.
900         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
901         multiarch logbf for PowerPC32.
902         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
903         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
904         file.
905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
906         multiarch logbl implementation for PowerPC32.
907
908 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
909
910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
911         and modff multiarch implementations.
912         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
913         New file.
914         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
915         New file.
916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
917         multiarch modf for PowerPC32.
918         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
919         New file.
920         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
921         New file.
922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
923         multiarch modff for PowerPC32.
924
925 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
926
927         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
928         and lrintf multiarch implementations.
929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
930         New file.
931         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
932         New file.
933         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
934         multiarch lrint for PowerPC32.
935         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
936         file: multiarch lrintf for PowerPC32.
937
938 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
939
940         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
941         and lroundf multiarch implementations.
942         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
943         New file.
944         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
945         New file.
946         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
947         New file.
948         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
949         multiarch lround for PowerPC32.
950         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
951         file: multiarch lroundf for PowerPC32.
952
953 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
954
955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
956         copysign and copysignf multiarch implementations.
957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
958         New file.
959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
960         New file.
961         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
962         file: multiarch copysign for PowerPC32.
963         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
964         file: multiarch copysignf for PowerPC32.
965
966 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
967
968         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
969         and truncf multiarch implementations.
970         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
971         New file.
972         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
973         file.
974         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
975         multiarch trunc for PowerPC32.
976         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
977         New file.
978         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
979         New file.
980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
981         multiarch truncf for PowerPC32.
982
983 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
984
985         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
986         and roundf multiarch implementations.
987         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
988         New file.
989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
990         file.
991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
992         multiarch round for PowerPC32.
993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
994         New file.
995         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
996         New file.
997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
998         multiarch roundf for PowerPC32.
999
1000 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1001
1002         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
1003         and floorf multiarch implementations.
1004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1005         New file.
1006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
1007         file.
1008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
1009         multiarch floor for PowerPC32.
1010         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1011         New file.
1012         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1013         New file.
1014         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
1015         multiarch floorf for PowerPC32.
1016
1017 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1018
1019         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
1020         and ceilf multiarch implementations.
1021         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1022         New file.
1023         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
1024         file.
1025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
1026         multiarch ceil for PowerPC32.
1027         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1028         New file.
1029         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
1030         file.
1031         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
1032         multiarch ceilf for PowerPC32.
1033
1034 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1035
1036         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
1037         is defined.
1038         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
1039         FINITEF is defined.
1040         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
1041         and finitef multiarch implementations.
1042         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
1043         New file.
1044         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
1045         file.
1046         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
1047         multiarch finite for PowerPC32.
1048         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
1049         New file.
1050         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
1051         file: multiarch finitef for PowerPC32.
1052
1053 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1054
1055         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
1056         and isinff multiarch implementations.
1057         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
1058         file.
1059         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
1060         file.
1061         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
1062         multiarch isinf for PowerPC32.
1063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
1064         New file.
1065         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
1066         multiarch isinff for PowerPC32.
1067
1068 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1069
1070         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
1071         alias when __isnan is defined.
1072         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
1073         and isnanf multiarch implementations.
1074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
1075         file.
1076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
1077         file.
1078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
1079         file.
1080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
1081         file.
1082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
1083         multiarch isnan for PowerPC32.
1084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
1085         New file.
1086         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
1087         New file.
1088         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
1089         multiarch isnanf for PowerPC32.
1090
1091 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1092
1093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
1094         and sqrtf multiarch implementations.
1095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
1096         file.
1097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
1098         file.
1099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
1100         multiarch sqrt for PowerPC32.
1101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
1102         file.
1103         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
1104         file.
1105         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
1106         multiarch sqrtf for PowerPC32.
1107
1108 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1109
1110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
1111         and llroundf multiarch implementations.
1112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
1113         New file.
1114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
1115         New file.
1116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
1117         New file.
1118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
1119         file: multiarch llround for PowerPC32.
1120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
1121         file: multiarch llroundf for PowerPC32.
1122
1123 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1124
1125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
1126         multiarch PowerPC32 fpu implementations.
1127         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
1128         New file.
1129         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
1130         New file.
1131         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
1132         multiarch llrint for PowerPC32.
1133         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
1134         New file.
1135         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
1136         New file.
1137         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
1138         file.
1139
1140 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1141
1142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
1143
1144 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1145
1146         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
1147         file.
1148         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
1149         file.
1150         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
1151         file.
1152         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
1153         multiarch wordcopy for PPC32.
1154         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
1155         wordcopy objects.
1156         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1157         (__libc_ifunc_impl_list): Likewise.
1158         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
1159         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
1160         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
1161         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
1162         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
1163         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
1164
1165 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1166
1167         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
1168         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
1169         file.
1170         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
1171         file.
1172         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
1173         file.
1174         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
1175         multiarch wcscpy for PPC32.
1176         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
1177         multiarch objects.
1178         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1179         (__libc_ifunc_impl_list): Likewise.
1180         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
1181         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
1182         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
1183         sysdeps/powerpc/power6/wcscpy.c.
1184
1185 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1186
1187         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
1188         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
1189         file.
1190         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
1191         file.
1192         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
1193         file.
1194         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
1195         multiarch wcsrchr for PPC32.
1196         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
1197         multiarch objects.
1198         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1199         (__libc_ifunc_impl_list): Likewise.
1200         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
1201         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
1202         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
1203         sysdeps/powerpc/power6/wcsrchr.c.
1204
1205 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1206
1207         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
1208         file.
1209         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
1210         file.
1211         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
1212         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
1213         multiarch wcschr for PPc32.
1214         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
1215         multiarch objects.
1216         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1217         (__libc_ifunc_impl_list): Likewise.
1218         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
1219         * sysdeps/powerpc/power6/wcschr.c: ... to here.
1220         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
1221         sysdeps/powerpc/power6/wcschr.c.
1222
1223 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1224
1225         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
1226         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
1227         file.
1228         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
1229         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
1230         file: multiarch strchr for PPC32.
1231         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
1232         multiarch objects.
1233         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1234         (__libc_ifunc_impl_list): Likewise.
1235
1236 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1237
1238         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
1239         name.
1240         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
1241         file.
1242         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
1243         file.
1244         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
1245         multiarch strchrnul for PPC32.
1246         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
1247         multiarch objects.
1248         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1249         (__libc_ifunc_impl_list): Likewise.
1250
1251 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1252
1253         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
1254         file.
1255         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
1256         multiarch strncasecmp for PPC32.
1257         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
1258         file.
1259         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
1260         multiarch strncasecmp_l for PPC32.
1261         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
1262         strncasecmp multiarch objects.
1263         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1264         (__libc_ifunc_impl_list): Likewise.
1265
1266 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1267
1268         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
1269         file.
1270         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
1271         multiarch strncasecmp for PPC32.
1272         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
1273         New file.
1274         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
1275         multiarch strcasecmp_l for PPC32.
1276         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
1277         multiarch objects.
1278         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1279         (__libc_ifunc_impl_list): Likewise.
1280
1281 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1282
1283         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
1284         file.
1285         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
1286         file.
1287         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
1288         multiarch strncmp for PPC32.
1289         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
1290         multiarch objects.
1291         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1292         (__libc_ifunc_impl_list): Likewise.
1293
1294 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1295
1296         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
1297         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
1298         file.
1299         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
1300         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
1301         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
1302         multiarch objects.
1303         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1304         (__libc_ifunc_impl_list): Likewise.
1305
1306 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1307
1308         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
1309         file.
1310         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
1311         file.
1312         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
1313         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
1314         multiarch objects.
1315         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1316         (__libc_ifunc_impl_list): Likewise.
1317
1318 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1319
1320         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
1321         file.
1322         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
1323         file.
1324         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
1325         multiarch rawmemchr for PPC32.
1326         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
1327         multiarch objects.
1328         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1329         (__libc_ifunc_impl_list): Likewise.
1330
1331 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1332
1333         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
1334         file.
1335         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
1336         file.
1337         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
1338         file: memrchr multiarch for PPC32.
1339         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
1340         multiarch objects.
1341         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1342         (__libc_ifunc_impl_list): Likewise.
1343
1344 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1345
1346         * string/memchr.c (__memchr): Using macro to redefine symbol name.
1347         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
1348         file.
1349         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
1350         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
1351         multiarch memchr for PPC32.
1352         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
1353         multiarch objects.
1354         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1355         (__libc_ifunc_impl_list): Likewise.
1356
1357 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1358
1359         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
1360         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
1361         file.
1362         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
1363         file.
1364         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
1365         file: multiarch mempcpy for PPC32.
1366         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
1367         multiarch objects.
1368         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1369         (__libc_ifunc_impl_list): Likewise.
1370
1371 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1372
1373         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
1374         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
1375         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
1376         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
1377         multiarch bzero for PPC32.
1378         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
1379         file.
1380         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
1381         file.
1382         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
1383         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
1384         file: multiarch memset for PPC32.
1385         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
1386         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
1387         memset multiarch objects.
1388         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1389         (__libc_ifunc_impl_list): Likewise.
1390
1391 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1392
1393         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
1394         file.
1395         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
1396         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
1397         memcmp for PPC32.
1398         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
1399         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
1400         multiarch objects.
1401         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1402         (__libc_ifunc_impl_list): Likewise.
1403
1404 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1405
1406         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
1407         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
1408         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
1409         file.
1410         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
1411         file.
1412         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
1413         file.
1414         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
1415         multiarch memcpy for PPC32.
1416         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
1417         multiarch objects.
1418         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1419         (__libc_ifunc_impl_list): Likewise.
1420
1421 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1422
1423         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
1424         support multiarch for POWER/PPC32.
1425         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1426         Likewise.
1427         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
1428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
1429         Implies file to make multiarch folder appers before the fpu and
1430         default folder for power4 configuration.
1431
1432 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
1433
1434         * scripts/bench.pl: Append volatile keyword to type.
1435
1436 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1437
1438         * sysdeps/sh/sotruss-lib.c: New file.
1439         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
1440
1441 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1442
1443         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1444
1445 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
1446
1447         [BZ #6810]
1448         * math/w_tgamma.c: Include <errno.h>.
1449         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
1450         * math/w_tgammaf.c: Include <errno.h>.
1451         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
1452         * math/w_tgammal.c: Include <errno.h>.
1453         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
1454         * math/auto-libm-test-in: Do not allow missing errno on tgamma
1455         underflow.  Add more tgamma tests.
1456         * math/auto-libm-test-out: Regenerated.
1457         * sysdeps/i386/fpu/libm-test-ulps: Update.
1458         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1459
1460         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
1461         sin, sinh, tan, tanh, tgamma, y0 and y1.
1462         * math/auto-libm-test-out: Regenerated.
1463         * math/libm-test.inc (TEST_COND_x86_64): New macro.
1464         (TEST_COND_x86): Likewise.
1465         (M_E2l): Remove macro.
1466         (M_E3l): Likewise.
1467         (M_2_SQRT_PIl): Likewise.
1468         (M_SQRT_PIl): Likewise.
1469         (M_1_DIV_El): Likewise.
1470         (log_test_data): Use AUTO_TESTS_f_f.
1471         (log10_test_data): Likewise.
1472         (log1p_test_data): Likewise.
1473         (log2_test_data): Likewise.
1474         (sin_test_data): Likewise.
1475         (sin_tonearest_test_data): Likewise.
1476         (sin_towardzero_test_data): Likewise.
1477         (sin_downward_test_data): Likewise.
1478         (sin_upward_test_data): Likewise.
1479         (sinh_test_data): Likewise.
1480         (sinh_tonearest_test_data): Likewise.
1481         (sinh_towardzero_test_data): Likewise.
1482         (sinh_downward_test_data): Likewise.
1483         (sinh_upward_test_data): Likewise.
1484         (tan_test_data): Likewise.
1485         (tan_tonearest_test_data): Likewise.
1486         (tan_towardzero_test_data): Likewise.
1487         (tan_downward_test_data): Likewise.
1488         (tan_upward_test_data): Likewise.
1489         (tanh_test_data): Likewise.
1490         (tgamma_test_data): Likewise.
1491         (y0_test_data): Likewise.
1492         (y1_test_data): Likewise.
1493         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
1494         (special_real_inputs): Add pi/4.
1495         * sysdeps/i386/fpu/libm-test-ulps: Update.
1496         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1497
1498 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1499
1500         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
1501         "longjmp_target" static probes.
1502         (__longjmp): Rename to __longjmp_symbol.
1503         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1504         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
1505         on which longjmp to generate.
1506         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
1507         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
1508         probe.
1509         (__sigsetjmp): Rename to __sigsetjmp_symbol.
1510         (__sigjmp_save): Rename to __sigjmp_save_symbol.
1511         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
1512         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
1513         and __sigjmp_save_symbol based on which sigsetjmp to generated.
1514         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
1515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
1516         __longjmp_symbol based on which __longjmp to generate.
1517         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
1518         probe.
1519         (setjmp): Rename to setjmp_symbol.
1520         (__sigsetjmp): Rename to __sigsetjmp_symbol.
1521         (_setjmp): Rename to _setjmp_symbol.
1522         (__sigsetjmp): Rename to __sigsetjmp_symbol.
1523         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
1524         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
1525         which setjmp to generate.
1526         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
1527         "longjmp_target" static probes.
1528
1529 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1530
1531         * benchtests/README: Add note about output arguments.
1532         * benchtests/bench-sincos.c: Remove file.
1533         * benchtests/sincos-inputs: New file.
1534         * scripts/bench.pl: Identify output arguments and define
1535         static variables for them.
1536
1537         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
1538
1539         [BZ #15941]
1540         * Makefile (INSTALL): Add install-plain.texi as the primary
1541         dependency.
1542         * manual/install-plain.texi: New file.
1543         * manual/install.texi: Include node directive only for
1544         non-plaintext output.
1545
1546 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1547
1548         * stdlib/longlong.h: Update from GCC.
1549
1550         [BZ #6807]
1551         [BZ #15901]
1552         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
1553         * math/w_j0f.c (y0f): Likewise.
1554         * math/w_j0l.c (__y0l): Likewise.
1555         * math/w_j1.c (y1): Likewise.
1556         * math/w_j1f.c (y1f): Likewise.
1557         * math/w_j1l.c (__y1l): Likewise
1558         * math/w_jn.c (yn): Likewise.
1559         * math/w_jnf.c (ynf): Likewise.
1560         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
1561         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
1562         value for Bessel function domain errors outside _SVID_ mode.
1563         Adjust sign of return value for yn (negative integer, 0).
1564         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
1565         by zero in return for negative x and set sign appropriately for
1566         negative n.
1567         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
1568         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
1569         * math/libm-test.inc (y0_test_data): Add more tests and adjust
1570         expectations in error cases.
1571         (y1_test_data): Likewise.
1572         (yn_test_data): Likewise.
1573         * sysdeps/i386/fpu/libm-test-ulps: Update.
1574         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1575
1576 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1577
1578         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
1579         "64" to "64-v1".  Add "64-v2".
1580         (abi-64-options): Rename to ...
1581         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
1582         (abi-64-condition): Rename to ...
1583         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
1584         (abi-64-ld-soname): Rename to ...
1585         (abi-64-v1-ld-soname): ... this.
1586         (abi-64-v2-options): Define.
1587         (abi-64-v2-condition): Likewise.
1588         (abi-64-v2-ld-soname): Likewise.
1589         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
1590         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
1591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
1592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
1593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
1594
1595 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1596             Alan Modra  <amodra@gmail.com>
1597
1598         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
1599         New versions for use with the ELFv2 ABI.
1600         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
1601         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
1602         declaration.
1603         (struct La_ppc64v2_retval): Likewise.
1604         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
1605         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
1606         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
1607         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
1608         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
1609         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
1610         Do not save or restore CR.
1611         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
1612         (_dl_profile_resolve): Do no save or restore CR.  Support extended
1613         return values for ELFv2 ABI.  Fix location of FPR return registers.
1614         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
1615         updated values for _CALL_ELF == 2.
1616         (La_regs, La_retval, int_retval): Likewise.
1617
1618 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1619
1620         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
1621         (FRAME_MIN_SIZE_PARM): Likewise.
1622         (FRAME_BACKCHAIN): Likewise.
1623         (FRAME_CR_SAVE): Likewise.
1624         (FRAME_LR_SAVE): Likewise.
1625         (FRAME_TOC_SAVE): Likewise.
1626         (FRAME_PARM_SAVE): Likewise.
1627         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
1628         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
1629         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
1630         (call_mcount_parm_offset): New macro.
1631         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
1632         (PROF): Use symbolic stack frame offsets.
1633         (TAIL_CALL_SYSCALL_ERROR): Likewise.
1634         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
1635         Redefine in terms of FRAME_MIN_SIZE.
1636         (_dl_runtime_resolve): Use symbolic stack frame offsets.
1637         (_dl_profile_resolve): Likewise.  Update comment.
1638         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
1639         symbols stack frame offsets.
1640         (__sigsetjmp): Likewise.
1641         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
1642         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
1643         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
1644         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
1645
1646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
1647         (FRAME_BACKCHAIN): Remove.
1648         (FRAME_CR_SAVE): Likewise.
1649         (FRAME_LR_SAVE): Likewise.
1650         (FRAME_COMPILER_DW): Likewise.
1651         (FRAME_LINKER_DW): Likewise.
1652         (FRAME_TOC_SAVE): Likewise.
1653         (FRAME_PARM_SAVE): Likewise.
1654         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
1655         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
1656         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
1657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
1658         (CHECK_SP): Use symbolic stack frame offsets.
1659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
1660         zone" instead of caller's parameter save area for temp storage.
1661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
1662         Likewise.  Also, use symbolic stack frame offsets.
1663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
1664         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
1665         our own stack frame instead of the caller's.
1666         (__socket): Use symbolic stack frame offsets.
1667
1668 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1669             Alan Modra  <amodra@gmail.com>
1670
1671         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
1672         Define.
1673         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
1674         PPC64_LOCAL_ENTRY_OFFSET): Define.
1675         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
1676         New function.
1677         (elf_machine_fixup_plt): Call it.
1678         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
1679         reloc arguments.
1680         (elf_machine_rela): Update call to elf_machine_plt_conflict.
1681         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
1682         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
1683         r2 before calling target.
1684
1685 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1686             Alan Modra  <amodra@gmail.com>
1687
1688         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
1689         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
1690         versions of macros to support ELFv2 ABI.
1691         (LOCALENTRY): New macro.
1692         (ENTRY, EALIGN): Use it.
1693         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
1694         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
1695         fall through into ENTRY entry point.
1696         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
1697         Only define if _CALL_ELF != 2.
1698
1699         (elf_machine_matches_host): Verify ABI version matches.
1700         (RTLD_START): Use LOCALENTRY.
1701         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
1702         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
1703         (PLT_ENTRY_WORDS): New macro.
1704         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
1705         (elf_machine_runtime_setup): Support ELFv2 ABI.
1706         (elf_machine_fixup_plt): Likewise.
1707         (elf_machine_plt_conflict): Likewise.
1708         (resolve_ifunc): Likewise.
1709         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
1710         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
1711         Likewise.
1712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
1713         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
1714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1715         (makecontext): Support ELFv2 ABI.
1716         * elf/elf.h (EF_PPC64_ABI): Define.
1717
1718 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1719
1720         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
1721         New assembler macro.
1722         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
1723         [ASSEMBLER] (ENTRY): ... but instead here ...
1724         [ASSEMBLER] (EALIGN): ... and here.
1725         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
1726         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
1727         [!ASSEMBLER] (ENTRY_2): Use it.
1728         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
1729         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
1730         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
1731         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
1732         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
1733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
1734         Use PPC64_LOAD_FUNCPTR.
1735
1736 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1737
1738         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
1739
1740 2013-12-04  Alan Modra  <amodra@gmail.com>
1741
1742         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
1743         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
1744         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
1745         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
1746
1747         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
1748         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
1749         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
1750         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
1751         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
1752         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
1753
1754 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1755
1756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1757         (__makecontext): Fix incorrect CFI when backtracing out of
1758         context created via makecontext.
1759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
1760         (__setcontext): Fix incorrect CFI during switch to new context.
1761         (__novec_setcontext): Likewise.
1762
1763 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
1764
1765         [BZ #4772]
1766         * time/strptime_l.c (__strptime_internal): Allow modifiers
1767         in strptime.
1768         * time/tst-strptime.c (day_tests): Add testcase.
1769
1770
1771 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1772
1773         * scripts/bench.pl: Skip over blank lines.
1774
1775 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1776
1777         [BZ #926]
1778         * manual/time.texi (Calendar Time): Clarify what timezone functions
1779         use.
1780
1781 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1782
1783         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1784
1785 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
1786
1787         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
1788         implementation.
1789         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
1790         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
1791         * debug/memset_chk.c (__memset_chk): Likewise.
1792         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
1793         * debug/strncpy_chk.c: Likewise.
1794
1795 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
1796
1797         [BZ #15268]
1798         [BZ #15425]
1799         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
1800         (__ieee754_exp): For possibly underflowing results, check size of
1801         result and force underflow exception if required.
1802         * math/auto-libm-test-in: Add more tests of exp.
1803         * math/auto-libm-test-out: Regenerated.
1804         * sysdeps/i386/fpu/libm-test-ulps: Update.
1805         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1806
1807         [BZ #16283]
1808         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
1809         * math/w_exp2f.c (__exp2f): Likewise.
1810         * math/w_exp2l.c (__exp2l): Likewise.
1811         * math/auto-libm-test-in: Do not allow missing errno on exp2
1812         underflow.
1813         * math/auto-libm-test-out: Regenerated.
1814
1815 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
1816
1817         [BZ #16274]
1818         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
1819         handle filename validation.
1820         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
1821         (do_open): Delete.
1822
1823 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
1824
1825         [BZ #6786]
1826         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
1827         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
1828         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
1829         <float.h>.
1830         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
1831         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
1832         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
1833         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
1834         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
1835         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
1836         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
1837         * math/auto-libm-test-in: Don't allow missing errno from erfc.
1838         Add more erfc tests.
1839         * math/auto-libm-test-out: Regenerated.
1840         * sysdeps/i386/fpu/libm-test-ulps: Update.
1841         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1842
1843         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
1844         exp2, expm1, j0 and j1.
1845         * math/auto-libm-test-out: Regenerated.
1846         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
1847         (erfc_test_data): Likewise.
1848         (exp_test_data): Likewise.
1849         (exp_tonearest_test_data): Likewise.
1850         (exp_towardzero_test_data): Likewise.
1851         (exp_downward_test_data): Likewise.
1852         (exp_upward_test_data): Likewise.
1853         (exp10_test_data): Likewise.
1854         (exp2_test_data): Likewise.
1855         (expm1_test_data): Likewise.
1856         (j0_test_data): Likewise.
1857         (j1_test_data): Likewise.
1858         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
1859         (input_flag_type): Add flag_xfail_rounding.
1860         (input_flags): Add xfail-rounding.
1861         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
1862         (output_for_one_input_case): Handle flag_xfail_rounding.
1863         * sysdeps/i386/fpu/libm-test-ulps: Update.
1864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1865
1866 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
1867
1868         [BZ #16289]
1869         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
1870         division by 0.
1871
1872 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
1873
1874         [BZ #16195]
1875         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1876         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
1877         (STAP_PROBE0): New macro.
1878         (STAP_PROBE1): Likewise.
1879         (STAP_PROBE2): Likewise.
1880         (STAP_PROBE3): Likewise.
1881         (STAP_PROBE4): Likewise.
1882
1883 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
1884
1885         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
1886
1887 2013-12-02  Steve Ellcey  <sellcey@mips.com>
1888
1889         * benchtests/Makefile (bench): Add sqrt.
1890         (LDLIBS-bench-sqrt): New.
1891         * benchtests/sqrt-input: New.
1892
1893 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
1894
1895         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
1896         (GAIH_EAI): Likewise.
1897         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
1898         (gaih_inet): Likewise.
1899         (getaddrinfo): Don't use GAIH_EAI.
1900
1901         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
1902         (struct gaih): Remove definition.
1903
1904 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1905
1906         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
1907         Use HERRNOP directly.
1908
1909 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1910
1911         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1912
1913 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
1914
1915         * math/gen-auto-libm-tests.c (test_functions): Add more
1916         single-argument functions.
1917         (special_fill_pi_2): New function.
1918         (special_fill_minus_pi_2): Likewise.
1919         (special_fill_pi_6): Likewise.
1920         (special_fill_minus_pi_6): Likewise.
1921         (special_fill_pi_3): Likewise.
1922         (special_fill_2pi_3): Likewise.
1923         (special_fill_e): Likewise.
1924         (special_fill_1_e): Likewise.
1925         (special_fill_e_minus_1): Likewise.
1926         (special_real_inputs): Add more special inputs.
1927         (output_for_one_input_case): Do not require ERANGE on underflow to
1928         zero if round-to-nearest result does not underflow to zero, unless
1929         exact results required.
1930         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
1931         atan, atanh, cbrt, cos and cosh.
1932         * math/auto-libm-test-out: Regenerated.
1933         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
1934         (acos_tonearest_test_data): Likewise.
1935         (acos_towardzero_test_data): Likewise.
1936         (acos_downward_test_data): Likewise.
1937         (acos_upward_test_data): Likewise.
1938         (acosh_test_data): Likewise.
1939         (asin_test_data): Likewise.
1940         (asin_tonearest_test_data): Likewise.
1941         (asin_towardzero_test_data): Likewise.
1942         (asin_upward_test_data): Likewise.
1943         (asinh_test_data): Likewise.
1944         (atan_test_data): Likewise.
1945         (atanh_test_data): Likewise.
1946         (cbrt_test_data): Likewise.
1947         (cos_test_data): Likewise.
1948         (cos_tonearest_test_data): Likewise.
1949         (cos_towardzero_test_data): Likewise.
1950         (cos_downward_test_data): Likewise.
1951         (cos_upward_test_data): Likewise.
1952         (cosh_test_data): Likewise.
1953         (cosh_tonearest_test_data): Likewise.
1954         (cosh_towardzero_test_data): Likewise.
1955         (cosh_downward_test_data): Likewise.
1956         (cosh_upward_test_data): Likewise.
1957         * sysdeps/i386/fpu/libm-test-ulps: Update.
1958         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1959
1960 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
1961
1962         [BZ #6787]
1963         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
1964         * math/w_exp10f.c (__exp10f): Likewise.
1965         * math/w_exp10l.c (__exp10l): Likewise.
1966         * math/libm-test.inc (exp10_test_data): Add more tests and expect
1967         errno settings in existing tests.
1968
1969         [BZ #14032]
1970         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
1971         precision control set to double precision.
1972         * sysdeps/i386/fpu/w_sqrt.c: New file.
1973         * math/auto-libm-test-in: Add more tests.
1974         * math/auto-libm-test-out: Update.
1975
1976         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
1977         (sqrt_test_tonearest): New function.
1978         (sqrt_towardzero_test_data): New variable.
1979         (sqrt_test_towardzero): New function.
1980         (sqrt_downward_test_data): New variable.
1981         (sqrt_test_downward): New function.
1982         (sqrt_upward_test_data): New variable.
1983         (sqrt_test_upward): New function.
1984         (main): Call the new functions.
1985
1986         * math/gen-auto-libm-tests.c: New file.
1987         * math/auto-libm-test-in: Likewise.
1988         * math/auto-libm-test-out: New generated file.
1989         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
1990         variables.
1991         (%beautify): Add generated representations of zero.
1992         (top level): Set $auto_input and call parse_auto_input.
1993         (beautify): Remove trailing "f" from hex float constants.
1994         (parse_args): Handle XFAIL_TEST.
1995         (convert_condition): New function.
1996         (or_value): Likewise.
1997         (or_cond_value): Likewise.
1998         (generate_testfile): Handle AUTO_TESTS_* lines.
1999         (parse_auto_input): New function.
2000         * math/libm-test.inc (XFAIL_TEST): New macro.
2001         (ERRNO_UNCHANGED): Update value.
2002         (ERRNO_EDOM): Likewise.
2003         (ERRNO_ERANGE): Likewise.
2004         (IGNORE_RESULT): Likewise.
2005         (TEST_COND_flt_32): New macro.
2006         (TEST_COND_dbl_64): Likewise.
2007         (TEST_COND_ldbl_96_intel): Likewise.
2008         (TEST_COND_ldbl_96_m68k): Likewise.
2009         (TEST_COND_ldbl_128): Likewise.
2010         (TEST_COND_ldbl_128ibm): Likewise.
2011         (TEST_COND_long32): Likewise.
2012         (TEST_COND_long64): Likewise.
2013         (TEST_COND_before_rounding): Likewise.
2014         (TEST_COND_after_rounding): Likewise.
2015         (enable_test): Handle XFAIL_TEST flag.
2016         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
2017         with finite results.
2018         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
2019         auto-libm-test-out.
2020
2021 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2022             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2023
2024         [BZ #16214]
2025         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
2026         __tls_get_addr_internal instead of __tls_get_offset in order to
2027         avoid GOT pointer dependency.  Make rtld export
2028         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
2029         __tls_get_addr since we are a __tls_get_offset platform.
2030         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
2031         GOT pointer being set up before.
2032         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
2033
2034 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
2035
2036         * manual/math.texi (Errors in Math Functions): Document accuracy
2037         goals.
2038
2039         [BZ #15004]
2040         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
2041         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
2042         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2043         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2044         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2045         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2046         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2047         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2048         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2049         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2050         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2051         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2052         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2053         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2054         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2055         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2056
2057         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
2058         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
2059         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
2060         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
2061         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
2062         Likewise.
2063         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
2064         Likewise.
2065         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
2066         Likewise.
2067         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
2068         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
2069         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
2070         atomic-feupdateenv and flt-rounds.
2071         * sysdeps/powerpc/nofpu/Versions (libc): Add
2072         __atomic_feholdexcept, __atomic_feclearexcept,
2073         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
2074         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
2075         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
2076         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
2077         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
2078         here.
2079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
2080         Update.
2081
2082         * manual/arith.texi (FP Exceptions): Document that exceptions may
2083         not be raised when matherr is used.
2084         (Math Error Reporting): Document overflow in directed rounding
2085         modes.  Document that errno may not be set when finite values are
2086         returned on overflow.  Document intent to set errno on underflow
2087         only for underflow to zero.
2088
2089         [BZ #16271]
2090         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
2091         round-to-nearest then adjust result for other rounding modes.
2092         * include/fenv.h (fegetround): Use libm_hidden_proto.
2093         * math/fegetround.c (fegetround): Use libm_hidden_def.
2094         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
2095         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
2096         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
2097         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
2098         Likewise.
2099         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
2100         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
2101         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
2102         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
2103
2104 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2105
2106         [BZ #16077]
2107         * nss/Versions (libnss_files): Add
2108         _nss_files_gethostbyname3_r.
2109         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
2110         New function.
2111         (HOST_DB_LOOKUP): Remove macro.
2112         (_nss_files_gethostbyname_r): Implement function without the
2113         HOST_DB_LOOKUP macro.
2114         (_nss_files_gethostbyname2_r): Likewise.
2115
2116 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
2117
2118         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
2119
2120 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
2121
2122         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
2123         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
2124         warning.
2125
2126 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2127
2128         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
2129         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
2130         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
2131         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
2132         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
2133         __fe_nomask_env_priv and attribute_hidden.
2134         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
2135         (libc_feupdateenv_test_ppc): Likewise.
2136         (libc_feresetround_ppc): Likewise.
2137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2138         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
2139         compat_symbol macro.
2140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2141         (__fe_nomask_env): Likewise.
2142         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
2143
2144 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2145
2146         * string/Makefile: Remove ifunc tests.
2147         * string/test-string.h: Define TEST_IFUNC.
2148         * string/test-bcopy-ifunc.c: Remove.
2149         * string/test-bzero-ifunc.c: Likewise.
2150         * string/test-memccpy-ifunc.c: Likewise.
2151         * string/test-memchr-ifunc.c: Likewise.
2152         * string/test-memcmp-ifunc.c: Likewise.
2153         * string/test-memcpy-ifunc.c: Likewise.
2154         * string/test-memmem-ifunc.c: Likewise.
2155         * string/test-memmove-ifunc.c: Likewise.
2156         * string/test-mempcpy-ifunc.c: Likewise.
2157         * string/test-memrchr-ifunc.c: Likewise.
2158         * string/test-memset-ifunc.c: Likewise.
2159         * string/test-rawmemchr-ifunc.c: Likewise.
2160         * string/test-stpcpy-ifunc.c: Likewise.
2161         * string/test-stpncpy-ifunc.c: Likewise.
2162         * string/test-strcasecmp-ifunc.c: Likewise.
2163         * string/test-strcasestr-ifunc.c: Likewise.
2164         * string/test-strcat-ifunc.c: Likewise.
2165         * string/test-strchr-ifunc.c: Likewise.
2166         * string/test-strchrnul-ifunc.c: Likewise.
2167         * string/test-strcmp-ifunc.c: Likewise.
2168         * string/test-strcpy-ifunc.c: Likewise.
2169         * string/test-strcspn-ifunc.c: Likewise.
2170         * string/test-strlen-ifunc.c: Likewise.
2171         * string/test-strncasecmp-ifunc.c: Likewise.
2172         * string/test-strncat-ifunc.c: Likewise.
2173         * string/test-strncmp-ifunc.c: Likewise.
2174         * string/test-strncpy-ifunc.c: Likewise.
2175         * string/test-strnlen-ifunc.c: Likewise.
2176         * string/test-strpbrk-ifunc.c: Likewise.
2177         * string/test-strrchr-ifunc.c: Likewise.
2178         * string/test-strspn-ifunc.c: Likewise.
2179         * string/test-strstr-ifunc.c: Likewise.
2180
2181 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2182
2183         * benchtests/Makefile: Remove ifunc tests.
2184         * benchtests/bench-string.h: Define TEST_IFUNC.
2185         * benchtests/bench-bcopy-ifunc.c: Remove.
2186         * benchtests/bench-bzero-ifunc.c: Likewise.
2187         * benchtests/bench-memccpy-ifunc.c: Likewise.
2188         * benchtests/bench-memchr-ifunc.c: Likewise.
2189         * benchtests/bench-memcmp-ifunc.c: Likewise.
2190         * benchtests/bench-memcpy-ifunc.c: Likewise.
2191         * benchtests/bench-memmem-ifunc.c: Likewise.
2192         * benchtests/bench-memmove-ifunc.c: Likewise.
2193         * benchtests/bench-mempcpy-ifunc.c: Likewise.
2194         * benchtests/bench-memrchr-ifunc.c: Likewise.
2195         * benchtests/bench-memset-ifunc.c: Likewise.
2196         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
2197         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
2198         * benchtests/bench-stpcpy-ifunc.c: Likewise.
2199         * benchtests/bench-stpncpy-ifunc.c: Likewise.
2200         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
2201         * benchtests/bench-strcasestr-ifunc.c: Likewise.
2202         * benchtests/bench-strcat-ifunc.c: Likewise.
2203         * benchtests/bench-strchr-ifunc.c: Likewise.
2204         * benchtests/bench-strchrnul-ifunc.c: Likewise.
2205         * benchtests/bench-strcmp-ifunc.c: Likewise.
2206         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
2207         * benchtests/bench-strcpy-ifunc.c: Likewise.
2208         * benchtests/bench-strcspn-ifunc.c: Likewise.
2209         * benchtests/bench-strlen-ifunc.c: Likewise.
2210         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
2211         * benchtests/bench-strncat-ifunc.c: Likewise.
2212         * benchtests/bench-strncmp-ifunc.c: Likewise.
2213         * benchtests/bench-strncpy-ifunc.c: Likewise.
2214         * benchtests/bench-strnlen-ifunc.c: Likewise.
2215         * benchtests/bench-strpbrk-ifunc.c: Likewise.
2216         * benchtests/bench-strrchr-ifunc.c: Likewise.
2217         * benchtests/bench-strsep-ifunc.c: Likewise.
2218         * benchtests/bench-strspn-ifunc.c: Likewise.
2219         * benchtests/bench-strstr-ifunc.c: Likewise.
2220
2221 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2222
2223         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
2224
2225 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2226
2227         * resolv/netdb.h: Use __glibc_reserved instead __unused.
2228         * rt/aio.h: Likewise.
2229         * sysdeps/gnu/bits/utmp.h: Likewise.
2230         * sysdeps/gnu/bits/utmpx.h: Likewise.
2231         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
2232         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
2233         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
2234         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
2235         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2236         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2237         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
2238         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
2239         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
2240         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
2241         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
2242         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2243         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
2245         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
2246         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
2247         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
2248         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
2249         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2250         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2251         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
2252         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
2253         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
2254         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
2255         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2256         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2257         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
2258         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
2259         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
2260         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2261         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2262         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
2263         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
2264         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
2265         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
2266         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
2267         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
2268         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
2269         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
2270         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
2271         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
2272         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
2273
2274 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
2275
2276         [BZ #16245]
2277         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
2278         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
2279
2280 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
2281
2282         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
2283         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
2284         Likewise.
2285
2286 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2287
2288         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2289         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
2290         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
2291         (__fesetround): Remove define.
2292         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
2293         rounding and exceptions handling.
2294         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
2295         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
2296         (__fe_nomask_env): Likewise.
2297         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
2298         __fegetround instead of fegetround.
2299         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
2300         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
2301
2302 2013-11-21  Roland McGrath  <roland@hack.frob.com>
2303
2304         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
2305         it's there.
2306
2307         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
2308
2309 2013-11-21  Meador Inge  <meadori@codesourcery.com>
2310
2311         [BZ #11157]
2312         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
2313         (encrypt_r): Likewise.
2314         * malloc/obstack.h (obstack_free): Likewise.
2315         * posix/unistd.h (encrypt): Likewise.
2316
2317 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
2318
2319         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
2320         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
2321         DL_CALL_DT_FINI() that call the functions directly.
2322         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
2323         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
2324         * elf/dl-fini.c: Likewise.
2325
2326 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
2327
2328         * malloc/hooks.c (memalign_check): Add alignment rounding.
2329         * malloc/malloc.c (_mid_memalign): New function.
2330         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
2331         Implement by calling _mid_memalign.
2332         * manual/probes.texi (Memory Allocation Probes): Remove
2333         memory_valloc_retry and memory_pvalloc_retry.
2334
2335 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2336
2337         * locale/programs/locarchive.c (open_archive): Add const
2338         qualifier to ARCHIVEFNAME and copy default fname to
2339         DEFAULT_FNAME.
2340
2341         [BZ #15601]
2342         * libio/tst-widetext.input: Rename Oriya to Odia.
2343         * locale/iso-639.def: Likewise.
2344
2345         * manual/probes.texi (Mathematical Function Probes): Add
2346         documentation for sin, cos, asin and acos probes.
2347         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
2348         (__sin32): Add slowasin probe.
2349         (__cos32): Add slowacos probe.
2350         (__mpsin): Add slowsin probe.
2351         (__mpcos): Add slowcos probe.
2352
2353 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
2354
2355         [BZ #15483]
2356         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
2357         thread-local __sim_exceptions_thread and global
2358         __sim_exceptions_global.
2359         (__sim_disabled_exceptions): Change to thread-local
2360         __sim_disabled_exceptions_thread and global
2361         __sim_disabled_exceptions_global.
2362         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
2363         and global __sim_round_mode_global.
2364         (__simulate_exceptions): Use thread-local floating-point state and
2365         set global state from it as needed.
2366         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
2367         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
2368         __sim_round_mode_thread.
2369         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
2370         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
2371         and global __sim_exceptions_global.
2372         (__sim_disabled_exceptions): Change to thread-local
2373         __sim_disabled_exceptions_thread and global
2374         __sim_disabled_exceptions_global.
2375         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
2376         and global __sim_round_mode_global.
2377         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
2378         (SIM_SET_GLOBAL): Likewise.
2379         * sysdeps/powerpc/soft-fp/sfp-machine.h
2380         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
2381         __sim_round_mode_thread.
2382         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
2383         __sim_disabled_exceptions_thread.
2384         (__sim_exceptions): Change to __sim_exceptions_thread.
2385         (__sim_disabled_exceptions): Change to
2386         __sim_disabled_exceptions_thread.
2387         (__sim_round_mode): Change to __sim_round_mode_thread.
2388         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
2389         thread-local floating-point state and set global state from it as
2390         needed.
2391         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
2392         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
2393         (__sim_disabled_exceptions): Remove extern declaration.
2394         (feenableexcept): Use thread-local floating-point state and set
2395         global state from it as needed.
2396         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
2397         extern declaration.
2398         (__sim_disabled_exceptions): Likewise.
2399         (__sim_round_mode): Likewise.
2400         (__fegetenv): Use thread-local floating-point state.
2401         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
2402         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
2403         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
2404         floating-point state and set global state from it as needed.
2405         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
2406         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
2407         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
2408         Likewise.
2409         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
2410         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
2411         Likewise.
2412         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
2413         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
2414         Use __sim_round_mode_thread.
2415         * math/test-fenv-tls.c: New file.
2416         * math/Makefile (tests): Add test-fenv-tls.
2417         ($(objpfx)test-fenv-tls): Depend on
2418         $(common-objpfx)nptl/libpthread.so.
2419
2420 2013-11-19  Andreas Schwab  <schwab@suse.de>
2421
2422         * locale/programs/locale.c (show_info): Decode wordarray elements.
2423         * locale/categories.def (LC_MONETARY): Add element for
2424         _NL_MONETARY_CRNCYSTR.
2425         * locale/C-monetary.c (conversion_rate): New variable.
2426         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
2427         element.
2428
2429 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
2430
2431         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
2432         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
2433
2434 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
2435
2436         * elf/Makefile (tst-auxv): New test.
2437         * elf/tst-auxv.c: New
2438         * elf/rtld.c (dl_main): Adjust AT_EXECFN
2439
2440 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
2441
2442         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
2443         (hidden_proto): Caller changed.
2444         (hidden_tls_proto): New macro.
2445         (libc_hidden_tls_proto): Likewise.
2446         (rtld_hidden_tls_proto): Likewise.
2447         (libm_hidden_tls_proto): Likewise.
2448         (libresolv_hidden_tls_proto): Likewise.
2449         (librt_hidden_tls_proto): Likewise.
2450         (libdl_hidden_tls_proto): Likewise.
2451         (libnss_files_hidden_tls_proto): Likewise.
2452         (libnsl_hidden_tls_proto): Likewise.
2453         (libnss_nisplus_hidden_tls_proto): Likewise.
2454         (libutil_hidden_tls_proto): Likewise.
2455
2456 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
2457
2458         [BZ #10253]
2459         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
2460         (decompose_rpath): Defer expansion to fillin_rpath.
2461         (_dl_init_paths): Pass linkmap to fillin_rpath.
2462
2463 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2464
2465         * benchtests/Makefile: Add strsep.
2466         * benchtests/bench-strsep.c: New file: strsep benchtest.
2467         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
2468
2469 2013-11-18  Andreas Schwab  <schwab@suse.de>
2470
2471         * locale/programs/locale.c (show_info) [case byte]: Check for
2472         '\377' instead of '\177'.
2473         * locale/C-monetary.c (not_available): Always use "\377".
2474         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
2475         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
2476         detect unavailable sign_posn locale elements.
2477         * locale/localeconv.c (__localeconv): For grouping and
2478         mon_grouping handle "\177" and "\377" like no grouping.
2479         (INT_ELEM): New macro.  Use it to set all numeric members.
2480         * locale/programs/ld-monetary.c (monetary_read)
2481         <tok_mon_grouping>: Normalize single -1 to the empty string.
2482         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
2483         Likewise.
2484
2485 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
2486
2487         [BZ #16055]
2488         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
2489         when we match (nil).
2490         * stdio-common/tst-sscanf.c (struct test): Add testcase.
2491
2492 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
2493
2494         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
2495         (NO_TEST_INLINE): Update value.
2496         (ERRNO_UNCHANGED): Likewise.
2497         (ERRNO_EDOM): Likewise.
2498         (ERRNO_ERANGE): Likewise.
2499         (IGNORE_RESULT): Likewise.
2500         (check_float_internal): Check signs of NaN results if
2501         TEST_NAN_SIGN used.
2502         (check_complex): Pass TEST_NAN_SIGN flag through to second
2503         check_float_internal call.
2504         (copysign_test_data): Add tests with quiet NaNs as second
2505         argument.  Use TEST_NAN_SIGN.
2506         (fabs_test_data): Add test of negative quiet NaN argument.  Use
2507         TEST_NAN_SIGN.
2508         (signbit_test_data): Add tests of quiet NaN argument.
2509         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
2510
2511         * math/gen-libm-test.pl (show_exceptions): Take extra argument
2512         $ignore_result.
2513         (parse_args): Handle function results specified as IGNORE.
2514         * math/libm-test.inc (IGNORE_RESULT): New macro.
2515         (check_float_internal): Do not check numerical result if flag
2516         IGNORE_RESULT set.
2517         (check_complex): Pass through IGNORE_RESULT to second
2518         check_float_internal call.
2519         (check_int): Do not check numerical result if flag IGNORE_RESULT
2520         set.
2521         (check_long): Likewise.
2522         (check_bool): Likewise.
2523         (check_longlong): Likewise.
2524         (lrint_test_data): Add tests of infinite and NaN arguments.
2525         (lrint_tonearest_test_data): Likewise.
2526         (lrint_towardzero_test_data): Likewise.
2527         (lrint_downward_test_data): Likewise.
2528         (lrint_upward_test_data): Likewise.
2529         (llrint_test_data): Likewise.
2530         (llrint_tonearest_test_data): Likewise.
2531         (llrint_towardzero_test_data): Likewise.
2532         (llrint_downward_test_data): Likewise.
2533         (llrint_upward_test_data): Likewise.
2534         (lround_test_data): Likewise.
2535         (llround_test_data): Likewise.
2536
2537         * math/libm-test.inc (NO_TEST_INLINE): New macro.
2538         (ERRNO_UNCHANGED): Update value.
2539         (ERRNO_EDOM): Likewise.
2540         (ERRNO_ERANGE): Likewise.
2541         (NO_TEST_INLINE_FLOAT): New macro.
2542         (NO_TEST_INLINE_DOUBLE): Likewise.
2543         (enable_test): New function.
2544         (RUN_TEST_f_f): Check enable_test before running test.
2545         (RUN_TEST_2_f): Likewise.
2546         (RUN_TEST_fff_f): Likewise.
2547         (RUN_TEST_c_f): Likewise.
2548         (RUN_TEST_f_f1): Likewise.
2549         (RUN_TEST_fF_f1): Likewise.
2550         (RUN_TEST_fI_f1): Likewise.
2551         (RUN_TEST_ffI_f1): Likewise.
2552         (RUN_TEST_c_c): Likewise.
2553         (RUN_TEST_cc_c): Likewise.
2554         (RUN_TEST_f_i): Likewise.
2555         (RUN_TEST_f_i_tg): Likewise.
2556         (RUN_TEST_ff_i_tg): Likewise.
2557         (RUN_TEST_f_b): Likewise.
2558         (RUN_TEST_f_b_tg): Likewise.
2559         (RUN_TEST_f_l): Likewise.
2560         (RUN_TEST_f_L): Likewise.
2561         (RUN_TEST_fFF_11): Likewise.
2562         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
2563         conditionals.
2564         (cosh_test_data): Likewise.
2565         (exp_test_data): Likewise.
2566         (expm1_test_data): Likewise.
2567         (hypot_test_data): Likewise.
2568         (pow_test_data): Likewise.
2569         (sinh_test_data): Likewise.
2570         (tanh_test_data): Likewise.
2571         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
2572         flags argument.
2573
2574         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
2575         tests with quiet NaN input and output.
2576         (acosh_test_data): Likewise.
2577         (asin_test_data): Likewise.
2578         (asinh_test_data): Likewise.
2579         (atan_test_data): Likewise.
2580         (atanh_test_data): Likewise.
2581         (atan2_test_data): Likewise.
2582         (cbrt_test_data): Likewise.
2583         (cos_test_data): Likewise.
2584         (cosh_test_data): Likewise.
2585         (erf_test_data): Likewise.
2586         (erfc_test_data): Likewise.
2587         (exp_test_data): Likewise.
2588         (exp10_test_data): Likewise.
2589         (exp2_test_data): Likewise.
2590         (expm1_test_data): Likewise.
2591         (hypot_test_data): Likewise.
2592         (j0_test_data): Likewise.
2593         (j1_test_data): Likewise.
2594         (jn_test_data): Likewise.
2595         (lgamma_test_data): Likewise.
2596         (log_test_data): Likewise.
2597         (log10_test_data): Likewise.
2598         (log1p_test_data): Likewise.
2599         (log2_test_data): Likewise.
2600         (pow_test_data): Likewise.
2601         (scalb_test_data): Likewise.
2602         (sin_test_data): Likewise.
2603         (sincos_test_data): Likewise.
2604         (sinh_test_data): Likewise.
2605         (tan_test_data): Likewise.
2606         (tanh_test_data): Likewise.
2607         (tgamma_test_data): Likewise.
2608         (y0_test_data): Likewise.
2609         (y1_test_data): Likewise.
2610         (yn_test_data): Likewise.
2611
2612         [BZ #16167]
2613         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
2614         argument being NaN and avoid computations with second argument in
2615         that case.
2616         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
2617         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
2618         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2619
2620 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
2621
2622         * locale/iso-639.def: Add Chitwani Tharu (the).
2623
2624 2013-11-14  Andreas Schwab  <schwab@suse.de>
2625
2626         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
2627         word instead of empty string.
2628
2629 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2630
2631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2632         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
2633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2634         (__fe_nomask_env): Likewise.
2635
2636 2013-11-13  Steve Ellcey  <sellcey@mips.com>
2637
2638         * benchtests/bench-timing.h: Include time.h.
2639
2640 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
2641
2642         [BZ #15997]
2643         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
2644         to 3.4.0 for x32.
2645         * sysdeps/unix/sysv/linux/configure: Regenerated.
2646
2647 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
2648
2649         [BZ #16151]
2650         * stdlib/strtod_l.c (round_and_return): Do not consider
2651         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
2652         exponent one less than half the least subnormal exponent.
2653         * stdlib/test-strtod-round-data: Add more tests.
2654         * stdlib/tst-strtod-round.c (tests): Regenerated.
2655
2656 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2657
2658         [BZ #14143]
2659         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
2660         (__fe_mask_env): Likewise.
2661         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
2662         libm_hidden_proto and add function prototype.
2663         (__fe_mask_env): Add function prototype.
2664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2665         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
2666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2667         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
2668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2669         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
2670
2671 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2672
2673         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
2674         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
2675
2676 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2677
2678         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
2679         of htab_find_slot().
2680
2681 2013-11-11  David S. Miller  <davem@davemloft.net>
2682
2683         [BZ #16150]
2684         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
2685         symbol in the non-vis3 case in static builds.
2686         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
2687         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
2688         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
2689         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
2690
2691 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2692
2693         [BZ #387]
2694         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
2695         it is empty.
2696
2697 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2698
2699         * benchtests/Makefile: Add bench-strtod.
2700         * benchtests/bench-strtod.c: New file: strtod benchtest
2701
2702 2013-11-11  Andreas Schwab  <schwab@suse.de>
2703
2704         [BZ #16153]
2705         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
2706         terminating NUL in key length.
2707
2708 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2709
2710         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
2711         Add artificial ODP entry for vDSO symbol for PPC64.
2712         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
2713         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
2714
2715 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
2716
2717         [BZ #15374]
2718         * nss/getent.c (services_keys): Recognize services starting with digit.
2719
2720 2013-11-06  David S. Miller  <davem@davemloft.net>
2721
2722         [BZ #15985]
2723         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
2724         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
2725
2726 2013-11-06  Will Newton  <will.newton@linaro.org>
2727
2728         * manual/memory.texi (Malloc Examples): Remove register
2729         keyword from examples.
2730
2731 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
2732
2733         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
2734
2735 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
2736
2737         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
2738         depending on [__GCC_IEC_559 > 0].
2739         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
2740         depending on [__GCC_IEC_559_COMPLEX > 0].
2741
2742 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
2743
2744         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
2745         to iso-639.def.
2746
2747 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
2748
2749         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
2750
2751 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
2752
2753         [BZ #16112]
2754         * malloc/malloc (malloc_info): Do not handle first bin as
2755         special case.
2756
2757 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
2758
2759         * locale/iso-639.def: Add Central Nahuatl (nhn).
2760
2761 2013-11-01  Bruno Haible  <bruno@clisp.org>
2762
2763         [BZ #7003]
2764         * manual/math.texi (BSD Random): Specify range upper bound as
2765         in POSIX.
2766
2767 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
2768
2769         * locale/iso-639.def: Add Meadow Mari (mhr).
2770
2771 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
2772
2773         [BZ #14752], [BZ #15763]
2774         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
2775         Validate name.
2776         * rt/tst_shm.c: Add test for escaping directory.
2777
2778 2013-10-31  Andreas Schwab  <schwab@suse.de>
2779
2780         [BZ #15917]
2781         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
2782         followed by 'x' as part of digit sequence.
2783         * stdio-common/tst-sscanf.c (double_tests2): New tests.
2784
2785 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2786
2787         [BZ #16037]
2788         * configure.ac: allow GNU Make 4.0 and greater.
2789         * configure: Regenerated.
2790
2791 2013-10-30  Will Newton  <will.newton@linaro.org>
2792
2793         [BZ #16038]
2794         * malloc/hooks.c (memalign_check): Limit alignment to the
2795         maximum representable power of two.
2796         * malloc/malloc.c (__libc_memalign): Likewise.
2797         * malloc/tst-memalign.c (do_test): Add test for very
2798         large alignment values.
2799         * malloc/tst-posix_memalign.c (do_test): Likewise.
2800
2801 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
2802
2803         [BZ #11087]
2804         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
2805         (munmap_chunk): Likewise.
2806         (mremap_chunk): Likewise.
2807
2808 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
2809
2810         [BZ #15799]
2811         * stdlib/div.c (div): Remove obsolete code.
2812         * stdlib/ldiv.c (ldiv): Likewise.
2813         * stdlib/lldiv.c (lldiv): Likewise.
2814
2815 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2816
2817         [BZ #16071]
2818         * nss/nss_files/files-XXX.c (get_contents_ret): New
2819         enumerator.
2820         (get_contents): New function.
2821         (internal_getent): Use it.  Expand size of LINEBUFLEN.
2822
2823 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
2824
2825         * configure.in: Moved to ...
2826         * configure.ac: ... here. Change reference to configure.in
2827         to configure.ac.
2828         * sysdeps/arm/preconfigure.ac: ... here.
2829         configure.in to configure.ac.
2830         * sysdeps/gnu/configure.in: Moved to ...
2831         * sysdeps/gnu/configure.ac: ... here.
2832         * sysdeps/i386/configure.in: Moved to ...
2833         * sysdeps/i386/configure.ac: ... here.
2834         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
2835         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
2836         * sysdeps/mach/configure.in: Moved to ...
2837         * sysdeps/mach/configure.ac: ... here.
2838         * sysdeps/mach/hurd/configure.in: Moved to ...
2839         * sysdeps/mach/hurd/configure.ac: ... here.
2840         * sysdeps/powerpc/configure.in: Moved to ...
2841         * sysdeps/powerpc/configure.ac: ... here.
2842         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
2843         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
2844         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
2845         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
2846         * sysdeps/s390/s390-32/configure.in: Moved to ...
2847         * sysdeps/s390/s390-32/configure.ac: ... here.
2848         * sysdeps/s390/s390-64/configure.in: Moved to ...
2849         * sysdeps/s390/s390-64/configure.ac: ... here.
2850         * sysdeps/sh/configure.in: Moved to ...
2851         * sysdeps/sh/configure.ac: ... here.
2852         * sysdeps/sparc/configure.in: Moved to ...
2853         * sysdeps/sparc/configure.ac: ... here.
2854         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
2855         * sysdeps/unix/sysv/linux/configure.ac: ... here.
2856         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
2857         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
2858         * sysdeps/x86_64/configure.in: Moved to ...
2859         * sysdeps/x86_64/configure.ac: ... here.
2860         * sysdeps/x86_64/preconfigure.in: Moved to ...
2861         * sysdeps/x86_64/preconfigure.ac: ... here.
2862         * aclocal.m4: Change reference to configure.in to configure.ac.
2863         * config.h.in: Likewise.
2864         * manual/install.texi: Likewise.
2865         * manual/maint.texi: Likewise.
2866         * Makefile: Likewise.
2867         * malloc/Makefile: Likewise.
2868         * nscd/Makefile: Likewise.
2869         * Makeconfig: Change reference to configure.in and
2870         preconfigure.in to configure.ac and preconfigure.ac
2871         respectively.
2872         * INSTALL: Regenerated.
2873         * configure: Likewise.
2874         * sysdeps/gnu/configure: Likewise.
2875         * sysdeps/i386/configure: Likewise.
2876         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
2877         * sysdeps/mach/configure: Likewise.
2878         * sysdeps/mach/hurd/configure: Likewise.
2879         * sysdeps/powerpc/configure: Likewise.
2880         * sysdeps/powerpc/powerpc32/configure: Likewise.
2881         * sysdeps/powerpc/powerpc64/configure: Likewise.
2882         * sysdeps/s390/s390-32/configure: Likewise.
2883         * sysdeps/s390/s390-64/configure: Likewise.
2884         * sysdeps/sh/configure: Likewise.
2885         * sysdeps/sparc/configure: Likewise.
2886         * sysdeps/unix/sysv/linux/configure: Likewise.
2887         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
2888         * sysdeps/x86_64/configure: Likewise.
2889         * sysdeps/x86_64/preconfigure: Likewise.
2890
2891 2013-10-29  Andreas Schwab  <schwab@suse.de>
2892
2893         * stdio-common/Makefile (tst-swscanf-ENV): Define.
2894
2895 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2896
2897         * benchtests/pow-inputs: Add new inputs.
2898
2899         * benchtests/exp-inputs: Add new inputs.
2900
2901         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
2902         conditional check for return value.
2903         (__cos32): Likewise.
2904
2905 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2906
2907         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
2908         to provide a boost for large inputs with word alignment.
2909         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
2910         implementation based on optimized PPC64 strcpy.
2911         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
2912         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
2913         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
2914         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
2915
2916 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
2917
2918         [BZ #2801]
2919         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
2920
2921 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
2922
2923         [BZ #14876]
2924         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
2925         * time/tst-strptime.c (day_tests): Add testcase.
2926
2927 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
2928
2929         [BZ #14029]
2930         * manual/pattern.texi: Acknowledge that fnmatch can fail.
2931
2932 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
2933
2934         [BZ #16074]
2935         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
2936         MAP_FAILED on error.
2937
2938 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2939
2940         [BZ #16072]
2941         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
2942         heap for large requests.
2943
2944 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
2945
2946         [BZ #9954]
2947         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
2948         result if the result has no associated interface.
2949         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
2950         interface for all 127.X.Y.Z addresses.
2951
2952 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
2953
2954         * locale/iso-639.def: Add Ligurian (lij)
2955
2956 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
2957
2958         [BZ #15825]
2959         * sunrpc/rpc_main.c: Document rpcgen -5.
2960
2961 2013-10-19  Michael Stahl  <mstahl@redhat.com>
2962
2963         * elf/rtld.c (do_preload): Print the reason why preloading failed.
2964
2965 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
2966
2967         [BZ #10278]
2968         * posix/glob.c: Match only directories when trailing slash is present.
2969         * posix/tst-gnuglob.c (my_opendir): Do not open files.
2970         (main): Add testcase.
2971
2972 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
2973
2974         [BZ #15670]
2975         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
2976
2977 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
2978
2979         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
2980         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
2981         AUTH_DES and cindex for FIPS 140-2.
2982         (DES Encryption): Add cindex FIPS 46-3.
2983
2984         * locale/locarchive.h (struct locarhandle): Add fname.
2985         * locale/programs/localedef.c (main): Pass ARGV[remaining]
2986         if an optional argument was specified to --list-archive,
2987         otherwise NULL.
2988         * locale/programs/locarchive.c (show_archive_content): Take new
2989         argument fname and pass it via ah.fname to open_archive.
2990         * locale/programs/localedef.h: Update decl.
2991         (open_archive): If AH->fname is non-null, open that file
2992         rather than the default file name, and don't ignore ENOENT.
2993         (create_archive): Set AH.fname to NULL.
2994         (delete_locales_from_archive): Likewise.
2995         (add_locales_to_archive): Likewise.
2996         * locale/programs/locfile.c (write_all_categories): Likewise.
2997
2998 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
2999             Aldy Hernandez  <aldyh@redhat.com>
3000
3001         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
3002         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
3003         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
3004         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
3005         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
3006         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
3007         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
3008         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
3009         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
3010         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
3011         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
3012         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
3013         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
3014         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
3015         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
3016         Likewise.
3017         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
3018         Likewise.
3019         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
3020         Likewise.
3021         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
3022         Likewise.
3023         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
3024         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
3025         Likewise.
3026         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
3027         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
3028         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
3029         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
3030         Likewise.
3031         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
3032         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
3033         * sysdeps/powerpc/preconfigure: Likewise.
3034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
3035         Likewise.
3036         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
3037         Replace contents of file by #include of <fenv_libc.h>.
3038         * sysdeps/powerpc/soft-fp/sfp-machine.h
3039         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
3040         and <sys/prctl.h>.
3041         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
3042         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
3043         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
3044         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
3045         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
3046         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
3047         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
3048         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
3049         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
3050         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
3051         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
3052         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
3053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
3054         Allow copysignl PLT reference to be missing.
3055
3056 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
3057             Joseph Myers  <joseph@codesourcery.com
3058
3059         [BZ #15948]
3060         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
3061         single character.
3062         (add_to_tablewc): Assert sequence of wide characters is nonempty.
3063
3064 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3065
3066         * elf/tst-tls-dlinfo.c: Don't include tls.h.
3067         * elf/tst-tls1.c: Likewise.
3068         * elf/tst-tls10.h: Likewise.
3069         * elf/tst-tls14.c: Likewise.
3070         * elf/tst-tls2.c: Likewise.
3071         * elf/tst-tls3.c: Likewise.
3072         * elf/tst-tls4.c: Likewise.
3073         * elf/tst-tls5.c: Likewise.
3074         * elf/tst-tls6.c: Likewise.
3075         * elf/tst-tls7.c: Likewise.
3076         * elf/tst-tls8.c: Likewise.
3077         * elf/tst-tls9.c: Likewise.
3078         * elf/tst-tlsmod1.c: Likewise.
3079         * elf/tst-tlsmod13.c: Likewise.
3080         * elf/tst-tlsmod13a.c: Likewise.
3081         * elf/tst-tlsmod14a.c: Likewise.
3082         * elf/tst-tlsmod16a.c: Likewise.
3083         * elf/tst-tlsmod16b.c: Likewise.
3084         * elf/tst-tlsmod2.c: Likewise.
3085         * elf/tst-tlsmod3.c: Likewise.
3086         * elf/tst-tlsmod4.c: Likewise.
3087         * elf/tst-tlsmod5.c: Likewise.
3088         * elf/tst-tlsmod6.c: Likewise.
3089
3090 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
3091
3092         [BZ #12486]
3093         * malloc/malloc.c: remove checks for statistics.
3094
3095 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
3096
3097         [BZ #15277]
3098         * inet/inet_net.c (inet_network): Detect additional invalid strings.
3099         * inet/tst-network.c: Add testcase.
3100
3101 2013-10-17  Andreas Schwab  <schwab@suse.de>
3102
3103         [BZ #15218]
3104         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
3105         to determine canonical name.
3106
3107 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
3108
3109         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
3110         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3111         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3112         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
3113         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3114         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
3115         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
3116         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
3117         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
3118         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
3119         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3120         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
3121         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
3122         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3123         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
3124         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
3125         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3126         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3127         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
3128         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
3129         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3130         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3131         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3132         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
3133         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
3134         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3135         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3136         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
3137         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3138         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3139         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
3140         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3141         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
3142         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3143         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
3144         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
3145         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
3146         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
3147         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3148         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3149         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
3150         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3151         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
3152         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3153         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3154         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
3155         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
3156         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3157         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
3158         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3159         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
3160         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3161         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
3162         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
3163         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3164         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
3165         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3166         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
3167
3168 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
3169
3170         [BZ #16041]
3171         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
3172         make result into a quiet NaN.
3173
3174 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
3175
3176         * soft-fp/adddf3.c: Fix horizontal whitespace.
3177         * soft-fp/addsf3.c: Likewise.
3178         * soft-fp/addtf3.c: Likewise.
3179         * soft-fp/divdf3.c: Likewise.
3180         * soft-fp/divsf3.c: Likewise.
3181         * soft-fp/divtf3.c: Likewise.
3182         * soft-fp/double.h: Likewise.
3183         * soft-fp/eqdf2.c: Likewise.
3184         * soft-fp/eqsf2.c: Likewise.
3185         * soft-fp/eqtf2.c: Likewise.
3186         * soft-fp/extenddftf2.c: Likewise.
3187         * soft-fp/extended.h: Likewise.
3188         * soft-fp/extendsfdf2.c: Likewise.
3189         * soft-fp/extendsftf2.c: Likewise.
3190         * soft-fp/extendxftf2.c: Likewise.
3191         * soft-fp/fixdfdi.c: Likewise.
3192         * soft-fp/fixdfsi.c: Likewise.
3193         * soft-fp/fixdfti.c: Likewise.
3194         * soft-fp/fixsfdi.c: Likewise.
3195         * soft-fp/fixsfsi.c: Likewise.
3196         * soft-fp/fixsfti.c: Likewise.
3197         * soft-fp/fixtfdi.c: Likewise.
3198         * soft-fp/fixtfsi.c: Likewise.
3199         * soft-fp/fixtfti.c: Likewise.
3200         * soft-fp/fixunsdfdi.c: Likewise.
3201         * soft-fp/fixunsdfsi.c: Likewise.
3202         * soft-fp/fixunsdfti.c: Likewise.
3203         * soft-fp/fixunssfdi.c: Likewise.
3204         * soft-fp/fixunssfsi.c: Likewise.
3205         * soft-fp/fixunssfti.c: Likewise.
3206         * soft-fp/fixunstfdi.c: Likewise.
3207         * soft-fp/fixunstfsi.c: Likewise.
3208         * soft-fp/fixunstfti.c: Likewise.
3209         * soft-fp/floatdidf.c: Likewise.
3210         * soft-fp/floatdisf.c: Likewise.
3211         * soft-fp/floatditf.c: Likewise.
3212         * soft-fp/floatsidf.c: Likewise.
3213         * soft-fp/floatsisf.c: Likewise.
3214         * soft-fp/floatsitf.c: Likewise.
3215         * soft-fp/floattidf.c: Likewise.
3216         * soft-fp/floattisf.c: Likewise.
3217         * soft-fp/floattitf.c: Likewise.
3218         * soft-fp/floatundidf.c: Likewise.
3219         * soft-fp/floatundisf.c: Likewise.
3220         * soft-fp/floatunditf.c: Likewise.
3221         * soft-fp/floatunsidf.c: Likewise.
3222         * soft-fp/floatunsisf.c: Likewise.
3223         * soft-fp/floatunsitf.c: Likewise.
3224         * soft-fp/floatuntidf.c: Likewise.
3225         * soft-fp/floatuntisf.c: Likewise.
3226         * soft-fp/floatuntitf.c: Likewise.
3227         * soft-fp/fmadf4.c: Likewise.
3228         * soft-fp/fmasf4.c: Likewise.
3229         * soft-fp/fmatf4.c: Likewise.
3230         * soft-fp/gedf2.c: Likewise.
3231         * soft-fp/gesf2.c: Likewise.
3232         * soft-fp/getf2.c: Likewise.
3233         * soft-fp/ledf2.c: Likewise.
3234         * soft-fp/lesf2.c: Likewise.
3235         * soft-fp/letf2.c: Likewise.
3236         * soft-fp/muldf3.c: Likewise.
3237         * soft-fp/mulsf3.c: Likewise.
3238         * soft-fp/multf3.c: Likewise.
3239         * soft-fp/negdf2.c: Likewise.
3240         * soft-fp/negsf2.c: Likewise.
3241         * soft-fp/negtf2.c: Likewise.
3242         * soft-fp/op-1.h: Likewise.
3243         * soft-fp/op-2.h: Likewise.
3244         * soft-fp/op-4.h: Likewise.
3245         * soft-fp/op-8.h: Likewise.
3246         * soft-fp/op-common.h: Likewise.
3247         * soft-fp/quad.h: Likewise.
3248         * soft-fp/single.h: Likewise.
3249         * soft-fp/soft-fp.h: Likewise.
3250         * soft-fp/sqrtdf2.c: Likewise.
3251         * soft-fp/sqrtsf2.c: Likewise.
3252         * soft-fp/sqrttf2.c: Likewise.
3253         * soft-fp/subdf3.c: Likewise.
3254         * soft-fp/subsf3.c: Likewise.
3255         * soft-fp/subtf3.c: Likewise.
3256         * soft-fp/truncdfsf2.c: Likewise.
3257         * soft-fp/trunctfdf2.c: Likewise.
3258         * soft-fp/trunctfsf2.c: Likewise.
3259         * soft-fp/trunctfxf2.c: Likewise.
3260         * soft-fp/unorddf2.c: Likewise.
3261         * soft-fp/unordsf2.c: Likewise.
3262         * soft-fp/unordtf2.c: Likewise.
3263
3264 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
3265
3266         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
3267         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
3268
3269 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
3270
3271         * elf/dl-libc.c: Clear initfini list after freeing.
3272
3273 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
3274
3275         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
3276         * soft-fp/addsf3.c: Likewise.
3277         * soft-fp/addtf3.c: Likewise.
3278         * soft-fp/divdf3.c: Likewise.
3279         * soft-fp/divsf3.c: Likewise.
3280         * soft-fp/divtf3.c: Likewise.
3281         * soft-fp/double.h: Likewise.
3282         * soft-fp/eqdf2.c: Likewise.
3283         * soft-fp/eqsf2.c: Likewise.
3284         * soft-fp/eqtf2.c: Likewise.
3285         * soft-fp/extenddftf2.c: Likewise.
3286         * soft-fp/extended.h: Likewise.
3287         * soft-fp/extendsfdf2.c: Likewise.
3288         * soft-fp/extendsftf2.c: Likewise.
3289         * soft-fp/extendxftf2.c: Likewise.
3290         * soft-fp/fixdfdi.c: Likewise.
3291         * soft-fp/fixdfsi.c: Likewise.
3292         * soft-fp/fixdfti.c: Likewise.
3293         * soft-fp/fixsfdi.c: Likewise.
3294         * soft-fp/fixsfsi.c: Likewise.
3295         * soft-fp/fixsfti.c: Likewise.
3296         * soft-fp/fixtfdi.c: Likewise.
3297         * soft-fp/fixtfsi.c: Likewise.
3298         * soft-fp/fixtfti.c: Likewise.
3299         * soft-fp/fixunsdfdi.c: Likewise.
3300         * soft-fp/fixunsdfsi.c: Likewise.
3301         * soft-fp/fixunsdfti.c: Likewise.
3302         * soft-fp/fixunssfdi.c: Likewise.
3303         * soft-fp/fixunssfsi.c: Likewise.
3304         * soft-fp/fixunssfti.c: Likewise.
3305         * soft-fp/fixunstfdi.c: Likewise.
3306         * soft-fp/fixunstfsi.c: Likewise.
3307         * soft-fp/fixunstfti.c: Likewise.
3308         * soft-fp/floatdidf.c: Likewise.
3309         * soft-fp/floatdisf.c: Likewise.
3310         * soft-fp/floatditf.c: Likewise.
3311         * soft-fp/floatsidf.c: Likewise.
3312         * soft-fp/floatsisf.c: Likewise.
3313         * soft-fp/floatsitf.c: Likewise.
3314         * soft-fp/floattidf.c: Likewise.
3315         * soft-fp/floattisf.c: Likewise.
3316         * soft-fp/floattitf.c: Likewise.
3317         * soft-fp/floatundidf.c: Likewise.
3318         * soft-fp/floatundisf.c: Likewise.
3319         * soft-fp/floatunsidf.c: Likewise.
3320         * soft-fp/floatunsisf.c: Likewise.
3321         * soft-fp/floatuntidf.c: Likewise.
3322         * soft-fp/floatuntisf.c: Likewise.
3323         * soft-fp/floatuntitf.c: Likewise.
3324         * soft-fp/fmadf4.c: Likewise.
3325         * soft-fp/fmasf4.c: Likewise.
3326         * soft-fp/fmatf4.c: Likewise.
3327         * soft-fp/gedf2.c: Likewise.
3328         * soft-fp/gesf2.c: Likewise.
3329         * soft-fp/getf2.c: Likewise.
3330         * soft-fp/ledf2.c: Likewise.
3331         * soft-fp/lesf2.c: Likewise.
3332         * soft-fp/letf2.c: Likewise.
3333         * soft-fp/muldf3.c: Likewise.
3334         * soft-fp/mulsf3.c: Likewise.
3335         * soft-fp/multf3.c: Likewise.
3336         * soft-fp/negdf2.c: Likewise.
3337         * soft-fp/negsf2.c: Likewise.
3338         * soft-fp/negtf2.c: Likewise.
3339         * soft-fp/op-1.h: Likewise.
3340         * soft-fp/op-2.h: Likewise.
3341         * soft-fp/op-4.h: Likewise.
3342         * soft-fp/op-8.h: Likewise.
3343         * soft-fp/op-common.h: Likewise.
3344         * soft-fp/quad.h: Likewise.
3345         * soft-fp/single.h: Likewise.
3346         * soft-fp/soft-fp.h: Likewise.
3347         * soft-fp/sqrtdf2.c: Likewise.
3348         * soft-fp/sqrtsf2.c: Likewise.
3349         * soft-fp/sqrttf2.c: Likewise.
3350         * soft-fp/subdf3.c: Likewise.
3351         * soft-fp/subsf3.c: Likewise.
3352         * soft-fp/subtf3.c: Likewise.
3353         * soft-fp/truncdfsf2.c: Likewise.
3354         * soft-fp/trunctfdf2.c: Likewise.
3355         * soft-fp/trunctfsf2.c: Likewise.
3356         * soft-fp/trunctfxf2.c: Likewise.
3357         * soft-fp/unorddf2.c: Likewise.
3358         * soft-fp/unordsf2.c: Likewise.
3359         * soft-fp/unordtf2.c: Likewise.
3360
3361 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
3362
3363         [BZ #15672]
3364         * misc/error.c (error_tail): Fix possible buffer overflow.
3365
3366 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
3367
3368         [BZ #13028]
3369         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
3370         address.
3371
3372 2013-10-14  P. J. McDermott  <pj@pehjota.net>
3373
3374         [BZ #832]
3375         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
3376         testing pipefail option.
3377
3378 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
3379
3380         * soft-fp/double.h: Indent preprocessor directives inside #if.
3381         * soft-fp/extended.h: Likewise.
3382         * soft-fp/op-2.h: Likewise.
3383         * soft-fp/op-4.h: Likewise.
3384         * soft-fp/op-common.h: Likewise.
3385         * soft-fp/quad.h: Likewise.
3386         * soft-fp/single.h: Likewise.
3387         * soft-fp/soft-fp.h: Likewise.
3388
3389 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
3390
3391         * iconv/iconv_prog.c: Fix typos.
3392         * stdio-common/psiginfo-data.h: Likewise.
3393
3394 2013-10-12   Reuben Thomas <rrt@sc3d.org>
3395
3396         [BZ #15764]
3397         * locale/setlocale.c: Fix typo.
3398
3399 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
3400
3401         [BZ #16036]
3402         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
3403         signaling NaN arguments.
3404         * soft-fp/unordsf2.c (__unordsf2): Likewise.
3405         * soft-fp/unordtf2.c (__unordtf2): Likewise.
3406
3407         [BZ #14910]
3408         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
3409         unordered operands.
3410         * soft-fp/gesf2.c (__gesf2): Likewise.
3411         * soft-fp/getf2.c (__getf2): Likewise.
3412         * soft-fp/ledf2.c (__ledf2): Likewise.
3413         * soft-fp/lesf2.c (__lesf2): Likewise.
3414         * soft-fp/letf2.c (__letf2): Likewise.
3415
3416         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
3417         * soft-fp/eqsf2.c (__eqsf2): Likewise.
3418         * soft-fp/eqtf2.c (__eqtf2): Likewise.
3419         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
3420         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
3421         * soft-fp/fixdfti.c (__fixdfti): Likewise.
3422         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
3423         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
3424         * soft-fp/fixsfti.c (__fixsfti): Likewise.
3425         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
3426         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
3427         * soft-fp/fixtfti.c (__fixtfti): Likewise.
3428         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
3429         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
3430         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
3431         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
3432         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
3433         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
3434         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
3435         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
3436         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
3437         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
3438         * soft-fp/floatdisf.c (__floatdisf): Likewise.
3439         * soft-fp/floatsisf.c (__floatsisf): Likewise.
3440         * soft-fp/floattidf.c (__floattidf): Likewise.
3441         * soft-fp/floattisf.c (__floattisf): Likewise.
3442         * soft-fp/floattitf.c (__floattitf): Likewise.
3443         * soft-fp/floatundidf.c (__floatundidf): Likewise.
3444         * soft-fp/floatundisf.c (__floatundisf): Likewise.
3445         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
3446         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
3447         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
3448         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
3449         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
3450         * soft-fp/gesf2.c (__gesf2): Likewise.
3451         * soft-fp/getf2.c (__getf2): Likewise.
3452         * soft-fp/ledf2.c (__ledf2): Likewise.
3453         * soft-fp/lesf2.c (__lesf2): Likewise.
3454         * soft-fp/letf2.c (__letf2): Likewise.
3455
3456         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
3457         Undefine and redefine.
3458         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
3459         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
3460         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
3461         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
3462         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3463         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
3464         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3465         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
3466         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3467         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
3468         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3469         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
3470         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3471         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
3472         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3473
3474         [BZ #16032]
3475         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
3476         without decrementing exponent if mantissa >= that for the
3477         denominator, not >.
3478         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
3479         denominator, not >.  Decrement exponent in < case instead of
3480         incrementing in >= case.
3481         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
3482         without decrementing exponent if mantissa >= that for the
3483         denominator, not >.
3484
3485         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
3486         computing saturated result for unsigned overflow.
3487
3488 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3489             Jeff Law  <law@redhat.com>
3490
3491         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
3492         (atan2Mp): Add systemtap probe marker.
3493         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
3494         (__ieee754_log): Add systemtap probe marker.
3495         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
3496         (atanMp): Add systemtap probe marker.
3497         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
3498         (tanMp): Add systemtap probe marker.
3499         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
3500         (__slowexp): Add systemtap probe marker.
3501         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
3502         (__slowpow): Add systemtap probe marker.
3503         * manual/probes.texi: Document probes.
3504
3505 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
3506
3507         [BZ #15362]
3508         * libio/fileops.c (_IO_new_file_write): Return count of bytes
3509         written.
3510         (_IO_new_file_xsputn): Don't return EOF if nothing has been
3511         written.
3512         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
3513         written to buffer but not flushed.
3514         * libio/iofwrite_u.c:  Likewise.
3515         * libio/iopadn.c:  Return bytes returned even if EOF was
3516         encountered.
3517         * libio/iowpadn.c:  Likewise.
3518         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
3519         if _IO_padn does not write the whole buffer.
3520         [!COMPILE_WPRINTF] (PAD): Likewise.
3521
3522 2013-10-10  David S. Miller  <davem@davemloft.net>
3523
3524         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
3525         directory block.
3526
3527 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
3528
3529         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
3530         instead of FSF address.
3531         * soft-fp/fixdfti.c: Likewise.
3532         * soft-fp/fixsfti.c: Likewise.
3533         * soft-fp/fixtfti.c: Likewise.
3534         * soft-fp/fixunsdfti.c: Likewise.
3535         * soft-fp/fixunssfti.c: Likewise.
3536         * soft-fp/fixunstfti.c: Likewise.
3537         * soft-fp/floattidf.c: Likewise.
3538         * soft-fp/floattisf.c: Likewise.
3539         * soft-fp/floattitf.c: Likewise.
3540         * soft-fp/floatuntidf.c: Likewise.
3541         * soft-fp/floatuntisf.c: Likewise.
3542         * soft-fp/floatuntitf.c: Likewise.
3543         * soft-fp/trunctfxf2.c: Likewise.
3544
3545         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
3546         * soft-fp/fixdfti.c: Likewise.
3547         * soft-fp/fixsfti.c: Likewise.
3548         * soft-fp/fixtfti.c: Likewise.
3549         * soft-fp/fixunsdfti.c: Likewise.
3550         * soft-fp/fixunssfti.c: Likewise.
3551         * soft-fp/fixunstfti.c: Likewise.
3552         * soft-fp/floattidf.c: Likewise.
3553         * soft-fp/floattisf.c: Likewise.
3554         * soft-fp/floattitf.c: Likewise.
3555         * soft-fp/floatuntidf.c: Likewise.
3556         * soft-fp/floatuntisf.c: Likewise.
3557         * soft-fp/floatuntitf.c: Likewise.
3558         * soft-fp/trunctfxf2.c: Likewise.
3559
3560 2013-10-10  David S. Miller  <davem@davemloft.net>
3561
3562         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3563
3564 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
3565
3566         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
3567         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
3568         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
3569         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
3570         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
3571         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
3572         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
3573
3574         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
3575         for NaNs before doing comparisons on argument.
3576         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
3577         Likewise.
3578
3579 2013-10-10  Will Newton  <will.newton@linaro.org>
3580
3581         * malloc/hooks.c (memalign_check): Ensure the value of bytes
3582         passed to _int_memalign does not overflow.
3583
3584 2013-10-10  Torvald Riegel  <triegel@redhat.com>
3585
3586         * scripts/bench.pl: Add include-sources directive.
3587         * benchtests/README: Update documentation.
3588
3589 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
3590
3591         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
3592         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
3593         instead of FP_INIT_ROUNDMODE.
3594         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
3595         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
3596
3597         [BZ #16034]
3598         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
3599         copy class of input value.
3600         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
3601         not handle exceptions.
3602         * soft-fp/negsf2.c (__negsf2): Likewise.
3603         * soft-fp/negtf2.c (__negtf2): Likewise.
3604         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
3605
3606 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
3607
3608         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
3609         semicolon.  From Linux kernel.
3610
3611 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
3612
3613         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
3614
3615 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
3616
3617         [BZ #156]
3618         * manual/socket.texi: Added statement about buffer
3619         for gethostbyname2_r.
3620
3621 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
3622
3623         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
3624         Use .p2align directive instead, throughout.
3625         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3626         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3627         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
3628         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
3629         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3630         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
3631         * sysdeps/x86_64/strchr.S: Likewise.
3632         * sysdeps/x86_64/strrchr.S: Likewise.
3633
3634 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
3635
3636         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
3637
3638         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
3639
3640         * sysdeps/generic/math_private.h (__mpsin1): Remove
3641         declaration.
3642         (__mpcos1): Likewise.
3643         (__mpsin): New argument __range_reduce.
3644         (__mpcos): Likewise.
3645         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3646         (slow): Use __mpsin and __mpcos.
3647         (slow1): Likewise.
3648         (slow2): Likewise.
3649         (sloww): Likewise.
3650         (sloww1): Likewise.
3651         (sloww2): Likewise.
3652         (bsloww): Likewise.
3653         (bsloww1): Likewise.
3654         (bsloww2): Likewise.
3655         (cslow2): Likewise.
3656         (csloww): Likewise.
3657         (csloww1): Likewise.
3658         (csloww2): Likewise.
3659         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
3660         range_reduce.  Merge in __mpsin1.
3661         (__mpcos): Likewise.
3662         (__mpsin1): Remove.
3663         (__mpcos1): Likewise.
3664
3665 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
3666
3667         * locale/loadlocale.c (_nl_intern_locale_data): Use
3668         LOCFILE_ALIGNED_P.
3669         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
3670         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
3671         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
3672         obstack data is appropriately aligned.
3673         (obstack_int32_grow_fast): Likewise.
3674         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
3675         * locale/programs/locfile.c (add_locale_uint32): Likewise.
3676         (add_locale_uint32_array): Likewise.
3677
3678 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3679
3680         * benchtests/Makefile: Remove ARGLIST and RET variables.
3681         ($(objpfx)bench-%.c): Pass only function name to the script.
3682         * benchtests/README: Update documentation.
3683         * benchtests/acos-inputs: Add new directives.
3684         * benchtests/acosh-inputs: Likewise.
3685         * benchtests/asin-inputs: Likewise.
3686         * benchtests/asinh-inputs: Likewise.
3687         * benchtests/atan-inputs: Likewise.
3688         * benchtests/atanh-inputs: Likewise.
3689         * benchtests/cos-inputs: Likewise.
3690         * benchtests/cosh-inputs: Likewise.
3691         * benchtests/exp-inputs: Likewise.
3692         * benchtests/log-inputs: Likewise.
3693         * benchtests/pow-inputs: Likewise.
3694         * benchtests/rint-inputs: Likewise.
3695         * benchtests/sin-inputs: Likewise.
3696         * benchtests/sinh-inputs: Likewise.
3697         * benchtests/tan-inputs: Likewise.
3698         * benchtests/tanh-inputs: Likewise.
3699         * scripts/bench.pl: Add support for new directives.
3700
3701 2013-10-07  Alan Modra  <amodra@gmail.com>
3702
3703         * README: Fix careless merge.
3704
3705 2013-10-05  Alan Modra  <amodra@gmail.com>
3706
3707         * NEWS: Mention powerpc64le support and bugs fixed.
3708         * README: Both big-endian and little-endian powerpc64 supported.
3709
3710 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3711
3712         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
3713         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
3714         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
3715         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
3716
3717 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
3718
3719         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
3720         match prototype.
3721
3722 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
3723
3724         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
3725         Move -mhard-float appending from
3726         ports/sysdeps/powerpc/powerpc32/Makefile.
3727         [$(with-fp) = yes] (ASFLAGS): Likewise.
3728         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
3729         * sysdeps/powerpc/nofpu: Move directory from
3730         ports/sysdeps/powerpc/nofpu.
3731         * sysdeps/powerpc/soft-fp: Move directory from
3732         ports/sysdeps/powerpc/soft-fp.
3733         * sysdeps/powerpc/powerpc32/405: Move directory from
3734         ports/sysdeps/powerpc/powerpc32/405.
3735         * sysdeps/powerpc/powerpc32/440: Move directory from
3736         ports/sysdeps/powerpc/powerpc32/440.
3737         * sysdeps/powerpc/powerpc32/464: Move directory from
3738         ports/sysdeps/powerpc/powerpc32/464.
3739         * sysdeps/powerpc/powerpc32/476: Move directory from
3740         ports/sysdeps/powerpc/powerpc32/476.
3741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
3742         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
3743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
3744         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
3745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
3746         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
3747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
3748         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
3749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
3750         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
3751         * README: Update for powerpc-*-linux-gnu software floating point
3752         support in libc.
3753
3754         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
3755         case to powerpc/powerpc32*.
3756         * sysdeps/unix/sysv/linux/configure: Regenerated.
3757
3758         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
3759         (_FPU_MASK_OM): Define as 0x04.
3760         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
3761         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
3762         0x00c10080.
3763         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
3764         0x0000003c.
3765         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
3766
3767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3768         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
3769         getcontext_e500.
3770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3771         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
3772         setcontext_e500.
3773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3774         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
3775         and setcontext_e500.
3776
3777 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
3778
3779         * locale/iso-3166.def: Update iso-1366.def and related occurrences
3780
3781 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3782
3783         * manual/threads.texi (Default Thread Attributes): Fix typo.
3784
3785 2013-10-04  Will Newton  <will.newton@linaro.org>
3786
3787         * malloc/Makefile: Add tst-memalign.
3788         * malloc/tst-memalign.c: New file.
3789
3790         * malloc/tst-posix_memalign.c: Add comments.
3791         (do_test): Add comments and call free on all potentially
3792         allocated pointers. Add space after cast.
3793
3794         * malloc/tst-pvalloc.c: Add comments.
3795         (do_test): Add comments and call free on all potentially
3796         allocated pointers. Remove duplicate check for NULL pointer.
3797         Add space after cast.
3798
3799         * malloc/tst-valloc.c: Add comments.
3800         (do_test): Add comments and call free on all potentially
3801         allocated pointers. Remove duplicate check for NULL pointer.
3802         Add space after cast.
3803
3804 2013-10-04  Alan Modra  <amodra@gmail.com>
3805
3806         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3807         Use stdint types in rather than __attribute__((mode())).
3808         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
3809
3810 2013-10-04  Alan Modra  <amodra@gmail.com>
3811
3812         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3813         Correct handling of unaligned relocs for little-endian.
3814         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
3815
3816 2013-10-04  Alan Modra  <amodra@gmail.com>
3817
3818         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
3819         * configure: Regenerate.
3820         * nptl/shlib-versions: Powerpc*le starts at 2.18.
3821         * shlib-versions: Likewise.
3822
3823 2013-10-04  Alan Modra  <amodra@gmail.com>
3824
3825         * string/tester.c (test_memrchr): Increment reported test cycle.
3826
3827 2013-10-04  Alan Modra  <amodra@gmail.com>
3828
3829         * string/test-memcpy.c (do_one_test): When reporting errors, print
3830         string address and don't overrun end of string.
3831
3832 2013-10-04  Alan Modra  <amodra@gmail.com>
3833
3834         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
3835         insrdi.  Make better use of reg selection to speed exit slightly.
3836         Schedule entry path a little better.  Remove useless "are we done"
3837         checks on entry to main loop.  Handle wrapping around zero address.
3838         Correct main loop count.  Handle single left-over word from main
3839         loop inline rather than by using loop_small.  Remove extra word
3840         case in loop_small caused by wrong loop count.  Add little-endian
3841         support.
3842         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
3843         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
3844         cache hint.
3845         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
3846         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
3847         support.  Avoid rlwimi.
3848         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
3849
3850 2013-10-04  Alan Modra  <amodra@gmail.com>
3851
3852         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
3853         insrdi.  Formatting.
3854         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
3855         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
3856         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
3857         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
3858         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
3859         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
3860
3861 2013-10-04  Alan Modra  <amodra@gmail.com>
3862
3863         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
3864         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3865         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
3866         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
3867         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
3868         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3869         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
3870         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
3871         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
3872         use of regs.  Use power7 mtocrf.  Tidy function tails.
3873
3874 2013-10-04  Alan Modra  <amodra@gmail.com>
3875
3876         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
3877         Formatting.  Consistently use rXXX register defines or rN defines.
3878         Use early exit labels that avoid restoring unused non-volatile regs.
3879         Make cr field use more consistent with rWORDn compares.  Rename
3880         regs used as shift registers for unaligned loop, using rN defines
3881         for short lifetime/multiple use regs.
3882         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3883         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
3884         addi 1,1,64 to pop stack frame.  Simplify return value code.
3885         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3886
3887 2013-10-04  Alan Modra  <amodra@gmail.com>
3888
3889         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
3890         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
3891         rather than rlwimi.
3892         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
3893         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
3894         little-endian support.  Correct typos.
3895         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
3896         rather than rlwimi.
3897         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
3898         in loop and entry code to keep "and." results.
3899         (strchr): Add little-endian support.  Comment.  Move cntlzd
3900         earlier in tail.
3901         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
3902
3903 2013-10-04  Alan Modra  <amodra@gmail.com>
3904
3905         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
3906         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
3907         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
3908         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
3909
3910 2013-10-04  Alan Modra  <amodra@gmail.com>
3911
3912         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
3913         (rTMP): Define as r11.
3914         (strcmp): Add little-endian support.  Optimise tail.
3915         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
3916         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3917         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
3918         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
3919         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
3920         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
3921         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
3922
3923 2013-10-04  Alan Modra  <amodra@gmail.com>
3924
3925         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
3926         little-endian support.  Remove unnecessary "are we done" tests.
3927         Handle "s" wrapping around zero and extremely large "size".
3928         Correct main loop count.  Handle single left-over word from main
3929         loop inline rather than by using small_loop.  Correct comments.
3930         Delete "zero" tail, use "end_max" instead.
3931         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
3932
3933 2013-10-04  Alan Modra  <amodra@gmail.com>
3934
3935         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
3936         support.  Don't branch over align.
3937         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
3938         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
3939         support.  Rearrange tmp reg use to suit.  Comment.
3940         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
3941
3942 2013-10-04  Alan Modra  <amodra@gmail.com>
3943
3944         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
3945
3946 2013-10-04  Alan Modra  <amodra@gmail.com>
3947
3948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
3949         conditional form of branch and link when obtaining pc.
3950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
3951
3952 2013-10-04  Alan Modra  <amodra@gmail.com>
3953
3954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
3955         HIWORD/LOWORD.
3956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
3957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
3958
3959 2013-10-04  Alan Modra  <amodra@gmail.com>
3960
3961         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
3962         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
3963         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
3964         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
3965         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
3966         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
3967         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
3968         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
3969         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
3970         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
3971
3972 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
3973             Alistair Popple <alistair@ozlabs.au.ibm.com>
3974             Alan Modra <amodra@gmail.com>
3975
3976         [BZ #15723]
3977         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
3978         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
3979         _dl_hwcap access for little-endian.
3980         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
3981         destroy vmx regs when saving unaligned.
3982         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
3983         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
3984         destroy vmx regs when saving unaligned.
3985
3986 2013-10-04  Alan Modra  <amodra@gmail.com>
3987
3988         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
3989         Don't use a union to pack hi/low value.
3990
3991 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
3992
3993         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
3994         for little-endian.
3995         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3996         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3997         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3998         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3999         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4000
4001 2013-10-04  Alan Modra  <amodra@gmail.com>
4002
4003         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
4004         constants to usual value for .cst8 section, and remove redundant
4005         high address load.
4006         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
4007         constant for 0x1p52.  Load little-endian words of double from
4008         correct stack offsets.
4009
4010 2013-10-04  Alan Modra  <amodra@gmail.com>
4011
4012         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
4013         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
4014         words of double from correct stack offsets.
4015         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
4016         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
4017         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
4018         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
4019         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
4020         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
4021         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
4022         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
4023         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
4024         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
4025         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
4026         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
4027         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
4028         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
4029         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
4030         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
4031         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
4032
4033 2013-10-04  Alan Modra  <amodra@gmail.com>
4034
4035         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
4036         64-bit int/double union.
4037         (_FPU_SETCW): Likewise.
4038         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
4039         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
4040
4041 2013-10-04  Alan Modra  <amodra@gmail.com>
4042
4043         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
4044         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
4045
4046 2013-10-04  Alan Modra  <amodra@gmail.com>
4047
4048         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
4049         use vector int constants.
4050         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
4051
4052 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4053
4054         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
4055         array with long long.
4056         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
4057         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
4058         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
4059         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
4060         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
4061         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
4062         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
4063         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
4064         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
4065         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
4066         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
4067         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
4068         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
4069
4070 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4071
4072         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
4073         (__signbit): Likewise.  Correct for little-endian.
4074         (__signbitl): Call __signbit.
4075         (lrint): Correct for little-endian.
4076         (lrintf): Call lrint.
4077
4078 2013-10-04  Alan Modra  <amodra@gmail.com>
4079
4080         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
4081         union 32-bit int array member with 64-bit int array.
4082         (t515, tm256): Double rather than long double.
4083         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
4084
4085 2013-10-04  Alan Modra  <amodra@gmail.com>
4086
4087         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
4088         Delete.
4089         (IEEE854_LONG_DOUBLE_BIAS): Delete.
4090         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
4091         version of math_ldbl.h.
4092
4093 2013-10-04  Alan Modra  <amodra@gmail.com>
4094
4095         [BZ #15734], [BZ #15735]
4096         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
4097         all uses of ieee875 long double macros and unions.  Simplify test
4098         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
4099         ldbl_extract_mantissa value for ix,iy exponents.  Properly
4100         normalize after ldbl_extract_mantissa, and don't add hidden bit
4101         already handled.  Don't treat low word of ieee854 mantissa like
4102         low word of IBM long double and mask off bit when testing for
4103         zero.
4104         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
4105         all uses of ieee875 long double macros and unions.  Simplify tests
4106         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
4107         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
4108         two1022, instead use their values.  Recognise that tests for large
4109         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
4110         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
4111         Rewrite all uses of ieee875 long double macros and unions.  Simplify
4112         test for 0.0L and nan.  Correct negation.
4113         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
4114         ieee875 long double macros and unions.  Correct output for large
4115         magnitude x.  Correct absolute value calculation.
4116         (__erfcl): Likewise.
4117         * math/libm-test.inc: Add tests for errors discovered in IBM long
4118         double versions of fmodl, remainderl, erfl and erfcl.
4119
4120 2013-10-04  Alan Modra  <amodra@gmail.com>
4121
4122         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
4123         all uses of ieee854 long double macros and unions.  Simplify tests
4124         for long doubles that are fully specified by the high double.
4125         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
4126         Likewise.
4127         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
4128         Remove dead code too.
4129         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4130         (__ieee754_ynl): Likewise.
4131         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4132         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
4133         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
4134         Remove dead code too.
4135         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
4136         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
4137         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
4138         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
4139         Simplify.
4140         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
4141         Simplify.
4142         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
4143         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
4144         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
4145         Comment on variable precision.
4146         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
4147         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
4148         Likewise.
4149         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4150         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
4151         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
4152         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
4153         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
4154
4155 2013-10-04  Alan Modra  <amodra@gmail.com>
4156
4157         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
4158         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
4159         all uses of ieee854 long double macros and unions.
4160         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
4161         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
4162         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
4163         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
4164         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4165         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
4166         Likewise.
4167         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
4168         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4169         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
4170         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4171         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
4172         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
4173         Simplify sign and nan test too.
4174         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
4175         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
4176         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
4177         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
4178         Likewise.
4179         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
4180         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
4181         Likewise.
4182         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4183         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
4184         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
4185         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
4186         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
4187         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
4188
4189 2013-10-04  Alan Modra  <amodra@gmail.com>
4190
4191         * stdio-common/printf_size.c (__printf_size): Don't use
4192         union ieee854_long_double in fpnum union.
4193         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
4194         signbit macro to retrieve sign from long double.
4195         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
4196         retrieve sign from long double.
4197         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
4198         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
4199         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
4200         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
4201         * math/test-misc.c (main): Don't use union ieee854_long_double.
4202
4203 2013-10-04  Alan Modra  <amodra@gmail.com>
4204
4205         [BZ #15680]
4206         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
4207         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
4208         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
4209         calculation.  Remove unnecessary test for denormal exponent.
4210         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
4211         Correct handling of denormals.  Avoid undefined shift behaviour.
4212         Correct normalisation of low mantissa when low double is denormal.
4213         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
4214         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
4215         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
4216         Correct normalisation of low mantissa.  Test for overflow of high
4217         mantissa and normalise.
4218         (ldbl_nearbyint): Use more readable constant for two52.
4219         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
4220         (__mpn_construct_long_double): Fix test for overflow of high
4221         mantissa and correct normalisation.  Avoid undefined shift.
4222
4223 2013-10-04  Alan Modra  <amodra@gmail.com>
4224
4225         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
4226         (union ibm_extended_long_double): Define as an array of ieee754_double.
4227         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
4228         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
4229         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
4230         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
4231         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
4232         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
4233         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
4234         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
4235         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4236         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
4237         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
4238
4239 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
4240
4241         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
4242         page size instead of calling getpagesize.
4243
4244         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
4245         (LOCFILE_ALIGN_MASK): Likewise.
4246         (LOCFILE_ALIGN_UP): Likewise.
4247         (LOCFILE_ALIGNED_P): Likewise.
4248         * locale/programs/ld-collate.c (collate_output): Use the new
4249         macros instead of __alignof__ (int32_t).
4250         * locale/weight.h (findidx): Likewise.
4251
4252 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
4253
4254         [BZ #431]
4255         * manual/string.texi: Fix strncat and wcsncat.
4256
4257 2013-10-03  Brooks Moses  <bmoses@google.com>
4258
4259         [BZ #15915]
4260         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
4261         * Makerules: ...here, and adjust associated comments.
4262
4263 2013-10-02  Will Newton  <will.newton@linaro.org>
4264
4265         * malloc/Makefile: Add tst-pvalloc.
4266         * malloc/tst-pvalloc.c: New file.
4267
4268 2013-10-02  Will Newton  <will.newton@linaro.org>
4269
4270         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
4271         improve test coverage.
4272
4273 2013-10-02  Will Newton  <will.newton@linaro.org>
4274
4275         * malloc/Makefile: Add tst-posix_memalign.
4276         * malloc/tst-posix_memalign.c: New file.
4277
4278 2013-10-01  Eric Blake  <eblake@redhat.com>
4279
4280         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
4281         Use __THROWNL rather than __THROW on static functions.
4282
4283 2013-09-30  Petr Machata  <pmachata@redhat.com>
4284
4285         * elf/elf.h (R_AARCH64_ABS16): New macro.
4286         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
4287         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
4288         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
4289         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
4290         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
4291         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
4292         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
4293         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
4294         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
4295         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
4296         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
4297         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
4298         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
4299         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
4300         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
4301         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
4302         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
4303         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
4304         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
4305         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
4306         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
4307         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
4308         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
4309         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
4310         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
4311         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
4312         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
4313         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
4314         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
4315         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
4316         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
4317         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
4318         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
4319         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
4320         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
4321         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
4322         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
4323         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
4324         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
4325         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
4326         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
4327         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
4328         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
4329         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
4330         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
4331         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
4332         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
4333         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
4334         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
4335         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
4336         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
4337         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
4338         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
4339         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
4340         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
4341         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
4342         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
4343         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
4344         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
4345         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
4346         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
4347         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
4348         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
4349         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
4350         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
4351         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
4352         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
4353         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
4354         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
4355         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
4356         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
4357         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
4358         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
4359         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
4360         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
4361         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
4362         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
4363         (R_AARCH64_TLSDESC_LDR): Likewise.
4364         (R_AARCH64_TLSDESC_ADD): Likewise.
4365         (R_AARCH64_TLSDESC_CALL): Likewise.
4366
4367 2013-09-30  Andreas Schwab  <schwab@suse.de>
4368
4369         [BZ #15048]
4370         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
4371         the nss database lookup.
4372         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4373         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4374
4375 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
4376
4377         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
4378
4379 2013-09-28  P. J. McDermott  <pj@pehjota.net>
4380
4381         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
4382         ${Bash-specific parameter/pattern/string} parameter expansion.
4383         * sysdeps/unix/make-syscalls.sh: Likewise.
4384
4385 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4386
4387         * sysdeps/sh/stackguard-macros.h: New file.
4388
4389 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
4390
4391         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
4392         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
4393         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
4394         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
4395         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
4396         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
4397
4398 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4399
4400         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
4401         Fix thread ID register.
4402
4403 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
4404
4405         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
4406         [POSIX || UNIX98]: Require rather than permitting all symbols from
4407         <time.h>.
4408         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
4409         element of struct sched_param.
4410         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
4411         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
4412         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
4413         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
4414         constant.
4415
4416 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
4417
4418         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
4419         argument calculation.
4420
4421 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
4422
4423         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
4424         Expect macro.
4425         [POSIX] (pthread_attr_t): Do not require type.
4426         [POSIX] (pthread_cond_t): Likewise.
4427         [POSIX] (pthread_condattr_t): Likewise.
4428         [POSIX] (pthread_key_t): Likewise.
4429         [POSIX] (pthread_mutex_t): Likewise.
4430         [POSIX] (pthread_mutexattr_t): Likewise.
4431         [POSIX] (pthread_once_t): Likewise.
4432         [POSIX] (pthread_t): Likewise.
4433         [POSIX-based standards] (pthread_atfork): Expect function.
4434
4435 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
4436             Richard Sandiford  <richard@codesourcery.com>
4437
4438         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
4439         (swap_endianness_p): New extern variable.
4440         (set_big_endian): New inline function.
4441         (maybe_swap_uint32): Likewise.
4442         (maybe_swap_uint32_array): Likewise.
4443         (maybe_swap_uint32_obstack): Likewise.
4444         * locale/programs/locfile.c: Include <stdbool.h>.
4445         (swap_endianness_p): New variable.
4446         (add_locale_uint32): Call maybe_swap_uint32.
4447         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
4448         (write_locale_data): Call maybe_swap_uint32_array.
4449         * locale/programs/ld-collate.c (obstack_int32_grow): Call
4450         maybe_swap_uint32.
4451         (obstack_int32_grow_fast): Likewise.
4452         (output_weightwc): Call maybe_swap_uint32_obstack.
4453         (collate_output): Likewise.
4454         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
4455         (OPT_LITTLE_ENDIAN): Likewise.
4456         (options): Add --little-endian and --big-endian options.
4457         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
4458         * locale/programs/locarchive.c: Include "locfile.h".
4459         (GET): New macro.
4460         (SET): Likewise.
4461         (INC): Likewise.
4462         (create_archive): Use the new macros to access fields of
4463         structures directly mapped from or written to locale archives.
4464         (oldlocrecentcmp): Likewise.
4465         (enlarge_archive): Likewise.
4466         (insert_name): Likewise.
4467         (add_alias): Likewise.
4468         (add_locale): Likewise.
4469         (delete_locales_from_archive): Likewise.
4470         (show_archive_content): Likewise.
4471         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
4472         locale data.
4473
4474 2013-09-24  Roland McGrath  <roland@hack.frob.com>
4475
4476         * manual/freemanuals.texi: Updated from (newly) canonical copy at
4477         http://www.gnu.org/doc/freemanuals.texi.
4478         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
4479
4480 2013-09-24  Will Newton  <will.newton@linaro.org>
4481
4482         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
4483         macro.
4484
4485 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
4486
4487         * locale/hashval.h (compute_hashval): Interpret bytes of key as
4488         unsigned char.
4489
4490 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
4491
4492         * manual/threads.texi (POSIX Threads): Fix a typo.
4493
4494 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4495
4496         [BZ #14547]
4497         * string/tst-strcoll-overflow.c: New test case.
4498         * string/Makefile (xtests): Add tst-strcoll-overflow.
4499         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
4500         cache if string sizes may cause integer overflow.
4501
4502         [BZ #14547]
4503         * string/strcoll_l.c (coll_seq): New members rule, idx,
4504         save_idx and back_us.
4505         (get_next_seq_nocache): New function.
4506         (do_compare_nocache): New function.
4507         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
4508         when malloc fails.
4509
4510 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
4511
4512         [BZ #15754]
4513         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
4514         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
4515         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
4516
4517         [BZ #15754]
4518         * elf/Makefile (tests): Add tst-ptrguard1.
4519         (tests-static): Add tst-ptrguard1-static.
4520         (tst-ptrguard1-ARGS): Define.
4521         (tst-ptrguard1-static-ARGS): Define.
4522         * elf/tst-ptrguard1.c: New file.
4523         * elf/tst-ptrguard1-static.c: New file.
4524         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
4525         * sysdeps/i386/stackguard-macros.h: Likewise.
4526         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4527         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4528         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4529         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4530         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4531         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4532
4533 2013-09-23  Hector Marco  <hecmargi@upv.es>
4534             Ismael Ripoll  <iripoll@disca.upv.es>
4535             Carlos O'Donell  <carlos@redhat.com>
4536
4537         [BZ #15754]
4538         * sysdeps/generic/stackguard-macros.h: Define
4539         __pointer_chk_guard_local and POINTER_CHK_GUARD.
4540         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
4541         Define __pointer_chk_guard_local.
4542         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
4543         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
4544
4545 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
4546
4547         [BZ #15859]
4548         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
4549
4550 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
4551
4552         * include/string.h (__ffs): Declare as hidden.
4553         * string/ffs.c (__ffs): Define as hidden.
4554         * sysdeps/i386/ffs.c (__ffs): Likewise.
4555         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
4556         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
4557         * sysdeps/s390/ffs.c (__ffs): Likewise.
4558         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
4559
4560 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
4561
4562         * NEWS: Mention malloc probes.
4563
4564         * malloc/arena.c (new_heap): New memory_heap_new probe.
4565         (grow_heap): New memory_heap_more probe.
4566         (shrink_heap): New memory_heap_less probe.
4567         (heap_trim): New memory_heap_free probe.
4568         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
4569         (systrim): New memory_sbrk_less probe.
4570         * manual/probes.texi: Document them.
4571
4572         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
4573         * manual/probes.texi: Document it.
4574
4575         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
4576         (__libc_realloc): Add memory_realloc_retry probe.
4577         (__libc_memalign): Add memory_memalign_retry probe.
4578         (__libc_valloc): Add memory_valloc_retry probe.
4579         (__libc_pvalloc): Add memory_pvalloc_retry probe.
4580         (__libc_calloc): Add memory_calloc_retry probe.
4581         * manual/probes.texi: Document them.
4582
4583         * malloc/arena.c (get_free_list): Add probe
4584         memory_arena_reuse_free_list.
4585         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
4586         and memory_arena_reuse.
4587         (arena_get2) [!PER_THREAD]: Likewise.
4588         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
4589         memory_arena_reuse_realloc.
4590         * manual/probes.texi: Document them.
4591
4592         * malloc/malloc.c (__libc_free): Add
4593         memory_mallopt_free_dyn_thresholds probe.
4594         (__libc_mallopt): Add multiple memory_mallopt probes.
4595         * manual/probes.texi: Document them.
4596
4597         * malloc/malloc.c: Include stap-probe.h.
4598         (__libc_mallopt): Add memory_mallopt probe.
4599         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
4600         * manual/probes.texi: New.
4601         * manual/Makefile (chapters): Add probes.
4602         * manual/threads.texi: Set next node.
4603
4604 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
4605
4606         [BZ #15963, #13985]
4607         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
4608         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
4609         Add `Chinese' to `nan' entry name.
4610
4611 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4612
4613         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
4614         (POLYNOMIAL): Likewise.
4615         (TAYLOR_SINCOS): Likewise.
4616         (TAYLOR_SLOW): Likewise.
4617         (__sin): Use TAYLOR_SINCOS.
4618         (__cos): Likewise.
4619         (slow): Use TAYLOR_SLOW.
4620         (sloww): Likewise.
4621         (bsloww): Likewise.
4622         (csloww): Likewise.
4623
4624 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
4625
4626         * stdlib/strtod_l.c: Fix buffer overrun.
4627
4628 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4629
4630         * benchtests/Makefile (bench): Add sincos.
4631         * benchtests/bench-sincos.c: New file.
4632
4633         * math/libm-test.inc (cos_test_data): New test inputs.
4634         (sin_test_data): Likewise.
4635
4636         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
4637         macro.
4638         (__sin): Use it.
4639         (__cos): Likewise.
4640         (slow1): Likewise.
4641         (slow2): Likewise.
4642         (sloww1): Likewise.
4643         (sloww2): Likewise.
4644         (bsloww1): Likewise.
4645         (bsloww2): Likewise.
4646         (cslow2): Likewise.
4647         (csloww1): Likewise.
4648         (csloww2): Likewise.
4649
4650         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
4651         function.
4652         (__sin): Use it.
4653         (__cos): Likewise.
4654
4655         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
4656         gotos.
4657         (__cos): Likewise.
4658
4659 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
4660
4661         * config.h.in (HAVE_MIPS_NAN2008): New macro.
4662         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
4663         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
4664         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
4665         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
4666         * elf/cache.c (print_entry): Handle the new cache flags.
4667
4668 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
4669             Aldy Hernandez  <aldyh@redhat.com>
4670
4671         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
4672         Change condition to [_SOFT_FLOAT].
4673         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
4674         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
4675         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
4676         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
4677         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
4678         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
4679         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
4680         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
4681         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
4682         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
4683         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
4684         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
4685         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
4686         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
4687         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
4688         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
4689         declaration.
4690
4691 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
4692
4693         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
4694         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
4695         (__longjmp): Use LOAD_GP to load saved GPRs.
4696         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
4697         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
4698         (__sigsetjmp): Use SAVE_GP to save GPRs.
4699
4700         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
4701         Do not append -msoft-float.
4702         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
4703
4704 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4705
4706         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
4707
4708 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
4709
4710         [BZ #15966]
4711         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
4712         (_FPU_GETCW): Use initial "__" on variable and field names but not
4713         on macro parameter name.
4714         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
4715         parentheses around reference to macro parameter.
4716
4717 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
4718
4719         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
4720         prototype.
4721         (ctype_startup): Use uint32_t in cast and sizeof for
4722         ctype->charnames.
4723
4724 2013-09-11  Jia Liu  <proljc@gmail.com>
4725
4726         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
4727         __daddr_t_defined.
4728         [__FreeBSD__]: Likewise.
4729
4730 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
4731
4732         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4733         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
4734         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
4735         (strchr): Remove __strchr_sse42 ifunc selection.
4736         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
4737         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
4738
4739 2013-09-11  Will Newton  <will.newton@linaro.org>
4740
4741         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
4742         parameter to RES. Remove hardcoded 1000 value.
4743         * benchtests/bench-skeleton.c (main): Pass RES parameter
4744         to TIMING_INIT and multiply result by 1000.
4745
4746 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4747
4748         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4749
4750 2013-09-11  Andreas Schwab  <schwab@suse.de>
4751
4752         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
4753         if not defined.
4754         (O_TMPFILE) [__USE_GNU]: Define.
4755         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
4756         Define.
4757
4758 2013-09-11  Will Newton  <will.newton@linaro.org>
4759
4760         [BZ #15857]
4761         * malloc/malloc.c (__libc_memalign): Check the value of bytes
4762         does not overflow.
4763
4764 2013-09-11  Will Newton  <will.newton@linaro.org>
4765
4766         [BZ #15856]
4767         * malloc/malloc.c (__libc_valloc): Check the value of bytes
4768         does not overflow.
4769
4770 2013-09-11  Will Newton  <will.newton@linaro.org>
4771
4772         [BZ #15855]
4773         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
4774         does not overflow.
4775
4776 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
4777
4778         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
4779         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4780         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4781         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4782         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4783
4784 2013-09-10  Allan McRae  <allan@archlinux.org>
4785
4786         [BZ #15748]
4787         * manual/arith.texi (Parsing of Floats): Clarify
4788         cross-reference.
4789
4790         [BZ #15849]
4791         * manual/install.texi (Running make install): Mention
4792         --enable-pt-chown.
4793         * INSTALL: Regenerated.
4794
4795 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
4796
4797         * csu/init-first.c (_init): Remove the !SHARED condition around
4798         FPU control word initialization.
4799         * elf/dl-support.c (_dl_fpu_control): New variable.
4800         (_dl_aux_init) <AT_FPUCW>: Initialize it.
4801         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
4802         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
4803         * math/test-fpucw-static.c: New file.
4804         * math/test-fpucw-ieee.c: New file.
4805         * math/test-fpucw-ieee-static.c: New file.
4806         * math/Makefile (tests): Add `test-fpucw-ieee' and
4807         `$(tests-static)'.
4808         (tests-static): New variable.
4809         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
4810         dependency to...
4811         [($(build-shared),yes)]
4812         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
4813         ... this.
4814         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
4815         New dependency.
4816
4817 2013-09-09  Allan McRae  <allan@archlinux.org>
4818
4819         [BZ #15939]
4820         * manual/string.texi (Collation Functions): Fix typo in
4821         strcoll example.
4822         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
4823
4824         [BZ #15893]
4825         * stdlib/isomac.c (get_null_defines): Fix memory leak.
4826
4827         [BZ #15892]
4828         * libio/memstream.c (open_memstream): Fix memory leak.
4829         * libio/wmemstream.c (open_wmemstream): Likewise.
4830
4831         [BZ #15895]
4832         * nscd/netgroupcache.c: Fix nesting of ifdefs.
4833
4834 2013-09-09  Will Newton  <will.newton@linaro.org>
4835
4836         * malloc/Makefile: Add tst-realloc to tests.
4837         * malloc/tst-realloc.c: New file.
4838
4839 2013-09-09  Allan McRae  <allan@archlinux.org>
4840
4841         [BZ #15844]
4842         * COPYING: Update from GNU website to fix FSF address.
4843         * COPYING.LIB: Likewise.
4844
4845 2013-09-06  David S. Miller  <davem@davemloft.net>
4846
4847         * po/zh_TW.po: Update Chinese (traditional) translation from
4848         translation project.
4849
4850 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
4851             Joseph Myers  <joseph@codesourcery.com>
4852
4853         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
4854         "localeinfo.h".
4855         (obstack_chunk_alloc): New macro.
4856         (obstack_chunk_free): Likewise.
4857         (record_offset): New function.
4858         (init_locale_data): Likewise.
4859         (align_locale_data): Likewise.
4860         (add_locale_empty): Likewise.
4861         (add_locale_raw_data): Likewise.
4862         (add_locale_raw_obstack): Likewise.
4863         (add_locale_string): Likewise.
4864         (add_locale_wstring): Likewise.
4865         (add_locale_uint32): Likewise.
4866         (add_locale_uint32_array): Likewise.
4867         (add_locale_char): Likewise.
4868         (start_locale_structure): Likewise.
4869         (end_locale_structure): Likewise.
4870         (start_locale_prelude): Likewise.
4871         (end_locale_prelude): Likewise.
4872         (write_locale_data): Take locale_file structure rather than an
4873         iovec.
4874         * locale/programs/locfile.h: Include "obstack.h".
4875         (struct locale_file): Change to store locale file contents instead
4876         of header.
4877         (init_locale_data): New prototype.
4878         (align_locale_data): Likewise.
4879         (add_locale_empty): Likewise.
4880         (add_locale_raw_data): Likewise.
4881         (add_locale_raw_obstack): Likewise.
4882         (add_locale_string): Likewise.
4883         (add_locale_wstring): Likewise.
4884         (add_locale_uint32): Likewise.
4885         (add_locale_uint32_array): Likewise.
4886         (add_locale_char): Likewise.
4887         (start_locale_structure): Likewise.
4888         (end_locale_structure): Likewise.
4889         (start_locale_prelude): Likewise.
4890         (end_locale_prelude): Likewise.
4891         (write_locale_data): Update prototype.
4892         * locale/programs/3level.h (struct TABLE): Remove result field.
4893         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
4894         Use new locale_file interface.
4895         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
4896         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
4897         * locale/programs/ld-address.c (address_output): Use new
4898         locale_file interface.
4899         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
4900         NO_ADD_LOCALE.
4901         (collate_finish): Don't call collseq_table_finalize.
4902         (collate_output): Use new locale_file interface.
4903         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
4904         in file.
4905         (NO_FINALIZE): Change to NO_ADD_LOCALE.
4906         (TABLE): Move defines earlier in file.
4907         (ELEMENT): Likewise.
4908         (DEFAULT): Likewise.
4909         (wctrans_table_add): Move macro and inline function earlier in
4910         file.
4911         (struct wctype_table): Move type earlier in file.
4912         (add_locale_wctype_table): New static prototype.
4913         (struct locale_ctype_t): Use logical types instead of struct iovec
4914         pointers for members.
4915         (ctype_output): Use new locale_file interface.
4916         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
4917         new locale_file interface.
4918         (allocate_arrays): Update for use of new locale_file interface.
4919         * locale/programs/ld-identification.c (identification_output): Use
4920         new locale_file interface.
4921         * locale/programs/ld-measurement.c (measurement_output): Likewise.
4922         * locale/programs/ld-messages.c (messages_output): Likewise.
4923         * locale/programs/ld-monetary.c (monetary_output): Likewise.
4924         * locale/programs/ld-name.c (name_output): Likewise.
4925         * locale/programs/ld-numeric.c (numeric_output): Likewise.
4926         * locale/programs/ld-paper.c (paper_output): Likewise.
4927         * locale/programs/ld-telephone.c (telephone_output): Likewise.
4928         * locale/programs/ld-time.c (time_output): Likewise.
4929
4930 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4931
4932         * benchtests/Makefile: Add memrchr benchmark.
4933         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
4934         benchmark as memrchr.
4935         * benchtests/bench-memrchr-ifunc.c: New file.
4936         * benchtests/bench-memrchr.c: New file.
4937
4938 2013-09-06   Will Newton  <will.newton@linaro.org>
4939
4940         * benchtests/Makefile (string-bench): Add memcpy.
4941
4942 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
4943             Cong Wang  <amwang@redhat.com>
4944
4945         * sysdeps/unix/sysv/linux/bits/in.h
4946         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
4947         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
4948         before __USE_KERNEL_IPV6_DEFS uses.
4949         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
4950         IPPROTO_BEETPH.
4951         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
4952         sockaddr_in6, or ipv6_mreq.
4953
4954 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4955
4956         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
4957         memory access for final bytes in some large inputs.
4958         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
4959
4960 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4961
4962         * string/test-memrchr.c: New file.
4963         * string/test-memrchr-ifunc.c: New file.
4964         * string/Makefile: Add new memrchr testcase.
4965
4966 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
4967
4968         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
4969         fanotify_init returns EPERM.
4970
4971 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
4972
4973         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
4974         errors.
4975         (top level): Treat second token from macro or constant entries for
4976         allowed headers as allowed.
4977         * include/complex.h: Condition internal declarations on
4978         [!_ISOMAC].
4979         * include/fenv.h: Condition include of <stdbool.h> and internal
4980         declarations on [!_ISOMAC].
4981
4982 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
4983
4984         [BZ #15923]
4985         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
4986
4987 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
4988
4989         * configure.in (--enable-versioning): Remove configure option.
4990         (libc_cv_asm_symver_directive): Remove configure test.
4991         (libc_cv_ld_version_script_option): Likewise.
4992         (VERSIONING): Remove variable and AC_SUBST.
4993         (DO_VERSIONING): Remove AC_DEFINE.
4994         * configure: Regenerated.
4995         * config.h.in (DO_VERSIONING): Remove macro.
4996         * Makerules [$(versioning) = yes]: Change conditionals to
4997         [$(build-shared) = yes].
4998         * config.make.in (versioning): Remove variable.
4999         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
5000         [$(build-shared) = yes].
5001         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
5002         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
5003         * elf/Makefile [$(versioning) = yes]: Change conditionals to
5004         [$(build-shared) = yes].
5005         * extra-lib.mk [$(versioning) = yes]: Likewise.
5006         * hurd/Makefile [$(versioning) = yes]: Likewise.
5007         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
5008         [SHARED].
5009         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
5010         [SHARED].
5011         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
5012         [SHARED && !NO_HIDDEN].
5013         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
5014         [SHARED].
5015         [SHARED && DO_VERSIONING]: Likewise..
5016         * libio/Makefile [$(versioning) = yes]: Change conditionals to
5017         [$(build-shared) = yes].
5018         * manual/install.texi (--disable-versioning): Remove
5019         documentation.
5020         * INSTALL: Regenerated.
5021         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
5022         to [SHARED].
5023         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
5024         [$(build-shared) = yes].
5025         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
5026         * sysdeps/i386/i686/multiarch/strstr-c.c
5027         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
5028         [SHARED && !NO_HIDDEN].
5029         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
5030         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
5031         * sysdeps/powerpc/powerpc32/dl-machine.c
5032         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
5033         * sysdeps/powerpc/powerpc32/sysdep.h
5034         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
5035         to [SHARED && PIC && !NO_HIDDEN].
5036         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
5037         conditional to [SHARED].
5038
5039 2013-09-04   Will Newton  <will.newton@linaro.org>
5040
5041         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
5042         * benchtests/bench-string.h: Include bench-timing.h instead
5043         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
5044         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
5045         call to HP_TIMING_DIFF_INIT.
5046         * benchtests/bench-memccpy.c: Use bench-timing.h macros
5047         instead of hp-timing.h macros.
5048         * benchtests/bench-memchr.c: Likewise.
5049         * benchtests/bench-memcmp.c: Likewise.
5050         * benchtests/bench-memcpy.c: Likewise.
5051         * benchtests/bench-memmem.c: Likewise.
5052         * benchtests/bench-memmove.c: Likewise.
5053         * benchtests/bench-memset.c: Likewise.
5054         * benchtests/bench-rawmemchr.c: Likewise.
5055         * benchtests/bench-strcasecmp.c: Likewise.
5056         * benchtests/bench-strcasestr.c: Likewise.
5057         * benchtests/bench-strcat.c: Likewise.
5058         * benchtests/bench-strchr.c: Likewise.
5059         * benchtests/bench-strcmp.c: Likewise.
5060         * benchtests/bench-strcpy.c: Likewise.
5061         * benchtests/bench-strcpy_chk.c: Likewise.
5062         * benchtests/bench-strlen.c: Likewise.
5063         * benchtests/bench-strncasecmp.c: Likewise.
5064         * benchtests/bench-strncat.c: Likewise.
5065         * benchtests/bench-strncmp.c: Likewise.
5066         * benchtests/bench-strncpy.c: Likewise.
5067         * benchtests/bench-strnlen.c: Likewise.
5068         * benchtests/bench-strpbrk.c: Likewise.
5069         * benchtests/bench-strrchr.c: Likewise.
5070         * benchtests/bench-strspn.c: Likewise.
5071         * benchtests/bench-strstr.c: Likewise.
5072
5073 2013-09-04  Will Newton  <will.newton@linaro.org>
5074
5075         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
5076
5077 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
5078
5079         [BZ #15427]
5080         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
5081         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
5082         * math/libm-test.inc (lgamma_test_data): Add more tests.
5083         * sysdeps/i386/fpu/libm-test-ulps: Update.
5084         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5085
5086 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
5087
5088         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
5089         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
5090         Add ifunc.
5091         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
5092         Add strcmp-sse2-unaligned
5093         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
5094
5095 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
5096
5097         * Versions.def (libc): Add GLIBC_2.19.
5098
5099 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
5100
5101         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
5102         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
5103
5104 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
5105
5106         [BZ #14155]
5107         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
5108         intermediate calculations in recurrence.
5109         (__ieee754_ynf): Likewise.
5110         * math/libm-test.inc (jn_test_data): Do not allow spurious
5111         underflow exception.  Add more tests.
5112         (yn_test_data): Add more tests.
5113         * sysdeps/i386/fpu/libm-test-ulps: Update.
5114         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5115
5116 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
5117
5118         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
5119
5120 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
5121
5122         * csu/init-first.c: Fix then/than typos.
5123         * locale/programs/ld-collate.c: Likewise.
5124         * locale/programs/linereader.h: Likewise.
5125         * manual/charset.texi: Likewise.
5126         * manual/filesys.texi: Likewise.
5127         * manual/stdio.texi: Likewise.
5128         * manual/string.texi: Likewise.
5129         * stdlib/fmtmsg.c: Likewise.
5130         * sysdeps/i386/stpncpy.S: Likewise.
5131         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5132         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
5133         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5134         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5135
5136 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
5137
5138         * elf/dl-open.c: Fix typos.
5139         * iconvdata/gbbig5.c: Likewise.
5140         * iconvdata/iso-2022-jp.c: Likewise.
5141         * iconv/gconv_int.h: Likewise.
5142         * iconv/loop.c: Likewise.
5143         * nis/rpcsvc/nis.h: Likewise.
5144         * resolv/ns_name.c: Likewise.
5145         * stdio-common/vfscanf.c: Likewise.
5146         * streams/stropts.h: Likewise.
5147         * sunrpc/rpc_thread.c: Likewise.
5148         * sysdeps/i386/strpbrk.S: Likewise.
5149         * sysdeps/ieee754/k_standard.c: Likewise.
5150         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
5151         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5152         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5153         * sysdeps/mach/hurd/profil.c: Likewise.
5154         * sysdeps/s390/dl-procinfo.h: Likewise.
5155         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5156         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
5157         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5158         * sysdeps/x86_64/dl-trampoline.S: Likewise.
5159         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5160
5161 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
5162
5163         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
5164         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
5165
5166 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
5167
5168         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
5169         aix specific files.
5170         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
5171         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
5172         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
5173         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
5174         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
5175         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
5176         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
5177         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
5178
5179 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
5180             Roland McGrath  <roland@hack.frob.com>
5181
5182         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
5183         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5184
5185 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5186
5187         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
5188         __executable_start symbol instead of _start.
5189
5190 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
5191
5192         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
5193         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
5194         Move macros to...
5195         * sysdeps/gnu/ldsodefs.h: ... this new file.
5196
5197         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
5198         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
5199         instead of ELFOSABI_LINUX.
5200
5201         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
5202         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
5203         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
5204         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
5205         Likewise.
5206         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
5207         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
5208         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
5209         Likewise.
5210         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
5211         (ibm_extended_long_double): Add ieee_nan member.
5212         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
5213         (do_test): New function.
5214
5215         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
5216         TEST_TRUNC.
5217         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
5218         functions, renamed from truncdfsf_test, trunctfsf_test,
5219         trunctfdf_test.
5220         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
5221         functions.
5222         (do_test): Run all these.
5223
5224 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
5225
5226         * argp/argp-help.c: Fix typos.
5227         * argp/argp-parse.c: Likewise.
5228         * debug/backtracesyms.c: Likewise.
5229         * elf/elf.h: Likewise.
5230         * malloc/malloc.c: Likewise.
5231         * nis/nis_print.c: Likewise.
5232         * resolv/res_comp.c: Likewise.
5233         * stdlib/stdlib.h: Likewise.
5234         * sunrpc/clnt_tcp.c: Likewise.
5235         * sunrpc/clnt_udp.c: Likewise.
5236         * sunrpc/clnt_unix.c: Likewise.
5237         * sysdeps/unix/bsd/ptsname.c: Likewise.
5238         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5239         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
5240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
5241         Likewise.
5242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
5243         Likewise.
5244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
5245         Likewise.
5246         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
5247
5248 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5249
5250         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
5251         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5252
5253 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
5254
5255         [BZ #15897]
5256         * dlfcn/Makefile (tests): Add bug-dl-leaf.
5257         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
5258         ($(objpfx)bug-dl-leaf): New rule.
5259         ($(objpfx)bug-dl-leaf.so): Likewise.
5260         ($(objpfx)bug-dl-leaf.out): Likewise.
5261         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
5262         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
5263         * dlfcn/bug-dl-leaf.c: New test.
5264         * dlfcn/bug-dl-leaf-lib.c: Likewise.
5265         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
5266         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
5267         (dlclose): Likewise.
5268         (dlmopen): Likewise.
5269
5270 2013-08-27  Roland McGrath  <roland@hack.frob.com>
5271
5272         * include/netdb.h [!_ISOMAC]:
5273         Don't include <tls.h>.
5274         (h_errno, __libc_h_errno): Move declaration and macros out of
5275         [_LIBC_REENTRANT].
5276
5277         * include/resolv.h [_RESOLV_H_]:
5278         Don't include <tls.h>.
5279         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
5280         * resolv/res_libc.c: Don't include <tls.h>.
5281         (_res): Use __attribute__ ((nocommon)) in place of
5282         __attribute__ ((section (".bss"))).
5283
5284         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
5285         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
5286
5287         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
5288
5289         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
5290         only under [SIOCGIFCONF && SIOCGIFNETMASK].
5291
5292         * resolv/res_mkquery.c: Include <sys/time.h>.
5293
5294         * inet/ifreq.c: Moved to ...
5295         * sysdeps/unix/ifreq.c: ... here.
5296         * inet/ifreq.c: New file, true stub version.
5297
5298         * socket/sa_len.c: New file.
5299         * socket/Makefile (aux): Add it.
5300         * sysdeps/unix/sysv/linux/Makefile
5301         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
5302         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
5303         and #include <socket/sa_len.c>.
5304         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
5305         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
5306
5307         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
5308         * bits/socket.h: ... here.
5309
5310         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
5311         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
5312         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
5313
5314 2013-08-27  Andreas Schwab  <schwab@suse.de>
5315
5316         [BZ #15736]
5317         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
5318         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
5319         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
5320         * string/test-strcasecmp.c (test_main): Run tests in several
5321         locales.
5322         * string/test-strncasecmp.c (test_main): Likewise.
5323
5324         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
5325         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
5326         to __strcasecmp_nonascii and __strncasecmp_nonascii.
5327         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
5328         (__strncasecmp_ssse3) [PIC]: Likewise.
5329
5330 2013-08-26  Roland McGrath  <roland@hack.frob.com>
5331
5332         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
5333
5334         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
5335         instead of explicitly declaring xdecrypt.
5336         * nis/nss_nis/nis-publickey.c: Likewise.
5337
5338 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5339
5340         [BZ #15890]
5341         * nscd/aicache.c: Include res_hconf.h.
5342         (addhstaiX): Initialize res_hconf.
5343
5344 2013-08-26  Andreas Schwab  <schwab@suse.de>
5345
5346         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
5347         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
5348
5349 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5350
5351         * nscd/aicache.c (addhstaiX): Fix indentation.
5352
5353 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
5354
5355         * configure.ac: Quote $build_pt_chown test.
5356         * configure: Regenerated.
5357
5358 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
5359
5360         [BZ #15532]
5361         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
5362         * math/s_cexpf.c (__cexpf): Likewise.
5363         * math/s_cexpl.c (__cexpl): Likewise.
5364         * math/libm-test.inc (cexp_test_data): Correct expected return
5365         value for NaN + i0.  Add another test.
5366
5367 2013-08-22  David S. Miller  <davem@davemloft.net>
5368
5369         * po/ca.po: Update Catalan translation from translation project.
5370         * po/uk.po: Add Ukrainian translations from translation project.
5371
5372 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
5373
5374         [BZ #15797]
5375         * math/s_fdim.c (__fdim): Check for infinite arguments if result
5376         is infinite, not alongside NaN test.
5377         * math/s_fdimf.c (__fdimf): Likewise.
5378         * math/s_fdiml.c (__fdiml): Likewise.
5379         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
5380         errno is unchanged.
5381
5382 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
5383
5384         * argp/argp-help.c: Fix typos.
5385         * crypt/speeds.c: Likewise.
5386         * csu/check_fds.c: Likewise.
5387         * elf/dl-load.c: Likewise.
5388         * elf/dl-open.c: Likewise.
5389         * elf/reldep3.c: Likewise.
5390         * elf/reldep.c: Likewise.
5391         * elf/sprof.c: Likewise.
5392         * iconv/iconv_charmap.c: Likewise.
5393         * iconv/skeleton.c: Likewise.
5394         * iconv/strtab.c: Likewise.
5395         * io/lockf64.c: Likewise.
5396         * libio/libioP.h: Likewise.
5397         * resolv/gai_notify.c: Likewise.
5398         * resolv/ns_name.c: Likewise.
5399         * resolv/ns_samedomain.c: Likewise.
5400         * resolv/res_send.c: Likewise.
5401         * stdlib/random.c: Likewise.
5402         * sunrpc/rpc/xdr.h: Likewise.
5403         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
5404         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
5405         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
5406         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
5407         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
5408         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
5409         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
5410         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
5411         * sysdeps/mach/hurd/check_fds.c: Likewise.
5412         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
5413         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5414         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5415         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
5416         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5417         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
5418         * sysdeps/pthread/aio_notify.c: Likewise.
5419         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5420         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
5421         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
5422         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
5423         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
5424
5425 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5426
5427         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
5428         version if bit_Slow_SSE4_2 is set.
5429         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5430         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
5431
5432 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5433
5434         [BZ #15867]
5435         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
5436         trampoline stack frame information.
5437         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
5438         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
5439         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
5440         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
5441         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
5442         * sysdeps/unix/sysv/linux/powerpc/init-first.c
5443         (_libc_vdso_platform_setup): Initialize the signal trampolines.
5444         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
5445         sa_flags value.
5446         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
5447         interrupting a syscall and set with option SA_SIGINFO.
5448
5449 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
5450
5451         [BZ #15531]
5452         * math/s_cproj.c (__cproj): Only return an infinity if one part of
5453         argument is infinite.
5454         * math/s_cprojf.c (__cprojf): Likewise.
5455         * math/s_cprojl.c (__cprojl): Likewise.
5456         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
5457         * math/libm-test.inc (cproj_test_data): Add more tests.
5458
5459         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
5460
5461         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
5462         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
5463         size.  Use __ffs to determine corresponding shift.
5464
5465 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
5466             Roland McGrath  <roland@hack.frob.com>
5467
5468         * Makefile (INSTALL): Remove trailing blank lines from output of
5469         makeinfo.
5470
5471 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5472
5473         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
5474         Align 32 bit compat elf_greg to 8 bytes.
5475
5476 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5477
5478         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
5479
5480 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
5481
5482         * string/strcoll_l.c (coll_seq): New structure.
5483         (get_next_seq_cached): New function.
5484         (get_next_seq): New function.
5485         (do_compare): New function.
5486         (STRCOLL): Use GNU style definition.  Simplify implementation
5487         by using get_next_seq, get_next_seq_cached and do_compare.
5488
5489 2013-08-16  Florian Weimer  <fweimer@redhat.com>
5490
5491         [BZ #14699]
5492         CVE-2013-4237
5493         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
5494         member.
5495         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
5496         member.
5497         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
5498         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
5499         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
5500         conditional.
5501         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
5502         GETDENTS_64BIT_ALIGNED.
5503         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5504         * manual/filesys.texi (Reading/Closing Directory): Document
5505         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
5506         strongly.
5507         * manual/conf.texi (Limits for Files): Add portability note to
5508         NAME_MAX, PATH_MAX.
5509         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
5510
5511 2013-08-13  Andreas Schwab  <schwab@suse.de>
5512
5513         [BZ #15749]
5514         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
5515         of fabs.
5516         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
5517         LDBL_MAX_EXP >= 16384]: Add tests for it.
5518
5519 2013-08-12  David S. Miller  <davem@davemloft.net>
5520
5521         * version.h (RELEASE): Set to "development".
5522         (VERSION): Set to "2.18.90".
5523         * NEWS: Add 2.19 section.
5524
5525 2013-08-03  David S. Miller  <davem@davemloft.net>
5526
5527         * po/ko.po: Update Korean translation from translation project.
5528
5529 2013-08-01  David S. Miller  <davem@davemloft.net>
5530
5531         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
5532         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
5533         Bilka.
5534
5535 2013-07-30  David S. Miller  <davem@davemloft.net>
5536
5537         * po/fr.po: Update French translation from translation project.
5538
5539 2013-07-28  David S. Miller  <davem@davemloft.net>
5540
5541         * po/cs.po: Update Czech translation from translation project.
5542
5543         * po/sv.po: Update Swedish translation from translation project.
5544
5545 2013-07-27  David S. Miller  <davem@davemloft.net>
5546
5547         * po/eo.po: Update Esperanto translation from translation project.
5548
5549         * po/vi.po: Update Vietnamese translation from translation project.
5550
5551         * po/de.po: Update German translation from translation project.
5552
5553 2013-07-26  David S. Miller  <davem@davemloft.net>
5554
5555         * po/bg.po: Update Bulgarian translation from translation project.
5556
5557         * po/nl.po: Update Dutch translation from translation project.
5558         * po/pl.po: Update Polish translation from translation project.
5559         * po/ru.po: Update Russian translation from translation project.
5560
5561 2013-07-24  David S. Miller  <davem@davemloft.net>
5562
5563         * po/libc.pot: Update.
5564
5565 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5566
5567         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
5568         variable page size.
5569         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
5570         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
5571         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
5572
5573 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5574
5575         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
5576
5577 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5578             Andreas Schwab  <schwab@suse.de>
5579             Roland McGrath  <roland@hack.frob.com>
5580             Joseph Myers  <joseph@codesourcery.com>
5581             Carlos O'Donell  <carlos@redhat.com>
5582
5583         [BZ #15755]
5584         * config.h.in: Define HAVE_PT_CHOWN.
5585         * config.make.in (build-pt-chown): New variable.
5586         * configure.in (--enable-pt_chown): New configure option.
5587         * configure: Regenerate.
5588         * login/Makefile: Include Makeconfig.  Build pt_chown only if
5589         build-pt-chown is enabled.
5590         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
5591         pt_chown to fix pty ownership.
5592         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
5593         CLOSE_ALL_FDS.
5594         * manual/install.texi (Configuring and compiling): Mention
5595         --enable-pt_chown. Add @findex for grantpt.
5596         * INSTALL: Regenerate.
5597
5598 2013-07-20  David S. Miller  <davem@davemloft.net>
5599
5600         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
5601         difference between 32-bit and 64-bit.
5602
5603 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
5604
5605         [BZ #15711]
5606         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
5607         Avoid system header dependency with -ffreestanding.
5608         ($(objpfx)bits/syscall%d): Likewise.
5609
5610 2013-07-13  David S. Miller  <davem@davemloft.net>
5611
5612         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
5613         underflows from atanl/atan2l due to bug 15319.
5614         (casinh_test_data): Likewise.
5615
5616 2013-07-07  David S. Miller  <davem@davemloft.net>
5617
5618         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
5619
5620 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
5621
5622         * sysdeps/i386/fpu/libm-test-ulps: Update.
5623         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5624
5625 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5626
5627         * configure.in (--enable-lock-elision): Fix message text.
5628         * INSTALL: Regenerate.
5629         * configure: Regenerate.
5630
5631 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5632
5633         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5634
5635 2013-07-03  Andreas Jaeger  <aj@suse.de>
5636
5637         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
5638         define.
5639         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
5640         (ptrace_peeksiginfo_args): Add.
5641         (__ptrace_peeksiginfo_flags): Add.
5642         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5643         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5644         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5645
5646 2013-07-03  Allan McRae  <allan@archlinux.org>
5647
5648         * sysdeps/i386/fpu/libm-test-ulps: Update.
5649
5650 2013-07-02  David S. Miller  <davem@davemloft.net>
5651
5652         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5653
5654 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
5655
5656         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5657
5658 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
5659
5660         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5662
5663 2013-07-02  Andi Kleen <ak@linux.intel.com>
5664
5665         * config.h.in (ENABLE_LOCK_ELISION): Add.
5666         * configure.in (--enable-lock-elision): Add option.
5667         * manual/install.texi: Document --enable lock elision.
5668         * configure: Regenerate
5669         * INSTALL: Regenerate.
5670
5671 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
5672
5673         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
5674         SSE4.2 strcasecmp for libc.a.
5675         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
5676
5677 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
5678
5679         [BZ #13304]
5680         * soft-fp/op-common.h (_FP_FMA): New macro.
5681         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
5682         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
5683         (_FP_MUL_MEAT_1_imm): ... here.
5684         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
5685         (_FP_MUL_MEAT_1_wide): ... here.
5686         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
5687         (_FP_MUL_MEAT_1_hard): ... here.
5688         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
5689         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
5690         (_FP_MUL_MEAT_2_wide): ... here.
5691         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
5692         (_FP_MUL_MEAT_2_wide_3mul): ... here.
5693         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
5694         (_FP_MUL_MEAT_2_gmp): ... here.
5695         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
5696         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
5697         (_FP_MUL_MEAT_4_wide): ... here.
5698         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
5699         (_FP_MUL_MEAT_4_gmp): ... here.
5700         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
5701         (_FP_WFRACBITS_DW_S): Likewise.
5702         (_FP_WFRACXBITS_DW_S): Likewise.
5703         (_FP_HIGHBIT_DW_S): Likewise.
5704         (FP_FMA_S): Likewise.
5705         (_FP_FRAC_HIGH_DW_S): Likewise.
5706         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
5707         (_FP_WFRACBITS_DW_D): Likewise.
5708         (_FP_WFRACXBITS_DW_D): Likewise.
5709         (_FP_HIGHBIT_DW_D): Likewise.
5710         (FP_FMA_D): Likewise.
5711         (_FP_FRAC_HIGH_DW_D): Likewise.
5712         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
5713         (_FP_WFRACBITS_DW_E): Likewise.
5714         (_FP_WFRACXBITS_DW_E): Likewise.
5715         (_FP_HIGHBIT_DW_E): Likewise.
5716         (FP_FMA_E): Likewise.
5717         (_FP_FRAC_HIGH_DW_E): Likewise.
5718         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
5719         (_FP_WFRACBITS_DW_Q): Likewise.
5720         (_FP_WFRACXBITS_DW_Q): Likewise.
5721         (_FP_HIGHBIT_DW_Q): Likewise.
5722         (FP_FMA_Q): Likewise.
5723         (_FP_FRAC_HIGH_DW_Q): Likewise.
5724         * soft-fp/fmasf4.c: New file.
5725         * soft-fp/fmadf4.c: Likewise.
5726         * soft-fp/fmatf4.c: Likewise.
5727
5728 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5729
5730         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
5731         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
5732         Silvermont.
5733         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
5734         macro.
5735         (index_Slow_SSE4_2): Likewise.
5736         (index_Prefer_PMINUB_for_stringop): Likewise.
5737         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
5738         bit_Slow_SSE4_2 is set.
5739         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
5740         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5741
5742 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5743
5744         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
5745         rtld_global._dl_hwcap2.
5746         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
5747         POWER8.
5748         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
5749         POWER8 feature descriptions defined in _dl_hwcap2.
5750         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
5751         string handling for POWER8 feature bits.
5752         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
5753         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
5754         _dl_powerpc_cap_flags.
5755         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
5756         * sysdeps/powerpc/rtld-global-offsets.sym
5757         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
5758         _dl_hwcap2 in the rtld_global_ro structure.
5759
5760 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5761
5762         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
5763         hardware capabilities in support of AT_HWCAP2.
5764         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
5765         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
5766         GLRO(dl_hwcap2).
5767         (_dl_show_auxv): Add support for calling _dl_procinfo to display
5768         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
5769         explicitly the unknown a_type display mechanism is used.
5770         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
5771         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
5772         struct member.
5773         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
5774         to macro prototype for AT_HWCAP2 support.
5775         * sysdeps/i386/dl-procinfo.h: Likewise.
5776         * sysdeps/s390/dl-procinfo.h: Likewise.
5777         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
5778         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
5779         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
5780         return -1 for unknown a_type display fallback.
5781         * sysdeps/sparc/dl-procinfo.h: Likewise.
5782         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
5783         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
5784
5785 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
5786
5787         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
5788         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
5789
5790 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
5791
5792         [BZ #12492]
5793         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
5794         mprotect making __stack_prot writable.
5795
5796 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
5797             Joseph Myers  <joseph@codesourcery.com>
5798
5799         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
5800         as being properly aligned.
5801
5802 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
5803
5804         * dlfcn/modstatic5.c: New file.
5805         * dlfcn/tststatic5.c: New file.
5806         * dlfcn/Makefile (tests): Add tststatic5.
5807         (tests-static): Likewise.
5808         (modules-names): Add modstatic5.
5809         (tststatic5-ENV): New variable.
5810         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
5811
5812         [BZ #15022]
5813         * elf/dl-support.c (_dl_main_map): New variable.
5814         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
5815         (_dl_nns, _dl_load_adds): Set to 1.
5816         (_dl_initial_searchlist): Refer to _dl_main_map.
5817         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
5818         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
5819         call to _dl_get_origin.
5820         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
5821         around call_map.
5822         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
5823         * dlfcn/modstatic3.c: New file.
5824         * dlfcn/tststatic3.c: New file.
5825         * dlfcn/tststatic4.c: New file.
5826         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
5827         (tests-static): Likewise.
5828         (modules-names): Add modstatic3.
5829         (tststatic3-ENV, tststatic4-ENV): New variables.
5830         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
5831         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
5832
5833 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
5834
5835         * configure.in (CC): Require GCC version 4.4 or later.
5836         * configure: Regenerated.
5837         * manual/install.texi (Tools for Compilation): Update GCC version
5838         requirement.
5839         * INSTALL: Regenerated.
5840
5841 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5842
5843         [BZ #15674]
5844         * string/test-memcmp.c (check2): New.
5845         (main): Call check2.
5846
5847         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
5848
5849 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
5850
5851         [BZ #15022]
5852         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
5853         over to...
5854         (dl_open_worker) [!SHARED]: ... here.
5855
5856 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5857
5858         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
5859
5860 2013-06-25  Richard Henderson  <rth@redhat.com>
5861
5862         * locale/programs/locarchive.c: Include <libc-internal.h>
5863
5864 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
5865
5866         * manual/texinfo.tex: Update to version 2013-06-21.17, with
5867         trailing whitespace removed.
5868
5869 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
5870
5871         [BZ #10283]
5872         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
5873         * locale/programs/locarchive.c: Include libc-mmap.h.
5874         (prepare_address_space): Take two new outputs (the mmap base and len).
5875         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
5876         values.
5877         (create_archive): Declare new mmap base and len values for
5878         prepare_address_space, and store the result in ah.
5879         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
5880         (enlarge_archive): If ah->mmap_base is not NULL, use that and
5881         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
5882         Declare new mmap base and len values for
5883         prepare_address_space, and store the result in new_ah.
5884         (open_archive): Declare new mmap base and len values for
5885         prepare_address_space, and store the result in ah.
5886         (close_archive): If ah->mmap_base is not NULL, use that and
5887         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
5888         * sysdeps/generic/libc-mmap.h: New file.
5889
5890 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
5891
5892         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
5893         (ALIGN_UP): Likewise.
5894         (PTR_ALIGN_DOWN): Likewise.
5895         (PTR_ALIGN_UP): Likewise.
5896
5897 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5898
5899         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
5900         entry mapped to PPC_PLATFORM_POWER8.
5901         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
5902         POWER8.
5903         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
5904         (_dl_string_platform): Add case for exporting platform position for
5905         POWER8.
5906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
5907         search path to sysdeps/powerpc/powerpc32/power8 directory.
5908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
5909         search path to sysdeps/powerpc/powerpc64/power8 directory.
5910         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
5911         power7 directories.
5912         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
5913         power7 directories.
5914
5915 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
5916
5917         * INSTALL: Regenerate.
5918
5919         * nscd/connections.c (nscd_init): Fix comment.
5920
5921 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
5922
5923         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
5924
5925         [BZ #15667]
5926         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
5927         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
5928
5929 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
5930
5931         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
5932         DL_DST_REQ_STATIC.
5933         (DL_DST_REQ_STATIC): Remove macro.
5934
5935 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
5936
5937         [BZ #7006]
5938         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
5939         with a shift of 0 bits.
5940
5941 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
5942
5943         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
5944         $(tststatic-ENV).
5945
5946 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5947
5948         [BZ #15655]
5949         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
5950
5951 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5952
5953         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
5954         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
5955         accepts -fno-tree-loop-distribute-patterns.
5956         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
5957         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
5958         recursive call.
5959         * string/memset.c (memset): Likewise.
5960         * string/test-memmove.c (simple_memmove): Disable loop transformation
5961         to library calls.
5962         * string/test-memset.c (simple_memset): Likewise.
5963         * benchtests/bench-memmove.c (simple_memmove): Likewise.
5964         * benchtests/bench-memset.c (simple_memset): Likewise.
5965         * configure: Regenerated.
5966
5967 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
5968
5969         * math/test-misc.c (main): Ignore fesetround failure when failures
5970         of subsequent rounding tests would be ignored.
5971
5972         [BZ #15654]
5973         * math/fedisblxcpt.c (fedisableexcept): Return 0.
5974         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
5975         * math/fegetenv.c (__fegetenv): Return 0.
5976         * math/fegetexcept.c (fegetexcept): Return 0.
5977         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
5978         FE_TONEAREST.
5979         * math/feholdexcpt.c (feholdexcept): Return 0.
5980         * math/fesetenv.c (__fesetenv): Return 0.
5981         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
5982         argument FE_TONEAREST.
5983         * math/feupdateenv.c (__feupdateenv): Return 0.
5984         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
5985
5986 2013-06-18  Roland McGrath  <roland@hack.frob.com>
5987
5988         * elf/rtld-Rules (rtld-compile-command.S): New variable.
5989         (rtld-compile-command.s, rtld-compile-command.c): New variables.
5990         ($(objpfx)rtld-%.os rules): Use them.
5991
5992 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5993
5994         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
5995         fields.
5996
5997 2013-06-17  Roland McGrath  <roland@hack.frob.com>
5998
5999         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
6000         length of target pattern, then descending length of dependency pattern.
6001         * configure.in (AWK): Require gawk 3.1.2 or newer.
6002         * manual/install.texi (Tools for Compilation): Say that we do.
6003         * configure: Regenerated.
6004
6005         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
6006         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
6007         * scripts/sysd-rules.awk: ... this new script.
6008         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
6009         than a glob-style pattern.
6010
6011 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
6012
6013         * math/test-misc.c (main): Do not treat incorrectly rounded
6014         conversions as failure unless ROUNDING_TESTS passes.
6015
6016 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
6017
6018         [BZ #15631]
6019         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
6020         restore exception state around main square root computation, then
6021         check for inexactness explicitly.
6022
6023         * math/libm-test.inc (fma_test_data): Add another test.
6024
6025 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6026
6027         * manual/threads.texi (Non-POSIX Extensions): New document
6028         node.  Document pthread_getattr_default_np and
6029         pthread_setattr_default_np.
6030
6031         * Versions.def (libpthread): Add GLIBC_2.18.
6032         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
6033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6034         Likewise.
6035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6036         Likewise.
6037         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6038         Likewise.
6039         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6040         Likewise.
6041         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
6042         Likewise.
6043         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
6044         Likewise.
6045         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
6046         Likewise.
6047         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6048         Likewise.
6049         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6050         Likewise.
6051
6052 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6053
6054         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6055         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
6056
6057 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
6058             H.J. Lu  <hjl.tools@gmail.com>
6059
6060         [BZ #15627]
6061         * sysdeps/x86_64/rtld-memset.c: Remove file.
6062         * sysdeps/x86_64/rtld-memset.S: New file.
6063
6064 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
6065
6066         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
6067         (test_in_one_mode): Take arguments for whether the rounding mode
6068         is supported for each floating-point type.
6069         (do_test): Pass new arguments to test_in_one_mode using
6070         ROUNDING_TESTS.
6071
6072 2013-06-13  Roland McGrath  <roland@hack.frob.com>
6073
6074         * posix/tst-waitid.c (do_test): Distinguish different instances of
6075         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
6076         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
6077         before entering the kernel for waitpid.
6078
6079 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
6080
6081         * NEWS: Fix note on clock function precision.  Text by Roland
6082         McGrath.
6083
6084 2013-06-13  Roland McGrath  <roland@hack.frob.com>
6085
6086         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
6087         it into place only when and if the sanity check passes.
6088
6089 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
6090
6091         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
6092         output for whether conversion result is exact.  Take argument
6093         indicating whether type is IBM long double.
6094         (round_for_all): Change need_exact field to ibm_ld.
6095         * stdlib/tst-strtod-round.c (struct exactness): New type.
6096         (struct test): Change bool ld_ok field to struct exactness exact.
6097         (TEST): Update all definitions for change to field.
6098         (tests): Regenerate array contents.
6099         (test_in_one_mode): Take pointer to new field instead of old ld_ok
6100         field value.  Check for IBM long double here.
6101         (do_test): Update calls to test_in_one_mode.
6102
6103 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
6104
6105         [BZ #12515]
6106         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
6107         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
6108
6109 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6110
6111         [BZ #15605]
6112         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
6113         generated by the compiler on loop optimizations.
6114         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
6115         general definitions.
6116
6117 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
6118
6119         * math/bug-nextafter.c: Include <math-tests.h>.
6120         (main): Only test for exceptions if EXCEPTION_TESTS is true for
6121         the relevant type.
6122         * math/bug-nexttoward.c: Include <math-tests.h>.
6123         (main): Only test for exceptions if EXCEPTION_TESTS is true for
6124         the relevant type.
6125         * math/test-misc.c: Include <math-tests.h>.
6126         (main): Only test for exceptions if EXCEPTION_TESTS is true for
6127         the relevant type.
6128
6129 2013-06-12  Andreas Jaeger  <aj@suse.de>
6130
6131         * po/ia.po: Update Interlingua translation from translation
6132         project.
6133
6134 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6135
6136         * include/fenv.h: Include stdbool.h.
6137         (struct rm_ctx): New structure.
6138         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
6139         Define macro.
6140         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
6141         (SET_RESTORE_ROUNDF): Likewise.
6142         (SET_RESTORE_ROUNDL): Likewise.
6143         (SET_RESTORE_ROUND_NOEX): Likewise.
6144         (SET_RESTORE_ROUND_NOEXF): Likewise.
6145         (SET_RESTORE_ROUND_NOEXL): Likewise.
6146         (SET_RESTORE_ROUND_53BIT): Likewise.
6147         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
6148         (libc_feresetround_noexf_ctx): Likewise.
6149         (libc_feresetround_noexl_ctx): Likewise.
6150         (libc_feholdsetround_53bit_ctx): Likewise.
6151         (libc_feresetround_53bit_ctx): Likewise.
6152         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
6153         (libc_feholdexcept_setround_sse_ctx): New function.
6154         (libc_fesetenv_sse_ctx): Likewise.
6155         (libc_feupdateenv_sse_ctx): Likewise.
6156         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
6157         (libc_feholdexcept_setround_387_ctx): Likewise.
6158         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
6159         (libc_feholdsetround_387_prec_ctx): Likewise.
6160         (libc_feholdsetround_387_ctx): Likewise.
6161         (libc_feholdsetround_387_53bit_ctx): Likewise.
6162         (libc_feholdsetround_sse_ctx): Likewise.
6163         (libc_feresetround_sse_ctx): Likewise.
6164         (libc_feresetround_387_ctx): Likewise.
6165         (libc_feupdateenv_387_ctx): Likewise.
6166         (libc_feholdexcept_setroundf_ctx): Define macro.
6167         (libc_fesetenvf_ctx): Likewise.
6168         (libc_feupdateenvf_ctx): Likewise.
6169         (libc_feholdsetroundf_ctx): Likewise.
6170         (libc_feresetroundf_ctx): Likewise.
6171         (libc_feholdexcept_setround_ctx): Likewise.
6172         (libc_fesetenv_ctx): Likewise.
6173         (libc_feupdateenv_ctx): Likewise.
6174         (libc_feholdsetround_ctx): Likewise.
6175         (libc_feresetround_ctx): Likewise.
6176         (libc_feholdexcept_setroundl_ctx): Likewise.
6177         (libc_feupdateenvl_ctx): Likewise.
6178         (libc_feholdsetroundl_ctx): Likewise.
6179         (libc_feresetroundl_ctx): Likewise.
6180         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
6181         (libc_feresetround_53bit_ctx): Likewise.
6182
6183 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6184
6185         * locale/iso-639.def: Convert to UTF-8.
6186
6187 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
6188
6189         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
6190         (EXCEPTION_TESTS_double): Likewise.
6191         (EXCEPTION_TESTS_long_double): Likewise.
6192         (EXCEPTION_TESTS): Likewise.
6193         * math/libm-test.inc (test_exceptions): Only test exceptions if
6194         EXCEPTION_TESTS (FLOAT).
6195
6196 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6197
6198         * benchtests/Makefile (string-bench): Add strcpy_chk and
6199         stpcpy_chk.
6200         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
6201         * benchtests/bench-stpcpy_chk.c: New file.
6202         * benchtests/bench-strcpy_chk-ifunc.c: New file.
6203         * benchtests/bench-strcpy_chk.c: New file.
6204         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
6205         code.
6206         (do_test): Likewise.
6207
6208 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6209
6210         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
6211         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
6212         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
6213         with tabs where appropriate.
6214         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
6215         dl-procinfo.h.
6216         [PPC_PLATFORM_PPC440]: Likewise.
6217         [PPC_PLATFORM_PPC464]: Likewise.
6218         [PPC_PLATFORM_PPC476]: Likewise.
6219         (_dl_string_platform): Add support for detecting ppc405, ppc440,
6220         ppc464, and ppc476 platform strings merging from ports/
6221         dl-procinfo.h.
6222
6223 2013-06-11  Andreas Schwab  <schwab@suse.de>
6224
6225         [BZ #14991]
6226         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
6227         (from_ucs4_idx): Regenerate.
6228         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
6229         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
6230         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
6231         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
6232         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
6233         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
6234         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
6235         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
6236         from FROM_LOOP and TO_LOOP specific macros.
6237         (BODY): Handle combining characters.
6238         * iconvdata/BIG5HKSCS.irreversible: Update.
6239         * iconvdata/BIG5HKSCS.precomposed: New file.
6240         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
6241         characters.
6242         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
6243
6244 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6245
6246         * include/sys/time.h: Fix indentation and add copyright header.
6247
6248         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
6249         (do_test): Likewise.
6250         * string/test-memchr.c (do_one_test): Likewise.
6251         (do_test): Likewise.
6252         * string/test-memcmp.c (do_one_test): Likewise.
6253         (do_test): Likewise.
6254         * string/test-memcpy.c (do_one_test): Likewise.
6255         (do_test): Likewise.
6256         * string/test-memmem.c (do_one_test): Likewise.
6257         (do_test): Likewise.
6258         (do_random_tests): Likewise.
6259         * string/test-memmove.c (do_one_test): Likewise.
6260         (do_test): Likewise.
6261         * string/test-memset.c (do_one_test): Likewise.
6262         (do_test): Likewise.
6263         * string/test-rawmemchr.c (do_one_test): Likewise.
6264         (do_test): Likewise.
6265         * string/test-strcasecmp.c (do_one_test): Likewise.
6266         (do_test): Likewise.
6267         * string/test-strcasestr.c (do_one_test): Likewise.
6268         (do_test): Likewise.
6269         * string/test-strcat.c (do_one_test): Likewise.
6270         (do_test): Likewise.
6271         * string/test-strchr.c (do_one_test): Likewise.
6272         (do_test): Likewise.
6273         * string/test-strcmp.c (do_one_test): Likewise.
6274         (do_test): Likewise.
6275         * string/test-strcpy.c (do_one_test): Likewise.
6276         (do_test): Likewise.
6277         * string/test-string.h: Likewise.
6278         (test_init): Likewise.
6279         * string/test-strlen.c (do_one_test): Likewise.
6280         (do_test): Likewise.
6281         * string/test-strncasecmp.c (do_one_test): Likewise.
6282         (do_test): Likewise.
6283         * string/test-strncat.c (do_one_test): Likewise.
6284         (do_test): Likewise.
6285         * string/test-strncmp.c (do_one_test): Likewise.
6286         (do_test_limit): Likewise.
6287         (do_test): Likewise.
6288         * string/test-strncpy.c (do_one_test): Likewise.
6289         (do_test): Likewise.
6290         * string/test-strnlen.c (do_one_test): Likewise.
6291         (do_test): Likewise.
6292         * string/test-strpbrk.c (do_one_test): Likewise.
6293         (do_test): Likewise.
6294         * string/test-strrchr.c (do_one_test): Likewise.
6295         (do_test): Likewise.
6296         * string/test-strspn.c (do_one_test): Likewise.
6297         (do_test): Likewise.
6298         * string/test-strstr.c (do_one_test): Likewise.
6299         (do_test): Likewise.
6300
6301         * benchtests/Makefile (string-bench): Add string benchmarks.
6302         * benchtests/bench-bcopy-ifunc.c: New file.
6303         * benchtests/bench-bcopy.c: New file.
6304         * benchtests/bench-bzero-ifunc.c: New file.
6305         * benchtests/bench-bzero.c: New file.
6306         * benchtests/bench-memccpy-ifunc.c: New file.
6307         * benchtests/bench-memccpy.c: New file.
6308         * benchtests/bench-memchr-ifunc.c: New file.
6309         * benchtests/bench-memchr.c: New file.
6310         * benchtests/bench-memcmp-ifunc.c: New file.
6311         * benchtests/bench-memcmp.c: New file.
6312         * benchtests/bench-memmem-ifunc.c: New file.
6313         * benchtests/bench-memmem.c: New file.
6314         * benchtests/bench-memmove-ifunc.c: New file.
6315         * benchtests/bench-memmove.c: New file.
6316         * benchtests/bench-mempcpy-ifunc.c: New file.
6317         * benchtests/bench-mempcpy.c: New file.
6318         * benchtests/bench-memset-ifunc.c: New file.
6319         * benchtests/bench-memset.c: New file.
6320         * benchtests/bench-rawmemchr-ifunc.c: New file.
6321         * benchtests/bench-rawmemchr.c: New file.
6322         * benchtests/bench-stpcpy-ifunc.c: New file.
6323         * benchtests/bench-stpcpy.c: New file.
6324         * benchtests/bench-stpncpy-ifunc.c: New file.
6325         * benchtests/bench-stpncpy.c: New file.
6326         * benchtests/bench-strcasecmp-ifunc.c: New file.
6327         * benchtests/bench-strcasecmp.c: New file.
6328         * benchtests/bench-strcasestr-ifunc.c: New file.
6329         * benchtests/bench-strcasestr.c: New file.
6330         * benchtests/bench-strcat-ifunc.c: New file.
6331         * benchtests/bench-strcat.c: New file.
6332         * benchtests/bench-strchr-ifunc.c: New file.
6333         * benchtests/bench-strchr.c: New file.
6334         * benchtests/bench-strchrnul-ifunc.c: New file.
6335         * benchtests/bench-strchrnul.c: New file.
6336         * benchtests/bench-strcmp-ifunc.c: New file.
6337         * benchtests/bench-strcmp.c: New file.
6338         * benchtests/bench-strcpy-ifunc.c: New file.
6339         * benchtests/bench-strcpy.c: New file.
6340         * benchtests/bench-strcspn-ifunc.c: New file.
6341         * benchtests/bench-strcspn.c: New file.
6342         * benchtests/bench-strlen-ifunc.c: New file.
6343         * benchtests/bench-strlen.c: New file.
6344         * benchtests/bench-strncasecmp-ifunc.c: New file.
6345         * benchtests/bench-strncasecmp.c: New file.
6346         * benchtests/bench-strncat-ifunc.c: New file.
6347         * benchtests/bench-strncat.c: New file.
6348         * benchtests/bench-strncmp-ifunc.c: New file.
6349         * benchtests/bench-strncmp.c: New file.
6350         * benchtests/bench-strncpy-ifunc.c: New file.
6351         * benchtests/bench-strncpy.c: New file.
6352         * benchtests/bench-strnlen-ifunc.c: New file.
6353         * benchtests/bench-strnlen.c: New file.
6354         * benchtests/bench-strpbrk-ifunc.c: New file.
6355         * benchtests/bench-strpbrk.c: New file.
6356         * benchtests/bench-strrchr-ifunc.c: New file.
6357         * benchtests/bench-strrchr.c: New file.
6358         * benchtests/bench-strspn-ifunc.c: New file.
6359         * benchtests/bench-strspn.c: New file.
6360         * benchtests/bench-strstr-ifunc.c: New file.
6361         * benchtests/bench-strstr.c: New file.
6362
6363         * benchtests/Makefile: Disable parallel execution of targets.
6364         (string-bench): Add memcpy.
6365         (benchset): New variable to store a list of benchmark sets.
6366         (bench-func): Renamed from bench.
6367         (bench-set): New target.
6368         (bench): Depend on bench-func and bench-set.
6369         * benchtests/README: Add section on benchmark sets.
6370         * benchtests/bench-memcpy-ifunc.c: New file.
6371         * benchtests/bench-memcpy.c: New file.
6372         * benchtests/bench-string.h: New file.
6373
6374 2013-06-11  Andreas Schwab  <schwab@suse.de>
6375
6376         [BZ #15577]
6377         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
6378         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
6379         values in the triple.
6380         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
6381         terminator in the group key.
6382
6383 2013-06-11  Andreas Jaeger  <aj@suse.de>
6384
6385         * po/zh_TW.po: Update Chinese (traditional) translation from
6386         translation project.
6387
6388 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6389
6390         * include/time.h (__clock_gettime): Add libc_hidden_proto.
6391         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
6392         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
6393         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
6394         (clock_getcpuclockid): Likewise.
6395         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
6396         Add weak_alias and libc_hidden_def.
6397         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
6398         * rt/clock_gettime.c (clock_gettime): Rename to
6399         __clock_gettime.  Add weak_alias and libc_hidden_def.
6400         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
6401         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
6402         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
6403         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
6404         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
6405         Likewise.
6406         * rt/clock_settime.c (clock_settime): Rename to
6407         __clock_settime.  Add weak_alias and libc_hidden_def.
6408         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
6409
6410 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
6411
6412         * mach/err_boot.sub: Remove trailing whitespace.
6413         * mach/err_ipc.sub: Likewise.
6414         * mach/err_mach.sub: Likewise.
6415
6416         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
6417         (ROUNDING_TESTS_double): Likewise.
6418         (ROUNDING_TESTS_long_double): Likewise.
6419         (ROUNDING_TESTS): Likewise.
6420         * math/libm-test.inc: Include <math-tests.h>.
6421         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
6422         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
6423         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
6424         (IF_ROUND_INIT_FE_UPWARD): Likewise.
6425
6426 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6427
6428         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
6429         of assigning.
6430
6431 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
6432
6433         * sysdeps/gnu/errlist.awk: Do not generate space at end of
6434         otherwise empty TRANS lines.
6435         * sysdeps/gnu/errlist.c: Regenerated.
6436
6437         * catgets/gencat.c (error_print): Use (void) in function
6438         definition.
6439         * crypt/crypt_util.c (__init_des): Likewise.
6440         * crypt/speeds.c (Stop): Likewise.
6441         (main): Likewise.
6442         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
6443         * inet/ruserpass.c (token): Likewise.
6444         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
6445         * intl/localealias.c (extend_alias_table): Likewise.
6446         * intl/plural-exp.c (init_germanic_plural): Likewise.
6447         * libio/fcloseall.c (__fcloseall): Likewise.
6448         * libio/genops.c (_IO_flush_all): Likewise.
6449         (_IO_flush_all_linebuffered): Likewise.
6450         (_IO_cleanup): Likewise.
6451         (_IO_iter_begin): Likewise.
6452         (_IO_iter_end): Likewise.
6453         (_IO_list_lock): Likewise.
6454         (_IO_list_unlock): Likewise.
6455         (_IO_list_resetlock): Likewise.
6456         * libio/getchar.c (getchar): Likewise.
6457         * libio/getchar_u.c (getchar_unlocked): Likewise.
6458         * libio/getwchar.c (getwchar): Likewise.
6459         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6460         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
6461         * login/getpt.c (__getpt): Likewise.
6462         * login/tst-utmp.c (main): Likewise.
6463         * malloc/hooks.c (__malloc_check_init): Likewise.
6464         * malloc/malloc.c (__malloc_stats): Likewise.
6465         * malloc/mtrace.c (tr_break): Likewise.
6466         (mtrace): Likewise.
6467         (muntrace): Likewise.
6468         * misc/fstab.c (endfsent): Likewise.
6469         * misc/getclktck.c (__getclktck): Likewise.
6470         * misc/getdtsz.c (__getdtablesize): Likewise.
6471         * misc/gethostid.c (gethostid): Likewise.
6472         * misc/getpagesize.c (__getpagesize): Likewise.
6473         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
6474         (__get_nprocs): Likewise.
6475         (__get_phys_pages): Likewise.
6476         (__get_avphys_pages): Likewise.
6477         * misc/getttyent.c (getttyent): Likewise.
6478         (setttyent): Likewise.
6479         (endttyent): Likewise.
6480         * misc/getusershell.c (getusershell): Likewise.
6481         (endusershell): Likewise.
6482         (setusershell): Likewise.
6483         (initshells): Likewise.
6484         * misc/hsearch.c (__hdestroy): Likewise.
6485         * misc/sync.c (sync): Likewise.
6486         * misc/syslog.c (closelog_internal): Likewise.
6487         (closelog): Likewise.
6488         * misc/ttyslot.c (ttyslot): Likewise.
6489         * misc/vhangup.c (vhangup): Likewise.
6490         * posix/fork.c (__fork): Likewise.
6491         * posix/getegid.c (__getegid): Likewise.
6492         * posix/geteuid.c (__geteuid): Likewise.
6493         * posix/getgid.c (__getgid): Likewise.
6494         * posix/getpid.c (__getpid): Likewise.
6495         * posix/getppid.c (__getppid): Likewise.
6496         * posix/getuid.c (__getuid): Likewise.
6497         * posix/pause.c (pause): Likewise.
6498         * posix/setpgrp.c (setpgrp): Likewise.
6499         * posix/setsid.c (__setsid): Likewise.
6500         * posix/test-vfork.c (noop): Likewise.
6501         * resolv/gethnamaddr.c (_endhtent): Likewise.
6502         (_gethtent): Likewise.
6503         (ht_endhostent): Likewise.
6504         (gethostent): Likewise.
6505         (dns_service): Likewise.
6506         * stdlib/drand48.c (drand48): Likewise.
6507         * stdlib/lrand48.c (lrand48): Likewise.
6508         * stdlib/mrand48.c (mrand48): Likewise.
6509         * stdlib/rand.c (rand): Likewise.
6510         * stdlib/random.c (__random): Likewise.
6511         * stdlib/setenv.c (clearenv): Likewise.
6512         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
6513         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
6514         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
6515         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
6516         (__get_nprocs): Likewise.
6517         (__get_phys_pages): Likewise.
6518         (__get_avphys_pages): Likewise.
6519         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
6520         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
6521         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
6522         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
6523         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
6524         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
6525         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
6526         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
6527         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
6528         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
6529         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
6530         * sysdeps/mach/hurd/sync.c (sync): Likewise.
6531         * sysdeps/posix/clock.c (clock): Likewise.
6532         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
6533         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
6534         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
6535         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6536         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
6537         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
6538         (__get_nprocs_conf): Likewise.
6539         (__get_phys_pages): Likewise.
6540         (__get_avphys_pages): Likewise.
6541         * time/clock.c (clock): Likewise.
6542         * time/tzset.c (__tzname_max): Likewise.
6543
6544 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
6545
6546         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
6547         (__bswap_32): Do not use "register".
6548         * crypt/crypt.c (_ufc_doit_r): Likewise.
6549         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
6550         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
6551         * gmon/gmon.c (__monstartup): Likewise.
6552         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
6553         * hurd/hurdmalloc.c (more_memory): Likewise.
6554         (malloc): Likewise.
6555         (free): Likewise.
6556         (realloc): Likewise.
6557         (malloc_fork_prepare): Likewise.
6558         (malloc_fork_parent): Likewise.
6559         (malloc_fork_child): Likewise.
6560         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
6561         (_svcauth_des): Likewise.
6562         * inet/inet_lnaof.c (inet_lnaof): Likewise.
6563         * inet/inet_net.c (inet_network): Likewise.
6564         * inet/inet_netof.c (inet_netof): Likewise.
6565         * inet/rcmd.c (__validuser2_sa): Likewise.
6566         * io/fts.c (fts_open): Likewise.
6567         (fts_load): Likewise.
6568         (fts_close): Likewise.
6569         (fts_read): Likewise.
6570         (fts_children): Likewise.
6571         (fts_build): Likewise.
6572         (fts_stat): Likewise.
6573         (fts_sort): Likewise.
6574         (fts_alloc): Likewise.
6575         (fts_lfree): Likewise.
6576         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
6577         (_IO_file_xsgetn): Likewise.
6578         (_IO_file_xsgetn_mmap): Likewise.
6579         * libio/iofopncook.c (_IO_cookie_read): Likewise.
6580         (_IO_cookie_write): Likewise.
6581         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
6582         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
6583         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
6584         * malloc/obstack.c (_obstack_begin): Likewise.
6585         (_obstack_begin_1): Likewise.
6586         (_obstack_newchunk): Likewise.
6587         (_obstack_allocated_p): Likewise.
6588         (obstack_free): Likewise.
6589         (_obstack_memory_used): Likewise.
6590         * misc/getttyent.c (getttynam): Likewise.
6591         (getttyent): Likewise.
6592         (skip): Likewise.
6593         (value): Likewise.
6594         * misc/getusershell.c (initshells): Likewise.
6595         * misc/syslog.c (__vsyslog_chk): Likewise.
6596         * misc/ttyslot.c (ttyslot): Likewise.
6597         * nis/nis_hash.c (__nis_hash): Likewise.
6598         * posix/fnmatch_loop.c (FCT): Likewise.
6599         * posix/getconf.c (print_all): Likewise.
6600         (main): Likewise.
6601         * posix/getopt.c (exchange): Likewise.
6602         * posix/glob.c (globfree): Likewise.
6603         (prefix_array): Likewise.
6604         (__glob_pattern_type): Likewise.
6605         * resolv/arpa/nameser.h (NS_GET16): Likewise.
6606         (NS_GET32): Likewise.
6607         (NS_PUT16): Likewise.
6608         (NS_PUT32): Likewise.
6609         * resolv/gethnamaddr.c (getanswer): Likewise.
6610         (gethostbyname2): Likewise.
6611         (gethostbyaddr): Likewise.
6612         (_gethtent): Likewise.
6613         (_gethtbyname2): Likewise.
6614         (_gethtbyaddr): Likewise.
6615         * resolv/ns_print.c (dst_s_get_int16): Likewise.
6616         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
6617         * resolv/res_init.c (__res_vinit): Likewise.
6618         (net_mask): Likewise.
6619         * resolv/res_mkquery.c (outchar): Likewise.
6620         (PRINT): Likewise.
6621         * stdio-common/printf_fp.c (outchar): Likewise.
6622         (PRINT): Likewise.
6623         * stdio-common/printf_fphex.c (outchar): Likewise.
6624         (PRINT): Likewise.
6625         * stdio-common/printf_size.c (outchar): Likewise.
6626         (PRINT): Likewise.
6627         * stdio-common/test_rdwr.c (main): Likewise.
6628         * stdio-common/tfformat.c (matches): Likewise.
6629         * stdio-common/vfprintf.c (outchar): Likewise.
6630         (printf_unknown): Likewise.
6631         (buffered_vfprintf): Likewise.
6632         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
6633         * stdio-common/xbug.c (AppendToBuffer): Likewise.
6634         (ReadFile): Likewise.
6635         * stdlib/qsort.c (SWAP): Likewise.
6636         (_quicksort): Likewise.
6637         * stdlib/setenv.c (__add_to_environ): Likewise.
6638         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
6639         * stdlib/strtol_l.c (__strtol_l): Likewise.
6640         * stdlib/tst-strtod.c (main): Likewise.
6641         * stdlib/tst-strtol.c (main): Likewise.
6642         * stdlib/tst-strtoll.c (main): Likewise.
6643         * string/bits/string2.h (__strcmp_cc): Likewise.
6644         (__strcmp_cg): Likewise.
6645         (__strcspn_c1): Likewise.
6646         (__strcspn_c2): Likewise.
6647         (__strcspn_c3): Likewise.
6648         (__strspn_c1): Likewise.
6649         (__strspn_c2): Likewise.
6650         (__strspn_c3): Likewise.
6651         (__strsep_1c): Likewise.
6652         (__strsep_2c): Likewise.
6653         (__strsep_3c): Likewise.
6654         * string/memccpy.c (__memccpy): Likewise.
6655         * string/stpcpy.c (__stpcpy): Likewise.
6656         * string/strcmp.c (strcmp): Likewise.
6657         * string/strrchr.c (strrchr): Likewise.
6658         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
6659         Likewise.
6660         * sysdeps/mach/hurd/getcwd.c
6661         (_hurd_canonicalize_directory_name_internal): Likewise.
6662         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
6663         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
6664         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
6665         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
6666         Likewise, in both definitions.
6667         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
6668         definitions.
6669         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
6670         64] (__bswap_64): Likewise.
6671         * time/test_time.c (main): Likewise.
6672         * time/tzfile.c (__tzfile_read): Likewise.
6673         (__tzfile_compute): Likewise.
6674         * time/tzset.c (__tzset_parse_tz): Likewise.
6675         (tzset_internal): Likewise.
6676         (compute_change): Likewise.
6677         * wcsmbs/wcscat.c (__wcscat): Likewise.
6678         * wcsmbs/wcschr.c (wcschr): Likewise.
6679         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
6680         * wcsmbs/wcscspn.c (wcscspn): Likewise.
6681         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
6682         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
6683         * wcsmbs/wcsspn.c (wcsspn): Likewise.
6684         * wcsmbs/wcsstr.c (wcsstr): Likewise.
6685         * wcsmbs/wmemchr.c (wmemchr): Likewise.
6686         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
6687         * wcsmbs/wmemset.c (wmemset): Likewise.
6688
6689 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
6690
6691         * scripts/config.guess: Update to version 2013-05-16.
6692         * scripts/config.sub: Update to version 2013-04-24.
6693         * scripts/install-sh: Update to version 2011-11-20.07.
6694         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
6695         * scripts/move-if-change: Update to version 2012-01-06 07:23.
6696
6697 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
6698
6699         * debug/fgetws_u_chk.c: Fix leading whitespaces.
6700         * elf/sln.c: Likewise.
6701         * hurd/hurd/ioctl.h: Likewise.
6702         * hurd/hurdmalloc.c: Likewise.
6703         * hurd/xattr.c: Likewise.
6704         * include/shlib-compat.h: Likewise.
6705         * inet/ruserpass.c: Likewise.
6706         * libio/iofgets_u.c: Likewise.
6707         * libio/iofgetws_u.c: Likewise.
6708         * locale/programs/ld-identification.c: Likewise.
6709         * locale/programs/ld-time.c: Likewise.
6710         * mach/msg-destroy.c: Likewise.
6711         * nss/nss_files/files-netgrp.c: Likewise.
6712         * resolv/res_data.c: Likewise.
6713         * soft-fp/op-1.h: Likewise.
6714         * soft-fp/op-2.h: Likewise.
6715         * soft-fp/op-4.h: Likewise.
6716         * soft-fp/op-common.h: Likewise.
6717         * stdio-common/printf_fphex.c: Likewise.
6718         * stdlib/strtod_l.c: Likewise.
6719         * sunrpc/rpc/clnt.h: Likewise.
6720         * sysdeps/generic/framestate.c: Likewise.
6721         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6722         * sysdeps/i386/bsd-setjmp.S: Likewise.
6723         * sysdeps/i386/__longjmp.S: Likewise.
6724         * sysdeps/i386/setjmp.S: Likewise.
6725         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6726         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
6727         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6728         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6729         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6730         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
6731         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
6732         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
6733         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
6734         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
6735         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
6736         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6737         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6738         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6739         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6740         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
6741         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6742         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
6743         * sysdeps/ieee754/support.c: Likewise.
6744         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
6745         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
6746         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
6747         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
6748         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
6749         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
6750         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
6751         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
6752         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
6753         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
6754         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
6755         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
6756         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
6757         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
6758         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
6759         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
6760         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
6761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
6762
6763 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
6764
6765         * posix/transbug.c: Remove executable mode.
6766
6767 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
6768
6769         * crypt/speeds.c: Remove trailing whitespace.
6770         * dlfcn/default.c: Likewise.
6771         * elf/ifuncdep2.c: Likewise.
6772         * elf/ifuncmain1.c: Likewise.
6773         * elf/ifuncmain1vis.c: Likewise.
6774         * elf/testobj.h: Likewise.
6775         * elf/tst-stackguard1.c: Likewise.
6776         * gmon/sys/gmon.h: Likewise.
6777         * hurd/hurdmsg.c: Likewise.
6778         * hurd/new-fd.c: Likewise.
6779         * hurd/ports-get.c: Likewise.
6780         * iconvdata/ibm1008_420.c: Likewise.
6781         * inet/tst-getni1.c: Likewise.
6782         * inet/tst-getni2.c: Likewise.
6783         * libio/ioungetc.c: Likewise.
6784         * libio/wfiledoalloc.c: Likewise.
6785         * manual/libm-err-tab.pl: Likewise.
6786         * math/w_dremf.c: Likewise.
6787         * misc/ftruncate.c: Likewise.
6788         * posix/bug-glob2.c: Likewise.
6789         * posix/tst-pcre.c: Likewise.
6790         * posix/wait4.c: Likewise.
6791         * resolv/README: Likewise.
6792         * resolv/res_debug.h: Likewise.
6793         * resolv/tst-inet_ntop.c: Likewise.
6794         * setjmp/bug269-setjmp.c: Likewise.
6795         * soft-fp/extended.h: Likewise.
6796         * soft-fp/op-1.h: Likewise.
6797         * soft-fp/op-2.h: Likewise.
6798         * soft-fp/op-4.h: Likewise.
6799         * soft-fp/op-8.h: Likewise.
6800         * soft-fp/testit.c: Likewise.
6801         * stdio-common/bug16.c: Likewise.
6802         * stdlib/random.c: Likewise.
6803         * sunrpc/rpcsvc/rquota.x: Likewise.
6804         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
6805         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
6806         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6807         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
6808         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
6809         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
6810         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6811         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
6812         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
6813         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
6814         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
6815         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
6816         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
6817         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
6818         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
6819         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
6820         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
6821         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
6822         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
6823         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
6824         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
6825         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
6826         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
6827         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
6828         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
6829         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
6830         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
6831         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
6832         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
6833         * sysdeps/ieee754/s_lib_version.c: Likewise.
6834         * sysdeps/mach/hurd/check_fds.c: Likewise.
6835         * sysdeps/mach/hurd/getsockname.c: Likewise.
6836         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
6837         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6838         * sysdeps/powerpc/bits/link.h: Likewise.
6839         * sysdeps/powerpc/dl-procinfo.c: Likewise.
6840         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
6841         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
6842         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
6843         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
6844         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6845         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
6846         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
6847         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
6848         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
6849         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
6850         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
6851         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
6852         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
6853         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
6854         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
6855         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
6856         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
6857         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
6858         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
6859         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
6860         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
6861         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6862         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
6863         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6864         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
6865         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
6866         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
6867         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
6868         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
6869         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
6870         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
6871         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6872         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6873         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
6874         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
6875         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
6876         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
6877         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
6878         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
6879         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
6880         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
6881         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
6882         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
6883         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
6884         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
6885         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
6886         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
6887         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
6888         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
6889         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
6890         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
6891         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6892         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6893         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
6894         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
6895         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
6896         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6897         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
6898         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
6899         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
6900         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
6901         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
6902         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
6903         * sysdeps/powerpc/sysdep.h: Likewise.
6904         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6905         * sysdeps/s390/s390-64/sub_n.S: Likewise.
6906         * sysdeps/sh/dl-trampoline.S: Likewise.
6907         * sysdeps/sh/memset.S: Likewise.
6908         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
6909         * sysdeps/sh/strlen.S: Likewise.
6910         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
6911         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
6912         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
6913         * sysdeps/sparc/sparc32/rem.S: Likewise.
6914         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
6915         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
6916         * sysdeps/sparc/sparc32/strchr.S: Likewise.
6917         * sysdeps/sparc/sparc32/udiv.S: Likewise.
6918         * sysdeps/sparc/sparc32/urem.S: Likewise.
6919         * sysdeps/sparc/sparc64/add_n.S: Likewise.
6920         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6921         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
6922         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
6923         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
6924         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
6925         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
6926         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
6927         * sysdeps/unix/bsd/times.c: Likewise.
6928         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
6929         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
6930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
6931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
6932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
6933         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6934         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
6935         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
6936         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
6937         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
6938         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
6939         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
6940         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
6941         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
6942         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
6943         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6944         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
6945         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6946         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
6947         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
6948         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
6949         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
6950         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
6951         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
6952         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
6953         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
6954         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
6955         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6956         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
6957         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
6958         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
6959         * sysdeps/x86_64/strcspn.S: Likewise.
6960
6961 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6962
6963         * locale/C-translit.h: Revert #include <stdint.h> because this is a
6964         generated file.  Regenerate properly from gen-translit.pl.
6965         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
6966         locale/C-translit.h.
6967
6968 2013-06-05  Andreas Schwab  <schwab@suse.de>
6969
6970         [BZ #15100]
6971         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
6972         week as 6 instead of -1.
6973         * time/tst-strptime.c (day_tests): Add test case.
6974
6975 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
6976
6977         * sysdeps/generic/math_private.h
6978         (libc_feholdexcept_setround_53bit): Replace with
6979         libc_feholdsetround_53bit.
6980         (libc_feupdateenv_53bit): Replace with
6981         libc_feresetround_53bit.
6982         (SET_RESTORE_ROUND_53BIT): Adjust.
6983
6984 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6985
6986         * string/test-strchrnul.c: Add copyright header.
6987
6988         * posix/tst-getaddrinfo4.c: Increase test timeout.
6989
6990 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
6991
6992         [BZ #15536]
6993         * math/libm-test.inc (MAX_EXP): Remove
6994         (MIN_EXP): Define.
6995         (ulp): Use MIN_EXP - MANT_DIG.
6996         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
6997
6998 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
6999
7000         * po/be.po: Revert last change.
7001         * po/zh_CN.po: Likewise.
7002         * po/header.pot: Likewise.
7003
7004 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
7005
7006         * Makefile ($(common-objpfx)linkobj/libc.so): Define
7007         link-libc-deps to empty as target-specific variable.
7008         * Makerules (link-libc-args): New variable.
7009         (libc-for-link): Likewise.
7010         (link-libc-deps): Likewise.
7011         (lib%.so): Depend on $(link-libc-deps).  Link with
7012         $(link-libc-args).
7013         (build-module): Link with $(link-libc-args).
7014         (build-module-asneeded): Likewise.
7015         (build-module-helper-objlist): Filter out $(link-libc-deps) from
7016         list of objects.
7017         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
7018         target-specific variable.
7019         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
7020         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
7021         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
7022         libc.
7023         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
7024         libc and ld.so.
7025         ($(objpfx)libpcprofile.so): Likewise.
7026         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
7027         libc_nonshared.a.
7028         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
7029         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
7030         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
7031         $(link-libc-deps).
7032         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
7033         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
7034         * login/Makefile ($(objpfx)libutil.so): Likewise.
7035         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
7036         * math/Makefile ($(objpfx)libm.so): Likewise.
7037         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
7038         $(objpfx)libnsl.so): Define libc-for-link as target-specific
7039         variable instead of depending directly on libc.
7040         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
7041         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
7042         $(link-libc-deps).
7043         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
7044         libc.
7045         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
7046         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
7047         ($(objpfx)libanl.so): Likewise.
7048         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
7049         ld.so.
7050         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
7051         $(link-libc-deps).
7052         * sysdeps/i386/fpu/Makefile: Remove file.
7053         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
7054         ($(objpfx)libm.so): Remove dependency on ld.so.
7055
7056 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
7057
7058         [BZ # 15553]
7059         * nis/yp_xdr.c (XDRMAXNAME): Define.
7060         (XDRMAXRECORD): Define.
7061         (xdr_domainname): Use XDRMAXNAME.
7062         (xdr_mapname): Likewise.
7063         (xdr_peername): Likewise.
7064         (xdr_keydat): Use XDRMAXRECORD.
7065         (xdr_valdat): Likewise.
7066
7067 2013-05-30  Jeff Law  <law@redhat.com>
7068
7069         [BZ #14256]
7070         * manual/errno.texi (ESTALE): Update to account for more than
7071         just NFS file systems.
7072         * sysdeps/gnu/errlist.c: Regenerated.
7073
7074 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7075
7076         [BZ #15465]
7077         * elf/Makefile (tests): Add tst-null-argv.
7078         (modules-names):  Add tst-null-argv-lib.
7079         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
7080         (tst-null-argv-ENV): Set environment for tst-null-argv.
7081         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
7082         (RTLD_PROGNAME): New macro.
7083         * elf/tst-null-argv.c: New test case.
7084         * elf/tst-null-argv-lib.c: Library for test case.
7085         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
7086         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
7087         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
7088         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
7089         * elf/dl-init.c (call_init): Likewise.
7090         (_dl_init): Likewise.
7091         * elf/dl-load.c (print_search_path): Likewise.
7092         (_dl_map_object): Likewise.
7093         * elf/dl-lookup.c (do_lookup_x): Likewise.
7094         (add_dependency): Likewise.
7095         (_dl_lookup_symbol_x): Likewise.
7096         (_dl_debug_bindings): Likewise.
7097         * elf/dl-open.c (_dl_show_scope): Likewise.
7098         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7099         * elf/dl-version.c (match_symbol): Likewise.
7100         (_dl_check_map_versions): Likewise.
7101         * elf/rtld.c (dl_main): Likewise.
7102         (print_unresolved): Use RTLD_PROGNAME.
7103         (print_missing_version): Likewise.
7104         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
7105         (elf_machine_rela): Likewise.
7106         * sysdeps/powerpc/powerpc32/dl-machine.c
7107         (__process_machine_rela): Likewise.
7108         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7109         Likewise.
7110         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
7111         Likewise.
7112         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
7113         Likewise.
7114         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7115         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
7116         Likewise.
7117         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
7118         Likewise.
7119         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7120
7121 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
7122
7123         * po/be.po: Add descriptive title.
7124         * po/zh_CN.po: Likewise.
7125         * po/header.pot: Likewise.
7126
7127 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
7128
7129         * locale/programs/locarchive.c (create_archive): Inlucde fname in
7130         error message.
7131         (enlarge_archive): Likewise.
7132
7133 2013-05-28  Ben North  <ben@redfrontdoor.org>
7134
7135         * manual/arith.texi (frexp): It is the magnitude of the return
7136         value which lies in [0.5, 1), not the return value itself.
7137
7138 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7139
7140         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7141
7142 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
7143
7144         * stdio-common/bug26.c (main): Correct fscanf template.
7145
7146         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
7147         declare _dl_skip_args.
7148
7149         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
7150         Don't declare.
7151
7152         * manual/platform.texi: Add missing @end deftypefun.
7153
7154 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
7155
7156         [BZ #15529]
7157         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
7158         bit of mantissa of 2^16382.
7159         * math/libm-test.inc (hypot_test_data): Add more tests.
7160
7161         * math/libm-test.inc: Add drem and pow10 to list of tested
7162         functions.
7163         (pow10_test): New function.
7164         (drem_test): Likewise.
7165         (drem_test_tonearest): Likewise.
7166         (drem_test_towardzero): Likewise.
7167         (drem_test_downward): Likewise.
7168         (drem_test_upward): Likewise.
7169         (main): Call the new functions.
7170
7171         * math/libm-test.inc (finite_test_data): Remove.
7172         (finite_test): Run tests from isfinite_test_data.
7173         (gamma_test_data): Remove.
7174         (gamma_test): Run tests from lgamma_test_data.
7175         * sysdeps/i386/fpu/libm-test-ulps: Update.
7176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7177
7178 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7179
7180         * manual/platform.texi: Add PowerPC PPR function set documentation.
7181         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
7182         implementation.
7183
7184 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
7185
7186         * math/libm-test.inc (MAX_EXP): Define.
7187         (ULPDIFF): Define.
7188         (ulp): New function.
7189         (check_float_internal): Use ULPDIFF.
7190         (cpow_test): Disable failing test.
7191         (check_ulp): Test ulp() implemetnation.
7192         (main): Call check_ulp before starting tests.
7193
7194 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
7195
7196         * math/gen-libm-test.pl (generate_testfile): Do not handle
7197         START_DATA and END_DATA.
7198         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
7199         END_DATA.
7200         (acos_tonearest_test_data): Likewise.
7201         (acos_towardzero_test_data): Likewise.
7202         (acos_downward_test_data): Likewise.
7203         (acos_upward_test_data): Likewise.
7204         (acosh_test_data): Likewise.
7205         (asin_test_data): Likewise.
7206         (asin_tonearest_test_data): Likewise.
7207         (asin_towardzero_test_data): Likewise.
7208         (asin_downward_test_data): Likewise.
7209         (asin_upward_test_data): Likewise.
7210         (asinh_test_data): Likewise.
7211         (atan_test_data): Likewise.
7212         (atanh_test_data): Likewise.
7213         (atan2_test_data): Likewise.
7214         (cabs_test_data): Likewise.
7215         (cacos_test_data): Likewise.
7216         (cacosh_test_data): Likewise.
7217         (carg_test_data): Likewise.
7218         (casin_test_data): Likewise.
7219         (casinh_test_data): Likewise.
7220         (catan_test_data): Likewise.
7221         (catanh_test_data): Likewise.
7222         (cbrt_test_data): Likewise.
7223         (ccos_test_data): Likewise.
7224         (ccosh_test_data): Likewise.
7225         (ceil_test_data): Likewise.
7226         (cexp_test_data): Likewise.
7227         (cimag_test_data): Likewise.
7228         (clog_test_data): Likewise.
7229         (clog10_test_data): Likewise.
7230         (conj_test_data): Likewise.
7231         (copysign_test_data): Likewise.
7232         (cos_test_data): Likewise.
7233         (cos_tonearest_test_data): Likewise.
7234         (cos_towardzero_test_data): Likewise.
7235         (cos_downward_test_data): Likewise.
7236         (cos_upward_test_data): Likewise.
7237         (cosh_test_data): Likewise.
7238         (cosh_tonearest_test_data): Likewise.
7239         (cosh_towardzero_test_data): Likewise.
7240         (cosh_downward_test_data): Likewise.
7241         (cosh_upward_test_data): Likewise.
7242         (cpow_test_data): Likewise.
7243         (cproj_test_data): Likewise.
7244         (creal_test_data): Likewise.
7245         (csin_test_data): Likewise.
7246         (csinh_test_data): Likewise.
7247         (csqrt_test_data): Likewise.
7248         (ctan_test_data): Likewise.
7249         (ctan_tonearest_test_data): Likewise.
7250         (ctan_towardzero_test_data): Likewise.
7251         (ctan_downward_test_data): Likewise.
7252         (ctan_upward_test_data): Likewise.
7253         (ctanh_test_data): Likewise.
7254         (ctanh_tonearest_test_data): Likewise.
7255         (ctanh_towardzero_test_data): Likewise.
7256         (ctanh_downward_test_data): Likewise.
7257         (ctanh_upward_test_data): Likewise.
7258         (erf_test_data): Likewise.
7259         (erfc_test_data): Likewise.
7260         (exp_test_data): Likewise.
7261         (exp_tonearest_test_data): Likewise.
7262         (exp_towardzero_test_data): Likewise.
7263         (exp_downward_test_data): Likewise.
7264         (exp_upward_test_data): Likewise.
7265         (exp10_test_data): Likewise.
7266         (exp2_test_data): Likewise.
7267         (expm1_test_data): Likewise.
7268         (fabs_test_data): Likewise.
7269         (fdim_test_data): Likewise.
7270         (finite_test_data): Likewise.
7271         (floor_test_data): Likewise.
7272         (fma_test_data): Likewise.
7273         (fma_towardzero_test_data): Likewise.
7274         (fma_downward_test_data): Likewise.
7275         (fma_upward_test_data): Likewise.
7276         (fmax_test_data): Likewise.
7277         (fmin_test_data): Likewise.
7278         (fmod_test_data): Likewise.
7279         (fpclassify_test_data): Likewise.
7280         (frexp_test_data): Likewise.
7281         (gamma_test_data): Likewise.
7282         (hypot_test_data): Likewise.
7283         (ilogb_test_data): Likewise.
7284         (isfinite_test_data): Likewise.
7285         (isgreater_test_data): Likewise.
7286         (isgreaterequal_test_data): Likewise.
7287         (isinf_test_data): Likewise.
7288         (isless_test_data): Likewise.
7289         (islessequal_test_data): Likewise.
7290         (islessgreater_test_data): Likewise.
7291         (isnan_test_data): Likewise.
7292         (isnormal_test_data): Likewise.
7293         (issignaling_test_data): Likewise.
7294         (isunordered_test_data): Likewise.
7295         (j0_test_data): Likewise.
7296         (j1_test_data): Likewise.
7297         (jn_test_data): Likewise.
7298         (ldexp_test_data): Likewise.
7299         (lgamma_test_data): Likewise.
7300         (lrint_test_data): Likewise.
7301         (lrint_tonearest_test_data): Likewise.
7302         (lrint_towardzero_test_data): Likewise.
7303         (lrint_downward_test_data): Likewise.
7304         (lrint_upward_test_data): Likewise.
7305         (llrint_test_data): Likewise.
7306         (llrint_tonearest_test_data): Likewise.
7307         (llrint_towardzero_test_data): Likewise.
7308         (llrint_downward_test_data): Likewise.
7309         (llrint_upward_test_data): Likewise.
7310         (log_test_data): Likewise.
7311         (log10_test_data): Likewise.
7312         (log1p_test_data): Likewise.
7313         (log2_test_data): Likewise.
7314         (logb_test_data): Likewise.
7315         (logb_downward_test_data): Likewise.
7316         (lround_test_data): Likewise.
7317         (llround_test_data): Likewise.
7318         (modf_test_data): Likewise.
7319         (nearbyint_test_data): Likewise.
7320         (nextafter_test_data): Likewise.
7321         (nexttoward_test_data): Likewise.
7322         (pow_test_data): Likewise.
7323         (pow_tonearest_test_data): Likewise.
7324         (pow_towardzero_test_data): Likewise.
7325         (pow_downward_test_data): Likewise.
7326         (pow_upward_test_data): Likewise.
7327         (remainder_test_data): Likewise.
7328         (remainder_tonearest_test_data): Likewise.
7329         (remainder_towardzero_test_data): Likewise.
7330         (remainder_downward_test_data): Likewise.
7331         (remainder_upward_test_data): Likewise.
7332         (remquo_test_data): Likewise.
7333         (rint_test_data): Likewise.
7334         (rint_tonearest_test_data): Likewise.
7335         (rint_towardzero_test_data): Likewise.
7336         (rint_downward_test_data): Likewise.
7337         (rint_upward_test_data): Likewise.
7338         (round_test_data): Likewise.
7339         (scalb_test_data): Likewise.
7340         (scalbn_test_data): Likewise.
7341         (scalbln_test_data): Likewise.
7342         (signbit_test_data): Likewise.
7343         (sin_test_data): Likewise.
7344         (sin_tonearest_test_data): Likewise.
7345         (sin_towardzero_test_data): Likewise.
7346         (sin_downward_test_data): Likewise.
7347         (sin_upward_test_data): Likewise.
7348         (sincos_test_data): Likewise.
7349         (sinh_test_data): Likewise.
7350         (sinh_tonearest_test_data): Likewise.
7351         (sinh_towardzero_test_data): Likewise.
7352         (sinh_downward_test_data): Likewise.
7353         (sinh_upward_test_data): Likewise.
7354         (sqrt_test_data): Likewise.
7355         (tan_test_data): Likewise.
7356         (tan_tonearest_test_data): Likewise.
7357         (tan_towardzero_test_data): Likewise.
7358         (tan_downward_test_data): Likewise.
7359         (tan_upward_test_data): Likewise.
7360         (tanh_test_data): Likewise.
7361         (tgamma_test_data): Likewise.
7362         (trunc_test_data): Likewise.
7363         (y0_test_data): Likewise.
7364         (y1_test_data): Likewise.
7365         (yn_test_data): Likewise.
7366         (significand_test_data): Likewise.
7367
7368         * math/gen-libm-test.pl (@functions): Remove variable.
7369         (generate_testfile): Don't handle START and END lines.
7370         * math/libm-test.inc (START): New macro.
7371         (END): Likewise.
7372         (END_COMPLEX): Likewise.
7373         (acos_test): Use END macro without arguments.
7374         (acos_test_tonearest): Likewise.
7375         (acos_test_towardzero): Likewise.
7376         (acos_test_downward): Likewise.
7377         (acos_test_upward): Likewise.
7378         (acosh_test): Likewise.
7379         (asin_test): Likewise.
7380         (asin_test_tonearest): Likewise.
7381         (asin_test_towardzero): Likewise.
7382         (asin_test_downward): Likewise.
7383         (asin_test_upward): Likewise.
7384         (asinh_test): Likewise.
7385         (atan_test): Likewise.
7386         (atanh_test): Likewise.
7387         (atan2_test): Likewise.
7388         (cabs_test): Likewise.
7389         (cacos_test): Use END_COMPLEX macro without arguments.
7390         (cacosh_test): Likewise.
7391         (carg_test): Use END macro without arguments.
7392         (casin_test): Use END_COMPLEX macro without arguments.
7393         (casinh_test): Likewise.
7394         (catan_test): Likewise.
7395         (catanh_test): Likewise.
7396         (cbrt_test): Use END macro without arguments.
7397         (ccos_test): Use END_COMPLEX macro without arguments.
7398         (ccosh_test): Likewise.
7399         (ceil_test): Use END macro without arguments.
7400         (cexp_test): Use END_COMPLEX macro without arguments.
7401         (cimag_test): Use END macro without arguments.
7402         (clog_test): Use END_COMPLEX macro without arguments.
7403         (clog10_test): Likewise.
7404         (conj_test): Likewise.
7405         (copysign_test): Use END macro without arguments.
7406         (cos_test): Likewise.
7407         (cos_test_tonearest): Likewise.
7408         (cos_test_towardzero): Likewise.
7409         (cos_test_downward): Likewise.
7410         (cos_test_upward): Likewise.
7411         (cosh_test): Likewise.
7412         (cosh_test_tonearest): Likewise.
7413         (cosh_test_towardzero): Likewise.
7414         (cosh_test_downward): Likewise.
7415         (cosh_test_upward): Likewise.
7416         (cpow_test): Use END_COMPLEX macro without arguments.
7417         (cproj_test): Likewise.
7418         (creal_test): Use END macro without arguments.
7419         (csin_test): Use END_COMPLEX macro without arguments.
7420         (csinh_test): Likewise.
7421         (csqrt_test): Likewise.
7422         (ctan_test): Likewise.
7423         (ctan_test_tonearest): Likewise.
7424         (ctan_test_towardzero): Likewise.
7425         (ctan_test_downward): Likewise.
7426         (ctan_test_upward): Likewise.
7427         (ctanh_test): Likewise.
7428         (ctanh_test_tonearest): Likewise.
7429         (ctanh_test_towardzero): Likewise.
7430         (ctanh_test_downward): Likewise.
7431         (ctanh_test_upward): Likewise.
7432         (erf_test): Use END macro without arguments.
7433         (erfc_test): Likewise.
7434         (exp_test): Likewise.
7435         (exp_test_tonearest): Likewise.
7436         (exp_test_towardzero): Likewise.
7437         (exp_test_downward): Likewise.
7438         (exp_test_upward): Likewise.
7439         (exp10_test): Likewise.
7440         (exp2_test): Likewise.
7441         (expm1_test): Likewise.
7442         (fabs_test): Likewise.
7443         (fdim_test): Likewise.
7444         (finite_test): Likewise.
7445         (floor_test): Likewise.
7446         (fma_test): Likewise.
7447         (fma_test_towardzero): Likewise.
7448         (fma_test_downward): Likewise.
7449         (fma_test_upward): Likewise.
7450         (fmax_test): Likewise.
7451         (fmin_test): Likewise.
7452         (fmod_test): Likewise.
7453         (fpclassify_test): Likewise.
7454         (frexp_test): Likewise.
7455         (gamma_test): Likewise.
7456         (hypot_test): Likewise.
7457         (ilogb_test): Likewise.
7458         (isfinite_test): Likewise.
7459         (isgreater_test): Likewise.
7460         (isgreaterequal_test): Likewise.
7461         (isinf_test): Likewise.
7462         (isless_test): Likewise.
7463         (islessequal_test): Likewise.
7464         (islessgreater_test): Likewise.
7465         (isnan_test): Likewise.
7466         (isnormal_test): Likewise.
7467         (issignaling_test): Likewise.
7468         (isunordered_test): Likewise.
7469         (j0_test): Likewise.
7470         (j1_test): Likewise.
7471         (jn_test): Likewise.
7472         (ldexp_test): Likewise.
7473         (lgamma_test): Likewise.
7474         (lrint_test): Likewise.
7475         (lrint_test_tonearest): Likewise.
7476         (lrint_test_towardzero): Likewise.
7477         (lrint_test_downward): Likewise.
7478         (lrint_test_upward): Likewise.
7479         (llrint_test): Likewise.
7480         (llrint_test_tonearest): Likewise.
7481         (llrint_test_towardzero): Likewise.
7482         (llrint_test_downward): Likewise.
7483         (llrint_test_upward): Likewise.
7484         (log_test): Likewise.
7485         (log10_test): Likewise.
7486         (log1p_test): Likewise.
7487         (log2_test): Likewise.
7488         (logb_test): Likewise.
7489         (logb_test_downward): Likewise.
7490         (lround_test): Likewise.
7491         (llround_test): Likewise.
7492         (modf_test): Likewise.
7493         (nearbyint_test): Likewise.
7494         (nextafter_test): Likewise.
7495         (nexttoward_test): Likewise.
7496         (pow_test): Likewise.
7497         (pow_test_tonearest): Likewise.
7498         (pow_test_towardzero): Likewise.
7499         (pow_test_downward): Likewise.
7500         (pow_test_upward): Likewise.
7501         (remainder_test): Likewise.
7502         (remainder_test_tonearest): Likewise.
7503         (remainder_test_towardzero): Likewise.
7504         (remainder_test_downward): Likewise.
7505         (remainder_test_upward): Likewise.
7506         (remquo_test): Likewise.
7507         (rint_test): Likewise.
7508         (rint_test_tonearest): Likewise.
7509         (rint_test_towardzero): Likewise.
7510         (rint_test_downward): Likewise.
7511         (rint_test_upward): Likewise.
7512         (round_test): Likewise.
7513         (scalb_test): Likewise.
7514         (scalbn_test): Likewise.
7515         (scalbln_test): Likewise.
7516         (signbit_test): Likewise.
7517         (sin_test): Likewise.
7518         (sin_test_tonearest): Likewise.
7519         (sin_test_towardzero): Likewise.
7520         (sin_test_downward): Likewise.
7521         (sin_test_upward): Likewise.
7522         (sincos_test): Likewise.
7523         (sinh_test): Likewise.
7524         (sinh_test_tonearest): Likewise.
7525         (sinh_test_towardzero): Likewise.
7526         (sinh_test_downward): Likewise.
7527         (sinh_test_upward): Likewise.
7528         (sqrt_test): Likewise.
7529         (tan_test): Likewise.
7530         (tan_test_tonearest): Likewise.
7531         (tan_test_towardzero): Likewise.
7532         (tan_test_downward): Likewise.
7533         (tan_test_upward): Likewise.
7534         (tanh_test): Likewise.
7535         (tgamma_test): Likewise.
7536         (trunc_test): Likewise.
7537         (y0_test): Likewise.
7538         (y1_test): Likewise.
7539         (yn_test): Likewise.
7540         (significand_test): Likewise.
7541
7542 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
7543
7544         [BZ #15381]
7545         * libio/genops.c (_IO_no_init): Initialize wide struct info.
7546
7547 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7548
7549         [BZ #14894]
7550         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
7551         __ppc_mdoio and __ppc_mdoom.
7552         * manual/platform.texi: Document new functions __ppc_yield,
7553         __ppc_mdoio and __ppc_mdoom.
7554
7555 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
7556
7557         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
7558         (main): Mention "tls" pseudo-hwcap is legacy.
7559         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
7560
7561 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
7562
7563         * math/gen-libm-test.pl (parse_args): Output only string of
7564         arguments as text for test name, not full call or descriptions of
7565         tests for extra outputs.
7566         (generate_testfile): Do not pass function name to parse_args.
7567         Generate this_func variable from START.
7568         * math/libm-test.inc (struct test_f_f_data): Rename test_name
7569         field to arg_str.
7570         (struct test_ff_f_data): Likewise.
7571         (test_ff_f_data_nexttoward): Likewise.
7572         (struct test_fi_f_data): Likewise.
7573         (struct test_fl_f_data): Likewise.
7574         (struct test_if_f_data): Likewise.
7575         (struct test_fff_f_data): Likewise.
7576         (struct test_c_f_data): Likewise.
7577         (struct test_f_f1_data): Likewise.  Remove field extra_name.
7578         (struct test_fF_f1_data): Likewise.
7579         (struct test_ffI_f1_data): Likewise.
7580         (struct test_c_c_data): Rename test_name field to arg_str.
7581         (struct test_cc_c_data): Likewise.
7582         (struct test_f_i_data): Likewise.
7583         (struct test_ff_i_data): Likewise.
7584         (struct test_f_l_data): Likewise.
7585         (struct test_f_L_data): Likewise.
7586         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
7587         and extra2_name.
7588         (COMMON_TEST_SETUP): New macro.
7589         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
7590         (COMMON_TEST_CLEANUP): Likewise.
7591         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
7592         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
7593         macros.
7594         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
7595         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
7596         macros.
7597         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
7598         (RUN_TEST_fff_f): Take argument string.  Call new setup and
7599         cleanup macros.
7600         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
7601         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
7602         macros.
7603         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
7604         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
7605         macros.
7606         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
7607         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
7608         cleanup macros.
7609         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
7610         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
7611         cleanup macros.
7612         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
7613         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
7614         cleanup macros.
7615         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
7616         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
7617         macros.
7618         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
7619         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
7620         macros.
7621         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
7622         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
7623         macros.
7624         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
7625         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
7626         cleanup macros.
7627         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
7628         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
7629         cleanup macros.
7630         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
7631         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
7632         macros.
7633         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
7634         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
7635         cleanup macros.
7636         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
7637         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
7638         macros.
7639         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
7640         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
7641         macros.
7642         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
7643         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
7644         cleanup macros.
7645         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
7646
7647 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
7648
7649         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
7650         to _sifields.sigfault.
7651         (si_addr_lsb): Define new macro.
7652         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
7653         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7654         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
7655
7656 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
7657
7658         [BZ #15441]
7659         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
7660         returns -1.
7661         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
7662         null return -1.
7663         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
7664         loading the domain.
7665
7666 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
7667
7668         * math/gen-libm-test.pl (parse_args): Do not include expected
7669         result in test name.
7670         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
7671         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7672         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7673         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
7674         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7675         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7676
7677 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
7678
7679         * benchtests/Makefile: Sort function entries.
7680
7681         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
7682         tanh, asinh, acosh, atanh.
7683         * benchtests/acos-inputs: New file.
7684         * benchtests/acosh-inputs: New file.
7685         * benchtests/asin-inputs: New file.
7686         * benchtests/asinh-inputs: New file.
7687         * benchtests/atanh-inputs: New file.
7688         * benchtests/cosh-inputs: New file.
7689         * benchtests/log-inputs: New file.
7690         * benchtests/sinh-inputs: New file.
7691         * benchtests/tanh-inputs: New file.
7692
7693 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
7694
7695         [BZ #15339]
7696         * posix/tst-getaddrinfo4.c: New test.
7697         * posix/Makefile (tests): Add it.
7698
7699 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7700
7701         [BZ #15339]
7702         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
7703         when no services were used.
7704         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
7705         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
7706
7707 2013-05-21  Andreas Schwab  <schwab@suse.de>
7708
7709         [BZ #15014]
7710         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
7711         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
7712         successful.
7713         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
7714         redundant variable declarations and reallocation of buffer when
7715         parsing as IPv6 address.  Always set NSS status when called from
7716         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
7717         buffer too small.  Correct computation of needed size.
7718         * nss/Makefile (tests): Add test-digits-dots.
7719         * nss/test-digits-dots.c: New test.
7720
7721 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7722
7723         * benchtests/Makefile: Remove instructions for adding
7724         benchmark tests.
7725         * benchtests/README: New file to explain how to execute and
7726         enhance the benchmark tests.
7727
7728 2013-05-21  Andreas Schwab  <schwab@suse.de>
7729
7730         [BZ #15493]
7731         * setjmp/Makefile (tests): Add tst-sigsetjmp.
7732         * setjmp/tst-sigsetjmp.c: New test.
7733
7734 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
7735
7736         * sysdeps/x86_64/memset.S (memset): New implementation.
7737         (__bzero): Likewise.
7738         (__memset_tail): New function.
7739
7740 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
7741
7742         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
7743         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
7744         __memcpy_sse2_unaligned ifunc selection.
7745         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
7746         Add memcpy-sse2-unaligned.S.
7747         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
7748         Add: __memcpy_sse2_unaligned.
7749
7750 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
7751
7752         [BZ #15490]
7753         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
7754         math_force_eval before restoring floating-point envrionment.
7755         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
7756         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
7757         Likewise.
7758         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
7759         <math_private.h>.
7760         (__nearbyintl): Use math_force_eval before restoring
7761         floating-point environment.
7762         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
7763
7764         * math/gen-libm-test.pl (special_functions): Remove.
7765         (parse_args): Don't handle TEST_extra.  Handle functions with no
7766         return value.
7767         * math/libm-test.inc (struct test_sincos_data): Replace with
7768         struct test_fFF_11_data.
7769         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
7770         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
7771         (sincos_test_data): Change element type to struct
7772         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
7773         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
7774         RUN_TEST_LOOP_sincos.
7775         * math/README.libm-test: Don't mention special handling of
7776         individual functions.
7777         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
7778         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7779         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7780         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
7781         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7783
7784         * math/gen-libm-test.pl (get_variable): Remove function.
7785         (parse_args): Don't show pointer parameters to call in test
7786         names.  Use "extra output N" in test names for extra outputs
7787         rather than naming variables.
7788
7789 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
7790
7791         [BZ #15488]
7792         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
7793         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
7794         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
7795         double tests.
7796         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
7797         disable.
7798         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
7799         check_long_double.
7800
7801         * math/gen-libm-test.pl (@tests): Remove variable.
7802         ($count): Likewise.
7803         (new_test): Remove function.
7804         (show_exceptions): New function.
7805         (special_functions): Use show_exceptions instead of new_test.
7806         (parse_args): Likewise.
7807         (generate_testfile): Pass only function name in generated call to
7808         print_max_error or print_complex_max_error.
7809         (get_ulps): Do not handle complex tests specially.
7810         (output_test): Rename to ...
7811         (get_all_ulps_for_test): ... this.  Return a string rather than
7812         printing to a file.  Require ulps to be present.
7813         (output_ulps): Generate arrays rather than #defines.
7814         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
7815         (struct ulp_data): New type.
7816         (BUILD_COMPLEX_ULP): Remove macro.
7817         (compare_ulp_data): New function.
7818         (find_ulps): Likewise.
7819         (find_test_ulps): Likewise.
7820         (find_function_ulps): Likewise.
7821         (find_complex_function_ulps): Likewise.
7822         (print_max_error): Determine allowed ulps using
7823         find_function_ulps.
7824         (print_complex_max_error): Determine allowed ulps using
7825         find_complex_function_ulps.
7826         (check_float_internal): Determine max ulps using find_test_ulps.
7827         (check_float): Do not take max_ulp parameter.  Update call to
7828         check_float_internal.
7829         (check_complex): Likewise.
7830         (check_int): Do not take max_ulp parameter.
7831         (check_long): Likewise.
7832         (check_bool): Likewise.
7833         (check_longlong): Likewise.
7834         (struct test_f_f_data): Remove max_ulp field.
7835         (struct test_ff_f_data): Likewise.
7836         (struct test_ff_f_data_nexttoward): Likewise.
7837         (struct test_fi_f_data): Likewise.
7838         (struct test_fl_f_data): Likewise.
7839         (struct test_if_f_data): Likewise.
7840         (struct test_fff_f_data): Likewise.
7841         (struct test_c_f_data): Likewise.
7842         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
7843         (struct test_fF_f1_data): Likewise.
7844         (struct test_ffI_f1_data): Likewise.
7845         (struct test_c_c_data): Remove max_ulp field.
7846         (struct test_cc_c_data): Likewise.
7847         (struct test_f_i_data): Likewise.
7848         (struct test_ff_i_data): Likewise.
7849         (struct test_f_l_data): Likewise.
7850         (struct test_f_L_data): Likewise.
7851         (struct test_sincos_data): Likewise.
7852         (RUN_TEST_f_f): Do not handle ulps.
7853         (RUN_TEST_LOOP_f_f): Likewise.
7854         (RUN_TEST_2_f): Likewise.
7855         (RUN_TEST_LOOP_2_f): Likewise.
7856         (RUN_TEST_fff_f): Likewise.
7857         (RUN_TEST_LOOP_fff_f): Likewise.
7858         (RUN_TEST_c_f): Likewise.
7859         (RUN_TEST_LOOP_c_f): Likewise.
7860         (RUN_TEST_f_f1): Likewise.
7861         (RUN_TEST_LOOP_f_f1): Likewise.
7862         (RUN_TEST_fF_f1): Likewise.
7863         (RUN_TEST_LOOP_fF_f1): Likewise.
7864         (RUN_TEST_fI_f1): Likewise.
7865         (RUN_TEST_LOOP_fI_f1): Likewise.
7866         (RUN_TEST_ffI_f1): Likewise.
7867         (RUN_TEST_LOOP_ffI_f1): Likewise.
7868         (RUN_TEST_c_c): Likewise.
7869         (RUN_TEST_LOOP_c_c): Likewise.
7870         (RUN_TEST_cc_c): Likewise.
7871         (RUN_TEST_LOOP_cc_c): Likewise.
7872         (RUN_TEST_f_i): Likewise.
7873         (RUN_TEST_LOOP_f_i): Likewise.
7874         (RUN_TEST_f_i_tg): Likewise.
7875         (RUN_TEST_LOOP_f_i_tg): Likewise.
7876         (RUN_TEST_ff_i_tg): Likewise.
7877         (RUN_TEST_LOOP_ff_i_tg): Likewise.
7878         (RUN_TEST_f_b): Likewise.
7879         (RUN_TEST_LOOP_f_b): Likewise.
7880         (RUN_TEST_f_b_tg): Likewise.
7881         (RUN_TEST_LOOP_f_b_tg): Likewise.
7882         (RUN_TEST_f_l): Likewise.
7883         (RUN_TEST_LOOP_f_l): Likewise.
7884         (RUN_TEST_f_L): Likewise.
7885         (RUN_TEST_LOOP_f_L): Likewise.
7886         (RUN_TEST_sincos): Likewise.
7887         (RUN_TEST_LOOP_sincos): Likewise.
7888
7889 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
7890
7891         [BZ #15480]
7892         [BZ #15485]
7893         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
7894         main case of finite arguments, set rounding mode to FE_TONEAREST
7895         and discard exceptions.
7896         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
7897         exceptions.
7898         (remainder_tonearest_test_data): New variable.
7899         (remainder_test_tonearest): New function.
7900         (remainder_towardzero_test_data): New variable.
7901         (remainder_test_towardzero): New function.
7902         (remainder_downward_test_data): New variable.
7903         (remainder_test_downward): New function.
7904         (remainder_upward_test_data): New variable.
7905         (remainder_test_upward): New function.
7906         (main): Call the new test functions.
7907
7908         * math/libm-test.inc (struct test_f_f1_data): Remove field
7909         extra_init.
7910         (struct test_fF_f1_data): Likewise.
7911         (struct test_ffI_f1_data): Likewise.
7912         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
7913         based on value of EXTRA_EXPECTED.
7914         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
7915         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
7916         EXTRA_VAR based on value of EXTRA_EXPECTED.
7917         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
7918         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
7919         EXTRA_VAR based on value of EXTRA_EXPECTED.
7920         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
7921         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
7922         EXTRA_VAR based on value of EXTRA_EXPECTED.
7923         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
7924         * math/gen-libm-test.pl (parse_args): Don't output initializers
7925         for extra output values.
7926
7927         * math/libm-test.inc (check_int): Expect result to be exactly
7928         equal to expected value and do not handle ulps.
7929         (check_long): Likewise.
7930         (check_longlong): Likewise.
7931
7932         * math/libm-test.inc (ceil_test_data): Test for "inexact"
7933         exceptions.
7934         (cimag_test_data): Likewise.
7935         (conj_test_data): Likewise.
7936         (copysign_test_data): Likewise.
7937         (cproj_test_data): Likewise.
7938         (creal_test_data): Likewise.
7939         (fabs_test_data): Likewise.
7940         (fdim_test_data): Likewise.
7941         (finite_test_data): Likewise.
7942         (floor_test_data): Likewise.
7943         (fmax_test_data): Likewise.
7944         (fmin_test_data): Likewise.
7945         (fmod_test_data): Likewise.
7946         (fpclassify_test_data): Likewise.
7947         (frexp_test_data): Likewise.
7948         (ilogb_test_data): Likewise.
7949         (isfinite_test_data): Likewise.
7950         (isgreater_test_data): Likewise.
7951         (isgreaterequal_test_data): Likewise.
7952         (isinf_test_data): Likewise.
7953         (isless_test_data): Likewise.
7954         (islessequal_test_data): Likewise.
7955         (islessgreater_test_data): Likewise.
7956         (isnan_test_data): Likewise.
7957         (isnormal_test_data): Likewise.
7958         (issignaling_test_data): Likewise.
7959         (isunordered_test_data): Likewise.
7960         (ldexp_test_data): Likewise.
7961         (lrint_test_data): Likewise.
7962         (lrint_test_data) [TEST_FLOAT]: Disable one test.
7963         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
7964         (lrint_tonearest_test_data): Test for "inexact" exceptions.
7965         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
7966         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
7967         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
7968         test input.
7969         (lrint_towardzero_test_data): Test for "inexact" exceptions.
7970         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
7971         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
7972         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
7973         that test input.
7974         (lrint_downward_test_data): Test for "inexact" exceptions.
7975         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
7976         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
7977         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
7978         test input.
7979         (lrint_upward_test_data): Test for "inexact" exceptions.
7980         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
7981         test input.
7982         (llrint_test_data): Test for "inexact" exceptions.
7983         (llrint_test_data) [TEST_FLOAT]: Disable one test.
7984         (llrint_tonearest_test_data): Test for "inexact" exceptions.
7985         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
7986         (llrint_towardzero_test_data): Test for "inexact" exceptions.
7987         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
7988         (llrint_downward_test_data): Test for "inexact" exceptions.
7989         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
7990         (llrint_upward_test_data): Test for "inexact" exceptions.
7991         (logb_test_data): Likewise.
7992         (logb_downward_test_data): Likewise.
7993         (nextafter_test_data): Likewise.
7994         (nexttoward_test_data): Likewise.
7995         (remainder_test_data): Likewise.
7996         (remquo_test_data): Likewise.
7997         (scalbn_test_data): Likewise.
7998         (scalbln_test_data): Likewise.
7999         (signbit_test_data): Likewise.
8000         (sqrt_test_data): Likewise.
8001         (significand_test_data): Likewise.
8002
8003 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
8004
8005         [BZ #15424]
8006         * benchtests/bench-modf.c (struct args): Mark arg0 as
8007         volatile.
8008         * scripts/bench.pl: Mark members of struct args as volatile.
8009
8010 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8011
8012         [BZ # 15497]
8013         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
8014         negative infinity on POWER6 or lower.
8015         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
8016
8017 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
8018
8019         [BZ #15442]
8020         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
8021         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
8022         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
8023         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
8024         (_FP_SETQNAN): New macro.
8025         (_FP_SETQNAN_SEMIRAW): Likewise.
8026         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
8027         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
8028         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
8029         (FP_EXTEND): Use _FP_FRAC_SNANP.
8030         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
8031         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
8032         into account.
8033         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
8034         New macro.
8035         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
8036         Likewise.
8037
8038 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8039
8040         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
8041         with DIVIDE_BY_ZERO_EXCEPTION.
8042         (gamma_test_data): Likewise.
8043         (lgamma_test_data): Likewise.
8044         (log_test_data): Likewise.
8045         (log10_test_data): Likewise.
8046         (log2_test_data): Likewise.
8047         (tgamma_test_data): Likewise.
8048
8049         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
8050         (acos_test_tonearest): Likewise.
8051         (acos_test_towardzero): Likewise.
8052         (acos_test_downward): Likewise.
8053         (acos_test_upward): Likewise.
8054         (acosh_test): Likewise.
8055         (asin_test): Likewise.
8056         (asin_test_tonearest): Likewise.
8057         (asin_test_towardzero): Likewise.
8058         (asin_test_downward): Likewise.
8059         (asin_test_upward): Likewise.
8060         (asinh_test): Likewise.
8061         (atan_test): Likewise.
8062         (atanh_test): Likewise.
8063         (atan2_test): Likewise.
8064         (cabs_test): Likewise.
8065         (cacos_test): Likewise.
8066         (cacosh_test): Likewise.
8067         (casin_test): Likewise.
8068         (casinh_test): Likewise.
8069         (catan_test): Likewise.
8070         (catanh_test): Likewise.
8071         (cbrt_test): Likewise.
8072         (ccos_test): Likewise.
8073         (ccosh_test): Likewise.
8074         (cexp_test): Likewise.
8075         (clog_test): Likewise.
8076         (clog10_test): Likewise.
8077         (cos_test): Likewise.
8078         (cos_test_tonearest): Likewise.
8079         (cos_test_towardzero): Likewise.
8080         (cos_test_downward): Likewise.
8081         (cos_test_upward): Likewise.
8082         (cosh_test): Likewise.
8083         (cosh_test_tonearest): Likewise.
8084         (cosh_test_towardzero): Likewise.
8085         (cosh_test_downward): Likewise.
8086         (cosh_test_upward): Likewise.
8087         (cpow_test): Likewise.
8088         (csin_test): Likewise.
8089         (csinh_test): Likewise.
8090         (csqrt_test): Likewise.
8091         (ctan_test): Likewise.
8092         (ctan_test_tonearest): Likewise.
8093         (ctan_test_towardzero): Likewise.
8094         (ctan_test_downward): Likewise.
8095         (ctan_test_upward): Likewise.
8096         (ctanh_test): Likewise.
8097         (ctanh_test_tonearest): Likewise.
8098         (ctanh_test_towardzero): Likewise.
8099         (ctanh_test_downward): Likewise.
8100         (ctanh_test_upward): Likewise.
8101         (erf_test): Likewise.
8102         (erfc_test): Likewise.
8103         (exp_test): Likewise.
8104         (exp_test_tonearest): Likewise.
8105         (exp_test_towardzero): Likewise.
8106         (exp_test_downward): Likewise.
8107         (exp_test_upward): Likewise.
8108         (exp10_test): Likewise.
8109         (exp2_test): Likewise.
8110         (expm1_test): Likewise.
8111         (fmod_test): Likewise.
8112         (gamma_test): Likewise.
8113         (hypot_test): Likewise.
8114         (j0_test): Likewise.
8115         (j1_test): Likewise.
8116         (jn_test): Likewise.
8117         (lgamma_test): Likewise.
8118         (log_test): Likewise.
8119         (log10_test): Likewise.
8120         (log1p_test): Likewise.
8121         (log2_test): Likewise.
8122         (logb_test_downward): Likewise.
8123         (pow_test): Likewise.
8124         (pow_test_tonearest): Likewise.
8125         (pow_test_towardzero): Likewise.
8126         (pow_test_downward): Likewise.
8127         (pow_test_upward): Likewise.
8128         (remainder_test): Likewise.
8129         (remquo_test): Likewise.
8130         (sin_test): Likewise.
8131         (sin_test_tonearest): Likewise.
8132         (sin_test_towardzero): Likewise.
8133         (sin_test_downward): Likewise.
8134         (sin_test_upward): Likewise.
8135         (sincos_test): Likewise.
8136         (sinh_test): Likewise.
8137         (sinh_test_tonearest): Likewise.
8138         (sinh_test_towardzero): Likewise.
8139         (sinh_test_downward): Likewise.
8140         (sinh_test_upward): Likewise.
8141         (sqrt_test): Likewise.
8142         (tan_test): Likewise.
8143         (tan_test_tonearest): Likewise.
8144         (tan_test_towardzero): Likewise.
8145         (tan_test_downward): Likewise.
8146         (tan_test_upward): Likewise.
8147         (tanh_test): Likewise.
8148         (tgamma_test): Likewise.
8149         (y0_test): Likewise.
8150         (y1_test): Likewise.
8151         (yn_test): Likewise.
8152
8153         * math/gen-libm-test.pl (adjust_arg): Remove function.
8154         (special_function): Remove argument $in_func.  Only handle
8155         generating output for tables of tests, not inside functions.
8156         (parse_args): Likewise.
8157         (generate_testfile): Remove variable $in_func.  Update call to
8158         parse_args.
8159         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
8160         (MINUS_ZERO_INIT): Rename macro to minus_zero.
8161         (PLUS_INFTY_INIT): Rename macro to plus_infty.
8162         (MINUS_INFTY_INIT): Rename macro to minus_infty.
8163         (QNAN_VALUE_INIT): Rename macro to qnan_value.
8164         (MAX_VALUE_INIT): Rename macro to max_value.
8165         (MIN_VALUE_INIT): Rename macro to min_value.
8166         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
8167         (plus_zero): Remove variable.
8168         (minus_zero): Likewise.
8169         (plus_infty): Likewise.
8170         (minus_infty): Likewise.
8171         (qnan_value): Likewise.
8172         (max_value): Likewise.
8173         (min_value): Likewise.
8174         (min_subnorm_value): Likewise.
8175
8176 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8177
8178         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
8179         uint64_t or uint32_t usage.
8180         * crypt/sha256-block.c: Likewise.
8181         * crypt/sha256-crypt.c: Likewise.
8182         * crypt/sha256.c: Likewise.
8183         * crypt/sha512-block.c: Likewise.
8184         * crypt/sha512-crypt.c: Likewise.
8185         * crypt/sha512.c: Likewise.
8186         * debug/backtrace-tst.c: Likewise.
8187         * debug/pcprofiledump.c: Likewise.
8188         * elf/cache.c: Likewise.
8189         * elf/dl-cache.c: Likewise.
8190         * elf/dl-misc.c: Likewise.
8191         * elf/dl-profile.c: Likewise.
8192         * elf/dl-support.c: Likewise.
8193         * elf/ldconfig.c: Likewise.
8194         * elf/sprof.c: Likewise.
8195         * iconv/dummy-repertoire.c: Likewise.
8196         * iconv/iconv_charmap.c: Likewise.
8197         * iconv/skeleton.c: Likewise.
8198         * iconvdata/8bit-generic.c: Likewise.
8199         * iconvdata/cp737.h: Likewise.
8200         * iconvdata/cp775.h: Likewise.
8201         * iconvdata/ibm1008.h: Likewise.
8202         * iconvdata/ibm1025.h: Likewise.
8203         * iconvdata/ibm1046.h: Likewise.
8204         * iconvdata/ibm1097.h: Likewise.
8205         * iconvdata/ibm1112.h: Likewise.
8206         * iconvdata/ibm1122.h: Likewise.
8207         * iconvdata/ibm1123.h: Likewise.
8208         * iconvdata/ibm1124.h: Likewise.
8209         * iconvdata/ibm1129.h: Likewise.
8210         * iconvdata/ibm1130.h: Likewise.
8211         * iconvdata/ibm1132.h: Likewise.
8212         * iconvdata/ibm1133.h: Likewise.
8213         * iconvdata/ibm1137.h: Likewise.
8214         * iconvdata/ibm1140.h: Likewise.
8215         * iconvdata/ibm1141.h: Likewise.
8216         * iconvdata/ibm1142.h: Likewise.
8217         * iconvdata/ibm1143.h: Likewise.
8218         * iconvdata/ibm1144.h: Likewise.
8219         * iconvdata/ibm1145.h: Likewise.
8220         * iconvdata/ibm1146.h: Likewise.
8221         * iconvdata/ibm1147.h: Likewise.
8222         * iconvdata/ibm1148.h: Likewise.
8223         * iconvdata/ibm1149.h: Likewise.
8224         * iconvdata/ibm1153.h: Likewise.
8225         * iconvdata/ibm1154.h: Likewise.
8226         * iconvdata/ibm1155.h: Likewise.
8227         * iconvdata/ibm1156.h: Likewise.
8228         * iconvdata/ibm1157.h: Likewise.
8229         * iconvdata/ibm1158.h: Likewise.
8230         * iconvdata/ibm1160.h: Likewise.
8231         * iconvdata/ibm1161.h: Likewise.
8232         * iconvdata/ibm1162.h: Likewise.
8233         * iconvdata/ibm1163.h: Likewise.
8234         * iconvdata/ibm1164.h: Likewise.
8235         * iconvdata/ibm1166.h: Likewise.
8236         * iconvdata/ibm1167.h: Likewise.
8237         * iconvdata/ibm12712.h: Likewise.
8238         * iconvdata/ibm1390.h: Likewise.
8239         * iconvdata/ibm1399.h: Likewise.
8240         * iconvdata/ibm16804.h: Likewise.
8241         * iconvdata/ibm4517.h: Likewise.
8242         * iconvdata/ibm4899.h: Likewise.
8243         * iconvdata/ibm4909.h: Likewise.
8244         * iconvdata/ibm4971.h: Likewise.
8245         * iconvdata/ibm5347.h: Likewise.
8246         * iconvdata/ibm803.h: Likewise.
8247         * iconvdata/ibm856.h: Likewise.
8248         * iconvdata/ibm901.h: Likewise.
8249         * iconvdata/ibm902.h: Likewise.
8250         * iconvdata/ibm9030.h: Likewise.
8251         * iconvdata/ibm9066.h: Likewise.
8252         * iconvdata/ibm921.h: Likewise.
8253         * iconvdata/ibm922.h: Likewise.
8254         * iconvdata/ibm9448.h: Likewise.
8255         * iconvdata/isiri-3342.h: Likewise.
8256         * iconvdata/jis0201.h: Likewise.
8257         * include/link.h: Likewise.
8258         * include/netdb.h: Likewise.
8259         * inet/check_native.c: Likewise.
8260         * inet/check_pf.c: Likewise.
8261         * inet/getipv4sourcefilter.c: Likewise.
8262         * inet/getnameinfo.c: Likewise.
8263         * inet/getsourcefilter.c: Likewise.
8264         * inet/htonl.c: Likewise.
8265         * inet/setipv4sourcefilter.c: Likewise.
8266         * inet/setsourcefilter.c: Likewise.
8267         * inet/test-inet6_opt.c: Likewise.
8268         * inet/tst-network.c: Likewise.
8269         * locale/C-collate.c: Likewise.
8270         * locale/C-ctype.c: Likewise.
8271         * locale/C-time.c: Likewise.
8272         * locale/C-translit.h: Likewise.
8273         * locale/loadarchive.c: Likewise.
8274         * locale/programs/3level.h: Likewise.
8275         * locale/programs/charmap.c: Likewise.
8276         * locale/programs/charmap.h: Likewise.
8277         * locale/programs/ld-address.c: Likewise.
8278         * locale/programs/ld-collate.c: Likewise.
8279         * locale/programs/ld-ctype.c: Likewise.
8280         * locale/programs/ld-identification.c: Likewise.
8281         * locale/programs/ld-measurement.c: Likewise.
8282         * locale/programs/ld-messages.c: Likewise.
8283         * locale/programs/ld-monetary.c: Likewise.
8284         * locale/programs/ld-name.c: Likewise.
8285         * locale/programs/ld-numeric.c: Likewise.
8286         * locale/programs/ld-paper.c: Likewise.
8287         * locale/programs/ld-telephone.c: Likewise.
8288         * locale/programs/ld-time.c: Likewise.
8289         * locale/programs/linereader.c: Likewise.
8290         * locale/programs/locale.c: Likewise.
8291         * locale/programs/locarchive.c: Likewise.
8292         * locale/programs/locfile.h: Likewise.
8293         * locale/programs/repertoire.c: Likewise.
8294         * locale/programs/simple-hash.c: Likewise.
8295         * locale/programs/simple-hash.h: Likewise.
8296         * malloc/memusage.c: Likewise.
8297         * malloc/memusagestat.c: Likewise.
8298         * nis/nis_defaults.c: Likewise.
8299         * nis/nis_hash.c: Likewise.
8300         * nis/nis_print.c: Likewise.
8301         * nis/nis_xdr.c: Likewise.
8302         * nscd/connections.c: Likewise.
8303         * nscd/hstcache.c: Likewise.
8304         * nscd/nscd_gethst_r.c: Likewise.
8305         * nscd/nscd_getserv_r.c: Likewise.
8306         * nscd/nscd_helper.c: Likewise.
8307         * nscd/servicescache.c: Likewise.
8308         * nss/makedb.c: Likewise.
8309         * nss/nss_db/db-XXX.c: Likewise.
8310         * nss/nss_db/db-initgroups.c: Likewise.
8311         * nss/nss_db/db-netgrp.c: Likewise.
8312         * nss/nss_files/files-network.c: Likewise.
8313         * nss/nss_files/files-parse.c: Likewise.
8314         * posix/bug-regex5.c: Likewise.
8315         * posix/fnmatch_loop.c: Likewise.
8316         * posix/regcomp.c: Likewise.
8317         * posix/regexec.c: Likewise.
8318         * posix/tst-rfc3484-2.c: Likewise.
8319         * posix/tst-rfc3484-3.c: Likewise.
8320         * posix/tst-rfc3484.c: Likewise.
8321         * resolv/nss_dns/dns-canon.c: Likewise.
8322         * resolv/nss_dns/dns-network.c: Likewise.
8323         * resolv/res_init.c: Likewise.
8324         * resolv/res_mkquery.c: Likewise.
8325         * resolv/tst-aton.c: Likewise.
8326         * stdlib/cxa_atexit.c: Likewise.
8327         * stdlib/cxa_finalize.c: Likewise.
8328         * stdlib/gen-fpioconst.c: Likewise.
8329         * stdlib/strtol_l.c: Likewise.
8330         * string/tst-endian.c: Likewise.
8331         * sunrpc/auth_des.c: Likewise.
8332         * sunrpc/clnt_udp.c: Likewise.
8333         * sunrpc/rtime.c: Likewise.
8334         * sunrpc/svcauth_des.c: Likewise.
8335         * sunrpc/xdr.c: Likewise.
8336         * sunrpc/xdr_intXX_t.c: Likewise.
8337         * sunrpc/xdr_rec.c: Likewise.
8338         * sysdeps/generic/ldconfig.h: Likewise.
8339         * sysdeps/generic/ldsodefs.h: Likewise.
8340         * sysdeps/generic/memusage.h: Likewise.
8341         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
8342         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
8343         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
8344         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
8345         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8346         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8347         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
8348         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
8349         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8350         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
8351         * sysdeps/posix/getaddrinfo.c: Likewise.
8352         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8353         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8354         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8355         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8356         * sysdeps/powerpc/test-gettimebase.c: Likewise.
8357         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
8358         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
8359         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
8360         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
8361         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
8362         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
8363         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
8364         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
8365         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
8366         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
8367         * sysdeps/x86_64/dl-tls.h: Likewise.
8368         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
8369         * time/alt_digit.c: Likewise.
8370         * time/era.c: Likewise.
8371         * wcsmbs/tst-c16c32-1.c: Likewise.
8372
8373 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8374
8375         * math/libm-test.inc (struct test_sincos_data): New type.
8376         (RUN_TEST_LOOP_sincos): New macro.
8377         (sincos_test_data): New variable.
8378         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
8379
8380 2013-05-16  Richard Henderson  <rth@redhat.com>
8381
8382         * math/atest-exp2.c (LIMB64): New macro.
8383         (CONSTSZ): New macro.
8384         (mp_exp1, mp_exp_m1, mp_log2): New variables.
8385         (hexdig): Move ...
8386         (print_mpn_fp): ... to function scope.
8387         (read_mpn_hex): Remove.
8388         (get_log2): Remove.
8389         (exp2_mpn): Use mp_log2.
8390         (main): Use mp_exp1.
8391
8392 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8393
8394         * math/libm-test.inc: Remove comment about not testing "inexact"
8395         exceptions.
8396         (INEXACT_EXCEPTION): New macro.
8397         (NO_INEXACT_EXCEPTION): Likewise.
8398         (INVALID_EXCEPTION_OK): Update value.
8399         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8400         (OVERFLOW_EXCEPTION_OK): Likewise.
8401         (UNDERFLOW_EXCEPTION_OK): Likewise.
8402         (IGNORE_ZERO_INF_SIGN): Likewise.
8403         (ERRNO_UNCHANGED): Likewise.
8404         (ERRNO_EDOM): Likewise.
8405         (ERRNO_ERANGE): Likewise.
8406         (test_exceptions): Handle testing "inexact" exceptions.
8407         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
8408         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
8409         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
8410         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
8411         INEXACT_EXCEPTION.
8412         (rint_towardzero_test_data): Likewise.
8413         (rint_downward_test_data): Likewise.
8414         (rint_upward_test_data): Likewise.
8415
8416         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
8417         with OVERFLOW_EXCEPTION.
8418         (exp10_test_data): Likewise.
8419         (exp2_test_data): Likewise.
8420         (expm1_test_data): Likewise.
8421         (lgamma_test_data): Likewise.
8422         (pow_test_data): Likewise.
8423         (tgamma_test_data): Likewise.
8424         (yn_test_data): Remove duplicate test of overflow.
8425
8426         * math/libm-test.inc (struct test_cc_c_data): New type.
8427         (RUN_TEST_LOOP_cc_c): New macro.
8428         (cpow_test_data): New variable.
8429         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
8430
8431         * math/libm-test.inc (struct test_f_L_data): New type.
8432         (RUN_TEST_LOOP_f_L): New macro.
8433         (llrint_test_data): New variable.
8434         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
8435         (llrint_tonearest_test_data): New variable.
8436         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
8437         (llrint_towardzero_test_data): New variable.
8438         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
8439         (llrint_downward_test_data): New variable.
8440         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
8441         (llrint_upward_test_data): New variable.
8442         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
8443         (llround_test_data): New variable.
8444         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
8445
8446 2013-05-13  Peter Collingbourne  <pcc@google.com>
8447
8448         * math/atest-exp2.c (get_log2): Remove const attribute.
8449
8450 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
8451
8452         * math/libm-test.inc (struct test_f_l_data): New type.
8453         (RUN_TEST_LOOP_f_l): New macro.
8454         (lrint_test_data): New variable.
8455         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
8456         (lrint_tonearest_test_data): New variable.
8457         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
8458         (lrint_towardzero_test_data): New variable.
8459         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
8460         (lrint_downward_test_data): New variable.
8461         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
8462         (lrint_upward_test_data): New variable.
8463         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
8464         (lround_test_data): New variable.
8465         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
8466
8467 2013-05-15  Peter Collingbourne  <pcc@google.com>
8468
8469         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
8470         (EXTRACT_WORDS64) Use where appropriate.
8471         (INSERT_WORDS64) Likewise.
8472
8473         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
8474         constraints with x constraints.
8475         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
8476
8477         * malloc/obstack.c (_obstack_compat): Add initializer.
8478
8479 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8480
8481         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
8482         si_trapno and add si_addr_lsb to _sifields.sigfault.
8483         (si_trapno): Remove macro.
8484         (si_addr_lsb): Define new macro.
8485         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
8486
8487 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
8488
8489         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
8490         instead of TEST_f_l.
8491         (llrint_test_tonearest): Likewise.
8492         (llrint_test_towardzero): Likewise.
8493         (llrint_test_downward): Likewise.
8494         (llrint_test_upward): Likewise.
8495         (llround_test): Likewise.
8496
8497         * math/libm-test.inc (struct test_f_i_data): Add comment.
8498         (RUN_TEST_LOOP_f_b): New macro.
8499         (RUN_TEST_LOOP_f_b_tg): Likewise.
8500         (finite_test_data): New variable.
8501         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
8502         (isfinite_test_data): New variable.
8503         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8504         (isinf_test_data): New variable.
8505         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8506         (isnan_test_data): New variable.
8507         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8508         (isnormal_test_data): New variable.
8509         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8510         (issignaling_test_data): New variable.
8511         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8512         (signbit_test_data): New variable.
8513         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8514
8515         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
8516         with INVALID_EXCEPTION.
8517         (acosh_test_data): Likewise.
8518         (asin_test_data): Likewise.
8519         (atanh_test_data): Likewise.
8520         (fmod_test_data): Likewise.
8521         (log_test_data): Likewise.
8522         (log10_test_data): Likewise.
8523         (log2_test_data): Likewise.
8524         (pow_test_data): Likewise.
8525         (sqrt_test_data): Likewise.
8526         (y0_test_data): Likewise.
8527         (y1_test_data): Likewise.
8528         (yn_test_data): Likewise.
8529
8530         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
8531         function contents.
8532
8533         * math/libm-test.inc (struct test_ff_i_data): New type.
8534         (RUN_TEST_LOOP_ff_i_tg): New macro.
8535         (isgreater_test_data): New variable.
8536         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8537         (isgreaterequal_test_data): New variable.
8538         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8539         (isless_test_data): New variable.
8540         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8541         (islessequal_test_data): New variable.
8542         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8543         (islessgreater_test_data): New variable.
8544         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8545         (isunordered_test_data): New variable.
8546         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8547
8548 2013-05-14  David S. Miller  <davem@davemloft.net>
8549
8550         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8551
8552 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
8553
8554         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
8555
8556         * math/libm-test.inc (struct test_fF_f1_data): Change type of
8557         extra_test to int.
8558         (struct test_f_i_data): Change type of max_ulp to int.
8559
8560         * math/libm-test.inc (test_ffI_f1_data): New type.
8561         (RUN_TEST_LOOP_ffI_f1): New macro.
8562         (remquo_test_data): New variable.
8563         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
8564
8565         * setjmp/tst-setjmp-fp.c: New file.
8566         * setjmp/Makefile (tests): Add tst-setjmp-fp.
8567         (link-libm): New variable.
8568         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
8569
8570         * math/libm-test.inc (struct test_f_i_data): New type.
8571         (RUN_TEST_LOOP_f_i): New macro.
8572         (RUN_TEST_LOOP_f_i_tg): Likewise.
8573         (fpclassify_test_data): New variable.
8574         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
8575         (ilogb_test_data): New variable.
8576         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
8577
8578         * math/libm-test.inc (scalbln_test): Correct function name in END
8579         call.
8580
8581         * math/libm-test.inc (struct test_f_f1_data): Add comment.
8582         (RUN_TEST_LOOP_fI_f1): New macro.
8583         (frexp_test_data): New variable.
8584         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
8585
8586         * math/libm-test.inc (struct test_fF_f1_data): New type.
8587         (RUN_TEST_LOOP_fF_f1): New macro.
8588         (modf_test_data): New variable.
8589         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
8590
8591         * math/libm-test.inc (struct test_f_f1_data): New type.
8592         (RUN_TEST_LOOP_f_f1): New macro.
8593         (gamma_test_data): New variable.
8594         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
8595         (lgamma_test_data): New variable.
8596         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
8597
8598 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
8599
8600         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
8601         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
8602         (main): Comment "tls" pseudo-hwcap.
8603
8604 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
8605
8606         * math/libm-test.inc (struct test_fl_f_data): New type.
8607         (RUN_TEST_LOOP_fl_f): New variable.
8608         (scalbln_test_data): New variable.
8609         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
8610
8611         * math/libm-test.inc (struct test_fi_f_data): New type.
8612         (RUN_TEST_LOOP_fi_f): New macro.
8613         (ldexp_test_data): New variable.
8614         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
8615         (scalbn_test_data): New variable.
8616         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
8617
8618         * math/libm-test.inc (struct test_c_f_data): New type.
8619         (RUN_TEST_LOOP_c_f): New macro.
8620         (cabs_test_data): New variable.
8621         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
8622         (carg_test_data): New variable.
8623         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
8624         (cimag_test_data): New variable.
8625         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
8626         (creal_test_data): New variable.
8627         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
8628
8629         * math/libm-test.inc (struct test_if_f_data): New type.
8630         (RUN_TEST_LOOP_if_f): New macro.
8631         (jn_test_data): New variable.
8632         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
8633         (yn_test_data): New variable.
8634         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
8635
8636         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
8637
8638 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8639
8640         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
8641         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
8642
8643 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
8644
8645         * benchtests/Makefile (CPPFLAGS-nonlib): Add
8646         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
8647         (bench-deps): Add bench-timing.h.
8648         * benchtests-bench-skeleton.c: Include bench-timing.h.
8649         (main): Use TIMING_* macros instead of clock_gettime.
8650         * benchtests/bench-timing.h: New file.
8651
8652         [BZ #14582]
8653         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
8654         Renamed from _LIB_VERSION.
8655         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
8656
8657 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
8658
8659         * math/libm-test.inc (struct test_fff_f_data): New type.
8660         (RUN_TEST_LOOP_fff_f): New macro.
8661         (fma_test_data): New variable.
8662         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
8663         (fma_towardzero_test_data): New variable.
8664         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
8665         (fma_downward_test_data): New variable.
8666         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
8667         (fma_upward_test_data): New variable.
8668         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
8669
8670         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
8671         (struct test_c_c_data): New type.
8672         (RUN_TEST_LOOP_c_c): New macro.
8673         (cacos_test_data): New variable.
8674         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
8675         (cacosh_test_data): New variable.
8676         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
8677         (casin_test_data): New variable.
8678         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
8679         (casinh_test_data): New variable.
8680         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
8681         (catan_test_data): New variable.
8682         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
8683         (catanh_test_data): New variable.
8684         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
8685         (ccos_test_data): New variable.
8686         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
8687         (ccosh_test_data): New variable.
8688         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
8689         (cexp_test_data): New variable.
8690         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
8691         (clog_test_data): New variable.
8692         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
8693         (clog10_test_data): New variable.
8694         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
8695         (conj_test_data): New variable.
8696         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
8697         (cproj_test_data): New variable.
8698         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
8699         (csin_test_data): New variable.
8700         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
8701         (csinh_test_data): New variable.
8702         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
8703         (csqrt_test_data): New variable.
8704         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
8705         (ctan_test_data): New variable.
8706         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
8707         (ctan_tonearest_test_data): New variable.
8708         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
8709         (ctan_towardzero_test_data): New variable.
8710         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
8711         (ctan_downward_test_data): New variable.
8712         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
8713         (ctan_upward_test_data): New variable.
8714         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
8715         (ctanh_test_data): New variable.
8716         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
8717         (ctanh_tonearest_test_data): New variable.
8718         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
8719         (ctanh_towardzero_test_data): New variable.
8720         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
8721         (ctanh_downward_test_data): New variable.
8722         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
8723         (ctanh_upward_test_data): New variable.
8724         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
8725         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
8726         of BUILD_COMPLEX.
8727
8728         * math/libm-test.inc (struct test_ff_f_data): New type.
8729         (struct test_ff_f_data_nexttoward): Likewise.
8730         (RUN_TEST_LOOP_2_f): New macro.
8731         (RUN_TEST_LOOP_ff_f): Likewise.
8732         (atan2_test_data): New variable.
8733         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
8734         (copysign_test_data): New variable.
8735         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
8736         (fdim_test_data): New variable.
8737         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
8738         (fmax_test_data): New variable.
8739         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
8740         (fmin_test_data): New variable.
8741         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
8742         (fmod_test_data): New variable.
8743         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
8744         (hypot_test_data): New variable.
8745         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
8746         (nextafter_test_data): New variable.
8747         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
8748         (nexttoward_test_data): New variable.
8749         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
8750         (pow_test_data): New variable.
8751         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
8752         (pow_tonearest_test_data): New variable.
8753         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
8754         (pow_towardzero_test_data): New variable.
8755         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
8756         (pow_downward_test_data): New variable.
8757         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
8758         (pow_upward_test_data): New variable.
8759         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
8760         (remainder_test_data): New variable.
8761         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
8762         (scalb_test_data): New variable.
8763         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
8764         * sysdeps/i386/fpu/libm-test-ulps: Update.
8765
8766 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
8767
8768         * math/libm-test.inc (fma_test): Use max_value instead of local
8769         variable fltmax.
8770         (nextafter_test): Likewise.
8771
8772         * math/libm-test.inc (acos_towardzero_test_data): New variable.
8773         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8774         (acos_downward_test_data): New variable.
8775         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8776         (acos_upward_test_data): New variable.
8777         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8778         (acosh_test_data): New variable.
8779         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
8780         (asin_test_data): New variable.
8781         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
8782         (asin_tonearest_test_data): New variable.
8783         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8784         (asin_towardzero_test_data): New variable.
8785         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8786         (asin_downward_test_data): New variable.
8787         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8788         (asin_upward_test_data): New variable.
8789         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8790         (asinh_test_data): New variable.
8791         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
8792         (atan_test_data): New variable.
8793         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
8794         (atanh_test_data): New variable.
8795         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
8796         (cbrt_test_data): New variable.
8797         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
8798         (ceil_test_data): New variable.
8799         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
8800         (cos_test_data): New variable.
8801         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
8802         (cos_tonearest_test_data): New variable.
8803         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8804         (cos_towardzero_test_data): New variable.
8805         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8806         (cos_downward_test_data): New variable.
8807         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8808         (cos_upward_test_data): New variable.
8809         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8810         (cosh_test_data): New variable.
8811         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
8812         (cosh_tonearest_test_data): New variable.
8813         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8814         (cosh_towardzero_test_data): New variable.
8815         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8816         (cosh_downward_test_data): New variable.
8817         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8818         (cosh_upward_test_data): New variable.
8819         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8820         (erf_test_data): New variable.
8821         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
8822         (erfc_test_data): New variable.
8823         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
8824         (exp_test_data): New variable.
8825         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
8826         (exp_tonearest_test_data): New variable.
8827         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8828         (exp_towardzero_test_data): New variable.
8829         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8830         (exp_downward_test_data): New variable.
8831         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8832         (exp_upward_test_data): New variable.
8833         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8834         (exp10_test_data): New variable.
8835         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
8836         (exp2_test_data): New variable.
8837         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
8838         (expm1_test_data): New variable.
8839         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
8840         (fabs_test_data): New variable.
8841         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
8842         (floor_test_data): New variable.
8843         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
8844         (j0_test_data): New variable.
8845         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
8846         (j1_test_data): New variable.
8847         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
8848         (log_test_data): New variable.
8849         (log_test): Run tests with RUN_TEST_LOOP_f_f.
8850         (log10_test_data): New variable.
8851         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
8852         (log1p_test_data): New variable.
8853         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
8854         (log2_test_data): New variable.
8855         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
8856         (logb_test_data): New variable.
8857         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
8858         (logb_downward_test_data): New variable.
8859         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8860         (nearbyint_test_data): New variable.
8861         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
8862         (rint_test_data): New variable.
8863         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
8864         (rint_tonearest_test_data): New variable.
8865         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8866         (rint_towardzero_test_data): New variable.
8867         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8868         (rint_downward_test_data): New variable.
8869         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8870         (rint_upward_test_data): New variable.
8871         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8872         (round_test_data): New variable.
8873         (round_test): Run tests with RUN_TEST_LOOP_f_f.
8874         (sin_test_data): New variable.
8875         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
8876         (sin_tonearest_test_data): New variable.
8877         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8878         (sin_towardzero_test_data): New variable.
8879         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8880         (sin_downward_test_data): New variable.
8881         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8882         (sin_upward_test_data): New variable.
8883         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8884         (sinh_test_data): New variable.
8885         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
8886         (sinh_tonearest_test_data): New variable.
8887         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8888         (sinh_towardzero_test_data): New variable.
8889         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8890         (sinh_downward_test_data): New variable.
8891         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8892         (sinh_upward_test_data): New variable.
8893         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8894         (sqrt_test_data): New variable.
8895         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
8896         (tan_test_data): New variable.
8897         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
8898         (tan_tonearest_test_data): New variable.
8899         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8900         (tan_towardzero_test_data): New variable.
8901         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8902         (tan_downward_test_data): New variable.
8903         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8904         (tan_upward_test_data): New variable.
8905         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8906         (tanh_test_data): New variable.
8907         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
8908         (tgamma_test_data): New variable.
8909         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
8910         (trunc_test_data): New variable.
8911         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
8912         (y0_test_data): New variable.
8913         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
8914         (y1_test_data): New variable.
8915         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
8916         (significand_test_data): New variable.
8917         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
8918
8919 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
8920
8921         [BZ #12387]
8922         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
8923
8924 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8925
8926         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
8927
8928 2013-05-10  Andreas Jaeger  <aj@suse.de>
8929
8930         [BZ #15448]
8931         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
8932         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
8933
8934 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
8935
8936         * math/gen-libm-test.pl (adjust_arg): New function.
8937         (special_functions): Handle generating output in both functions
8938         and arrays.
8939         (parse_args): Likewise.
8940         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
8941         $in_func argument to parse_args.
8942         * math/libm-test.inc (struct test_f_f_data): New type.
8943         (IF_ROUND_INIT_): New macro.
8944         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
8945         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
8946         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8947         (IF_ROUND_INIT_FE_UPWARD): Likewise.
8948         (ROUND_RESTORE_): Likewise.
8949         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
8950         (ROUND_RESTORE_FE_TONEAREST): Likewise.
8951         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
8952         (ROUND_RESTORE_FE_UPWARD): Likewise.
8953         (RUN_TEST_LOOP_f_f): New macro.
8954         (acos_test_data): New variable.
8955         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
8956         (acos_tonearest_test_data): New variable.
8957         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8958
8959 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8960
8961         * benchtests/bench-skeleton.c (startup): Fix coding style.
8962
8963 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
8964
8965         [BZ #6809]
8966         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
8967         negative infinity argument.
8968         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
8969         negative infinity argument.
8970         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
8971         negative infinity argument.
8972         * math/libm-test.inc (tgamma_test): Expect errno to be set for
8973         domain errors.
8974
8975 2013-05-10  Florian Weimer  <fweimer@redhat.com>
8976
8977         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
8978         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
8979         * iconv/iconv_prog.c (main): Likewise.
8980         * locale/programs/charmap-dir.c (charmap_readdir)
8981         (fopen_uncompressed): Likewise.
8982         * locale/programs/locfile.c (siblings_uncached)
8983         (write_locale_data): Use lstat64 instead of lstat.
8984         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
8985         stat.
8986
8987 2013-05-10  Andreas Jaeger  <aj@suse.de>
8988
8989         [BZ #15395]
8990         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
8991         localization.
8992         Include <locale.h>.
8993
8994 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
8995
8996         * elf/dl-close.c (_dl_close_worker): Add comments.
8997
8998 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
8999
9000         [BZ #15359]
9001         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
9002         high part of pi/2.
9003         (__ieee754_rem_pio2l): Update comments.
9004
9005         [BZ #15429]
9006         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
9007         high part of pi/2.
9008         (__ieee754_rem_pio2l): Update comments.
9009
9010         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
9011         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
9012
9013         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
9014         M_PI_4l.
9015
9016         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
9017         (M_PI_34_LOG10El): Likewise.
9018         (M_PI2_LOG10El): Likewise.
9019         (M_PI4_LOG10El): Likewise.
9020         (M_PI_LOG10El): Likewise.
9021
9022 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9023
9024         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9025
9026 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
9027
9028         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
9029         (MINUS_ZERO_INIT): Likewise.
9030         (PLUS_INFTY_INIT): Likewise.
9031         (MINUS_INFTY_INIT): Likewise.
9032         (QNAN_VALUE_INIT): Likewise.
9033         (MAX_VALUE_INIT): Likewise.
9034         (MIN_VALUE_INIT): Likewise.
9035         (MIN_SUBNORM_VALUE_INIT): Likewise.
9036         (plus_zero): Initialize with PLUS_ZERO_INIT.
9037         (minus_zero): Initialize with MINUS_ZERO_INIT.
9038         (plus_infty): Initialize with PLUS_INFTY_INIT.
9039         (minus_infty): Initialize with MINUS_INFTY_INIT.
9040         (qnan_value): Initialize with QNAN_VALUE_INIT.
9041         (max_value): Initialize with MAX_VALUE_INIT.
9042         (min_value): Initialize with MIN_VALUE_INIT.
9043         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
9044
9045         * math/libm-test.inc (RUN_TEST_if_f): New macro.
9046         (jn_test): Use TEST_if_f instead of TEST_ff_f.
9047         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
9048         (yn_test): Use TEST_if_f instead of TEST_ff_f.
9049
9050         * math/libm-test.inc (RUN_TEST_f_f): New macro.
9051         (RUN_TEST_2_f): Likewise.
9052         (RUN_TEST_ff_f): Likewise.
9053         (RUN_TEST_fi_f): Likewise.
9054         (RUN_TEST_fl_f): Likewise.
9055         (RUN_TEST_fff_f): Likewise.
9056         (RUN_TEST_c_f): Likewise.
9057         (RUN_TEST_f_f1): Likewise.
9058         (RUN_TEST_fF_f1): Likewise.
9059         (RUN_TEST_fI_f1): Likewise.
9060         (RUN_TEST_ffI_f1): Likewise.
9061         (RUN_TEST_c_c): Likewise.
9062         (RUN_TEST_cc_c): Likewise.
9063         (RUN_TEST_f_i): Likewise.
9064         (RUN_TEST_f_i_tg): Likewise.
9065         (RUN_TEST_ff_i_tg): Likewise.
9066         (RUN_TEST_f_b): Likewise.
9067         (RUN_TEST_f_b_tg): Likewise.
9068         (RUN_TEST_f_l): Likewise.
9069         (RUN_TEST_f_L): Likewise.
9070         (RUN_TEST_sincos): Likewise.
9071         * math/gen-libm-test.pl (new_test): Take new argument to indicate
9072         whether to show exceptions.  Do not include ");\n" in return
9073         value.
9074         (special_functions): Output call to RUN_TEST_sincos instead of
9075         check_float calls.  Update calls to new_test.
9076         (parse_args): Output call to single RUN_TEST_* macro instead of
9077         check_* calls and other assignments.  Update calls to new_test.
9078
9079         [BZ #2546]
9080         [BZ #2560]
9081         [BZ #5159]
9082         [BZ #15426]
9083         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
9084         input to result for tgamma overflow.
9085         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
9086         (gamma_coeff): New variable.
9087         (NCOEFF): New macro.
9088         (gamma_positive): New function.
9089         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
9090         underflow here.  Use gamma_positive instead of exp (lgamma) for
9091         other arguments.
9092         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
9093         (gamma_coeff): New variable.
9094         (NCOEFF): New macro.
9095         (gammaf_positive): New function.
9096         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
9097         underflow here.  Use gamma_positive instead of exp (lgamma) for
9098         other arguments.
9099         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
9100         (gamma_coeff): New variable.
9101         (NCOEFF): New macro.
9102         (gammal_positive): New function.
9103         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
9104         underflow here.  Use gamma_positive instead of exp (lgamma) for
9105         other arguments.
9106         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
9107         (gamma_coeff): New variable.
9108         (NCOEFF): New macro.
9109         (gammal_positive): New function.
9110         (__ieee754_gammal_r): Handle positive infinity, overflow and
9111         underflow here.  Handle NaN the same as positive infinity.  Remove
9112         check x < 0xffffffff for negative integers.  Use gamma_positive
9113         instead of exp (lgamma) for other arguments.
9114         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
9115         (gamma_coeff): New variable.
9116         (NCOEFF): New macro.
9117         (gammal_positive): New function.
9118         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
9119         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
9120         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9121         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
9122         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
9123         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9124         * sysdeps/generic/math_private.h (__gamma_productf): New
9125         prototype.
9126         (__gamma_product): Likewise.
9127         (__gamma_productl): Likewise.
9128         * math/Makefile (libm-calls): Add gamma_product.
9129         * math/libm-test.inc (tgamma_test): Add more tests.
9130         * sysdeps/i386/fpu/libm-test-ulps: Update.
9131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9132
9133 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
9134
9135         * benchtests/bench-skeleton.c (main): Preheat CPU.
9136
9137 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
9138
9139         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
9140
9141 2013-05-07  Roland McGrath  <roland@hack.frob.com>
9142
9143         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
9144         and _dl_skip_args_internal.
9145
9146 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
9147
9148         * manual/message.texi (Message Translation): Talk about users.
9149         Message to key mapping impacts design.
9150
9151 2013-05-06  Roland McGrath  <roland@hack.frob.com>
9152
9153         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
9154
9155         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
9156
9157         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
9158         * sysdeps/wordsize-64/glob64.c: ... here.
9159
9160         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
9161         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
9162         New macros.
9163
9164         * debug/getlogin_r_chk.c: Moved to ...
9165         * login/getlogin_r_chk.c: ... here.
9166         * debug/Makefile (routines): Move getlogin_r_chk to ...
9167         * login/Makefile (routines): ... here.
9168         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
9169         * login/Versions (libc: GLIBC_2.4): ... here.
9170
9171         * io/poll.c (__poll): Renamed from poll.
9172         Add libc_hidden_def.
9173         (poll): Define as weak alias.
9174
9175         * debug/ptsname_r_chk.c: Moved to ...
9176         * login/ptsname_r_chk.c: ... here.
9177         * debug/Makefile (routines): Move ptsname_r_chk to ...
9178         * login/Makefile (routines): ... here.
9179         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
9180         * login/Versions (libc: GLIBC_2.4): ... here.
9181
9182         * posix/getlogin.c: Moved to ...
9183         * login/getlogin.c: ... here.
9184         * posix/getlogin_r.c: Moved to ...
9185         * login/getlogin_r.c: ... here.
9186         * posix/getlogin_r.c: Moved to ...
9187         * login/getlogin_r.c: ... here.
9188         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
9189         * login/Makefile (routines): ... here.
9190         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
9191         * login/Versions (libc: GLIBC_2.0): ... here.
9192
9193         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
9194         (setrlimit): Define as weak alias.
9195
9196         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
9197         Call __ names for open, ftruncate, and close.
9198         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
9199         (truncate): Define as weak alias.
9200
9201 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
9202
9203         * math/gen-libm-test.pl (parse_args): Initialize x before each
9204         test of frexp, modf and remquo.
9205
9206         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
9207         test signgam value.
9208
9209 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9210
9211         [BZ #15418]
9212         [BZ #15419]
9213         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
9214         internal tests.
9215         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9216
9217 2013-05-06  Roland McGrath  <roland@hack.frob.com>
9218
9219         * elf/dl-writev.h: New file.
9220         * elf/dl-misc.c: Include it.
9221         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
9222         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
9223
9224 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
9225
9226         * math/libm-test.inc (noXFails): Remove variable.
9227         (noXPasses): Likewise.
9228         (BUILD_COMPLEX_INT): Remove macro.
9229         (print_screen): Remove xfail argument.
9230         (print_screen_max_error): Likewise.
9231         (update_stats): Likewise.
9232         (print_max_error): Likewise.  Update calls to other affected
9233         functions.
9234         (print_complex_max_error): Likewise.
9235         (test_single_exception): Update calls to print_screen.
9236         (test_single_errno): Likewise.
9237         (check_float_internal): Remove xfail argument.  Update calls to
9238         other affected functions.
9239         (check_float): Likewise.
9240         (check_complex): Likewise.
9241         (check_int): Likewise.
9242         (check_long): Likewise.
9243         (check_bool): Likewise.
9244         (check_longlong): Likewise.
9245         (main): Don't print noXFails and noXPasses.
9246         * math/gen-libm-test.pl (top level): Don't mention expected
9247         failure handling in comment.
9248         (new_test): Don't handle expected failures.
9249         (parse_args): Don't mention expected failure handling in comment.
9250         (generate_testfile): Don't handle expected failures.
9251         (parse_ulps): Likewise.
9252         (print_ulps_file): Likewise.
9253         (get_failure): Remove function.
9254         (output_test): Don't handle expected failures.
9255         * make/README.libm-test: Don't mention expected failure handling.
9256
9257         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
9258         (minus_zero): Likewise.
9259         (plus_infty): Likewise.
9260         (minus_infty): Likewise.
9261         (qnan_value): Likewise.
9262         (max_value): Likewise.
9263         (min_value): Likewise.
9264         (min_subnorm_value): Likewise.
9265         (initialize): Do not initialize those variables dynamically.
9266
9267 2013-05-03  Roland McGrath  <roland@hack.frob.com>
9268
9269         * io/open.c (__open_2): Moved to ...
9270         * io/open_2.c: ... this new file.
9271         * io/open64.c (__open64_2): Moved to ...
9272         * io/open64_2.c: ... this new file.
9273         * io/openat.c (__openat_2): Moved to ...
9274         * io/openat_2.c: ... this new file.
9275         * io/openat64.c (__openat64_2): Moved to ...
9276         * io/openat64_2.c: ... this new file.
9277         * io/Makefile (routines): Add them.
9278         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
9279         * sysdeps/unix/sysv/linux/open_2.c: File removed.
9280         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
9281         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
9282         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
9283         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
9284         (__openat64): Add hidden_ver.
9285         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
9286         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
9287
9288         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
9289         Separately conditionalize setting of GLRO(dl_sysinfo) so
9290         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
9291         as well, but the actual setting is only under [NEED_DL_SYSINFO].
9292
9293 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9294
9295         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
9296         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
9297         definition.
9298         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
9299         * sysdeps/unix/sysv/linux/powerpc/init-first.c
9300         (_libc_vdso_platform_setup): Add __vdso_time initialization.
9301         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
9302         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
9303
9304 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
9305
9306         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
9307         test signgam value.
9308
9309         * math/libm-test.inc (hypot_test): Do not use
9310         IGNORE_ZERO_INF_SIGN.
9311
9312 2013-05-03  Andreas Jaeger  <aj@suse.de>
9313
9314         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
9315         Linux 3.9.
9316         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
9317         (PF_MAX): Adjust for VSOCK change.
9318
9319 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9320
9321         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9322
9323 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
9324
9325         [BZ #15264]
9326         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
9327         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
9328         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
9329
9330 2013-05-02  David S. Miller  <davem@davemloft.net>
9331
9332         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9333
9334 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
9335
9336         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
9337
9338 2013-05-01  Roland McGrath  <roland@hack.frob.com>
9339
9340         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
9341
9342 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
9343
9344         [BZ #14952]
9345         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
9346         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
9347         Use __attribute__ ((__gnu_inline__)).
9348         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
9349         Don't use __attribute__ ((__gnu_inline__)).
9350
9351 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
9352
9353         [BZ #15423]
9354         * math/s_catan.c (__catan): Handle small real or imaginary part of
9355         input specially to avoid spurious underflow.
9356         * math/s_catanf.c (__catanf): Likewise.
9357         * math/s_catanh.c (__catanh): Likewise.
9358         * math/s_catanhf.c (__catanhf): Likewise.
9359         * math/s_catanhl.c (__catanhl): Likewise.
9360         * math/s_catanl.c (__catanl): Likewise.
9361         * math/libm-test.inc (catan_test): Add more tests.
9362         (catanh_test): Likewise.
9363         * sysdeps/i386/fpu/libm-test-ulps: Update.
9364         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9365
9366 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9367
9368         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9369
9370 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
9371
9372         [BZ #15416]
9373         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
9374         accurately for denominator in atan2.
9375         * math/s_catanf.c (__catanf): Likewise.
9376         * math/s_catanh.c (__catanh): Likewise.
9377         * math/s_catanhf.c (__catanhf): Likewise.
9378         * math/s_catanhl.c (__catanhl): Likewise.
9379         * math/s_catanl.c (__catanl): Likewise.
9380         * math/libm-test.inc (catan_test): Add more tests.
9381         (catanh_test): Likewise.
9382         * sysdeps/i386/fpu/libm-test-ulps: Update.
9383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9384
9385 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9386
9387         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
9388
9389         * benchtests/Makefile (bench): Remove slow benchmarks.
9390         * benchtests/atan-inputs: Add slow benchmark inputs.
9391         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
9392         (BENCH_FUNC): Accept variant offset.
9393         (VARIANT): Define.
9394         * benchtests/bench-skeleton.c (main): Run benchmark for each
9395         variant.
9396         * benchtests/cos-inputs: Add slow benchmark inputs.
9397         * benchtests/exp-inputs: Likewise.
9398         * benchtests/pow-inputs: Likewise.
9399         * benchtests/sin-inputs: Likewise.
9400         * benchtests/slowatan-inputs: Remove.
9401         * benchtests/slowatan.c: Remove.
9402         * benchtests/slowcos-inputs: Remove.
9403         * benchtests/slowcos.c: Remove.
9404         * benchtests/slowexp-inputs: Remove.
9405         * benchtests/slowexp.c: Remove.
9406         * benchtests/slowpow-inputs: Remove.
9407         * benchtests/slowpow.c: Remove.
9408         * benchtests/slowsin-inputs: Remove.
9409         * benchtests/slowsin.c: Remove.
9410         * benchtests/slowtan-inputs: Remove.
9411         * benchtests/slowtan.c: Remove.
9412         * benchtests/tan-inputs: Add slow benchmark inputs.
9413         * scripts/bench.pl: Parse comments and directives.
9414
9415         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
9416         in CPPFLAGS.
9417         ($(objpfx)bench-%.c): Remove *-ITER.
9418         * benchtests/bench-modf.c: Remove definition of ITER.
9419         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
9420         (main): Loop for DURATION seconds instead of fixed number of
9421         iterations.
9422         * scripts/bench.pl: Don't expect iterations in parameters.
9423
9424 2013-04-29  Roland McGrath  <roland@hack.frob.com>
9425
9426         * io/fchdir.c (__fchdir): Renamed from fchdir.
9427         (fchdir): Define as weak alias.
9428
9429 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
9430
9431         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
9432         (ERRNO_EDOM): Likewise.
9433         (ERRNO_ERANGE): Likewise.
9434         (noErrnoTests): New variable.
9435         (init_max_error): Set errno to 0.
9436         (test_single_errno): New function.
9437         (test_errno): Likewise.
9438         (check_float_internal): Call test_errno.  Set errno to 0.
9439         (check_complex): Refer to errno tests in comment.
9440         (check_int): Call test_errno.  Set errno to 0.
9441         (check_long): Likewise.
9442         (check_bool): Likewise.
9443         (check_longlong): Likewise.
9444         (cos_test): Use ERRNO_* flags for errno tests instead of
9445         check_int.
9446         (expm1_test): Likewise.
9447         (fmod_test): Likewise.
9448         (ilogb_test): Likewise.
9449         (lgamma_test): Likewise.
9450         (pow_test): Likewise.
9451         (remainder_test): Likewise.
9452         (sin_test): Likewise.
9453         (tan_test): Likewise.
9454         (yn_test): Likewise.
9455         (initialize): Set errno to 0.
9456         (main): Print number of errno tests.
9457         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
9458
9459 2013-04-29  Andreas Jaeger  <aj@suse.de>
9460
9461         [BZ #15084]
9462         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
9463         and RES_USEVC.
9464
9465         [BZ #15085]
9466         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
9467         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
9468         unimplemented.
9469
9470         [BZ #15380]
9471         * stdlib/random.c (__initstate): Return NULL if
9472         __initstate fails.
9473
9474         [BZ #15086]
9475         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
9476         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
9477         RES_SNGLKUPREOP.
9478
9479 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9480
9481         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9482
9483 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
9484
9485         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
9486         of individual tests.
9487         (casin_test): Likewise.
9488         (casinh_test): Likewise.
9489
9490 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
9491
9492         [BZ #15409]
9493         * math/s_catan.c (__catan): Handle arguments with large real or
9494         imaginary part separately without squaring.
9495         * math/s_catanf.c (__catanf): Likewise.
9496         * math/s_catanh.c (__catanh): Likewise.
9497         * math/s_catanhf.c (__catanhf): Likewise.
9498         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
9499         and redefine.
9500         (__catanhl): Handle arguments with large real or imaginary part
9501         separately without squaring.
9502         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
9503         and redefine.
9504         (__catanl): Handle arguments with large real or imaginary part
9505         separately without squaring.
9506         * math/libm-test.inc (catan_test): Add more tests.
9507         (catanh_test): Likewise.
9508         * sysdeps/i386/fpu/libm-test-ulps: Update.
9509         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9510
9511 2013-04-27  Andreas Jaeger  <aj@suse.de>
9512
9513         [BZ #15007]
9514         * stdlib/stdlib.h: Update guards for qecvt.
9515         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
9516         <stdlib.h>.
9517
9518 2013-04-27  Allan McRae  <allan@archlinux.org>
9519
9520         * sysdeps/i386/fpu/libm-test-ulps: Update.
9521
9522 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
9523
9524         [BZ #15406]
9525         * math/s_catan.c: Include <float.h>.
9526         (__catan): Ensure underflow exception occurs for underflowed
9527         result.
9528         * math/s_catanf.c: Include <float.h>.
9529         (__catanf): Ensure underflow exception occurs for underflowed
9530         result.
9531         * math/s_catanh.c: Include <float.h>.
9532         (__catanh): Ensure underflow exception occurs for underflowed
9533         result.
9534         * math/s_catanhf.c: Include <float.h>.
9535         (__catanhf): Ensure underflow exception occurs for underflowed
9536         result.
9537         * math/s_catanhl.c: Include <float.h>.
9538         (__catanhl): Ensure underflow exception occurs for underflowed
9539         result.
9540         * math/s_catanl.c: Include <float.h>.
9541         (__catanl): Ensure underflow exception occurs for underflowed
9542         result.
9543         * math/libm-test.inc (catan_test): Add more tests.
9544         (catanh_test): Likewise.
9545
9546         [BZ #15405]
9547         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
9548         underflowed result.
9549         * math/s_ccoshf.c (__ccoshf): Likewise.
9550         * math/s_ccoshl.c (__ccoshl): Likewise.
9551         * math/s_csin.c (__csin): Likewise.
9552         * math/s_csinf.c (__csinf): Likewise.
9553         * math/s_csinh.c (__csinh): Likewise.
9554         * math/s_csinhf.c (__csinhf): Likewise.
9555         * math/s_csinhl.c (__csinhl): Likewise.
9556         * math/s_csinl.c (__csinl): Likewise.
9557         * math/libm-test.inc (ccos_test): Add more tests.
9558         (ccosh_test): Likewise.
9559         (csin_test): Likewise.
9560         (csinh_test): Likewise.
9561
9562 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9563
9564         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
9565         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
9566         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
9567         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
9568         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
9569         powerpc/power5+/fpu folders.
9570         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
9571
9572
9573 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
9574
9575         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9576
9577 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
9578
9579         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
9580         additions to variable.
9581         [$(config-machine) = x86_64] (modules-names): Likewise.
9582         ($(objpfx)tst-audit3): Remove dependency.
9583         ($(objpfx)tst-audit3.out): Likewise.
9584         ($(objpfx)tst-audit4): Likewise.
9585         ($(objpfx)tst-audit4.out): Likewise.
9586         ($(objpfx)tst-audit5): Likewise.
9587         ($(objpfx)tst-audit5.out): Likewise.
9588         ($(objpfx)tst-audit6): Likewise.
9589         ($(objpfx)tst-audit6.out): Likewise.
9590         ($(objpfx)tst-audit7): Likewise.
9591         ($(objpfx)tst-audit7.out): Likewise.
9592         (tst-audit3-ENV): Remove variable.
9593         (tst-audit4-ENV): Likewise.
9594         (tst-audit5-ENV): Likewise.
9595         (tst-audit6-ENV): Likewise.
9596         (tst-audit7-ENV): Likewise.
9597         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
9598         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
9599         addition to variable.
9600         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
9601         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
9602         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
9603         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
9604         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
9605         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
9606         tst-audit3, tst-audit4 and tst-audit5.
9607         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
9608         tst-audit6 and tst-audit7.
9609         [$(subdir) = elf] (modules-names): Add audit modules for those
9610         tests.
9611         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
9612         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
9613         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
9614         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
9615         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
9616         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
9617         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
9618         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
9619         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
9620         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
9621         [$(subdir) = elf] (tst-audit3-ENV): New variable.
9622         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
9623         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
9624         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
9625         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
9626         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
9627         Likewise.
9628         [$(subdir) = elf && $(config-cflags-avx) = yes]
9629         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
9630         [$(subdir) = elf && $(config-cflags-avx) = yes]
9631         (CFLAGS-tst-auditmod4a.c): Likewise.
9632         [$(subdir) = elf && $(config-cflags-avx) = yes]
9633         (CFLAGS-tst-auditmod4b.c): Likewise.
9634         [$(subdir) = elf && $(config-cflags-avx) = yes]
9635         (CFLAGS-tst-auditmod6b.c): Likewise.
9636         [$(subdir) = elf && $(config-cflags-avx) = yes]
9637         (CFLAGS-tst-auditmod6c.c): Likewise.
9638         [$(subdir) = elf && $(config-cflags-avx) = yes]
9639         (CFLAGS-tst-auditmod7b.c): Likewise.
9640         * elf/tst-audit3.c: Move to ...
9641         * sysdeps/x86_64/tst-audit3.c: ... here.
9642         * elf/tst-audit4.c: Move to ...
9643         * sysdeps/x86_64/tst-audit4.c: ... here.
9644         * elf/tst-audit5.c: Move to ...
9645         * sysdeps/x86_64/tst-audit5.c: ... here.
9646         * elf/tst-audit6.c: Move to ...
9647         * sysdeps/x86_64/tst-audit6.c: ... here.
9648         * elf/tst-audit7.c: Move to ...
9649         * sysdeps/x86_64/tst-audit7.c: ... here.
9650         * elf/tst-auditmod3a.c: Move to ...
9651         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
9652         * elf/tst-auditmod3b.c: Move to ...
9653         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
9654         * elf/tst-auditmod4a.c: Move to ...
9655         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
9656         * elf/tst-auditmod4b.c: Move to ...
9657         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
9658         * elf/tst-auditmod5a.c: Move to ...
9659         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
9660         * elf/tst-auditmod5b.c: Move to ...
9661         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
9662         * elf/tst-auditmod6a.c: Move to ...
9663         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
9664         * elf/tst-auditmod6b.c: Move to ...
9665         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
9666         * elf/tst-auditmod6c.c: Move to ...
9667         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
9668         * elf/tst-auditmod7a.c: Move to ...
9669         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
9670         * elf/tst-auditmod7b.c: Move to ...
9671         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
9672
9673 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
9674
9675         [BZ #15366]
9676         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
9677         define unconditionally.
9678         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
9679         define unconditionally.
9680         (INT8_C, INT16_C, etc.): Likewise.
9681
9682 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
9683
9684         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
9685         __ehdr_start with hidden visibility.
9686
9687         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
9688
9689 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
9690
9691         * math/libm-test.inc (cos_test): Use accurate hex constants.
9692         (sincost_test): Likewise.
9693
9694 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
9695
9696         * math/libm-test.inc (catan_test): Add more tests.
9697         (catanh_test): Likewise.
9698
9699         * math/s_catanf.c (__catanf): Use suffixed floating-point
9700         constants.
9701         * math/s_catanhf.c (__catanhf): Likewise.
9702         * math/s_catanhl.c (__catanhl): Likewise.
9703         * math/s_catanl.c (__catanl): Likewise.
9704
9705         [BZ #15394]
9706         * math/s_catan.c (__catan): Calculate imaginary part of result
9707         with log1p not log unless computing log of number close to 0.
9708         * math/s_catanf.c (__catanf): Likewise.
9709         * math/s_catanl.c (__catanl): Likewise.
9710         * math/s_catanh.c (__catanh): Calculate real part of result with
9711         log1p not log unless computing log of number close to 0.
9712         * math/s_catanhf.c (__catanhf): Likewise.
9713         * math/s_catanhl.c (__catanhl): Likewise.
9714         * math/libm-test.inc (catan_test): Add more tests.
9715         (catanh_test): Likewise.
9716         * sysdeps/i386/fpu/libm-test-ulps: Update.
9717         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9718
9719 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
9720
9721         * benchtests/Makefile: Mention files in which fast and slow
9722         paths of math functions are implemented.
9723
9724 2013-04-23  Roland McGrath  <roland@hack.frob.com>
9725
9726         * sysdeps/posix/timespec_get.c: New file.
9727
9728 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9729
9730         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
9731         POWER.
9732         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
9733         for POWER.
9734         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
9735         powerpc/power5/fpu folders.
9736         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
9737         * benchtests/Makefile: Add modf testcase.
9738         * benchtests/bench-modf.c: New file: Benchmark test for mo
9739
9740 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
9741
9742         [BZ #14888]
9743         * time/Makefile (tests): Add tst-strptime-whitespace.
9744         * time/strptime_l.c (get_number): Use ISSPACE.
9745         (__strptime_internal): Likewise.
9746         * time/tst-strptime-whitespace.c: New test case.
9747
9748 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
9749
9750         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
9751         member.
9752         (_nss_files_init): Set it here.
9753
9754 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
9755
9756         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
9757         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
9758         unsigned.
9759
9760 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
9761
9762         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
9763
9764 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9765
9766         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
9767         size just once.
9768
9769 2013-04-21  David S. Miller  <davem@davemloft.net>
9770
9771         * po/ru.po: Update Russion translation from translation project.
9772
9773 2013-04-17  Adam Conrad  <adconrad@0c3.net>
9774
9775         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
9776         and setfsgid.
9777
9778 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
9779
9780         * configure.in: Remove i386 configure warning. Remove i386 case.
9781         * configure: Regenerate.
9782         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
9783         Add example to error message.
9784         * sysdeps/i386/configure: Regenerate.
9785
9786 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9787
9788         * benchtests/Makefile (bench): Add cos, tan, slowcos and
9789         slowtan.
9790         * benchtests/cos-inputs: New file.
9791         * benchtests/slowcos-inputs: New file.
9792         * benchtests/slowcos.c: New file.
9793         * benchtests/slowtan-inputs: New file.
9794         * benchtests/slowtan.c: New file.
9795         * benchtests/tan-inputs: New file.
9796
9797 2013-04-16  Roland McGrath  <roland@hack.frob.com>
9798
9799         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
9800         considered kosher.
9801
9802 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9803
9804         * benchtests/Makefile: Include cppflags-iterator.mk to add
9805         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
9806
9807         * Makefile.in (bench-clean): New target.
9808         * benchtests/Makefile (bench-clean): Likewise.
9809
9810 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
9811
9812         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
9813
9814 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
9815
9816         * stdio-common/tstdiomisc.c: Fix coding-style violation.
9817
9818 2013-04-15  Andreas Schwab  <schwab@suse.de>
9819
9820         * nscd/grpcache.c (cache_addgr): Properly check for short write.
9821         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9822         * nscd/pwdcache.c (cache_addpw): Likewise.
9823         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
9824         more than recsize.
9825
9826 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
9827
9828         * benchtests/Makefile (bench): Write all output to
9829         bench-out.tmp together.
9830
9831 2013-04-15  Andreas Schwab  <schwab@suse.de>
9832
9833         * nscd/nscd.c (main): Don't fork again after closing files.
9834
9835 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
9836
9837         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
9838
9839         * benchtests/Rules (bench-deps): Collect dependencies into a
9840         single variable.  Add Makefile to dependencies.
9841         ($(objpfx)bench-%.c): Depend on bench-deps.
9842
9843 2013-04-12  Roland McGrath  <roland@hack.frob.com>
9844             Xavier Roche  <roche+kml2@exalead.com>
9845
9846         [BZ #15361]
9847         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
9848         just that it's a file descriptor.
9849         * manual/llio.texi (Synchronizing AIO Operations): Update description
9850         for EBADF error from aio_fsync.
9851
9852 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
9853
9854         * Rules (bench): Move target definition...
9855         * benchtests/Makefile: ... here.
9856
9857 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
9858
9859         * math/libm-test.inc (cos_test): Fix PI/2 test.
9860         (sincos_test): Likewise.
9861         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
9862         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
9863
9864 2013-04-11  Andreas Schwab  <schwab@suse.de>
9865
9866         [BZ #13988]
9867         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
9868         accept exponent character only when digits were seen.
9869         * stdio-common/Makefile (tests): Add bug26.
9870         * stdio-common/bug26.c: New file.
9871
9872         [BZ #14293]
9873         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
9874         non-freeable.
9875
9876 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
9877
9878         * Makeconfig (rtld-prefix): Define built linker prefix.
9879         * Rules (run-bench): Use it.
9880         * math/Makefile (run-regen-ulps): Likewise.
9881
9882         * Rules (bench): Remove eval.
9883
9884 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9885             Roland McGrath  <roland@hack.frob.com>
9886             Ondrej Bilka  <neleai@seznam.cz>
9887
9888         [BZ #15346]
9889         * time/getdate.c: Include ctype.h and alloca.h.
9890         (__getdate_r): Trim leading and trailing spaces of input.
9891         * time/tst-getdate.c (tests): Add tests with leading and
9892         trailing spaces.
9893
9894 2013-04-08  Roland McGrath  <roland@hack.frob.com>
9895
9896         [BZ #14280]
9897         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
9898         when computing value.
9899
9900 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
9901
9902         * math/README.libm-test (How can I generate "libm-test-ulps"?):
9903         Use testrun.sh to run libm tests.
9904
9905         [BZ #15309]
9906         * elf/dl-open.c (dl_open_worker): memset all of seen array.
9907
9908 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
9909
9910         [BZ #15264]
9911         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
9912
9913 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
9914
9915         * Makefile.in (regen-ulps): New target.
9916         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
9917         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
9918         [ifneq (no,$(PERL)] (regen-ulps): New target.
9919         [ifeq (no,$(PERL)] (regen-ulps): New target.
9920         * math/libm-test.inc (ulps_file_name): Define.
9921         (output_dir): New variable.
9922         (options): Add "output-dir" option.
9923         (parse_opt): Handle 'o' case.
9924         (main): If output_dir is non-NULL use it as a prefix
9925         otherwise use "".
9926         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
9927
9928 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
9929
9930         [BZ #10060, #10062]
9931         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
9932         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
9933         fail configure if __sync_val_compare_and_swap is not inlined.
9934         * sysdeps/i386/configure: Regenerate.
9935         * configure.in: Build for i686 when configured for i386.
9936         * configure: Regenerate.
9937         * README: Remove i386 reference.
9938
9939 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
9940
9941         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
9942         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9943
9944 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9945
9946         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
9947         (lmsnanval): New variables.
9948         (F): Add conversion tests.
9949         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
9950         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
9951
9952         * stdio-common/tstdiomisc.c (F): Properly collect individual
9953         tests' results.
9954
9955         [BZ #14686, #15336]
9956         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
9957         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
9958         Instead, use input NaN values or generate a qNaN by arithmetic
9959         operation.  Also fix bugs to comply with the standard.
9960         * math/libm-test.inc (remainder_test): Add more tests.
9961
9962         [BZ #15335, #15342]
9963         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
9964         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
9965         input NaN values or generate a qNaN by arithmetic operation.
9966
9967         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
9968         unreachable code.
9969
9970         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
9971         definitions.
9972
9973 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
9974
9975         [BZ #14478]
9976         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
9977         underflowed result.
9978         * math/s_cexpf.c (__cexpf): Likewise.
9979         * math/s_cexpl.c (__cexpl): Likewise.
9980         * math/libm-test.inc (cexp_test): Add more tests.
9981
9982 2013-04-03  Andreas Schwab  <schwab@suse.de>
9983
9984         [BZ #15330]
9985         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
9986         order arrays from heap if bigger than alloca cutoff.
9987
9988 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
9989
9990         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
9991         (SNAN_TESTS_double): Refer to GCC PR56831.
9992         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
9993         GCC PR56828.
9994
9995 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
9996
9997         * Rules (bench): Move bench.out after the run is complete.
9998
9999         * Rules (bench): Echo currently running benchmark.
10000
10001         * benchtests/Makefile (bench): Add atan and slowatan.
10002         * benchtests/atan-inputs: New file.
10003         * benchtests/slowatan-inputs: New file.
10004         * benchtests/slowatan.c: New file.
10005
10006         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
10007         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
10008         its value.
10009
10010         [BZ #15305]
10011         * sysdeps/unix/sysv/linux/kernel-features.h
10012         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
10013         __ASSUME_XFS_RESTRICTED_CHOWN.
10014         * sysdeps/unix/sysv/linux/pathconf.c
10015         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
10016         Save and restore errno.
10017
10018 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
10019
10020         [BZ #15327]
10021         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
10022         arguments using __kernel_casinh.
10023         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
10024         arguments using __kernel_casinhf.
10025         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
10026         arguments using __kernel_casinhl.
10027         * math/libm-test.inc (cacosh_test): Add more tests.
10028         * sysdeps/i386/fpu/libm-test-ulps: Update.
10029         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10030
10031 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10032
10033         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
10034         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
10035
10036         * bench/Makefile (bench): Add sin and slowsin.
10037         * benchtests/sin-inputs: New file.
10038         * benchtests/slowsin-inputs: New file.
10039         * benchtests/slowsin.c: New file.
10040
10041         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
10042         (bench): Add slowexp and slowpow.
10043         (exp-ITER): Increase iterations.
10044         (pow-ITER): Likewise.
10045         * benchtests/exp-inputs: Change input.
10046         * benchtests/pow-inputs: Likewise.
10047         * benchtests/slowexp-inputs: New file.
10048         * benchtests/slowexp.c: New file.
10049         * benchtests/slowpow-inputs: New file.
10050         * benchtests/slowpow.c: New file.
10051
10052 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10053
10054         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
10055         instructions.
10056         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
10057         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
10058         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
10059         * benchtests/Makefile: Add rint benchtest.
10060         * benchtests/rint-inputs: Input for rint benchtest.
10061
10062 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10063
10064         * Versions.def (libm): Add GLIBC_2.18.
10065         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
10066         hidden libm prototypes.
10067         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
10068         * math/Makefile (libm-calls): Add s_issignaling.
10069         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
10070         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
10071         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
10072         declaration.
10073         * math/math.h [__USE_GNU] (issignaling): New macro.
10074         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
10075         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
10076         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
10077         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
10078         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
10079         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
10080         * manual/arith.texi (issignaling): New section.
10081         * manual/libm-err-tab.pl (@all_functions): Update comment.
10082         * math/gen-libm-test.pl (parse_args): Apply special handling for
10083         issignaling.
10084         * math/libm-test.inc (print_float, issignaling_test): New
10085         functions.
10086         (check_float_internal): Add issignaling checks.
10087         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
10088         default definition.
10089         * sysdeps/powerpc/math-tests.h: New file.
10090         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
10091         tests.
10092         * math/test-snan.c (TEST_FUNC): Likewise.
10093
10094 2013-03-30  David S. Miller  <davem@davemloft.net>
10095
10096         * po/de.po: Update from translation team.
10097
10098 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
10099
10100         [BZ #10357]
10101         * math/k_casinh.c (__kernel_casinh): Handle arguments with
10102         imaginary part less than 1.0 and real part less than 0.5
10103         specially.
10104         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10105         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10106         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
10107         (cacos_test): Add more tests.
10108         (casin_test): Likewise.
10109         (casinh_test): Likewise.
10110         * sysdeps/i386/fpu/libm-test-ulps: Update.
10111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10112
10113 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10114
10115         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
10116         ONE with its value.
10117
10118         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
10119         (__pow_mp): Replace ONE and MONE with their values.
10120         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
10121         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
10122         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
10123         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
10124         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
10125         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
10126
10127         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
10128
10129         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
10130         (__pow_mp): Replace ZERO and MZERO with their values.
10131         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
10132         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
10133         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
10134         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
10135         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
10136         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
10137         (__sqr): Likewise.
10138
10139         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
10140
10141         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
10142
10143 2013-03-28  Roland McGrath  <roland@hack.frob.com>
10144
10145         * include/stdlib.h [!SHARED] (__call_tls_dtors):
10146         Declare with __attribute__ ((weak)).
10147         * stdlib/exit.c (__libc_atexit) [!SHARED]:
10148         Call __call_tls_dtors only if it's not NULL.
10149
10150 2013-03-28  Roland McGrath  <roland@hack.frob.com>
10151
10152         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
10153         didn't do it already, then set _dl_phdr and _dl_phnum based on the
10154         magic __ehdr_start linker symbol if it's defined.
10155         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
10156         them up here if it was already done.
10157
10158         * elf/dl-support.c (_dl_phdr): Make pointer to const.
10159         (_dl_aux_init): Use const in cast when setting it.
10160         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
10161         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
10162         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
10163
10164         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
10165         Declare them here.
10166         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
10167         * csu/libc-tls.c: Nor here.
10168         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
10169
10170         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
10171         (__libc_message): Never call vsyslog.
10172
10173 2013-03-28  Alan Modra  <amodra@gmail.com>
10174
10175         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
10176         Define as empty.
10177         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
10178         Likewise.
10179
10180 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10181
10182         [BZ #15214]
10183         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
10184         underflow.
10185         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10186
10187 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10188
10189         [BZ #15304]
10190         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
10191         Don't add gid passed as argument.
10192
10193         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
10194
10195 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
10196
10197         [BZ #15307]
10198         * math/k_casinh.c (__kernel_casinh): Handle arguments with
10199         imaginary part between 1.0 and 1.5 and real part less than 0.5
10200         specially.
10201         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10202         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10203         * math/libm-test.inc (cacos_test): Add more tests.
10204         (casin_test): Likewise.
10205         (casinh_test): Likewise.
10206         * sysdeps/i386/fpu/libm-test-ulps: Update.
10207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10208
10209 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10210
10211         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
10212         constants.
10213         (norm): Likewise.
10214         (denorm): Likewise.
10215         (__dbl_mp): Likewise.
10216         (add_magnitudes): Likewise.
10217         (sub_magnitudes): Likewise.
10218         (__add): Likewise.
10219         (__sub): Likewise.
10220         (__mul): Likewise.
10221         (__sqr): Likewise.
10222         (__inv): Likewise.
10223         (__dvd): Likewise.
10224
10225         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
10226         commented code.
10227         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
10228         (__dubcos): Likewise.
10229         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
10230         (__ieee754_acos): Likewise.
10231         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
10232         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
10233         (__exp1): Likewise.
10234         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
10235         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10236         (log1): Likewise.
10237         (my_log2): Likewise.
10238         (checkint): Likewise.
10239         * sysdeps/ieee754/dbl-64/e_remainder.c
10240         (__ieee754_remainder): Likewise.
10241         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
10242         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
10243         (bsloww): Likewise.
10244         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
10245
10246         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
10247         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
10248         MANTISSA_STORE_T to store computations on mantissa.  Use
10249         macros for rounding and division.
10250         (denorm): Likewise.
10251         (__dbl_mp): Likewise.
10252         (add_magnitudes): Likewise.
10253         (sub_magnitudes): Likewise.
10254         (__mul): Likewise.
10255         (__sqr): Likewise.
10256         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
10257         powers of two in terms of TWOPOW macro.
10258         (mp_no): Make type of mantissa as MANTISSA_T.
10259         [!RADIXI]: Define RADIXI.
10260         [!TWO52]: Define TWO52.
10261         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
10262
10263 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10264
10265         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
10266         llroundl symbol when building for PPC32.
10267
10268 2013-03-24  Mark H Weaver  <mhw@netris.org>
10269
10270         * manual/arith.texi (Normalization Functions): Fix prototypes for
10271         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
10272
10273 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10274
10275         [BZ #13889]
10276         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
10277         high value to check if expl overflow.
10278         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
10279         to check for underflow and overflow.
10280         * math/libm-test.inc: Add exp test.
10281
10282 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
10283
10284         [BZ #11120]
10285         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
10286         with NOT_IN_libc.
10287
10288 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10289
10290         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
10291         symbol.
10292
10293 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10294
10295         * math/gen-libm-test.pl (parse_args, special_functions): Properly
10296         wrap blocks consisting of several statements.
10297
10298         * sysdeps/generic/math-tests.h: New file.
10299         * sysdeps/i386/fpu/math-tests.h: Likewise.
10300         * math/test-snan.c: Include it.
10301         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
10302
10303 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
10304
10305         [BZ #15285]
10306         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
10307         (__ieee754_j0l): Do not improve calculations using cos of twice
10308         input for inputs above LDBL_MAX / 2.0L.
10309         (__ieee754_y0l): Likewise.
10310         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
10311         (__ieee754_j1l): Do not improve calculations using cos of twice
10312         input for inputs above LDBL_MAX / 2.0L.
10313         (__ieee754_y1l): Likewise.
10314         * math/libm-test.inc (j0_test): Add another test.
10315         (j1_test): Likewise.
10316         (y0_test): Likewise.
10317         (y1_test): Likewise.
10318         * sysdeps/i386/fpu/libm-test-ulps: Update.
10319
10320 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
10321
10322         * Rules ($(objpfx)bench-%.c): Include code from a C source
10323         file.
10324
10325 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
10326
10327         [BZ #15287]
10328         * math/k_casinh.c (__kernel_casinh): Handle arguments with
10329         imaginary part 1.0 and real part less than 0.5 specially.
10330         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10331         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10332         * math/libm-test.inc (cacos_test): Add more tests.
10333         (casin_test): Likewise.
10334         (casinh_test): Likewise.
10335         * sysdeps/i386/fpu/libm-test-ulps: Update.
10336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10337
10338 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
10339
10340         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
10341         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
10342
10343 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
10344
10345         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
10346         * config.make.in (config-cflags-sse4): Remove variable.
10347         (config-cflags-avx): Likewise.
10348         (config-cflags-sse2avx): Likewise.
10349         (config-cflags-novzeroupper): Likewise.
10350         (config-asflags-i686): Likewise.
10351         (have-mfma4): Likewise.
10352         (have-as-vis3): Likewise.
10353         (MIG): Likewise.
10354         * configure.in (MIG): Do not AC_SUBST.
10355         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
10356         (libc_cv_cc_sse4): Do not AC_SUBST.
10357         (libc_cv_cc_avx): Likewise.
10358         (libc_cv_cc_sse2avx): Likewise.
10359         (libc_cv_cc_novzeroupper): Likewise.
10360         (libc_cv_cc_fma4): Likewise.
10361         (libc_cv_as_i686): Likewise.
10362         (libc_cv_sparc_as_vis3): Likewise.
10363         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
10364         LIBC_CONFIG_VAR.
10365         (config-asflags-i686): Likewise.
10366         (config-cflags-avx): Likewise.
10367         (config-cflags-sse2avx): Likewise.
10368         (have-mfma4): Likewise.
10369         (config-cflags-novzeroupper): Likewise.
10370         * sysdeps/mach/configure.in (MIG): Likewise.
10371         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
10372         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
10373         LIBC_CONFIG_VAR.
10374         (config-cflags-avx): Likewise.
10375         (config-cflags-sse2avx): Likewise.
10376         (have-mfma4): Likewise.
10377         (config-cflags-novzeroupper): Likewise.
10378         * configure: Regenerated.
10379         * sysdeps/i386/configure: Likewise.
10380         * sysdeps/mach/configure: Likewise.
10381         * sysdeps/sparc/configure: Likewise.
10382         * sysdeps/x86_64/configure: Likewise.
10383
10384 2013-03-20  Roland McGrath  <roland@hack.frob.com>
10385
10386         [BZ #14812]
10387         * locale/programs/localedef.c (options): Put N_ translation marker
10388         on argument names, not just descriptions.
10389
10390 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10391
10392         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
10393
10394 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
10395
10396         [BZ #14176]
10397         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
10398
10399 2013-03-19  Roland McGrath  <roland@hack.frob.com>
10400
10401         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
10402         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
10403         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
10404         [!BEFORE_ABORT] (before_abort): New function.
10405         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
10406         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
10407         (writev_for_fatal): New function.
10408         (WRITEV_FOR_FATAL): New macro; call that.
10409         (backtrace_and_maps): New function.
10410         (BEFORE_ABORT): New macro; call that.
10411         (struct str_list): Type removed.
10412         (__libc_message, __libc_fatal): Functions removed.
10413         Include <sysdeps/posix/libc_fatal.c> instead.
10414
10415 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
10416
10417         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
10418         constants.
10419         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
10420         double constants.
10421
10422 2013-03-19  Andreas Schwab  <schwab@suse.de>
10423
10424         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
10425         * sysdeps/gnu/configure: Regenerate.
10426
10427         * configure.in: Substitute libc_cv_rtlddir.
10428         * configure: Regenerate.
10429         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
10430         * Makeconfig (rtlddir, inst_rtlddir): New variables.
10431         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
10432         * elf/Makefile (install-others, CFLAGS-interp.c)
10433         (ldso_install, common-ldd-rewrite): Likewise.
10434         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
10435         $(inst_slibdir)/$(rtld-installed-name).
10436         * scripts/rellns-sh: Add -p option.
10437         * Makerules (make-shlib-link): Use rellns-sh to get relative name
10438         for source.
10439
10440 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
10441
10442         * manual/nptl.texi: Renamed to ...
10443         * manual/threads.texi: ... this.
10444         * manual/Makefile (chapters): Update.
10445
10446 2013-03-18  Roland McGrath  <roland@hack.frob.com>
10447
10448         [BZ #14812]
10449         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
10450         on argument names, not just descriptions.
10451         * malloc/memusagestat.c (options): Likewise.
10452         * nss/getent.c (options): Likewise.
10453
10454 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
10455
10456         [BZ #14812]
10457         * iconv/iconv_prog.c (options): Put N_ translation marker
10458         on argument names, not just descriptions.
10459         * iconv/iconvconfig.c (options): Likewise.
10460
10461 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
10462
10463         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
10464         implementation which is faster on all x86_64 architectures.
10465         Tested on AMD, Intel Nehalem, SNB, IVB.
10466         * sysdeps/x86_64/strnlen.S: Likewise.
10467
10468         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
10469         Remove all multiarch strlen and strnlen versions.
10470         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
10471         Remove strlen and strnlen related parts.
10472
10473         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
10474         Inline strlen part.
10475         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
10476
10477         * sysdeps/x86_64/multiarch/strlen.S: Remove.
10478         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
10479         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
10480         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
10481         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
10482         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
10483
10484 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
10485
10486         * manual/memory.texi (Malloc Tunable Parameters):
10487         Sort parameters alphabetically. Add comments for missing entries.
10488
10489 2013-03-17  David S. Miller  <davem@davemloft.net>
10490
10491         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10492
10493 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
10494
10495         [BZ #15283]
10496         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
10497         for arguments at most half maximum finite value.
10498         * math/libm-test.inc (j0_test): Add more tests.
10499         (j1_test): Likewise.
10500         (y0_test): Likewise.
10501         (y1_test): Likewise.
10502         * sysdeps/i386/fpu/libm-test-ulps: Update.
10503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10504
10505         [BZ #14155]
10506         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
10507         1 / x and functions P and Q for arguments above 0x1p256L.
10508         (__ieee754_y0l): Likewise.
10509         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
10510         (__ieee754_y1l): Likewise.
10511         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
10512         (j1_test): Likewise.
10513         (y0_test): Likewise.
10514         (y1_test): Likewise.
10515
10516 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
10517
10518         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
10519         variable.
10520
10521 2013-03-15  Roland McGrath  <roland@hack.frob.com>
10522
10523         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
10524         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
10525         zero since it's initialized to EXEC_PAGESIZE.
10526
10527         * sysdeps/unix/sysv/linux/ldsodefs.h
10528         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
10529         * sysdeps/generic/ldsodefs.h: ... here.
10530
10531 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
10532
10533         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
10534
10535         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
10536         math/test-snan.c.
10537         * math/test-snan.c: Renamed from
10538         sysdeps/powerpc/fpu/test-powerpc-snan.c.
10539         * math/Makefile (tests): Add test-snan.
10540         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
10541         test-powerpc-snan.
10542
10543         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
10544         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
10545         functions.
10546         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
10547         __builtin_nan family of functions.
10548         * math/libm-test.inc (initialize): Initialize qnan_value with
10549         __builtin_nan family of functions.
10550         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
10551         Remove variables.
10552         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
10553         Remove functions.
10554         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
10555         storage class.  Initialize qNaN_var and sNaN_var with
10556         __builtin_nan and __builtin_nans families of functions,
10557         respectively.
10558
10559         * math/libm-test.inc (acosh_test): Also test with qNaN input.
10560         (sqrt_test): Remove duplicate test with qNaN input.
10561         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
10562         (round_test, signbit_test, significand_test): Note missing +/-Inf
10563         as well as qNaN tests.
10564
10565         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
10566         qNaN_var.  Fix a few strings, too.
10567         * math/libm-test.inc (nan_value): Rename to qnan_value.
10568         * math/gen-libm-test.pl (%beautify): Adjust to that.
10569         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
10570         * math/test-misc.c (main): Likewise.
10571         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
10572         to __qnan_bytes, and __qnan_union, respectively.
10573         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
10574         Likewise.
10575         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
10576         and lqnanval, respectively.
10577         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
10578         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
10579         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
10580         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
10581
10582         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
10583         * math/test-misc.c (main) [__x86_64__]: Enable test for long
10584         doubles.
10585
10586         * math/test-misc.c (main): Fix copy'n'pastos.
10587         * misc/tst-efgcvt.c (special): Likewise.
10588
10589         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
10590         Remove declarations.
10591
10592 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10593
10594         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
10595         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
10596         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
10597         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
10598
10599 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10600
10601         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
10602         macro to return vdso values correctly in IFUNC implementations.
10603         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
10604         Optimization by using IFUNC.
10605
10606 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10607             Richard Henderson  <rth@redhat.com>
10608             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10609
10610         * Makefile.in (bench): New target.
10611         * NEWS: Mention the benchmark framework.
10612         * Rules (bench): Likewise.
10613         (binaries-bench): Generate binaries for functions to
10614         benchmark.
10615         * benchtests/Makefile: New makefile for benchmark tests.
10616         * benchtests/bench-skeleton.c: New skeleton file for benchmark
10617         programs.
10618         * benchtests/exp-inputs: New input file for EXP function.
10619         * benchtests/pow-inputs: New input file for POW function.
10620         * scripts/bench.pl: New script to generate source files for
10621         benchmark programs.
10622
10623 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10624
10625         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
10626         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
10627         computations on mantissa.  Use macros for rounding and
10628         division.
10629         (denorm): Likewise.
10630         (__dbl_mp): Likewise.
10631         (add_magnitudes): Likewise.
10632         (sub_magnitudes): Likewise.
10633         (__mul): Likewise.
10634         (__sqr): Likewise.
10635         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
10636         powers of two in terms of TWOPOW macro.
10637         (mp_no): Make type of mantissa as MANTISSA_T.
10638         [!RADIXI]: Define RADIXI.
10639         [!TWO52]: Define TWO52.
10640         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
10641
10642         * manual/nptl.texi (cindex): Modify threads to pthreads.
10643
10644 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
10645
10646         * sysdeps/x86_64/preconfigure: Regenerated.
10647
10648 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
10649
10650         [BZ #14155]
10651         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
10652         0x1p28 and above.
10653         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
10654         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
10655         0x1p28 and above.
10656         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
10657         * math/libm-test.inc (j0_test): Do not allow one spurious
10658         underflow exception.
10659         (y1_test): Likewise.
10660
10661 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
10662
10663         * manual/Makefile (chapters): Add nptl.
10664         * manual/debug.texi (Debugging Support): Add link to Threads
10665         chapter.
10666         * manual/nptl.texi: New file.
10667
10668         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
10669
10670 2013-03-14  Petr Baudis  <pasky@ucw.cz>
10671
10672         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
10673         for non-NULL pointer before the memory validity test. Pointed
10674         out by Holger Brunck <holger.brunck@keymile.com>.
10675
10676 2013-03-13  Andreas Schwab  <schwab@suse.de>
10677
10678         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
10679         instead of .os.
10680
10681 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
10682
10683         * timezone/zic.c: Update from tzcode 2013b.
10684
10685 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
10686
10687         * manual/install.texi (Configuring and compiling):
10688         Mention i686 and i586.
10689         * INSTALL: Regenerate.
10690
10691 2013-03-12  Roland McGrath  <roland@hack.frob.com>
10692
10693         * sysdeps/init_array/elf-init.c: New file.
10694         * csu/elf-init.c
10695         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
10696         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
10697
10698         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
10699         __gmon_start__ as global, but as static with a .preinit_array pointer.
10700         * sysdeps/init_array/gmon-start.c: New file.  Use that.
10701         * sysdeps/init_array/crti.S: New file, empty except for comments.
10702         * sysdeps/init_array/crtn.S: Likewise.
10703
10704 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
10705
10706         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
10707         definining bcopy.
10708         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10709         Remove Prefer_SSE_for_memop.
10710         * sysdeps/x86_64/multiarch/init-arch.h: Remove
10711         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
10712         HAS_PREFER_SSE_FOR_MEMOP.
10713         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10714         memset-x86-64.
10715         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
10716         Remove bzero, memset ifunc support.
10717         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
10718         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
10719         * sysdeps/x86_64/multiarch/memset.S: Likewise.
10720         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
10721
10722 2013-03-11  Andreas Schwab  <schwab@suse.de>
10723
10724         [BZ #15234]
10725         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
10726         by SHLIB_COMPAT.
10727         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
10728         (GLIBC_2.16): Remove pthread_atfork.
10729
10730 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
10731
10732         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
10733         (ptestcases.h): Likewise.
10734
10735 2013-03-08  Roland McGrath  <roland@hack.frob.com>
10736
10737         * Makeconfig ($(common-objpfx)config.status): Depend on
10738         sysdeps/*/preconfigure{,.in} too.
10739
10740 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
10741
10742         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
10743         (__free_hook): Use void * instead of __malloc_ptr_t.
10744         (__malloc_hook): Likewise.
10745         (__realloc_hook): Likewise.
10746         (__memalign_hook): Likewise.
10747         (__after_morecore_hook): Likewise.
10748         * malloc/arena.c (save_malloc_hook): Likewise.
10749         (save_free_hook): Likewise.
10750         * malloc/hooks.c (malloc_hook_ini): Likewise.
10751         (realloc_hook_ini): Likewise.
10752         (memalign_hook_ini): Likewise.
10753         * malloc/malloc.c (malloc_hook_ini): Likewise.
10754         (realloc_hook_ini): Likewise.
10755         (memalign_hook_ini): Likewise.
10756         (__free_hook): Likewise.
10757         (__malloc_hook): Likewise.
10758         (__realloc_hook): Likewise.
10759         (__memalign_hook): Likewise.
10760         (__libc_malloc): Likewise.
10761         (__libc_free): Likewise.
10762         (__libc_realloc): Likewise.
10763         (__libc_memalign): Likewise.
10764         (__libc_valloc): Likewise.
10765         (__libc_pvalloc): Likewise.
10766         (__libc_calloc): Likewise.
10767         (__posix_memalign): Likewise.
10768         * malloc/morecore.c (__sbrk): Likewise.
10769         (__default_morecore): Likewise.
10770
10771         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
10772
10773         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
10774         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
10775         __malloc_ptrdiff_t.
10776
10777         * malloc/malloc.h (__malloc_size_t): Remove macro.
10778         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
10779         __malloc_size_t.
10780         (old_memalign_hook): Likewise.
10781         (old_realloc_hook): Likewise.
10782         (struct hdr): Likewise.
10783         (flood): Likewise.
10784         (mallochook): Likewise.
10785         (memalignhook): Likewise.
10786         (reallochook): Likewise.
10787         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
10788         (tr_old_realloc_hook): Likewise.
10789         (tr_old_memalign_hook): Likewise.
10790         (tr_mallochook): Likewise.
10791         (tr_reallochook): Likewise.
10792         (tr_memalignhook): Likewise.
10793
10794 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10795
10796         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
10797         default_ldbl_pack and using as default implementation.
10798         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
10799         implementation.
10800         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
10801         redundant definition.
10802         (ldbl_insert_mantissa): Likewise.
10803         (ldbl_canonicalize): Likewise.
10804         (ldbl_nearbyint): Likewise.
10805         (ldbl_pack): Rename to ldbl_pack_ppc.
10806         (ldbl_unpack): Rename to ldbl_unpack_ppc.
10807         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
10808         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
10809
10810 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
10811
10812         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
10813         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
10814         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
10815         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
10816         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
10817         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
10818         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
10819         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
10820
10821 2013-03-07  Andreas Jaeger  <aj@suse.de>
10822
10823         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10824         bits/mman-linux.h.
10825
10826 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
10827
10828         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
10829         Include mpa.h and declare __MPEXP.
10830         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
10831         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
10832         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
10833         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
10834         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
10835         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
10836         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
10837
10838         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
10839         (__slowpow): Use long double EXPL and LOGL functions to
10840         compute POW.
10841         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
10842         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
10843         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
10844         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
10845         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
10846         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
10847
10848         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
10849         intermediate variable to calculate exponent.
10850         (__sqr): Likewise.
10851         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
10852         Likewise.
10853         (__sqr): Likewise.
10854
10855         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
10856         [!NO__SQR]: Define __sqr.
10857         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
10858         and NO__SQR.  Remove all code except __mul and __sqr.  Include
10859         sysdeps/ieee754/dbl-64/mpa.c.
10860         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10861
10862         [BZ #12723]
10863         * posix/Makefile (tests): Add tst-pathconf.
10864         * posix/tst-pathconf.c: New test case.
10865         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
10866         _PC_PIPE_BUF.
10867         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10868
10869 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
10870
10871         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
10872
10873 2013-03-06  Andreas Jaeger  <aj@suse.de>
10874
10875         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
10876         definition via __MAP_ANONYMOUS.
10877
10878         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
10879         it's not part of Linux headers.
10880
10881         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
10882         (MAP_HUGE_MASK): Define.
10883
10884         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
10885         Define.
10886         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
10887         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
10888         Define.
10889         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
10890         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
10891         Define.
10892         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
10893         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
10894         Define.
10895         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
10896
10897         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
10898         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
10899         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
10900         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
10901         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
10902         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
10903
10904         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
10905         Handle f2fs.
10906
10907         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10908         Handle f2fs and efivarfs.
10909
10910         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
10911         f2fs.
10912
10913         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
10914         (EFIVARFS_MAGIC): Add.
10915         (F2FS_LINK_MAX): Add.
10916
10917 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10918
10919         * stdio-common/vfprintf.c: Replace __builtin_expect with
10920         __glibc_unlikely.
10921
10922 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
10923
10924         [BZ #13550]
10925         * sysdeps/generic/bp-sym.h: Remove file.
10926         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
10927         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
10928         <bp-sym.h> and <bp-asm.h>.
10929         (__longjmp): Don't use BP_SYM.
10930         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
10931         and <bp-asm.h>.
10932         (memcpy): Don't use BP_SYM.
10933         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
10934         <bp-sym.h> and <bp-asm.h>.
10935         (memcpy): Don't use BP_SYM.
10936         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
10937         <bp-asm.h>.
10938         (memcpy): Don't use BP_SYM.
10939         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
10940         <bp-asm.h>.
10941         (memset): Don't use BP_SYM.
10942         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
10943         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
10944         (__bzero): Don't use BP_SYM.
10945         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
10946         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
10947         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
10948         <bp-sym.h> and <bp-asm.h>.
10949         (memcmp): Don't use BP_SYM.  Remove comment about bounded
10950         pointers.
10951         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
10952         <bp-sym.h> and <bp-asm.h>.
10953         (memcpy): Don't use BP_SYM.
10954         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
10955         <bp-sym.h> and <bp-asm.h>.
10956         (memset): Don't use BP_SYM.
10957         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
10958         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
10959         (__bzero): Don't use BP_SYM.
10960         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
10961         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
10962         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
10963         <bp-sym.h> and <bp-asm.h>.
10964         (strncmp): Don't use BP_SYM.  Remove comment about bounded
10965         pointers.
10966         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
10967         <bp-sym.h> and <bp-asm.h>.
10968         (memcpy): Don't use BP_SYM.
10969         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
10970         <bp-sym.h> and <bp-asm.h>.
10971         (memset): Don't use BP_SYM.
10972         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
10973         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
10974         (__bzero): Don't use BP_SYM.
10975         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
10976         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
10977         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
10978         <bp-sym.h> and <bp-asm.h>.
10979         (__memchr): Don't use BP_SYM.
10980         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
10981         <bp-sym.h> and <bp-asm.h>.
10982         (memcmp): Don't use BP_SYM.  Remove comment about bounded
10983         pointers.
10984         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
10985         <bp-sym.h> and <bp-asm.h>.
10986         (memcpy): Don't use BP_SYM.
10987         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
10988         <bp-sym.h> and <bp-asm.h>.
10989         (__mempcpy): Don't use BP_SYM.
10990         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
10991         <bp-sym.h> and <bp-asm.h>.
10992         (__memrchr): Don't use BP_SYM.
10993         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
10994         <bp-sym.h> and <bp-asm.h>.
10995         (memset): Don't use BP_SYM.
10996         (__bzero): Likewise.
10997         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
10998         <bp-sym.h> and <bp-asm.h>.
10999         (__rawmemchr): Don't use BP_SYM.
11000         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
11001         <bp-sym.h> and <bp-asm.h>.
11002         (__STRCMP): Don't use BP_SYM.
11003         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
11004         <bp-sym.h> and <bp-asm.h>.
11005         (strchr): Don't use BP_SYM.
11006         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
11007         <bp-sym.h> and <bp-asm.h>.
11008         (__strchrnul): Don't use BP_SYM.
11009         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
11010         <bp-sym.h> and <bp-asm.h>.
11011         (strlen): Don't use BP_SYM.
11012         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
11013         <bp-sym.h> and <bp-asm.h>.
11014         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11015         pointers.
11016         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
11017         <bp-sym.h> and <bp-asm.h>.
11018         (__strnlen): Don't use BP_SYM.
11019         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
11020         <bp-sym.h> and <bp-asm.h>.
11021         (__GI__setjmp): Don't use BP_SYM.
11022         (_setjmp): Likewise.
11023         (__sigsetjmp): Likewise.
11024         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
11025         (L(start_addresses)): Don't use BP_SYM.
11026         (_start): Likewise.
11027         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
11028         <bp-asm.h>.
11029         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
11030         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
11031         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11032         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11033         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
11034         <bp-asm.h>.
11035         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
11036         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
11037         about bounded pointers.
11038         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
11039         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11040         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
11041         <bp-asm.h>.
11042         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
11043         about bounded pointers.  Remove GKM FIXME comments.
11044         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
11045         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
11046         <bp-asm.h>.
11047         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
11048         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
11049         Remove GKM FIXME comments.
11050         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11051         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11052         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
11053         <bp-asm.h>.
11054         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
11055         about bounded pointers.  Remove GKM FIXME comment.
11056         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
11057         and <bp-asm.h>.
11058         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11059         pointers.
11060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
11061         <bp-sym.h> and <bp-asm.h>.
11062         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
11063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
11064         <bp-sym.h> and <bp-asm.h>.
11065         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
11066         comment.
11067
11068 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11069
11070         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
11071         call free(NULL).
11072
11073 2013-03-05  David S. Miller  <davem@davemloft.net>
11074
11075         * po/es.po: Update from translation team.
11076
11077 2013-03-05  Andreas Jaeger  <aj@suse.de>
11078
11079         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
11080         <bits/mman-linux.h>.
11081         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11082         is fine.
11083         * sysdeps/unix/sysv/linux/sh/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/x86/bits/mman.h: Move include of
11088         <bits/mman-linux.h> to end of file.
11089         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11090         is fine.
11091         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
11092         <bits/mman-linux.h> to end of file.
11093
11094         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
11095         (MCL_CURRENT, MCL_FUTURE): Define here.
11096
11097 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11098
11099         [BZ #15232]
11100         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
11101         attribute_hidden.
11102         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
11103
11104 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11105
11106         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
11107         fourth parameter needed for rt_sigprocmask syscall.
11108         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
11109         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
11110         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
11111         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
11112         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
11113         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
11114
11115 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
11116
11117         [BZ #13550]
11118         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
11119         comment about bounded pointers.
11120         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
11121         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
11122
11123 2013-03-04  Andreas Jaeger  <aj@suse.de>
11124
11125         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
11126         common definitions.
11127
11128         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
11129         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
11130         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
11131         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11132         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
11133         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11134
11135 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11136
11137         [BZ #15055]
11138         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
11139         __ieee754_sqrl instead of __sqrl.
11140
11141 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
11142
11143         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
11144         * sysdeps/powerpc/fpu_control.h: ... here.
11145         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
11146         * sysdeps/powerpc/bits/fenvinline.h: ... here.
11147         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
11148         * sysdeps/powerpc/bits/mathinline.h: ... here.
11149
11150 2013-03-01  Roland McGrath  <roland@hack.frob.com>
11151
11152         * elf/dl-hwcaps.c (_dl_important_hwcaps):
11153         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
11154         to just [NEED_DL_SYSINFO_DSO].
11155         * elf/dl-support.c: Likewise.
11156         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
11157         * elf/rtld.c (dl_main): Likewise.
11158         * elf/setup-vdso.h (setup_vdso): Likewise.
11159         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
11160         * sysdeps/unix/sysv/linux/dl-sysdep.c
11161         (_dl_discover_osversion): Likewise.
11162
11163 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
11164
11165         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
11166         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
11167
11168 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
11169
11170         * NEWS: Mention libm performance improvements and non-x86 PI
11171         futex support.
11172
11173         * csu/libc-start.c (__pthread_initialize_minimal): Change
11174         function arguments.
11175         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
11176
11177 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
11178
11179         [BZ #13550]
11180         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
11181         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
11182         <bp-sym.h> and <bp-asm.h>.
11183         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
11184         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
11185         and <bp-asm.h>.
11186         (memcpy): Don't use BP_SYM.
11187         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
11188         <bp-asm.h>.
11189         (__mpn_add_n): Don't use BP_SYM.
11190         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
11191         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
11192         and <bp-asm.h>.
11193         (__mpn_addmul_1): Don't use BP_SYM.
11194         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11195         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
11196         <bp-sym.h>.
11197         (_setjmp): Don't use BP_SYM.
11198         (__novmx_setjmp): Likewise.
11199         (__GI__setjmp): Likewise.
11200         (__vmx_setjmp): Likewise.
11201         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
11202         <bp-sym.h>.
11203         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
11204         (__bzero): Don't use BP_SYM.
11205         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11206         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11207         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
11208         <bp-sym.h> and <bp-asm.h>.
11209         (memcpy): Don't use BP_SYM.
11210         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
11211         <bp-sym.h> and <bp-asm.h>.
11212         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
11213         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
11214         <bp-sym.h> and <bp-asm.h>.
11215         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
11216         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
11217         <bp-asm.h>.
11218         (__mpn_lshift): Don't use BP_SYM.
11219         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11220         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
11221         <bp-asm.h>.
11222         (memset): Don't use BP_SYM.
11223         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11224         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11225         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
11226         <bp-asm.h>.
11227         (__mpn_mul_1): Don't use BP_SYM.
11228         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11229         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
11230         <bp-sym.h> and <bp-asm.h>.
11231         (memcmp): Don't use BP_SYM.
11232         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
11233         <bp-sym.h> and <bp-asm.h>.
11234         (memcpy): Don't use BP_SYM.
11235         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
11236         <bp-sym.h> and <bp-asm.h>.
11237         (memset): Don't use BP_SYM.
11238         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
11239         <bp-sym.h> and <bp-asm.h>.
11240         (strncmp): Don't use BP_SYM.
11241         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
11242         <bp-sym.h> and <bp-asm.h>.
11243         (memcpy): Don't use BP_SYM.
11244         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
11245         <bp-sym.h> and <bp-asm.h>.
11246         (memset): Don't use BP_SYM.
11247         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
11248         <bp-sym.h> and <bp-asm.h>.
11249         (__memchr): Don't use BP_SYM.
11250         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
11251         <bp-sym.h> and <bp-asm.h>.
11252         (memcmp): Don't use BP_SYM.
11253         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
11254         <bp-sym.h> and <bp-asm.h>.
11255         (memcpy): Don't use BP_SYM.
11256         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
11257         <bp-sym.h> and <bp-asm.h>.
11258         (__mempcpy): Don't use BP_SYM.
11259         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
11260         <bp-sym.h> and <bp-asm.h>.
11261         (__memrchr): Don't use BP_SYM.
11262         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
11263         <bp-sym.h> and <bp-asm.h>.
11264         (memset): Don't use BP_SYM.
11265         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
11266         <bp-sym.h> and <bp-asm.h>.
11267         (__rawmemchr): Don't use BP_SYM.
11268         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
11269         <bp-sym.h> and <bp-asm.h>.
11270         (__STRCMP): Don't use BP_SYM.
11271         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
11272         <bp-sym.h> and <bp-asm.h>.
11273         (strchr): Don't use BP_SYM.
11274         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
11275         <bp-sym.h> and <bp-asm.h>.
11276         (__strchrnul): Don't use BP_SYM.
11277         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
11278         <bp-sym.h> and <bp-asm.h>.
11279         (strlen): Don't use BP_SYM.
11280         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
11281         <bp-sym.h> and <bp-asm.h>.
11282         (strncmp): Don't use BP_SYM.
11283         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
11284         <bp-sym.h> and <bp-asm.h>.
11285         (__strnlen): Don't use BP_SYM.
11286         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
11287         <bp-asm.h>.
11288         (__mpn_rshift): Don't use BP_SYM.
11289         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11290         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
11291         <bp-sym.h> and <bp-asm.h>.
11292         (__sigsetjmp): Don't use BP_SYM.
11293         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
11294         (L(start_addresses)): Don't use BP_SYM.
11295         (_start): Likewise.
11296         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
11297         <bp-asm.h>.
11298         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
11299         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11300         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11301         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
11302         <bp-asm.h>.
11303         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
11304         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
11305         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11306         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
11307         <bp-asm.h>.
11308         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
11309         comments.
11310         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
11311         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
11312         <bp-asm.h>.
11313         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
11314         FIXME comments.
11315         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11316         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11317         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
11318         <bp-asm.h>.
11319         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
11320         comment.
11321         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
11322         and <bp-asm.h>.
11323         (strncmp): Don't use BP_SYM,
11324         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
11325         <bp-asm.h>.
11326         (__mpn_sub_n): Don't use BP_SYM.
11327         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11328         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
11329         and <bp-asm.h>.
11330         (__mpn_submul_1): Don't use BP_SYM.
11331         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
11333         <bp-sym.h> and <bp-asm.h>.
11334         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
11335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
11336         <bp-sym.h> and <bp-asm.h>.
11337         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
11338         comment.
11339
11340 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11341
11342         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
11343         Use ZK to minimize writes to Z.
11344         (sub_magnitudes): Simplify code a bit.
11345         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
11346         Use ZK to minimize writes to Z.
11347         (sub_magnitudes): Simplify code a bit.
11348
11349 2013-02-27  Roland McGrath  <roland@hack.frob.com>
11350
11351         * csu/gmon-start.c: Add special exception to license text.
11352
11353 2013-02-27  Richard Henderson  <rth@redhat.com>
11354
11355         * scripts/config.guess: Update from config.git.
11356         * scripts/config.sub: Likewise.
11357
11358 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11359
11360         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
11361
11362         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
11363
11364         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
11365
11366         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
11367
11368         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
11369
11370 2013-02-26  Roland McGrath  <roland@hack.frob.com>
11371
11372         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
11373         [$(build-shared = yes].
11374
11375 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11376
11377         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
11378         (__mul): Reduce iterations for calculating mantissa.
11379
11380         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
11381         MPTWO.
11382         (__mpranred): Likewise.
11383
11384         [BZ #15160]
11385         * malloc/memusagestat.c (main): Draw graphs for heap and stack
11386         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
11387
11388 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
11389
11390         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
11391         Define __attribute__.
11392
11393 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11394
11395         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
11396         unused.
11397         * posix/regex_internal.h (__attribute): Remove.
11398         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
11399         (re_string_context_at): Likewise.
11400         (bitset_not): Use __attribute__ and mark function as possibly
11401         unused.
11402         (bitset_merge): Likewise.
11403         (bitset_mask): Likewise.
11404         (re_string_char_size_at): Likewise.
11405         (re_string_wchar_at): Likewise.
11406         (re_string_elem_size_at): Likewise.
11407
11408 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
11409
11410         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
11411         code.
11412         (cc32): Likewise.
11413
11414         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
11415         (__acr): Likewise.
11416         (__cpy): Likewise.
11417         (norm): Likewise.
11418         (denorm): Likewise.
11419         (__dbl_mp): Likewise.
11420         (add_magnitudes): Likewise.
11421         (sub_magnitudes): Likewise.
11422         (__mul): Likewise.
11423         (__inv): Likewise.
11424
11425         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
11426         style.
11427
11428         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
11429         style.
11430
11431         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
11432         code.
11433
11434         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
11435         up changes with default code.
11436         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
11437         Likewise.
11438
11439 2013-02-24  Allan McRae  <allan@archlinux.org>
11440
11441         * manual/socket.texi (The Internet Namespace): Order menu items
11442         to match that in the file.
11443
11444         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
11445         node listing of the info page menu.
11446
11447 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
11448
11449         [BZ #13550]
11450         * sysdeps/i386/bp-asm.h: Remove file.
11451         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
11452         (PARMS): Do not use macros from bp-asm.h.
11453         (S1): Likewise.
11454         (S2): Likewise.
11455         (SIZE): Likewise.
11456         (__mpn_add_n): Do not use BP_SYM
11457         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
11458         "bp-asm.h".
11459         (PARMS): Do not use macros from bp-asm.h.
11460         (S1): Likewise.
11461         (SIZE): Likewise.
11462         (__mpn_addmul_1): Do not use BP_SYM
11463         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
11464         "bp-asm.h".
11465         (PARMS): Do not use macros from bp-asm.h.
11466         (SIGMSK): Likewise.
11467         (_setjmp): Likewise.  Do not use BP_SYM.
11468         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
11469         "bp-asm.h".
11470         (PARMS): Do not use macros from bp-asm.h.
11471         (SIGMSK): Likewise.
11472         (setjmp): Likewise.  Do not use BP_SYM.
11473         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
11474         "bp-asm.h".
11475         (PARMS): Do not use macros from bp-asm.h.
11476         (__frexp): Do not use BP_SYM.
11477         (frexp): Likewise.
11478         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
11479         "bp-asm.h".
11480         (PARMS): Do not use macros from bp-asm.h.
11481         (__frexpf): Do not use BP_SYM.
11482         (frexpf): Likewise.
11483         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
11484         "bp-asm.h".
11485         (PARMS): Do not use macros from bp-asm.h.
11486         (__frexpl): Do not use BP_SYM.
11487         (frexpl): Likewise.
11488         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
11489         "bp-asm.h".
11490         (PARMS): Do not use macros from bp-asm.h.
11491         (__remquo): Do not use BP_SYM.
11492         (remquo): Likewise.
11493         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
11494         "bp-asm.h".
11495         (PARMS): Do not use macros from bp-asm.h.
11496         (__remquof): Do not use BP_SYM.
11497         (remquof): Likewise.
11498         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
11499         "bp-asm.h".
11500         (PARMS): Do not use macros from bp-asm.h.
11501         (__remquol): Do not use BP_SYM.
11502         (remquol): Likewise.
11503         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
11504         "bp-asm.h".
11505         (PARMS): Do not use macros from bp-asm.h.
11506         (DEST): Likewise.
11507         (SRC): Likewise.
11508         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
11509         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
11510         "bp-asm.h".
11511         (PARMS): Do not use macros from bp-asm.h.
11512         (strlen): Do not use BP_SYM.
11513         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
11514         "bp-asm.h".
11515         (PARMS): Do not use macros from bp-asm.h.
11516         (S1): Likewise.
11517         (S2): Likewise.
11518         (SIZE): Likewise.
11519         (__mpn_add_n): Do not use BP_SYM.
11520         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
11521         "bp-asm.h".
11522         (PARMS): Do not use macros from bp-asm.h.
11523         (S1): Likewise.
11524         (SIZE): Likewise.
11525         (__mpn_addmul_1): Do not use BP_SYM.
11526         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
11527         weak_alias.
11528         (bzero): Likewise.
11529         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
11530         "bp-asm.h".
11531         (PARMS): Do not use macros from bp-asm.h.
11532         (S): Likewise.
11533         (SIZE): Likewise.
11534         (__mpn_lshift): Do not use BP_SYM.
11535         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
11536         "bp-asm.h".
11537         (PARMS): Do not use macros from bp-asm.h.
11538         (DEST): Likewise.
11539         (SRC): Likewise.
11540         (LEN): Likewise.
11541         (memcpy): Likewise.  Do not use BP_SYM.
11542         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
11543         libc_hidden_def and weak_alias.
11544         (mempcpy): Do not use BP_SYM in weak_alias.
11545         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
11546         "bp-asm.h".
11547         (PARMS): Do not use macros from bp-asm.h.
11548         (DEST): Likewise.
11549         (LEN): Likewise.
11550         [!BZERO_P] (CHR): Likewise.
11551         (memset): Likewise.  Do not use BP_SYM.
11552         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
11553         "bp-asm.h".
11554         (PARMS): Do not use macros from bp-asm.h.
11555         (S1): Likewise.
11556         (SIZE): Likewise.
11557         (__mpn_mul_1): Do not use BP_SYM.
11558         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
11559         "bp-asm.h".
11560         (PARMS): Do not use macros from bp-asm.h.
11561         (S): Likewise.
11562         (SIZE): Likewise.
11563         (__mpn_rshift): Do not use BP_SYM.
11564         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
11565         "bp-asm.h".
11566         (PARMS): Do not use macros from bp-asm.h.
11567         (STR): Likewise.
11568         (CHR): Likewise.
11569         (strchr): Likewise.  Do not use BP_SYM.
11570         (index): Do not use BP_SYM in weak_alias.
11571         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
11572         "bp-asm.h".
11573         (PARMS): Do not use macros from bp-asm.h.
11574         (DEST): Likewise.
11575         (SRC): Likewise.
11576         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
11577         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
11578         "bp-asm.h".
11579         (PARMS): Do not use macros from bp-asm.h.
11580         (strlen): Do not use BP_SYM.
11581         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
11582         "bp-asm.h".
11583         (PARMS): Do not use macros from bp-asm.h.
11584         (S1): Likewise.
11585         (S2): Likewise.
11586         (SIZE): Likewise.
11587         (__mpn_sub_n): Do not use BP_SYM.
11588         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
11589         "bp-asm.h".
11590         (PARMS): Do not use macros from bp-asm.h.
11591         (S1): Likewise.
11592         (SIZE): Likewise.
11593         (__mpn_submul_1): Do not use BP_SYM.
11594         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
11595         "bp-asm.h".
11596         (PARMS): Do not use macros from bp-asm.h.
11597         (S1): Likewise.
11598         (S2): Likewise.
11599         (SIZE): Likewise.
11600         (__mpn_add_n): Do not use BP_SYM.
11601         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
11602         weak_alias.
11603         (bzero): Likewise.
11604         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
11605         "bp-asm.h".
11606         (PARMS): Do not use macros from bp-asm.h.
11607         (BLK2): Likewise.
11608         (LEN): Likewise.
11609         (memcmp): Do not use BP_SYM.
11610         (bcmp): Do not use BP_SYM in weak_alias.
11611         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
11612         "bp-asm.h".
11613         (PARMS): Do not use macros from bp-asm.h.
11614         (DEST): Likewise.
11615         (SRC): Likewise.
11616         (LEN): Likewise.
11617         (memcpy): Likewise.  Do not use BP_SYM.
11618         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
11619         "bp-asm.h".
11620         (PARMS): Do not use macros from bp-asm.h.
11621         (DEST): Likewise.
11622         (SRC): Likewise.
11623         (LEN): Likewise.
11624         (memmove): Likewise.  Do not use BP_SYM.
11625         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
11626         "bp-asm.h".
11627         (PARMS): Do not use macros from bp-asm.h.
11628         (DEST): Likewise.
11629         (SRC): Likewise.
11630         (LEN): Likewise.
11631         (__mempcpy): Likewise.  Do not use BP_SYM.
11632         (mempcpy): Do not use BP_SYM in weak_alias.
11633         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
11634         "bp-asm.h".
11635         (PARMS): Do not use macros from bp-asm.h.
11636         (DEST): Likewise.
11637         (LEN): Likewise.
11638         [!BZERO_P] (CHR): Likewise.
11639         (memset): Likewise.  Do not use BP_SYM.
11640         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
11641         "bp-asm.h".
11642         (PARMS): Do not use macros from bp-asm.h.
11643         (STR2): Likewise.
11644         (strcmp): Do not use BP_SYM.
11645         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
11646         "bp-asm.h".
11647         (PARMS): Do not use macros from bp-asm.h.
11648         (STR): Likewise.
11649         (DELIM): Likewise.
11650         [USE_AS_STRTOK_R] (SAVE): Likewise.
11651         (FUNCTION): Likewise.  Do not use BP_SYM.
11652         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
11653         aliases.
11654         (strtok_r): Likewise.
11655         (__GI___strtok_r): Likewise.
11656         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
11657         (PARMS): Do not use macros from bp-asm.h.
11658         (S): Likewise.
11659         (SIZE): Likewise.
11660         (__mpn_lshift): Do not use BP_SYM.
11661         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
11662         (PARMS): Do not use macros from bp-asm.h.
11663         (STR): Likewise.
11664         (CHR): Likewise.
11665         (__memchr): Do not use BP_SYM.
11666         (memchr): Do not use BP_SYM in weak_alias.
11667         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
11668         (PARMS): Do not use macros from bp-asm.h.
11669         (BLK2): Likewise.
11670         (LEN): Likewise.
11671         (memcmp): Do not use BP_SYM.
11672         (bcmp): Do not use BP_SYM in weak_alias.
11673         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
11674         (PARMS): Do not use macros from bp-asm.h.
11675         (S1): Likewise.
11676         (SIZE): Likewise.
11677         (__mpn_mul_1): Do not use BP_SYM.
11678         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
11679         "bp-asm.h".
11680         (PARMS): Do not use macros from bp-asm.h.
11681         (STR): Likewise.
11682         (CHR): Likewise.
11683         (__rawmemchr): Do not use BP_SYM.
11684         (rawmemchr): Do not use BP_SYM in weak_alias.
11685         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
11686         (PARMS): Do not use macros from bp-asm.h.
11687         (S): Likewise.
11688         (SIZE): Likewise.
11689         (__mpn_rshift): Do not use BP_SYM.
11690         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
11691         (PARMS): Do not use macros from bp-asm.h.
11692         (SIGMSK): Likewise.
11693         (__sigsetjmp): Likewise.  Do not use BP_SYM.
11694         * sysdeps/i386/start.S: Do not include "bp-sym.h".
11695         (_start): Do not use BP_SYM.
11696         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
11697         (PARMS): Do not use macros from bp-asm.h.
11698         (DEST): Likewise.
11699         (SRC): Likewise.
11700         (__stpcpy): Likewise.  Do not use BP_SYM.
11701         (stpcpy): Do not use BP_SYM in weak_alias.
11702         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
11703         "bp-asm.h".
11704         (PARMS): Do not use macros from bp-asm.h.
11705         (DEST): Likewise.
11706         (SRC): Likewise.
11707         (LEN): Likewise.
11708         (__stpncpy): Likewise.  Do not use BP_SYM.
11709         (stpncpy): Do not use BP_SYM in weak_alias.
11710         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
11711         (PARMS): Do not use macros from bp-asm.h.
11712         (STR): Likewise.
11713         (CHR): Likewise.
11714         (strchr): Likewise.  Do not use BP_SYM.
11715         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
11716         "bp-asm.h".
11717         (PARMS): Do not use macros from bp-asm.h.
11718         (STR): Likewise.
11719         (CHR): Likewise.
11720         (__strchrnul): Likewise.  Do not use BP_SYM.
11721         (strchrnul): Do not use BP_SYM in weak_alias.
11722         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
11723         "bp-asm.h".
11724         (PARMS): Do not use macros from bp-asm.h.
11725         (STOP): Likewise.
11726         (strcspn): Do not use BP_SYM.
11727         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
11728         "bp-asm.h".
11729         (PARMS): Do not use macros from bp-asm.h.
11730         (STR): Likewise.
11731         (STOP): Likewise.
11732         (strpbrk): Likewise.  Do not use BP_SYM.
11733         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
11734         "bp-asm.h".
11735         (PARMS): Do not use macros from bp-asm.h.
11736         (STR): Likewise.
11737         (CHR): Likewise.
11738         (strrchr): Likewise.  Do not use BP_SYM.
11739         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
11740         (PARMS): Do not use macros from bp-asm.h.
11741         (SKIP): Likewise.
11742         (strspn): Do not use BP_SYM.
11743         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
11744         (PARMS): Do not use macros from bp-asm.h.
11745         (STR): Likewise.
11746         (DELIM): Likewise.
11747         (SAVE): Likewise.
11748         (FUNCTION): Likewise.  Do not use BP_SYM.
11749         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
11750         aliases.
11751         (strtok_r): Likewise.
11752         (__GI___strtok_r): Likewise.
11753         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
11754         (PARMS): Do not use macros from bp-asm.h.
11755         (S1): Likewise.
11756         (S2): Likewise.
11757         (SIZE): Likewise.
11758         (__mpn_sub_n): Do not use BP_SYM.
11759         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
11760         "bp-asm.h".
11761         (PARMS): Do not use macros from bp-asm.h.
11762         (S1): Likewise.
11763         (SIZE): Likewise.
11764         (__mpn_submul_1): Do not use BP_SYM.
11765         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
11766         <bp-sym.h>.
11767         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
11768         and <bp-asm.h>.
11769         (PARMS): Do not use macros from bp-asm.h.
11770         (FLAGS): Likewise.
11771         (PTID): Likewise.
11772         (TLS): Likewise.
11773         (CTID): Likewise.
11774         (__clone): Do not use BP_SYM.
11775         (clone): Do not use BP_SYM in weak_alias.
11776         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
11777         and <bp-asm.h>.
11778         (PARMS): Do not use macros from bp-asm.h.
11779         (LEN): Likewise.
11780         (__mmap64): Do not use BP_SYM.
11781         (mmap64): Do not use BP_SYM in weak_alias.
11782         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
11783         <bp-sym.h> and <bp-asm.h>.
11784         (PARMS): Do not use macros from bp-asm.h.
11785         (__posix_fadvise64_l64): Do not use BP_SYM.
11786         * sysdeps/unix/sysv/linux/i386/semtimedop.S
11787         (PARMS): Do not use macros from bp-asm.h.
11788         (NSOPS): Likewise.
11789         (semtimedop): Do not use BP_SYM.
11790         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
11791         and <bp-asm.h>.
11792
11793 2013-02-21  Allan McRae  <allan@archlinux.org>
11794
11795         * manual/message.texi (Charset conversion in gettext):
11796         Move @end statement to beginning of line.
11797
11798 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11799
11800         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
11801         static.
11802         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
11803         Likewise.
11804
11805         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
11806         (denorm): Likewise.
11807         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
11808         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
11809
11810 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11811
11812         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
11813         tail-call to the resolved function if pltexit isn't needed.
11814
11815 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11816
11817         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
11818         or Y being zero as being unlikely.
11819         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
11820         Likewise.
11821
11822 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
11823
11824         * manual/nss.texi (System Databases and Name Service Switch):
11825         Remove frobnicate @pxref.
11826
11827 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
11828
11829         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
11830         __attribute__ ((unused)) to __attribute__ ((__unused__)).
11831
11832 2013-02-20  Petr Machata  <pmachata@redhat.com>
11833
11834         * elf/elf.h (R_ARM_TARGET1): New macro.
11835         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
11836         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
11837         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
11838         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
11839         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
11840         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
11841         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
11842         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
11843         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
11844         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
11845         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
11846         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
11847         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
11848         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
11849         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
11850         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
11851         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
11852         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
11853         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
11854         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
11855         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
11856         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
11857         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
11858         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
11859         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
11860         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
11861         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
11862         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
11863         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
11864         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
11865         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
11866         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
11867         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
11868         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
11869         (R_ARM_THM_GOT_BREL12): Likewise.
11870         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
11871         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
11872         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
11873         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
11874         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
11875         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
11876         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
11877         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
11878         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
11879
11880 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
11881
11882         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
11883         __attribute_used__ to __attribute__ ((unused)).
11884
11885 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11886
11887         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
11888         powerpc mpa.c.
11889         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
11890         comment formatting.
11891         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
11892
11893 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
11894
11895         [BZ #13550]
11896         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
11897         Remove macro.
11898         (ENTER): Remove both macro definitions.
11899         (LEAVE): Likewise.
11900         (CHECK_BOUNDS_LOW): Likewise.
11901         (CHECK_BOUNDS_HIGH): Likewise.
11902         (CHECK_BOUNDS_BOTH): Likewise.
11903         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
11904         (RETURN_BOUNDED_POINTER): Likewise.
11905         (RETURN_NULL_BOUNDED_POINTER): Likewise.
11906         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
11907         (POP_ERRNO_LOCATION_RETURN): Likewise.
11908         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
11909         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11910         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
11911         macros.
11912         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11913         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
11914         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
11915         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
11916         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
11917         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
11918         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
11919         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
11920         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
11921         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
11922         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
11923         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
11924         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11925         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
11926         removed macros.
11927         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11928         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
11929         macros.
11930         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11931         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
11932         * sysdeps/i386/i586/memset.S (memset): Likewise.
11933         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
11934         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11935         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
11936         macros.
11937         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11938         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
11939         Change uses of L(2) to L(out).
11940         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
11941         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
11942         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
11943         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11944         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
11945         removed macros.
11946         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11947         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
11948         macros.
11949         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11950         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
11951         (RETURN): Do not use macro LEAVE.
11952         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
11953         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
11954         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
11955         * sysdeps/i386/i686/memset.S (memset): Likewise.
11956         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
11957         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
11958         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
11959         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
11960         Likewise.
11961         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11962         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
11963         L(1_2) and L(1_3) into L(1).
11964         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
11965         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
11966         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11967         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
11968         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
11969         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
11970         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
11971         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11972         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
11973         macros.
11974         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
11975         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11976         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
11977         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
11978         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
11979         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11980         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
11981         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
11982         * sysdeps/i386/strcspn.S (strcspn): Likewise.
11983         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
11984         * sysdeps/i386/strrchr.S (strrchr): Likewise.
11985         * sysdeps/i386/strspn.S (strspn): Likewise.
11986         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
11987         conditional code.
11988         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11989         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
11990         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
11991         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
11992         L(1_3) into L(1_1).
11993         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
11994         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11995         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
11996         macros.
11997         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11998
11999 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
12000
12001         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
12002         macro.
12003
12004 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
12005
12006         * math/atest-exp.c (exp_mpn): Remove ROUND.
12007         * math/atest-exp2.c (exp_mpn): Likewise.
12008         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
12009
12010         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
12011         * stdlib/tst-tls-atexit-lib.c: Likewise.
12012         * stdlib/tst-tls-atexit.c: Likewise.
12013
12014 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12015
12016         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
12017         and __attribute_alloc_size__.
12018
12019 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12020
12021         * include/programs/xmalloc.h: Change __attribute_alloc_size to
12022         __attribute_alloc_size__.
12023         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
12024         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
12025
12026 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12027
12028         * include/programs/xmalloc.h: New file.
12029         * catgets/gencat.c: Include it.
12030         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
12031         * elf/pldd.c: Likewise.
12032         * iconv/iconv_charmap.c: Likewise.
12033         * iconv/iconvconfig.c: Likewise.
12034         * iconv/strtab.c: Likewise.
12035         * locale/programs/locale.c: Likewise.
12036         * locale/programs/localedef.h: Likewise.
12037         * locale/programs/simple-hash.c: Likewise.
12038         * nscd/nscd.h: Likewise.
12039         * nss/makedb.c: Likewise.
12040         * sysdeps/generic/ldconfig.h: Likewise.
12041
12042 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12043
12044         * Versions.def: Add GLIBC_2.18.
12045         * include/link.h (struct link_map): New member l_tls_dtor_count.
12046         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
12047         (__call_tls_dtors): Likewise.
12048         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
12049         __cxa_thread_atexit_impl.
12050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12051         Likewise.
12052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12053         Likewise.
12054         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
12055         Likewise.
12056         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
12057         Likewise.
12058         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
12059         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
12060         Likewise.
12061         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
12062         Likewise.
12063         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
12064         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
12065         Likewise.
12066         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
12067         (tests): Add test case tst-tls-atexit.
12068         (modules-names): Add shared library for tst-tls-atexit.
12069         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
12070         (GLIBC_PRIVATE): Add __call_tls_dtors.
12071         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
12072         for libstdc++.
12073         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
12074         * stdlib/tst-tls-atexit.c: New test case.
12075         * stdlib/tst-tls-atexit-lib.c: New test case.
12076
12077         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
12078
12079         * elf/Versions (ld): Add _dl_find_dso_for_object.
12080         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
12081         * elf/dl-open.c (_dl_find_dso_for_object): New function.
12082         (dl_open_worker): Use _dl_find_dso_for_object.
12083         * elf/dl-sym.c (do_sym): Likewise.
12084         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
12085
12086 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12087
12088         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
12089         Syntactic changes only.
12090         (_dl_runtime_profile): Do a tail-call to the resolved function.
12091
12092 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
12093
12094         [BZ #13550]
12095         * sysdeps/x86_64/bp-asm.h: Remove file.
12096         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
12097         <bp-sym.h> and <bp-asm.h>.
12098         (__clone): Do not use BP_SYM.
12099         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
12100         <bp-sym.h> and <bp-asm.h>.
12101         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12102         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
12103         "bp-asm.h".
12104         (_setjmp): Do not use BP_SYM.
12105         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
12106         "bp-asm.h".
12107         (setjmp): Do not use BP_SYM.
12108         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
12109         libc_hidden_def.
12110         (mempcpy): Do not use BP_SYM in weak_alias.
12111         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
12112         "bp-asm.h".
12113         (strchr): Do not use BP_SYM.
12114         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
12115         "bp-asm.h".
12116         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
12117         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
12118         (_start): Do not use BP_SYM.
12119         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
12120         "bp-asm.h".
12121         (strcat): Do not use BP_SYM.
12122         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
12123         "bp-asm.h".
12124         (STRCMP): Do not use BP_SYM.
12125         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
12126         "bp-asm.h".
12127         (STRCPY): Do not use BP_SYM.
12128         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
12129         "bp-asm.h".
12130         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
12131         "bp-asm.h".
12132         (FUNCTION): Do not use BP_SYM.
12133         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
12134         weak_alias.
12135         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
12136
12137 2013-02-17  Andreas Jaeger  <aj@suse.de>
12138
12139         * time/Versions: Sort entries.
12140         * string/Versions: Likewise.
12141         * resolv/Versions: Likewise.
12142         * posix/Versions: Likewise.
12143         * iconv/Versions: Likewise.
12144         * elf/Versions: Likewise.
12145         * wcsmbs/Versions: Likewise.
12146
12147 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
12148
12149         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
12150         loop termination condition.
12151
12152         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
12153         variable to calculate EZ.
12154         (__sqr): Likewise.
12155
12156         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
12157         the lower precision input.
12158
12159 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
12160
12161         [BZ #13550]
12162         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
12163         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
12164         (run-via-rtld-prefix): Do not handle %-bp tests.
12165         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
12166         (all-object-suffixes): Remove .ob.
12167         (bppfx): Remove variable.
12168         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
12169         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
12170         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
12171         [$(build-bounded) = yes] (libtype.ob): Likewise.
12172         * Makerules (elide-routines.ob): Remove variable.
12173         (do-tests-clean): Do not handle *-bp.out.
12174         (common-mostlyclean): Do not handle *-bp and *-bp.out.
12175         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
12176         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
12177         (tests): Do not include $(tests-bp.out).
12178         (xtests): Do not include $(xtests-bp.out).
12179         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
12180         [$(build-bounded) = yes] ($(addprefix
12181         $(objpfx),$(binaries-bounded))): Remove rule.
12182         ($(objpfx)%-bp.out): Remove rule.
12183         * config.make.in (build-bounded): Remove variable.
12184         * crypt/Makefile [$(build-bounded) = yes]
12185         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
12186         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
12187         append to variable.
12188         [$(build-bounded) = yes] (install-lib): Likewise.
12189         [$(build-bounded) = yes] (generated): Likewise.
12190         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
12191         Remove rule.
12192         * intl/Makefile [$(build-bounded) = yes]
12193         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
12194         * math/Makefile [$(build-bounded) = yes]
12195         ($(tests:%=$(objpfx)%-bp): Likewise.
12196         * misc/Makefile [$(build-bounded) = yes]
12197         ($(objpfx)tst-tsearch-bp): Likewise.
12198         * nptl/Makeconfig (bounded-thread-library): Remove variable.
12199         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
12200         Remove dependency.
12201         * string/Makefile (o-objects.ob): Remove variable.
12202         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
12203         (CFLAGS-.ob): Remove variable.
12204         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
12205         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
12206         both definitions of variable.
12207         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
12208         (ASFLAGS-.ob): Remove variable.
12209
12210 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
12211
12212         [BZ #13550]
12213         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
12214         Remove __BOUNDED_POINTERS__ from condition.
12215         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
12216         * string/bits/string2.h [!__NO_STRING_INLINES &&
12217         !__BOUNDED_POINTERS__]: Likewise.
12218         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
12219         Likewise.
12220         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
12221         Remove conditional code.
12222         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
12223         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
12224         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
12225         condition.
12226
12227         [BZ #13550]
12228         * csu/libc-start.c: Do not include <bp-sym.h>.
12229         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
12230         * elf/dl-open.c: Do not include <bp-sym.h>.
12231         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
12232         * math/fegetenv.c: Do not include <bp-sym.h>.
12233         (fegetenv): Do not use BP_SYM in versioned symbols.
12234         * nptl/sysdeps/pthread/bits/libc-lockP.h
12235         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
12236         <bp-sym.h>.
12237         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12238         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
12239         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12240         (__pthread_mutex_destroy): Likewise.
12241         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12242         (__pthread_mutex_lock): Likewise.
12243         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12244         (__pthread_mutex_trylock): Likewise.
12245         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12246         (__pthread_mutex_unlock): Likewise.
12247         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12248         (__pthread_mutexattr_init): Likewise.
12249         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12250         (__pthread_mutexattr_destroy): Likewise.
12251         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12252         (__pthread_mutexattr_settype): Likewise.
12253         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12254         (__pthread_rwlock_init): Likewise.
12255         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12256         (__pthread_rwlock_destroy): Likewise.
12257         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12258         (__pthread_rwlock_rdlock): Likewise.
12259         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12260         (__pthread_rwlock_tryrdlock): Likewise.
12261         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12262         (__pthread_rwlock_wrlock): Likewise.
12263         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12264         (__pthread_rwlock_trywrlock): Likewise.
12265         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12266         (__pthread_rwlock_unlock): Likewise.
12267         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12268         (__pthread_key_create): Likewise.
12269         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12270         (__pthread_setspecific): Likewise.
12271         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12272         (__pthread_getspecific): Likewise.
12273         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
12274         Likewise.
12275         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12276         (_pthread_cleanup_push_defer): Likewise.
12277         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12278         (_pthread_cleanup_pop_restore): Likewise.
12279         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12280         (pthread_setcancelstate): Likewise.
12281         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
12282         <bp-sym.h>.
12283         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
12284         (memchr): Do not use BP_SYM in weak_alias.
12285         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
12286         (fegetenv): Do not use BP_SYM in versioned symbols.
12287         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
12288         (fesetenv): Do not use BP_SYM in versioned symbols.
12289         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
12290         (feupdateenv): Do not use BP_SYM in versioned symbols.
12291         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
12292         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
12293         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
12294         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
12295         (open64): Do not use BP_SYM in weak_alias.
12296         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
12297         (fegetenv): Do not use BP_SYM in versioned symbols.
12298         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
12299         (fesetenv): Do not use BP_SYM in versioned symbols.
12300         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
12301         (feupdateenv): Do not use BP_SYM in versioned symbols.
12302         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
12303         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
12304         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
12305         (feraiseexcept): Do not use BP_SYM in versioned symbols.
12306         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
12307         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
12308         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
12309         <bp-sym.h>.
12310         (__libc_start_main): Do not use BP_SYM.
12311
12312 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
12313
12314         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
12315         redundant return line.
12316         (norm): Likewise.
12317         (denorm): Likewise.
12318         (dbl_mp): Likewise.
12319         (sub_magnitudes): Likewise.
12320         (__add): Likewise.
12321         (__sub): Likewise.
12322         (__mul): Likewise.
12323         (__inv): Likewise.
12324         (__dvd): Likewise.
12325         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
12326         (norm): Likewise.
12327         (denorm): Likewise.
12328         (dbl_mp): Likewise.
12329         (sub_magnitudes): Likewise.
12330         (__add): Likewise.
12331         (__sub): Likewise.
12332         (__mul): Likewise.
12333         (__inv): Likewise.
12334         (__dvd): Likewise.
12335
12336         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
12337         instead of __mul.
12338         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
12339         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
12340         (cc32): Likewise.
12341
12342         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
12343         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
12344         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
12345         of __mul for squares.
12346         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
12347         function
12348         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
12349         Likewise.
12350         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
12351         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
12352
12353 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
12354
12355         [BZ #13550]
12356         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
12357         code.
12358         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
12359         prototype or function definition.  Rename ubp_* variables and
12360         parameters.  Remove argv definitions conditional on
12361         [__BOUNDED_POINTERS__].
12362         * debug/backtrace.c (__backtrace): Do not use __unbounded.
12363         * elf/dl-runtime.c (_dl_fixup): Likewise.
12364         * include/set-hooks.h (RUN_HOOK): Likewise.
12365         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
12366         definition.
12367         * string/strcpy.c (strcpy): Do not use __unbounded.
12368         * sysdeps/generic/frame.h (struct layout): Likewise.
12369         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
12370         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
12371         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
12372         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
12373         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
12374         (__backtrace): Likewise.
12375         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
12376         use __ptrvalue.
12377         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
12378         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
12379         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
12380         Likewise.
12381         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
12382         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
12383         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
12384         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
12385         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
12386         Do not use __unbounded.
12387         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
12388         Rename __unboundedrlimits parameter to rlimits in prototype.
12389         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
12390         Do not use __unbounded.
12391         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
12392         not use __ptrvalue.
12393         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
12394         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
12395         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
12396         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
12397         __ptrvalue or __unbounded.
12398         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
12399         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
12400         use __unbounded.
12401         (__new_msgctl): Do not use __ptrvalue.
12402         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
12403         __unbounded.
12404         (__libc_msgrcv): Do not use __ptrvalue.
12405         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
12406         startup_info): Do not use __unbounded.
12407         (__libc_start_main): Likewise.  Rename ubp_* variables and
12408         parameters.  Remove argv definitions conditional on
12409         [__BOUNDED_POINTERS__].
12410         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
12411         __ptrvalue.
12412         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
12413         use __unbounded.
12414         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
12415         or __ptrvalue.
12416         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
12417         use __unbounded.
12418         (__new_shmctl): Do not use __ptrvalue.
12419         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
12420         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
12421         Likewise.
12422         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
12423         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
12424         (__libc_sigaction): Likewise.
12425         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
12426         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
12427         Likewise.
12428         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
12429
12430 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
12431
12432         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
12433
12434         * string/mempcpy.c: Implement by calling memcpy.
12435
12436 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
12437
12438         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
12439
12440         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
12441         evaluation.
12442
12443         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
12444         values in the mantissa.
12445
12446         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
12447         minimize writes to Z.
12448         (sub_magnitudes): Simplify code a bit.
12449
12450 2013-02-12  Roland McGrath  <roland@hack.frob.com>
12451
12452         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
12453         from the message.  The linker prefixes all warnings with that already.
12454
12455 2013-02-12  Andreas Schwab  <schwab@suse.de>
12456
12457         [BZ #15078]
12458         * posix/regexec.c (extend_buffers): Add parameter min_len.
12459         (check_matching): Pass minimum needed length.
12460         (clean_state_log_if_needed): Likewise.
12461         (get_subexp): Likewise.
12462         * posix/Makefile (tests): Add bug-regex34.
12463         (bug-regex34-ENV): Define.
12464         * posix/bug-regex34.c: New file.
12465
12466         [BZ #11561]
12467         * posix/regcomp.c (parse_bracket_exp): When looking up collating
12468         elements compare against the byte sequence of it, not its name.
12469         * posix/Makefile (tests): Add bug-regex35.
12470         (bug-regex35-ENV): Define.
12471         * posix/bug-regex35.c: New file.
12472
12473 2013-02-11  Tom de Vries  <tom@codesourcery.com>
12474
12475         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
12476         comment.
12477         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
12478         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
12479         (CHECK_EOL): Add undef.
12480
12481 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
12482
12483         * bits/stdlib-bsearch.h: New file.
12484         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
12485         * stdlib/stdlib.h: Likewise.
12486
12487 2013-02-11  Roland McGrath  <roland@hack.frob.com>
12488
12489         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
12490         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
12491         declaration.
12492         * manual/search.texi (Array Search Function): Add missing const in
12493         lfind prototype.
12494         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
12495         declaration to use rlim_t.
12496         (Basic Scheduling Functions): Remove erroneous const from
12497         sched_getparam prototype.  Remove erroneous * from
12498         sched_get_priority_max and sched_get_priority_min prototypes.
12499         (Resource Usage): Fix summary @comment on vtimes to refer to
12500         sys/vtimes.h rather than vtimes.h.
12501         Add missing *s in vtimes prototype.
12502         (Limits on Resources): Fix ulimit prototype to return long int.
12503         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
12504         prototypes to use long int rather than double.
12505         (BSD Random): Fix initstate and setstate to use char *, not void *.
12506         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
12507         prototype to make second argument 'struct aiocb64 *const[]'.
12508         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
12509         (Status of AIO Operations): Remove erroneous const in aio_return and
12510         aio_return64 prototypes.
12511         (Synchronizing I/O): Fix sync prototype to return void.
12512         * manual/startup.texi (Suboptions): Remove an erroneous const in
12513         getsubopt prototype.
12514         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
12515         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
12516         use size_t rather than int.
12517         (Scanning All Users): Likewise for getpwent_r.
12518         (Setting Groups): Add missing const to setgroups prototype.
12519         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
12520         * manual/socket.texi (Host Names): Fix gethostbyaddr and
12521         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
12522         'const void *' rather than 'const char *'.
12523         (Host Address Functions): Likewise for inet_ntop.
12524         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
12525         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
12526         ssize_t for return value.
12527         (Sending Data): Likewise for send, sendto, sendmsg.
12528         (Socket Option Functions): Add a missing const in setsockopt prototype.
12529         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
12530         use wchar_t for the argument.
12531         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
12532         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
12533         take no arguments.
12534         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
12535         double/float/long double for second argument.
12536         Fix return types of significand, significandf, significandl.
12537         * manual/filesys.texi (Setting Permissions): Use mode_t for second
12538         argument in fchmod prototype.
12539         (File Owner): Use uid_t and gid_t in fchown prototype.
12540         (File Times): Add const to utimes, futimes, and lutimes prototypes.
12541         (Making Special Files): Use mode_t and dev_t in mknod prototype.
12542         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
12543         use 'const struct dirent **' as argument types to CMP function pointer
12544         argument.
12545         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
12546         (File Times): Fix summary magic @comment for struct utimbuf and utime
12547         to refer to utime.h, not time.h.
12548         * manual/string.texi (Argz Functions): Add missing const in
12549         argz_extract and argz_next prototypes.
12550         (Finding Tokens in a String): Likewise for basename.
12551         (String/Array Comparison): Fix typo in wcscasecmp prototype.
12552         (Copying and Concatenation): Fix typo in wmemmove prototype.
12553         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
12554         (Signal Stack): Remove erroneous const in sigstack prototype.
12555         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
12556         prototype.
12557         (Simple Calendar Time): Likewise for stime.
12558         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
12559         prototype.
12560         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
12561         say sys/sysctl.h instead.
12562         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
12563         and vsyslog prototypes.
12564
12565 2013-02-11  Tom de Vries  <tom@codesourcery.com>
12566
12567         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
12568         Remove.
12569
12570 2013-02-11  Roland McGrath  <roland@hack.frob.com>
12571
12572         * misc/sys/mman.h: Fix typo in mremap comment.
12573
12574 2013-02-08  Roland McGrath  <roland@hack.frob.com>
12575
12576         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
12577         the '\0' terminator.
12578
12579 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
12580
12581         [BZ #13550]
12582         * debug/segfault.c: Don't include <bp-checks.h>.
12583         * sysdeps/generic/bp-checks.h: Remove file.
12584         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
12585         (__GETDENTS): Don't use CHECK_N.
12586         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
12587         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
12588         (__getgroups): Don't use CHECK_N.
12589         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
12590         (setgroups): Don't use CHECK_N.
12591         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
12592         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12593         (__libc_msgrcv): Don't use CHECK_N.
12594         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
12595         (__libc_msgsnd): Don't use CHECK_N.
12596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
12597         <bp-checks.h>.
12598         (__libc_pread): Don't use CHECK_N.
12599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
12600         include <bp-checks.h>.
12601         (__libc_pread64): Don't use CHECK_N.
12602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
12603         include <bp-checks.h>.
12604         (__libc_pwrite): Don't use CHECK_N.
12605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
12606         include <bp-checks.h>.
12607         (__libc_pwrite64): Don't use CHECK_N.
12608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
12609         <bp-checks.h>.
12610         (__libc_pread): Don't use CHECK_N.
12611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
12612         include <bp-checks.h>.
12613         (__libc_pread64): Don't use CHECK_N.
12614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
12615         include <bp-checks.h>.
12616         (__libc_pwrite): Don't use CHECK_N.
12617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
12618         include <bp-checks.h>.
12619         (__libc_pwrite64): Don't use CHECK_N.
12620         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
12621         (do_pread): Don't use CHECK_N.
12622         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
12623         (do_pread64): Don't use CHECK_N.
12624         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
12625         (do_pwrite): Don't use CHECK_N.
12626         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
12627         (do_pwrite64): Don't use CHECK_N.
12628         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
12629         (__libc_readv): Don't use CHECK_N.
12630         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
12631         (semop): Don't use CHECK_N.
12632         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
12633         <bp-checks.h>.
12634         (semtimedop): Don't use CHECK_N.
12635         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
12636         (__libc_pread): Don't use CHECK_N.
12637         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
12638         <bp-checks.h>.
12639         (__libc_pread64): Don't use CHECK_N.
12640         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
12641         <bp-checks.h>.
12642         (__libc_pwrite): Don't use CHECK_N.
12643         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
12644         <bp-checks.h>.
12645         (__libc_pwrite64): Don't use CHECK_N.
12646         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
12647         <bp-checks.h>.
12648         (__libc_msgrcv): Don't use CHECK_N.
12649         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
12650         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
12651         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
12652         (__libc_writev): Don't use CHECK_N.
12653
12654 2013-02-08  Roland McGrath  <roland@hack.frob.com>
12655
12656         * string/strcpy.c: Removed unused variable.
12657
12658         * Makeconfig (+sysdep-includes): Define with := rather than =.
12659         Use an existing include/ subdir of each sysdeps dir before it.
12660
12661 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
12662
12663         * nscd/connection.c (register_traced_file): Comment function.
12664         [HAVE_INOTIFY] (union __inev): Define.
12665         [HAVE_INOTIFY] (inotify_check_files): New function.
12666         [HAVE_INOTIFY] (clear_db_cache): Likewise.
12667         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
12668         clear_db_cache.
12669         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
12670
12671 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
12672
12673         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
12674         loaded if not already and that a failure is permanent.
12675
12676 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
12677
12678         [BZ #15006]
12679         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
12680         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
12681
12682 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
12683
12684         [BZ #13550]
12685         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
12686         (CHECK_1_NULL_OK): Likewise.
12687         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
12688         (__fxstat): Do not use CHECK_1.
12689         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
12690         <bp-checks.h>.
12691         (___fxstat64): Do not use CHECK_1.
12692         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
12693         <bp-checks.h>.
12694         (__fxstatat): Do not use CHECK_1.
12695         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
12696         <bp-checks.h>.
12697         (__fxstatat64): Do not use CHECK_1.
12698         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
12699         <bp-checks.h>.
12700         (__fxstat): Do not use CHECK_1.
12701         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
12702         <bp-checks.h>.
12703         (__fxstatat): Do not use CHECK_1.
12704         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
12705         <bp-checks.h>.
12706         (__getresgid): Do not use CHECK_1.
12707         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
12708         <bp-checks.h>.
12709         (__getresuid): Do not use CHECK_1.
12710         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
12711         <bp-checks.h>.
12712         (__lxstat): Do not use CHECK_1.
12713         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
12714         <bp-checks.h>.
12715         (__old_msgctl): Do not use CHECK_1.
12716         (__new_msgctl): Likewise.
12717         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
12718         <bp-checks.h>.
12719         (__new_setrlimit): Do not use CHECK_1.
12720         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
12721         <bp-checks.h>.
12722         (__old_shmctl): Do not use CHECK_1.
12723         (__new_shmctl): Likewise.
12724         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
12725         <bp-checks.h>.
12726         (__xstat): Do not use CHECK_1.
12727         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
12728         (__lxstat): Do not use CHECK_1.
12729         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
12730         <bp-checks.h>.
12731         (___lxstat64): Do not use CHECK_1.
12732         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
12733         (__old_msgctl): Do not use CHECK_1.
12734         (__new_msgctl): Likewise.
12735         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
12736         <bp-checks.h>.
12737         (__gettimeofday): Do not use CHECK_1.
12738         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
12739         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
12740         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
12741         <bp-checks.h>.
12742         (__gettimeofday): Do not use CHECK_1.
12743         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
12744         (__old_shmctl): Do not use CHECK_1_NULL_OK.
12745         (__new_shmctl): Do not use CHECK_1.
12746         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
12747         <bp-checks.h>.
12748         (do_sigtimedwait): Do not use CHECK_1.
12749         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
12750         <bp-checks.h>.
12751         (do_sigwaitinfo): Do not use CHECK_1.
12752         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
12753         <bp-checks.h>.
12754         (msgctl): Do not use CHECK_1.
12755         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
12756         <bp-checks.h>.
12757         (shmctl): Do not use CHECK_1.
12758         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
12759         (ustat): Do not use CHECK_1.
12760         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
12761         <bp-checks.h>.
12762         (__fxstat): Do not use CHECK_1.
12763         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
12764         <bp-checks.h>.
12765         (__fxstatat): Do not use CHECK_1.
12766         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
12767         <bp-checks.h>.
12768         (__lxstat): Do not use CHECK_1.
12769         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
12770         <bp-checks.h>.
12771         (__xstat): Do not use CHECK_1.
12772         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
12773         (__xstat): Do not use CHECK_1.
12774         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
12775         (___xstat64): Do not use CHECK_1.
12776
12777         [BZ #13550]
12778         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
12779         definitions.
12780         (CHECK_BOUNDS_HIGH): Likewise.
12781         * string/strcpy.c: Do not include <bp-checks.h>.
12782         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
12783
12784 2013-02-07  Roland McGrath  <roland@hack.frob.com>
12785
12786         * nscd/nscd-client.h (__nscd_drop_map_ref):
12787         Add __attribute__ ((unused)).
12788         * nis/nss-nisplus.h (niserr2nss): Likewise.
12789
12790         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
12791         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
12792
12793         * csu/libc-tls.c (init_static_tls, init_slotinfo):
12794         Remove inline keyword.
12795         * include/rounding-mode.h (round_away): Likewise.
12796         * libio/wfileops.c (adjust_wide_data): Likewise.
12797         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
12798         (__m128i_strloadu_tolower): Likewise.
12799         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
12800         (__m128i_strloadu_tolower): Likewise.
12801         * time/mktime.c (ydhms_diff): Likewise.
12802         * locale/elem-hash.h (elem_hash): Likewise.
12803         * locale/setlocale.c (setdata): Likewise.
12804         * posix/regex_internal.h (re_string_char_size_at): Likewise.
12805         (re_string_wchar_at): Likewise.
12806         (bitset_not, bitset_merge, bitset_mask): Likewise.
12807         [!(__GNUC__ > 3)] (inline): Remove macro.
12808         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
12809         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
12810         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
12811         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
12812         * string/memcmp.c (memcmp_bytes): Likewise.
12813         * locale/programs/locarchive.c (compute_hashval): Likewise.
12814         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
12815         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
12816         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
12817         * nss/getent.c (print_rpc, print_protocols): Likewise.
12818         (print_passwd, print_group, print_aliases): Likewise.
12819         * nis/nss-nisplus.h (niserr2nss): Likewise.
12820         * nscd/connections.c (restart_p): Likewise.
12821         Change return type to bool.
12822
12823 2013-02-05  Roland McGrath  <roland@hack.frob.com>
12824
12825         * Makeconfig (all-Depend-files): Add existing
12826         $(sorted-subdirs:=/Depend) files.
12827         (all-subdirs): Remove nss.
12828         * sysdeps/unix/inet/Subdirs: Add it here instead.
12829         * hesiod/Depend: New file.
12830
12831         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
12832         instead of calling alloca.
12833
12834         * io/lseek.c (__lseek): Rename to __libc_lseek.
12835         Define __lseek as an alias.
12836
12837         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
12838
12839 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
12840
12841         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
12842         else clause and remove check for non-standard endianness.
12843
12844 2013-02-04  David S. Miller  <davem@davemloft.net>
12845
12846         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12847
12848 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
12849
12850         [BZ #13550]
12851         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
12852         (__ubp_memchr): Remove prototype.
12853         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
12854         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
12855         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
12856         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
12857         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
12858         Remove alias.
12859         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
12860         (__ubp_memchr): Likewise.
12861         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
12862         (__ubp_memchr): Likewise.
12863         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
12864         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
12865         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
12866         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
12867         CHECK_STRING.
12868         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
12869         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
12870         (__getcwd): Do not use CHECK_STRING.
12871         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
12872         <bp-checks.h>.
12873         (__real_chown): Do not use CHECK_STRING.
12874         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
12875         <bp-checks.h>.
12876         (fchownat): Do not use CHECK_STRING.
12877         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
12878         CHECK_STRING.
12879         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
12880         <bp-checks.h>.
12881         (__lchown): Do not use CHECK_STRING.
12882         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
12883         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
12884         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
12885         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
12886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
12887         include <bp-checks.h>.
12888         (truncate64): Do not use CHECK_STRING.
12889         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
12890         <bp-checks.h>.
12891         (__real_chown): Do not use CHECK_STRING.
12892         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
12893         <bp-checks.h>.
12894         (__lchown): Do not use CHECK_STRING.
12895         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
12896         <bp-checks.h>.
12897         (__chown): Do not use CHECK_STRING.
12898         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
12899         <bp-checks.h>.
12900         (truncate64): Do not use CHECK_STRING.
12901         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
12902         Likewise.
12903         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
12904         (__xmknod): Do not use CHECK_STRING.
12905         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
12906         <bp-checks.h>.
12907         (__xmknodat): Do not use CHECK_STRING.
12908         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
12909         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
12910
12911 2013-02-04  Andreas Schwab  <schwab@suse.de>
12912
12913         [BZ #14142]
12914         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
12915         * include/netdb.h: Likewise for h_errno.
12916         * elf/tst-stackguard1.c: Include <tls.h>.
12917
12918 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12919
12920         * elf/link.h (struct link_map): Extend the l_addr comment.
12921         * include/link.h (struct link_map): Likewise.
12922
12923 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
12924
12925         [BZ #13550]
12926         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
12927         (BOUNDED_1): Remove macro.
12928         * debug/backtrace.c: Don't include <bp-checks.h>.
12929         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
12930         (__backtrace): Likewise.
12931         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
12932         <bp-checks.h>.
12933         (__backtrace): Don't use BOUNDED_1.
12934         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
12935         <bp-checks.h>.
12936         (__backtrace): Don't use BOUNDED_1.
12937         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
12938         (__backtrace): Don't use BOUNDED_1.
12939         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
12940         (shmat): Don't use BOUNDED_N.
12941
12942 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
12943
12944         [BZ #13550]
12945         * sysdeps/generic/bp-start.h: Remove file.
12946         * csu/libc-start.c: Don't include <bp-start.h>.
12947         (LIBC_START_MAIN): Set up __environ directly instead of using
12948         INIT_ARGV_and_ENVIRON.
12949         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
12950         <bp-start.h>.
12951
12952         [BZ #13550]
12953         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
12954         definitions.
12955         (CHECK_FCNTL): Likewise.
12956         (CHECK_N_PAGES): Likewise.
12957
12958         [BZ #13550]
12959         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
12960         definitions.
12961         (CHECK_SIGSET_NULL_OK): Likewise.
12962         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
12963         <bp-checks.h>.
12964         (sigpending): Don't use CHECK_SIGSET.
12965         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
12966         <bp-checks.h>.
12967         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
12968         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
12969         <bp-checks.h>.
12970         (do_sigsuspend): Don't use CHECK_SIGSET.
12971         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
12972         use CHECK_SIGSET.
12973         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
12974         (do_sigwait): Don't use CHECK_SIGSET.
12975         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
12976         use CHECK_SIGSET.
12977         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
12978         include <bp-checks.h>.
12979         (sigpending): Don't use CHECK_SIGSET.
12980         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
12981         include <bp-checks.h>.
12982         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
12983         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
12984         <bp-checks.h>.
12985         (sigpending): Don't use CHECK_SIGSET.
12986         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
12987         <bp-checks.h>.
12988         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
12989
12990         [BZ #13550]
12991         * sysdeps/generic/bp-semctl.h: Remove file.
12992         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
12993         <bp-checks.h> and <bp-semctl.h>.
12994         (__old_semctl): Don't use CHECK_SEMCTL.
12995         (__new_semctl): Likewise.
12996         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
12997         and <bp-semctl.h>.
12998         (__old_semctl): Don't use CHECK_SEMCTL.
12999         (__new_semctl): Likewise.
13000         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
13001         <bp-checks.h> and <bp-semctl.h>.
13002         (__old_semctl): Don't use CHECK_SEMCTL.
13003         (__new_semctl): Likewise.
13004         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
13005         <bp-checks.h> and <bp-semctl.h>.
13006         (semctl): Don't use CHECK_SEMCTL.
13007
13008         [BZ #13550]
13009         * Makerules (elide-bp-thunks): Remove variable.
13010         (elide-routines.oS): Don't use $(elide-bp-thunks).
13011         (elide-routines.os): Likewise.
13012         (elide-routines.o): Likewise.
13013         (elide-routines.op): Likewise.
13014         (elide-routines.og): Likewise.
13015         (objects): Don't use $(bp-thunks).
13016         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
13017         include.
13018         (common-generated): Do not add s-proto-bp.d.
13019         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
13020         (int): Likewise.
13021         (typ): Likewise.
13022         Do not generate makefile rules for bounded-pointer thunks.
13023         * sysdeps/generic/bp-thunks.h: Remove file.
13024         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
13025         * sysdeps/unix/s-proto-bp.S: Likewise.
13026
13027         [BZ #15062]
13028         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
13029         parts of result separately when argument is not close to line from
13030         -i to i and one part of argument is small.
13031         * math/k_casinhf.c (__kernel_casinhf): Likewise.
13032         * math/k_casinhl.c (__kernel_casinhl): Likewise.
13033         * math/libm-test.inc (cacos_test): Add more tests.
13034         (casin_test): Likewise.
13035         (casinh_test): Likewise.
13036         * sysdeps/i386/fpu/libm-test-ulps: Update.
13037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13038
13039 2013-01-31  David S. Miller  <davem@davemloft.net>
13040
13041         * po/de.po: Update from translation team.
13042
13043 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
13044
13045         * time/tzfile.c: Include stdint.h for SIZE_MAX.
13046
13047 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
13048
13049         * configure.in (_AC_PROG_CC_C89): New definition.
13050         * configure: Regenerate.
13051
13052         * configure.in (AC_PROG_CPP): New definition.
13053         * configure: Regenerate.
13054
13055 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
13056
13057         * debug/tst-backtrace.h: New file.
13058         * debug/tst-backtrace2.c: Include tst-backtrace.h.
13059         (ret): Remove variable.
13060         (x): Likewise.
13061         (FAIL): Remove macro.
13062         (NO_INLINE): Likewise.
13063         (fn1): Use match function instead of strstr.
13064         * debug/tst-backtrace3.c: Include tst-backtrace.h.
13065         (ret): Remove variable.
13066         (x): Likewise.
13067         (FAIL): Remove macro.
13068         (NO_INLINE): Likewise.
13069         (fn): Use match function instead of strstr.
13070         * debug/tst-backtrace4.c: Include tst-backtrace.h.
13071         (ret): Remove variable.
13072         (x): Likewise.
13073         (FAIL): Remove macro.
13074         (NO_INLINE): Likewise.
13075         (handle_signal): Use match function instead of strstr.
13076         * debug/tst-backtrace5.c: Include tst-backtrace.h.
13077         (ret): Remove variable.
13078         (x): Likewise.
13079         (FAIL): Remove macro.
13080         (NO_INLINE): Likewise.
13081         (handle_signal): Use match function instead of strstr.
13082
13083 2013-01-23  Roland McGrath  <roland@hack.frob.com>
13084
13085         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
13086
13087 2013-01-23  David S. Miller  <davem@davemloft.net>
13088
13089         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
13090         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
13091         argument of CAS if possible.
13092         * sysdeps/sparc/sparc64/bits/atomic.h
13093         (__arch_compare_and_exchange_val_32_acq): Likewise.
13094         (__arch_compare_and_exchange_val_64_acq): Likewise.
13095
13096 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
13097
13098         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
13099         * sysdeps/posix/ulimit.c: ... this.
13100         Include <limits.h>.
13101         * sysdeps/unix/bsd/ulimit.c: Remove file.
13102
13103 2013-01-23  Adam Conrad  <adconrad@0c3.net>
13104
13105         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
13106         (LDFLAGS-tst-array5): Likewise.
13107
13108 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
13109
13110         [BZ #15036]
13111         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
13112         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
13113         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
13114         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
13115
13116 2013-01-21  David S. Miller  <davem@davemloft.net>
13117
13118         * sysdeps/sparc/backtrace.c: New file.
13119         * sysdeps/sparc/sparc32/backtrace.h: New file.
13120         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
13121         * sysdeps/sparc/sparc64/backtrace.h: New file.
13122         * sysdeps/sparc/sparc64/backtrace.c: Delete.
13123         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
13124         -funwind-tables.
13125
13126 2013-01-21  Andreas Schwab  <schwab@suse.de>
13127
13128         [BZ #15020]
13129         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
13130         closed its stdout.
13131
13132 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
13133
13134         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
13135         "mpa2.h".
13136         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
13137
13138 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
13139             Mark Mitchell  <mark@codesourcery.com>
13140             Tom de Vries  <tom@codesourcery.com>
13141             Paul Pluzhnikov  <ppluzhnikov@google.com>
13142
13143         * debug/tst-backtrace2.c: New file.
13144         * debug/tst-backtrace3.c: Likewise.
13145         * debug/tst-backtrace4.c: Likewise.
13146         * debug/tst-backtrace5.c: Likewise.
13147         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
13148         (CFLAGS-tst-backtrace3.c): Likewise.
13149         (CFLAGS-tst-backtrace4.c): Likewise.
13150         (CFLAGS-tst-backtrace5.c): Likewise.
13151         (LDFLAGS-tst-backtrace2): Likewise.
13152         (LDFLAGS-tst-backtrace3): Likewise.
13153         (LDFLAGS-tst-backtrace4): Likewise.
13154         (LDFLAGS-tst-backtrace5): Likewise.
13155         (tests): Add new tests tst-backtrace2, tst-backtrace3,
13156         tst-backtrace4 and tst-backtrace5.
13157
13158 2013-01-18  Anton Blanchard  <anton@samba.org>
13159             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13160
13161         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
13162         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
13163         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
13164         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
13165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
13166         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
13167         "+r" and remove output regs list as redundant.  Add explicit inline
13168         asm to specify register of return val to work around compiler codegen
13169         bug.  Remove (int) cast on return value.  Add return type parameter to
13170         use in macro so that this macro does not truncate return value for
13171         64-bit values.
13172         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
13173         pass to INTERNAL_VSYSCALL_NCS.
13174         (INLINE_VSYSCALL): Add 'long int' as return type to
13175         INTERNAL_VSYSCALL_NCS macro invocation.
13176         (INTERNAL_VSYSCALL): Add 'long int' as return type to
13177         INTERNAL_VSYSCALL_NCS macro invocation.
13178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13179
13180 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13181
13182         [BZ #14496]
13183         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
13184         Fix application of SIMD FP exception mask.
13185
13186         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
13187         mp_no from a power of two.
13188         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
13189         __mpexp_twomm1.  Use __pow_mp.
13190
13191         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
13192         multiplication.
13193
13194 2013-01-17  David S. Miller  <davem@davemloft.net>
13195
13196         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13197
13198 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
13199
13200         [BZ #15023]
13201         * include/complex.h: Condition contents on [!_COMPLEX_H].
13202         (__kernel_casinhf): New prototype.
13203         (__kernel_casinh): Likewise.
13204         (__kernel_casinhl): Likewise.
13205         * math/Makefile (libm_calls): Add k_casinh.
13206         * math/k_casinh.c: New file.
13207         * math/k_casinhf.c: Likewise.
13208         * math/k_casinhl.c: Likewise.
13209         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
13210         finite nonzero arguments.
13211         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
13212         finite nonzero arguments.
13213         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
13214         finite nonzero arguments.
13215         * math/s_casinh.c: Do not include <float.h>.
13216         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
13217         * math/s_casinhf.c: Do not include <float.h>.
13218         (__casinhf): Move code for finite nonzero arguments to
13219         k_casinhf.c.
13220         * math/s_casinhl.c: Do not include <float.h>.
13221         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
13222         redefine.
13223         (__casinhl): Move code for finite nonzero arguments to
13224         k_casinhl.c.
13225         * math/libm-test.inc (cacos_test): Add more tests.
13226         * sysdeps/i386/fpu/libm-test-ulps: Update.
13227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13228
13229 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
13230
13231         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
13232         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
13233         [!HAVE_MREMAP]: Remove [defined linux] case.
13234         * malloc/arena.c: Do not include <malloc-sysdep.h>.
13235
13236 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
13237
13238         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
13239
13240 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13241
13242         * elf/elf.h (R_386_SIZE32): New relocation.
13243         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
13244         R_386_SIZE32.
13245         (elf_machine_rela): Likewise.
13246         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
13247         R_X86_64_SIZE64 and R_X86_64_SIZE32.
13248
13249 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
13250
13251         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
13252         (FP_FAST_FMA): Do not define.
13253         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
13254         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
13255         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
13256         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
13257         !_SOFT_FLOAT]: Likewise.
13258         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
13259         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
13260         value.
13261         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
13262         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
13263         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
13264         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
13265         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
13266         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
13267         file.
13268
13269 2013-01-16  Andreas Schwab  <schwab@suse.de>
13270
13271         [BZ #14327]
13272         * include/stdlib.h (__mktemp): Add declaration.
13273         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
13274         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
13275
13276 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
13277
13278         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
13279         definitions.
13280         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
13281         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
13282         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
13283         definitions here.
13284         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
13285         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
13286         definitions.
13287         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
13288         and ONE.
13289         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
13290         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
13291         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
13292         definitions.
13293         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
13294         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
13295         definitions.
13296         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
13297
13298         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
13299
13300 2013-01-15  David S. Miller  <davem@davemloft.net>
13301
13302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
13303         trunc{,f} to libm-sysdep_routes.
13304         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
13306         file.
13307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
13308         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
13309         file.
13310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
13311         file.
13312         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
13313         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
13314         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
13315         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
13316         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
13317         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
13318         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
13319         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
13320
13321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
13322         nearbyint{,f} to libm-sysdep_routes.
13323         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
13325         New file.
13326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
13327         file.
13328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
13329         New file.
13330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
13331         file.
13332         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
13333         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
13334         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
13335         file.
13336         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
13337         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
13338         file.
13339         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
13340         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
13341         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
13342
13343         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
13344         libc_feholdexcept and libc_fesetenv.
13345
13346 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
13347
13348         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
13349
13350 2013-01-14  David S. Miller  <davem@davemloft.net>
13351
13352         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
13353         (SPARC_ASM_VIS2_IFUNC): Likewise.
13354         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
13355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
13356         use of 'siam' instruction.
13357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
13358         Likewise.
13359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
13360         Likewise.
13361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
13362         Likewise.
13363         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
13364         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13365         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
13366         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
13367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
13368         file.
13369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
13370         file.
13371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
13372         file.
13373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
13374         file.
13375         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
13376         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
13377         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
13378         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
13379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
13380         new VIS2 routines.
13381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
13382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
13384         Likewise.
13385         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
13386         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
13387         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
13388         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
13389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
13390         routines to libm-sysdep_routines.
13391         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13392
13393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
13394         fdim/fdimf to libm-sysdep_routines.
13395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
13396         file.
13397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
13398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
13399         file.
13400         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
13401         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
13402         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
13403         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
13404         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
13405         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
13406         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
13407
13408 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13409
13410         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
13411         to optimize copies.
13412
13413         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
13414         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
13415         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
13416
13417         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
13418         local variable MPTWO.
13419         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
13420         Likewise.
13421
13422 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
13423
13424         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
13425         GLOB_NOESCAPE.
13426
13427 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
13428
13429         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
13430
13431 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
13432
13433         * manual/pattern.texi (glob_t): Document gl_flags.
13434         (glob64_t): Likewise.
13435
13436 2013-01-11  David S. Miller  <davem@davemloft.net>
13437
13438         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
13439         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
13440         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
13441         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
13442         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
13443         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
13444         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
13445         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
13446         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
13447         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
13448         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
13449         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
13450         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
13451
13452         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
13453         sparc V9 rather than using V8 code.
13454         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
13455         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
13456
13457         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
13458         Move to...
13459         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
13460         Here.
13461
13462 2013-01-11  Roland McGrath  <roland@hack.frob.com>
13463
13464         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
13465         not in the main loop.
13466         * configure: Regenerated.
13467
13468 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
13469
13470         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
13471         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
13472         to just #else.
13473         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
13474         [!__GLIBC_HAVE_LONG_LONG] case.
13475         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
13476         condition to just #else.
13477         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
13478         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
13479         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
13480         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
13481         unconditional.
13482         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
13483         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
13484         #elif condition to just #else.
13485         * sysdeps/unix/sysv/linux/sys/sysmacros.h
13486         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
13487         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
13488         #elif condition to just #else.
13489
13490 2013-01-11  Steve Ellcey  <sellcey@mips.com>
13491
13492         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
13493         (EF_MIPS_ARCH_64): Fix value.
13494         (EF_MIPS_ARCH_32R2): New.
13495         (EF_MIPS_ARCH_64R2): New.
13496
13497 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
13498
13499         * Makeconfig (+link-pie-before-libc): New.
13500         (+link-pie-after-libc): Likewise.
13501         (+link-pie-tests): Likewise.
13502         (+link-pie): Rewritten.
13503         (link-before-libc): Remove $(config-LDFLAGS).
13504         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
13505         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
13506         (config-LDFLAGS): Renamed to ...
13507         (rtld-LDFLAGS): This.
13508         (rtld-tests-LDFLAGS): New macro.
13509         (link-libc-rpath-link): Likewise.
13510         (link-libc-tests-rpath-link): Likewise.
13511         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
13512         (link-libc): Prepand $(link-libc-rpath-link).
13513         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
13514         (test-program-prefix): New macro.
13515         (test-via-rtld-prefix): Likewise.
13516         (test-program-cmd): Likewise.
13517         (host-test-program-cmd): Likewise.
13518         * Makefile ($(common-objpfx)testrun.sh): Replace
13519         $(run-program-prefix) with $(test-program-prefix).
13520         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
13521         $(rtld-LDFLAGS).
13522         ($(common-objpfx)shlib.lds): Likewise.
13523         (build-module-helper): Likewise.
13524         ($(common-objpfx)format.lds): Likewise.
13525         * Rules (binaries-pie-tests): New.
13526         (binaries-pie-notests): Likewise.
13527         (binaries-pie): Rewritten.
13528         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
13529         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
13530         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
13531         (make-test-out): Replace $(host-built-program-cmd) with
13532         $(host-test-program-cmd).
13533         * config.make.in (build-hardcoded-path-in-tests): New variable.
13534         * configure.in (--enable-hardcoded-path-in-tests): New configure
13535         option.
13536         (hardcoded_path_in_tests): New AC_SUBST.
13537         * configure: Regenerated.
13538         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
13539         $(built-program-cmd) with $(test-program-cmd).
13540         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
13541         (test_program_cmd): This.
13542         * elf/Makefile ($(objpfx)order.out): Run test with
13543         $(test-program-prefix).
13544         ($(objpfx)order2.out): Likewise.
13545         ($(objpfx)tst-initorder.out): Likewise.
13546         ($(objpfx)tst-initorder2.out): Likewise.
13547         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
13548         $(test-program-cmd).
13549         ($(objpfx)tst-array1-static.out): Likewise.
13550         ($(objpfx)tst-array2.out): Likewise.
13551         ($(objpfx)tst-array3.out): Likewise.
13552         ($(objpfx)tst-array4.out): Likewise.
13553         ($(objpfx)tst-array5.out): Likewise.
13554         ($(objpfx)tst-array5-static.out): Likewise.
13555         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
13556         $(test-program-cmd).
13557         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
13558         $(run-program-prefix) with $(test-program-prefix).
13559         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
13560         (test_program_prefix): This.
13561         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
13562         $(run-program-prefix) with $(test-program-prefix).
13563         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
13564         (test_program_prefix): This.
13565         * iconvdata/tst-tables.sh: Likewise.
13566         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
13567         $(run-program-prefix) with $(test-program-prefix).
13568         ($(objpfx)tst-translit.out): Likewise.
13569         ($(objpfx)tst-gettext2.out): Likewise.
13570         ($(objpfx)tst-gettext4.out): Likewise.
13571         ($(objpfx)tst-gettext6.out): Likewise.
13572         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
13573         (test_program_prefix): This.
13574         * intl/tst-gettext2.sh: Likewise.
13575         * intl/tst-gettext4.sh  Likewise.
13576         * intl/tst-gettext6.sh: Likewise.
13577         * intl/tst-translit.sh: Likewise.
13578         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
13579         with $(test-program-cmd).
13580         * libio/Makefile ($(objpfx)test-freopen.out): Replace
13581         $(run-program-prefix) with $(test-program-prefix).
13582         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
13583         (test_program_prefix): This.
13584         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
13585         $(run-program-prefix) with $(test-program-prefix).
13586         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
13587         (test_program_prefix): This.
13588         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
13589         * posix/Makefile ($(objpfx)globtest.out): Replace
13590         $(run-via-rtld-prefix) and $(test-wrapper) with
13591         $(test-program-prefix) and $(test-via-rtld-prefix).
13592         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
13593         $(test-program-prefix).
13594         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
13595         $(host-test-program-cmd).
13596         (tst-spawn-ARGS): Likewise.
13597         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
13598         $(test-program-prefix).
13599         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
13600         (test_via_rtld_prefix): This.
13601         (test_wrapper): Renamed to ...
13602         (test_program_prefix): This.
13603         (run_program_prefix): Replaced by test_program_prefix.
13604         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
13605         (test_program_prefix): This.
13606         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
13607         with $(host-test-program-cmd).
13608         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
13609         $(run-program-prefix) with $(test-program-prefix).
13610         ($(objpfx)tst-printf.out): Likewise.
13611         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
13612         $(test-program-cmd).
13613         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
13614         (test_program_prefix): This.
13615         * stdio-common/tst-unbputc.sh: Likewise.
13616         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
13617         $(run-program-prefix) with $(test-program-prefix).
13618         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
13619         (test_program_prefix): This.
13620         * string/Makefile ($(objpfx)tst-svc.out):  Replace
13621         $(built-program-cmd) with $(test-program-cmd).
13622
13623 2013-01-11  Andreas Jaeger  <aj@suse.de>
13624
13625         [BZ #15003]
13626         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
13627         value. Sync with Linux 3.7.
13628
13629 2013-01-10  David S. Miller  <davem@davemloft.net>
13630
13631         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
13632         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
13633         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
13634
13635 2013-01-10  Roland McGrath  <roland@hack.frob.com>
13636
13637         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
13638         never set.
13639         * configure: Regenerated.
13640
13641 2013-01-10  David S. Miller  <davem@davemloft.net>
13642
13643         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
13644         sparc V9 rather than using V8 code.
13645         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
13646         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
13647
13648 2013-01-10  Roland McGrath  <roland@hack.frob.com>
13649
13650         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
13651         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
13652         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
13653         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
13654         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
13655         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
13656         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
13657         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
13658         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
13659         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
13660         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
13661         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
13662         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
13663         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
13664         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
13665         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
13666         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
13667         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
13668         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
13669         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
13670         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
13671         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
13672         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
13673         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
13674         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
13675         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
13676         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
13677
13678 2013-01-10  David S. Miller  <davem@davemloft.net>
13679
13680         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13681
13682 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13683
13684         * posix/Makefile (tests-static): New variable.
13685         (tests): Add $(tests-static).
13686         (tst-exec-static-ARGS): New variable.
13687         (tst-spawn-static-ARGS): Likewise.
13688         * posix/tst-exec-static.c: New file.
13689         * posix/tst-spawn-static.c: Likewise.
13690         * posix/tst-exec.c: Support run directly.
13691         * posix/tst-spawn.c: Likewise.
13692
13693 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
13694
13695         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
13696         long.
13697         * math/bits/mathcalls.h (llrint): Likewise.
13698         (llround): Likewise.
13699         * stdlib/stdlib.h (struct drand48_data): Likewise.
13700         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
13701         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
13702         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
13703         Likewise.
13704         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
13705         Likewise.
13706         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
13707         (elf_greg_t): Likewise.
13708         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
13709         (__jmp_buf): Likewise.
13710         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
13711         definitions.
13712         (llrint): Likewise, for all definitions.
13713         (llrintl): Likewise.
13714
13715         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
13716         Remove [__GNUC__] condition.
13717         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
13718         condition to just [__USE_ISOC99].
13719         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
13720
13721 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13722
13723         [BZ #14200]
13724         * sysdeps/unix/sysv/linux/x86/bits/environments.h
13725         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
13726         defined.
13727         (_POSIX_V6_ILP32_OFF32): Likewise.
13728         (_XBS5_ILP32_OFF32): Likewise.
13729         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
13730         (__ILP32_OFFBIG_LDFLAGS): Likewise.
13731
13732 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
13733
13734         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
13735
13736         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
13737         doubles __mpexp_twomm1.  Adjust usage.
13738         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
13739         Remove.
13740
13741 2013-01-10  Andreas Schwab  <schwab@suse.de>
13742
13743         [BZ #14964]
13744         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
13745         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
13746
13747 2013-01-09  David S. Miller  <davem@davemloft.net>
13748
13749         [BZ #15003]
13750         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
13751         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
13752         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
13753         TCP_FASTOPEN): Define.
13754         (tcp_repair_opt): New structure.
13755         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
13756         enum values.
13757         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
13758         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
13759         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
13760         (tcp_cookie_transactions): New structure.
13761
13762 2013-01-09  Anton Blanchard  <anton@samba.org>
13763
13764         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
13765         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
13766         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
13767         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
13768
13769 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
13770
13771         * include/features.h (__USE_ANSI): Remove.
13772
13773 2013-01-09  Roland McGrath  <roland@hack.frob.com>
13774
13775         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
13776
13777         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
13778
13779 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
13780
13781         * sysdeps/s390/fpu/libm-test-ulps: Update.
13782
13783         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13784
13785         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
13786         (__acr): Likewise.
13787         (__cpy): Likewise.
13788         (norm): Likewise.
13789         (denorm): Likewise.
13790         (__mp_dbl): Likewise.
13791         (__dbl_mp): Likewise.
13792         (add_magnitudes): Likewise.
13793         (sub_magnitudes): Likewise.
13794         (__add): Likewise.
13795         (__sub): Likewise.
13796         (__mul): Likewise.
13797         (__inv): Likewise.
13798         (__dvd): Likewise.
13799         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
13800         (__acr): Likewise.
13801         (__cpy): Likewise.
13802         (norm): Likewise.
13803         (denorm): Likewise.
13804         (__mp_dbl): Likewise.
13805         (__dbl_mp): Likewise.
13806         (add_magnitudes): Likewise.
13807         (sub_magnitudes): Likewise.
13808         (__add): Likewise.
13809         (__sub): Likewise.
13810         (__mul): Likewise.
13811         (__inv): Likewise.
13812         (__dvd): Likewise.
13813         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
13814         (__acr): Likewise.
13815         (__cpy): Likewise.
13816         (norm): Likewise.
13817         (denorm): Likewise.
13818         (__mp_dbl): Likewise.
13819         (__dbl_mp): Likewise.
13820         (add_magnitudes): Likewise.
13821         (sub_magnitudes): Likewise.
13822         (__add): Likewise.
13823         (__sub): Likewise.
13824         (__mul): Likewise.
13825         (__inv): Likewise.
13826         (__dvd): Likewise.
13827
13828 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
13829
13830         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
13831         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
13832         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
13833         2 && __USE_EXTERN_INLINES]: Likewise.
13834
13835 2013-01-08  Andreas Jaeger  <aj@suse.de>
13836
13837         [BZ# 14985]
13838         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
13839         Remove.
13840         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
13841         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
13842
13843 2013-01-07  Anton Blanchard  <anton@samba.org>
13844
13845         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
13846         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
13847         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
13848         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
13849         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
13850         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
13851         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
13852         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
13853         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
13854         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13855         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13856         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13857         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
13858         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13859         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
13860         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13861         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13862         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13863         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
13864         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
13865         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
13866         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
13867         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13868         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
13869         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
13870         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
13871         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13872         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
13873         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
13874         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
13875         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
13876         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
13877         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13878         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
13879         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
13880         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13881         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13882         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
13883         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
13884         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
13885         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
13886         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13887         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
13888
13889 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
13890
13891         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
13892         (__MALLOC_PMT): Likewise.
13893         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
13894         [__GNUC__], only on [_LIBC].
13895         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
13896         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
13897         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
13898         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
13899         forward declaration.
13900         (realloc_hook_ini): Likewise.
13901         (memalign_hook_ini): Likewise.
13902         (__libc_memalign): Do not use __MALLOC_PMT in variable
13903         declaration.
13904         (__libc_valloc): Likewise.
13905         (__libc_pvalloc): Likewise.
13906         (__libc_calloc): Likewise.
13907         (__posix_memalign): Likewise.
13908
13909         [BZ #14996]
13910         * math/s_casinh.c: Include <float.h>.
13911         (__casinh): Do not do computation with squaring and square root
13912         for large arguments.
13913         * math/s_casinhf.c: Include <float.h>.
13914         (__casinhf): Do not do computation with squaring and square root
13915         for large arguments.
13916         * math/s_casinhl.c: Include <float.h>.
13917         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
13918         (__casinhl): Do not do computation with squaring and square root
13919         for large arguments.
13920         * math/libm-test.inc (casin_test): Add more tests.
13921         (casinh_test): Likewise.
13922         * sysdeps/i386/fpu/libm-test-ulps: Update.
13923         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13924
13925 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13926
13927         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
13928         (__x86_64_raw_data_cache_size): Likewise.
13929         (__x86_64_data_cache_size_half): Likewise.
13930         (__x86_64_raw_data_cache_size_half): Likewise.
13931         (__x86_64_shared_cache_size): Likewise.
13932         (__x86_64_raw_shared_cache_size): Likewise.
13933         (__x86_64_shared_cache_size_half): Likewise.
13934         (__x86_64_raw_shared_cache_size_half): Likewise.
13935         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
13936         to ...
13937         (__x86_data_cache_size): This.
13938         (__x86_64_raw_data_cache_size): Renamed to ...
13939         (__x86_raw_data_cache_size): This.
13940         (__x86_64_data_cache_size_half): Renamed to ...
13941         (__x86_data_cache_size_half): This.
13942         (__x86_64_raw_data_cache_size_half): Renamed to ...
13943         (__x86_raw_data_cache_size_half): This.
13944         (__x86_64_shared_cache_size): Renamed to ...
13945         (__x86_shared_cache_size): This.
13946         (__x86_64_raw_shared_cache_size): Renamed to ...
13947         (__x86_raw_shared_cache_size): This.
13948         (__x86_64_shared_cache_size_half): Renamed to ...
13949         (__x86_shared_cache_size_half): This.
13950         (__x86_64_raw_shared_cache_size_half): Renamed to ...
13951         (__x86_raw_shared_cache_size_half): This.
13952         * sysdeps/x86_64/memcpy.S: Updated.
13953         * sysdeps/x86_64/memset.S: Likewise.
13954         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
13955         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13956         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13957
13958 2013-01-04  David S. Miller  <davem@davemloft.net>
13959
13960         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13961
13962 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
13963
13964         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
13965         1 to avoid redefinition warning.
13966         (__USE_GNU): Don't define.
13967         (init_signaling_nan): Protoize.
13968
13969         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13970
13971 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13972
13973         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
13974         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
13975         (__cpymn): Likewise.
13976         (norm): Remove commented code.
13977         (denorm): Likewise.
13978         (__mp_dbl): Likewise.
13979         (__inv): Likewise.
13980         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
13981         (__cpymn): Likewise.
13982         (norm): Remove commented code.
13983         (denorm): Likewise.
13984         (__mp_dbl): Likewise.
13985         (__inv): Likewise.
13986
13987         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
13988         mp_no value for 1.0 and 2.0.
13989         (norm): Use RADIXI instead of radixi.d.
13990         (denorm): Likewise.
13991         (__mul): Use 0.0 instead of zero.d.
13992         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
13993         mp_no value for 1.0 and 2.0.
13994         (norm): Use RADIXI instead of radixi.d.
13995         (denorm): Likewise.
13996         (__mul): Use 0.0 instead of zero.d.
13997
13998 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
13999
14000         [BZ #14994]
14001         * math/s_casinh.c (__casinh): Reduce finite argument to first
14002         quadrant then set signs of results at the end.
14003         * math/s_casinhf.c (__casinhf): Likewise.
14004         * math/s_casinhl.c (__casinhl): Likewise.
14005         * math/libm-test.inc (casin_test): Add more tests.
14006         (casinh_test): Likewise.
14007         * sysdeps/i386/fpu/libm-test-ulps: Update.
14008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14009
14010 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14011
14012         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
14013
14014         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
14015
14016         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
14017         declarations.
14018         (denorm): Likewise.
14019         (__mp_dbl): Likewise.
14020         (__inv): Likewise.
14021
14022         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
14023         and adjust the header comment.
14024
14025         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
14026         variable name from declaration.
14027
14028 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14029
14030         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14031         Initialize COMMON_CPUID_INDEX_7 element.
14032         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
14033         (CPUID_RTM): Likewise.
14034         (HAS_RTM): Likewise.
14035         (COMMON_CPUID_INDEX_7): New enum.
14036
14037 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
14038
14039         [BZ #14981]
14040         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
14041         size is zero, record memory as freed.
14042
14043 2013-01-03  Andreas Jaeger  <aj@suse.de>
14044
14045         * po/ia.po: Add new Interlingua translation.
14046
14047 2012-01-03  Allan McRae  <allan@archlinux.org>
14048
14049         * locale/programs/localedef.c: Fix description of '--posix' flag.
14050
14051 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
14052
14053         * NEWS: Update dates in second copyright notice.
14054         * README: Update copyright dates in example.
14055         * manual/libc.texinfo: Update copyright dates.
14056         * scripts/test-installation.pl: Update copyright date in --version
14057         output.
14058
14059         * hurd/ctty-input.c: Fix copyright notice formatting.
14060         * hurd/ctty-output.c: Likewise.
14061         * hurd/dtable.c: Likewise.
14062         * hurd/hurd-raise.c: Likewise.
14063         * hurd/hurdprio.c: Likewise.
14064         * hurd/msgportdemux.c: Likewise.
14065         * misc/sys/file.h: Likewise.
14066         * misc/sys/ioctl.h: Likewise.
14067         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
14068         * sysdeps/mach/hurd/chdir.c: Likewise.
14069         * sysdeps/mach/hurd/fchdir.c: Likewise.
14070         * sysdeps/mach/hurd/rename.c: Likewise.
14071         * sysdeps/mach/hurd/rmdir.c: Likewise.
14072         * sysdeps/mach/hurd/seekdir.c: Likewise.
14073         * sysdeps/mach/hurd/setsid.c: Likewise.
14074         * sysdeps/posix/wait3.c: Likewise.
14075
14076         * All files with FSF copyright notices: Update copyright dates
14077         using scripts/update-copyrights.
14078         * intl/plural.c: Regenerated.
14079         * locale/programs/charmap-kw.h: Likewise.
14080         * locale/programs/locfile-kw.h: Likewise.
14081
14082 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
14083
14084         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
14085         four values.
14086
14087         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
14088         calculation loop and add branch prediction.
14089
14090         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
14091         check access beyond bounds of m1np.
14092
14093         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
14094         MPTWO.
14095         (__inv): Remove local variable MPTWO to use the global
14096         constant.
14097         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
14098         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
14099         variable MPTWO.
14100         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
14101         MP3HALFS static const.
14102
14103 2013-01-01  David S. Miller  <davem@davemloft.net>
14104
14105         * po/ca.po: Update from translation team.
14106
14107 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
14108
14109         * scripts/update-copyrights: New file.
14110         * Makeconfig: Reformat copyright notice.
14111         * ctype/ctype.h: Likewise.
14112         * debug/swprintf_chk.c: Likewise.
14113         * elf/dl-cache.c: Likewise.
14114         * elf/dl-debug.c: Likewise.
14115         * elf/dl-object.c: Likewise.
14116         * grp/initgroups.c: Likewise.
14117         * hurd/Makefile: Likewise.
14118         * hurd/hurd/signal.h: Likewise.
14119         * hurd/hurdfault.c: Likewise.
14120         * hurd/hurdioctl.c: Likewise.
14121         * hurd/hurdlookup.c: Likewise.
14122         * hurd/intr-msg.c: Likewise.
14123         * iconv/gconv_open.c: Likewise.
14124         * libio/swprintf.c: Likewise.
14125         * locale/lc-ctype.c: Likewise.
14126         * locale/nl_langinfo.c: Likewise.
14127         * mach/Machrules: Likewise.
14128         * mach/Makefile: Likewise.
14129         * malloc/obstack.h: Likewise.
14130         * manual/Makefile: Likewise.
14131         * manual/tsort.awk: Likewise.
14132         * misc/bits/stab.def: Likewise.
14133         * nis/nis_print_group_entry.c: Likewise.
14134         * nis/nis_table.c: Likewise.
14135         * nis/nss_compat/compat-pwd.c: Likewise.
14136         * nis/nss_compat/compat-spwd.c: Likewise.
14137         * po/Makefile: Likewise.
14138         * posix/fnmatch.c: Likewise.
14139         * posix/regex.h: Likewise.
14140         * resolv/Makefile: Likewise.
14141         * resolv/nss_dns/dns-network.c: Likewise.
14142         * resolv/res_hconf.c: Likewise.
14143         * scripts/gen-sorted.awk: Likewise.
14144         * soft-fp/soft-fp.h: Likewise.
14145         * stdio-common/printf.h: Likewise.
14146         * stdlib/monetary.h: Likewise.
14147         * stdlib/random.c: Likewise.
14148         * stdlib/random_r.c: Likewise.
14149         * sysdeps/generic/Makefile: Likewise.
14150         * sysdeps/gnu/Makefile: Likewise.
14151         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14152         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14153         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14154         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14155         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14156         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14157         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14158         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14159         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14160         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14161         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14162         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14163         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14164         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14165         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
14166         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14167         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14168         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14169         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14170         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14171         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14172         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14173         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14174         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
14175         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
14176         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14177         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
14178         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
14179         * sysdeps/mach/hurd/errnos.awk: Likewise.
14180         * sysdeps/mach/hurd/fork.c: Likewise.
14181         * sysdeps/mach/hurd/getcwd.c: Likewise.
14182         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
14183         * sysdeps/mach/hurd/mmap.c: Likewise.
14184         * sysdeps/mach/hurd/utimes.c: Likewise.
14185         * sysdeps/mach/hurd/xmknod.c: Likewise.
14186         * sysdeps/posix/profil.c: Likewise.
14187         * sysdeps/posix/readdir_r.c: Likewise.
14188         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14189         * sysdeps/powerpc/bits/setjmp.h: Likewise.
14190         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
14191         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
14192         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14193         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
14194         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
14195         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14196         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14197         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
14198         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
14199         * sysdeps/pthread/lio_listio.c: Likewise.
14200         * sysdeps/sparc/dl-procinfo.h: Likewise.
14201         * sysdeps/unix/i386/sysdep.S: Likewise.
14202         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
14203         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
14204         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
14205         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
14206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14207         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
14208         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
14209         * sysdeps/unix/sysv/linux/speed.c: Likewise.
14210         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
14211         * sysdeps/wordsize-32/divdi3.c: Likewise.
14212         * time/sys/time.h: Likewise.
14213         * wcsmbs/Makefile: Likewise.
14214
14215 2013-01-01  David S. Miller  <davem@davemloft.net>
14216
14217         * po/fr.po: Update from translation team.
14218
14219         * catgets/gencat.c: Update copyright year.
14220         * csu/version.c: Likewise.
14221         * debug/catchsegv.sh: Likewise.
14222         * debug/pcprofiledump.c: Likewise.
14223         * debug/xtrace.sh: Likewise.
14224         * elf/ldconfig.c: Likewise.
14225         * elf/ldd.bash.in: Likewise.
14226         * elf/pldd.c: Likewise.
14227         * elf/sotruss.ksh: Likewise.
14228         * elf/sprof.c: Likewise.
14229         * iconv/iconv_prog.c: Likewise.
14230         * iconv/iconvconfig.c: Likewise.
14231         * locale/programs/locale.c: Likewise.
14232         * locale/programs/localedef.c: Likewise.
14233         * login/programs/pt_chown.c: Likewise.
14234         * malloc/memusage.sh: Likewise.
14235         * malloc/memusagestat.c: Likewise.
14236         * malloc/mtrace.pl: Likewise.
14237         * nscd/nscd.c: Likewise.
14238         * nss/getent.c: Likewise.
14239         * nss/makedb.c: Likewise.
14240         * posix/getconf.c: Likewise.
14241
14242 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
14243
14244         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
14245         numbers.
14246
14247 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
14248
14249         * math/bits/mathcalls.h (modf): Use __nonnull.
14250
14251 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
14252
14253         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
14254         (split): Use macro CN instead of the bare value.
14255         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
14256         could be used.
14257         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
14258         instead of the bare value.
14259         (power1): Likewise.
14260
14261 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14262
14263         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
14264         __ATAN_TWOM.
14265         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14266
14267         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
14268         their values.
14269         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
14270         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
14271         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
14272         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
14273
14274 2012-12-28  Andreas Jaeger  <aj@suse.de>
14275
14276         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
14277         values are from Linux 3.7.
14278
14279         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
14280         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
14281
14282 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14283
14284         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
14285         TRUE case.
14286
14287         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
14288         (norm): Likewise.
14289         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
14290         variables with preprocessor constants.
14291         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14292         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14293         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14294
14295 2012-12-27  Bruno Haible  <bruno@clisp.org>
14296
14297         [BZ #14317]
14298         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
14299         only if needed.
14300
14301 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
14302
14303         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
14304         and use variable directly.
14305         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
14306
14307         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
14308         MPONE.
14309         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
14310         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
14311         variable MPONE.
14312         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
14313         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
14314         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
14315         include directive.  Remove local variable MPONE.
14316         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
14317         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
14318         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14319
14320 2012-12-25  David S. Miller  <davem@davemloft.net>
14321
14322         * version.h (RELEASE): Set to "development".
14323         (VERSION): Set to "2.17.90".
14324         * NEWS: Add 2.18 section.
14325
14326 2012-12-21  David S. Miller  <davem@davemloft.net>
14327
14328         * po/hr.po: Update from translation team.
14329
14330 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14331
14332         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
14333
14334 2012-12-19  Steve Ellcey  <sellcey@mips.com>
14335
14336         * NEWS:  Mention new memcpy for MIPS.
14337
14338 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
14339
14340         * manual/contrib.texi (Contributors): Spelling correction.
14341
14342 2012-12-15  David S. Miller  <davem@davemloft.net>
14343
14344         * po/ru.po: Update from translation team.
14345
14346 2012-12-13  David S. Miller  <davem@davemloft.net>
14347
14348         * NEWS: Mention IFUNC testsuite enhancements.
14349
14350         * po/pl.po: Update from translation team.
14351         * po/bg.po: Likewise.
14352
14353         * manual/contrib.texi (Contributors): Update entries for Hongjiu
14354         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
14355
14356 2012-12-11  David S. Miller  <davem@davemloft.net>
14357
14358         * po/sv.po: Update from translation team.
14359
14360         * po/vi.po: Update from translation team.
14361
14362         * po/cs.po: Update from translation team.
14363
14364         * po/de.po: Update from translation team.
14365         * po/eo.po: Likewise.
14366         * po/nl.po: Likewise.
14367
14368 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
14369
14370         [BZ #14246]
14371         * manual/argp.texi (Argp Helper Functions): Move node to follow
14372         Argp Parsing State.
14373
14374         [BZ #14872]
14375         * manual/conf.texi (Limits on File System Capacity): Mention if
14376         terminating null is included in the max size.
14377
14378 2012-12-10  Andreas Jaeger  <aj@suse.de>
14379
14380         * po/cs.po: Update from translation team.
14381
14382 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
14383
14384         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
14385         void pointer and cast to uintptr_t.
14386         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
14387         path.
14388         * sysdeps/s390/s390-64/memcpy.S: Likewise.
14389         * sysdeps/s390/s390-64/memset.S: Likewise.
14390
14391 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
14392
14393         [BZ #14833]
14394         * menual/message.texi (Message Translation): Fix typos.
14395         (Helper programs for gettext): Likewise.
14396
14397 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
14398
14399         [BZ #14898]
14400         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
14401         Change to -1.
14402
14403 2012-12-07  David S. Miller  <davem@davemloft.net>
14404
14405         * po/libc.pot: Update.
14406
14407 2012-12-07  Richard Henderson  <rth@redhat.com>
14408
14409         [BZ #10114]
14410         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
14411         normal/normal case to before the switch.
14412         (_FP_DIV): Likewise.
14413
14414 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
14415             Mike Frysinger  <vapier@gentoo.org>
14416
14417         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
14418         check for __NR_fadvise64_64.
14419
14420 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
14421
14422         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
14423         0, not just to plain "0" as a statement.
14424         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
14425         with cw.
14426
14427 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
14428
14429         * NEWS: Use sourceware.org in Bugzilla URL.
14430
14431 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
14432
14433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
14434         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
14435
14436         * stdio-common/tst-put-error.c (do_test): Add newline to the
14437         padded test to ensure flush.
14438
14439 2012-12-05  Jeff Law  <law@redhat.com>
14440
14441         * sunrpc/etc.rpc (fedfs_admin): Add entry.
14442
14443 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
14444
14445         * README: Don't refer to ports add-on as distributed separately.
14446         Mention AArch64 in list of systems supported in the ports add-on.
14447
14448         * LICENSES: Add more non-FSF copyright and license notices.
14449
14450         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
14451         ((unused)).
14452
14453         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
14454
14455         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
14456         10000 as width of padded output.
14457
14458 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
14459
14460         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
14461
14462         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
14463         variable LX with __attribute__ ((unused)).
14464         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
14465         Likewise.
14466         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
14467         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14468         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
14469         with __attribute__ ((unused)).
14470
14471 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
14472
14473         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
14474
14475 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
14476
14477         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
14478         (CFLAGS-nldbl-acos.c): New variable.
14479         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
14480         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
14481         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
14482         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
14483         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
14484         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
14485         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
14486         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
14487         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
14488         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
14489         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
14490         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
14491         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
14492         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
14493         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
14494         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
14495         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
14496         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
14497         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
14498         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
14499         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
14500         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
14501         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
14502         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
14503         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
14504         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
14505         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
14506         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
14507         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
14508         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
14509         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
14510         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
14511         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
14512         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
14513         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
14514         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
14515         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
14516         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
14517         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
14518         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
14519         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
14520         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
14521         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
14522         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
14523         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
14524         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
14525         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
14526         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
14527         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
14528         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
14529         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
14530         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
14531         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
14532         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
14533         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
14534         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
14535         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
14536         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
14537         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
14538         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
14539         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
14540         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
14541         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
14542         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
14543         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
14544         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
14545         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
14546         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
14547         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
14548         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
14549         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
14550         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
14551         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
14552         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
14553         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
14554         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
14555         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
14556         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
14557         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
14558         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
14559         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
14560         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
14561         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
14562         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
14563         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
14564         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
14565         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
14566         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
14567         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
14568         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
14569         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
14570         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
14571         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
14572         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
14573         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
14574         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
14575         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
14576
14577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
14578         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
14579
14580         [BZ #14914]
14581         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
14582         whole low double instead of just low 47 bits when splitting values
14583         into two parts.
14584
14585 2012-12-03  Allan McRae  <allan@archlinux.org>
14586
14587         * manual/stdio.texi (Predefined Printf Handlers): Remove
14588         @hsep and @vsep usage.
14589
14590 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
14591
14592         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
14593         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
14594
14595 2012-12-03  Jeff Law  <law@redhat.com>
14596
14597         * time/sys/time.h (settimeofday): Do not mark TV argument
14598         as __nonnull.
14599
14600 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
14601
14602         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
14603         when currently writing and seek to current position when not.
14604         * libio/Makefile (tests): Remove bug-fclose1.
14605         * libio/bug-fclose1.c: Delete.
14606
14607 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
14608
14609         * manual/arith.texi (feenableexcept): Fix typo.
14610         (fedisableexcept): Likewise.
14611
14612 2012-11-30  Roland McGrath  <roland@hack.frob.com>
14613
14614         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
14615         second, differently-typed declaration, rather than a cast.
14616
14617 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
14618
14619         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
14620         * include/rpc/svc.h: ... here.
14621
14622 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
14623
14624         [BZ #13013]
14625         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
14626         depending n and resplen2 to catch cases where answer
14627         equals answerp2.
14628
14629 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
14630
14631         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
14632         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
14633
14634 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
14635
14636         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
14637
14638 2012-11-29  Roland McGrath  <roland@hack.frob.com>
14639
14640         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
14641
14642 2012-11-28  Jeff Law  <law@redhat.com>
14643
14644         [BZ #13761]
14645         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
14646         dataset_temporary.  Track alloca usage into alloca_used.
14647         If dataset is large allocate and release it via malloc/free.
14648
14649 2012-06-04  Florian Weimer  <fweimer@redhat.com>
14650
14651         [BZ #14197]
14652         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
14653
14654 2012-11-28  David S. Miller  <davem@davemloft.net>
14655
14656         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14657
14658 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
14659
14660         [BZ #14803]
14661         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
14662         of pi/2 rounded to nearest to 64 bits.
14663         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
14664         nearest to 64 bits.
14665         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
14666         bits.
14667
14668 2012-11-28  Jeff Law <law@redhat.com>
14669             Martin Osvald <mosvald@redhat.com>
14670
14671         [BZ #14889]
14672         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
14673         * sunrpc/svc.c: Include time.h.
14674         (__svc_accept_failed): New function.
14675         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
14676         any reason other than EINTR, call __svc_accept_failed.
14677         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
14678         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
14679
14680 2012-11-28  Andreas Schwab  <schwab@suse.de>
14681
14682         * scripts/abilist.awk: Also handle indirect functions in .opd
14683         section.
14684
14685 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
14686
14687         [BZ #13881]
14688         * sysdeps/x86/fpu/powl_helper.c: New file.
14689         * sysdeps/x86/fpu/Makefile: Likewise.
14690         * sysdeps/i386/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         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
14695         (p3): New object.
14696         (__ieee754_powl): Use __powl_helper for finite arguments except
14697         integer exponents below 8.
14698         * math/libm-test.inc (pow_test): Add more tests and enable some
14699         previously disabled tests.
14700         * sysdeps/i386/fpu/libm-test-ulps: Update.
14701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14702
14703 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14704             Carlos O'Donell  <carlos_odonell@mentor.com>
14705
14706         * nss/makedb.c (is_prime): Assert that input is odd and greater
14707         than 4.  Note that fact in a comment too.
14708         (next_prime): Add 4 to input.
14709
14710 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
14711
14712         [BZ #11741]
14713         * libio/Makefile (tests): Add test case tst-fwrite-error.
14714         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
14715         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
14716         * libio/tst-fwrite-error.c: New test case.
14717
14718 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
14719
14720         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
14721         before casting to void *.
14722         * include/libc-internal.h (__pointer_type): New macro.
14723         (__integer_if_pointer_type_sub): Likewise.
14724         (__integer_if_pointer_type): Likewise.
14725         (cast_to_integer): Likewise.
14726         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
14727         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
14728         before casting to atomic64_t.
14729         (atomic_exchange_acq): Likewise.
14730         (__arch_exchange_and_add_body): Likewise.
14731         (__arch_add_body): Likewise.
14732         (atomic_add_negative): Likewise.
14733         (atomic_add_zero): Likewise.
14734
14735 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
14736
14737         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
14738         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
14739         (add_fdes): Likewise.
14740         (linear_search_fdes): Likewise.
14741         (binary_search_unencoded_fdes): Likewise.
14742
14743 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
14744
14745         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
14746
14747 2012-11-24  Adam Conrad  <adconrad@0c3.net>
14748
14749         * configure.in: Autodetect C++ header directories.
14750         * configure: Regenerated.
14751
14752 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
14753
14754         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
14755
14756 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
14757
14758         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14759
14760 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
14761
14762         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
14763         LDBL_MANT_DIG == 106]: Disable some tests.
14764         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
14765         Likewise.
14766         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
14767         Likewise.
14768
14769         [BZ #14871]
14770         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
14771         input for small inputs.  Return +/- pi/2 for large inputs.
14772         * math/libm-test.inc (atan_test): Add more tests.
14773
14774         * sysdeps/generic/unwind-dw2-fde-glibc.c
14775         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
14776         __attribute__ ((unused)).
14777
14778         [BZ #14645]
14779         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
14780         x * y if x and y are nonzero and z is zero.
14781
14782         [BZ #14811]
14783         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
14784         nonzero exponents with absolute value below 0x1p-117 to +/-
14785         0x1p-117.
14786
14787         [BZ #14869]
14788         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
14789         up arguments below 2**-450, not just those below 2**-500.
14790         * math/libm-test.inc (hypot_test): Add another test.
14791
14792         [BZ #14868]
14793         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
14794         Return a+b for ratio over 2**120, not 2**60.
14795         * math/libm-test.inc (hypot_test): Add another test.
14796
14797         * math/libm-test.inc (clog_test): Use
14798         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
14799         (clog10_test): Likewise.
14800
14801         [BZ #6778]
14802         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
14803
14804 2012-11-22  Andreas Schwab  <schwab@suse.de>
14805
14806         * sysdeps/i386/fpu/libm-test-ulps: Update.
14807
14808 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
14809
14810         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
14811         printf output with newline.
14812
14813 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
14814
14815         [BZ #14865]
14816         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
14817         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
14818         -z nodlopen, -z initfirst and -z execstack support.
14819         * configure: Regenerated.
14820
14821         * elf/elf.h (DF_1_NODIRECT): New macro.
14822         (DF_1_IGNMULDEF): Likewise.
14823         (DF_1_NOKSYMS): Likewise.
14824         (DF_1_NOHDR): Likewise.
14825         (DF_1_EDITED): Likewise.
14826         (DF_1_NORELOC): Likewise.
14827         (DF_1_SYMINTPOSE): Likewise.
14828         (DF_1_GLOBAUDIT): Likewise.
14829         (DF_1_SINGLETON): Likewise.
14830         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
14831         DT_1_SUPPORTED_MASK bits.
14832         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
14833
14834 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
14835
14836         * sysdeps/unix/make-syscalls.sh: Document prefixes.
14837
14838 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
14839
14840         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
14841         macro.
14842
14843         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
14844         (sendmmsg): Move declarations...
14845         * socket/sys/socket.h: ... here.
14846         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
14847         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
14848         include it from...
14849         * socket/recvmmsg.c: ... this new file.
14850         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
14851         (sendmmsg): Rename to __sendmmsg, create weak alias and make
14852         definition of __sendmmsg hidden.
14853         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
14854         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
14855         Move ENOSYS stub into and include it from...
14856         * socket/sendmmsg.c: ... this new file.
14857         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
14858         (sysdep_routines): Move recvmmsg and sendmmsg...
14859         * socket/Makefile (routines): ... here.
14860         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
14861         (GLIBC_PRIVATE): Add __sendmmsg.
14862         * include/sys/socket.h (__sendmmsg): Add declarations.
14863         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
14864         sendmmsg.
14865
14866 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
14867
14868         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
14869         variable I1 with __attribute__ ((unused)).
14870         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
14871
14872 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
14873
14874         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
14875         DUMMY variables with __attribute__ ((unused)).
14876
14877         * bits/byteswap.h: Include <bits/types.h>.
14878         (__bswap_64): Use __uint64_t instead of unsigned long long int.
14879
14880 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
14881
14882         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
14883         string_t.  Do not manually set errno.
14884         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
14885         length with __strnlen.  Make sure to both set errno and return it on
14886         failure.
14887
14888 2012-11-19  David S. Miller  <davem@davemloft.net>
14889
14890         With help from Joseph Myers.
14891         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
14892         very large arguments properly.
14893         * math/libm-test.inc (atan_test): New tests.
14894         (atan2_test): New tests.
14895         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14896         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14897
14898 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
14899
14900         [BZ #14856]
14901         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
14902         Define to 3.
14903
14904         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
14905         [POSIX] (EADDRNOTAVAIL): Likewise.
14906         [POSIX] (EAFNOSUPPORT): Likewise.
14907         [POSIX] (EALREADY): Likewise.
14908         [POSIX] (ECONNABORTED): Likewise.
14909         [POSIX] (ECONNREFUSED): Likewise.
14910         [POSIX] (ECONNRESET): Likewise.
14911         [POSIX] (EDESTADDRREQ): Likewise.
14912         [POSIX] (EDQUOT): Likewise.
14913         [POSIX] (EHOSTUNREACH): Likewise.
14914         [POSIX] (EIDRM): Likewise.
14915         [POSIX] (EISCONN): Likewise.
14916         [POSIX] (ELOOP): Likewise.
14917         [POSIX] (EMULTIHOP): Likewise.
14918         [POSIX] (ENETDOWN): Likewise.
14919         [POSIX] (ENETUNREACH): Likewise.
14920         [POSIX] (ENOBUFS): Likewise.
14921         [POSIX] (ENODATA): Likewise.
14922         [POSIX] (ENOLINK): Likewise.
14923         [POSIX] (ENOMSG): Likewise.
14924         [POSIX] (ENOPROTOOPT): Likewise.
14925         [POSIX] (ENOSR): Likewise.
14926         [POSIX] (ENOSTR): Likewise.
14927         [POSIX] (ENOTCONN): Likewise.
14928         [POSIX] (ENOTSOCK): Likewise.
14929         [POSIX] (EOPNOTSUPP): Likewise.
14930         [POSIX] (EOVERFLOW): Likewise.
14931         [POSIX] (EPROTO): Likewise.
14932         [POSIX] (EPROTONOSUPPORT): Likewise.
14933         [POSIX] (EPROTOTYPE): Likewise.
14934         [POSIX] (ESTALE): Likewise.
14935         [POSIX] (ETIME): Likewise.
14936         [POSIX] (ETXTBSY): Likewise.
14937         [POSIX] (EWOULDBLOCK): Likewise.
14938         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
14939         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
14940         [POSIX] (SEEK_CUR): Likewise.
14941         [POSIX] (SEEK_END): Likewise.
14942         [POSIX || UNIX98] (mode_t): Do not require.
14943         [POSIX] (off_t): Likewise.
14944         [POSIX] (pid_t): Likewise.
14945         [POSIX] (sys/stat.h): Do not allow header.
14946         [POSIX] (unistd.h): Likewise.
14947         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
14948         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
14949         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
14950         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
14951         require.
14952         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
14953         sigevent): Specify elements.
14954         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
14955         entry.
14956         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
14957         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
14958
14959         * conform/data/cpio.h-data [POSIX]: Disable whole file.
14960         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
14961         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
14962         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
14963         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
14964         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
14965         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
14966         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
14967         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
14968         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
14969         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
14970         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
14971         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
14972         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
14973         Likewise.
14974         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
14975         Likewise.
14976         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
14977         Likewise.
14978         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
14979         Likewise.
14980         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
14981         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
14982         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
14983         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
14984         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
14985         Specify lower bound on value.
14986         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
14987         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
14988         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
14989         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
14990         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
14991         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
14992         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
14993         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
14994         value.
14995         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
14996         as optional.
14997         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
14998         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
14999         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
15000         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
15001         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
15002         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
15003         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
15004         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
15005         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
15006         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
15007         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
15008         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
15009         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
15010         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
15011         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
15012         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
15013         entry.
15014         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
15015         optional.
15016         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
15017         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
15018         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
15019         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
15020         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
15021         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
15022         Likewise.
15023         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
15024         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
15025         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
15026         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
15027         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
15028         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
15029         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
15030         as optional.
15031         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
15032         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
15033         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
15034         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
15035         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
15036         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
15037         specify as optional.
15038         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
15039         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
15040         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
15041         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
15042         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
15043         [XPG3] (NL_LANGMAX): Likewise.
15044         [POSIX || XPG3] (NL_MSGMAX): Likewise.
15045         [POSIX || XPG3] (NL_NMAX): Likewise.
15046         [POSIX || XPG3] (NL_SETMAX): Likewise.
15047         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
15048         [XPG3] (NZERO): Likewise.
15049         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
15050         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
15051         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
15052         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
15053         (REG_ERANGE): Expect.
15054         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
15055         optional-constant.
15056         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
15057         Use (void) in prototype.
15058         [POSIX] (*_t): Allow.
15059         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
15060         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
15061         (WRDE_BADVAL): Expect.
15062
15063         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
15064         expect.
15065         [XPG3 || XPG4] (O_RSYNC): Likewise.
15066         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
15067         Likewise.
15068         [XPG3 || XPG4] (pthread_sigmask): Likewise.
15069         [XPG3 || XPG4] (sigqueue): Likewise.
15070         [XPG3 || XPG4] (sigtimedwait): Likewise.
15071         [XPG3 || XPG4] (sigwaitinfo): Likewise.
15072         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
15073         [XPG3 || XPG4] (vsnprintf): Likewise.
15074         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
15075         Likewise.
15076         [XPG3 || XPG4] (blksize_t): Likewise.
15077         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
15078         Likewise.
15079         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
15080         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
15081         [XPG3 || XPG4] (struct itimerspec): Likewise.
15082         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
15083         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
15084         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
15085         [XPG3 || XPG4] (clockid_t): Likewise.
15086         [XPG3 || XPG4] (timer_t): Likewise.
15087         [XPG3 || XPG4] (clock_getres): Likewise.
15088         [XPG3 || XPG4] (clock_gettime): Likewise.
15089         [XPG3 || XPG4] (clock_settime): Likewise.
15090         [XPG3 || XPG4] (nanosleep): Likewise.
15091         [XPG3 || XPG4] (timer_create): Likewise.
15092         [XPG3 || XPG4] (timer_delete): Likewise.
15093         [XPG3 || XPG4] (timer_gettime): Likewise.
15094         [XPG3 || XPG4] (timer_getoverrun): Likewise.
15095         [XPG3 || XPG4] (timer_settime): Likewise.
15096         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
15097         [XPG3 || XPG4] (getlogin_r): Likewise.
15098         [XPG3 || XPG4] (pread): Likewise.
15099         [XPG3 || XPG4] (pthread_atfork): Likewise.
15100         [XPG3 || XPG4] (pwrite): Likewise.
15101
15102         [BZ #14835]
15103         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
15104         <bits/siginfo.h>.
15105
15106 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
15107
15108         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
15109         finalizing MALLSTREAM.
15110
15111         * sysdeps/mach/hurd/syncfs.c: New file.
15112
15113 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
15114
15115         [BZ #14719]
15116         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
15117         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
15118         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
15119         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
15120         (_nss_dns_gethostbyname4_r): Likewise.
15121         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
15122         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
15123
15124 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
15125
15126         [BZ #13763]
15127         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
15128
15129 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
15130
15131         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
15132         * elf/cache.c (print_entry): Print ",AArch64" for
15133         FLAG_AARCH64_LIB64
15134
15135         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
15136         * elf/cache.c (print_entry): Print ",hard-float" for
15137         FLAG_ARM_LIBHF.
15138
15139 2012-11-18  David S. Miller  <davem@davemloft.net>
15140
15141         With help from Joseph Myers.
15142         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
15143         cutoff to 2**-13.
15144         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
15145         cutoff to 2**-25.
15146         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
15147         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
15148         small.
15149         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
15150         * math/libm-test.inc (y0_test): New tests.
15151         (y1_test): New tests.
15152         * sysdeps/i386/fpu/libm-test-ulps: Update.
15153         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15154         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15155
15156 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
15157
15158         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
15159         64-bit targets.
15160         * configure: Regenerated.
15161
15162 2012-11-17  David S. Miller  <davem@davemloft.net>
15163
15164         [BZ #14811]
15165         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
15166         nonzero exponents with absolute value below 0x1p-128 to +/-
15167         0x1p-128.
15168
15169 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
15170
15171         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
15172
15173         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
15174
15175         * posix/getconf-speclist.c: New file.
15176         * posix/posix-envs.def: Likewise.
15177         * posix/confstr.c (START_ENV_GROUP): New macro.
15178         (END_ENV_GROUP): Likewise.
15179         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
15180         (KNOWN_PRESENT_ENV_STRING): Likewise.
15181         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
15182         (UNKNOWN_ENVIRONMENT): Likewise.
15183         (confstr): Include posix-envs.def instead of handling
15184         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
15185         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
15186         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
15187         (END_ENV_GROUP): Likewise.
15188         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
15189         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
15190         (UNKNOWN_ENVIRONMENT): Likewise.
15191         (__sysconf): Include posix-envs.def instead of handling associated
15192         cases directly here.
15193         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
15194         preprocessing getconf-speclist.c rather than running getconf or
15195         generating empty file.
15196
15197 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
15198
15199         * scripts/check-local-headers.sh: Ignore 'mach' headers.
15200
15201 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
15202
15203         [BZ #14672]
15204         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
15205
15206 2012-11-16  David S. Miller  <davem@davemloft.net>
15207
15208         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
15209         smaller than LDBL_EPSILON/2.0L, just return xm1.
15210
15211 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
15212
15213         * elf/tst-array1.c (init): Set constructor priority to 1000.
15214         (fini): Set destructor priority to 1000.
15215         * elf/tst-array2dep.c: Likewise.
15216
15217 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15218
15219         [BZ #11741]
15220         * libio/fileops.c (_IO_new_file_write): Correctly return error.
15221         (_IO_new_file_xsputn): Also return EOF if none of the input
15222         data was written when overflow failed.
15223         * libio/iopadn.c (_IO_padn): Likewise.
15224         * libio/iowpadn.c (_IO_wpadn): Likewise.
15225         * stdio-common/tst-put-error.c: Add copyright notice.
15226         (do_test): Add case for printing padded string.
15227         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
15228         _IO_padn returned error.
15229         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
15230         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
15231         return EOF.
15232
15233 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15234
15235         * libio/libioP.h: Add comment note that the references to C++
15236         bits are now obsolete.
15237
15238 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15239
15240         * math/libm-test.inc (check_complex): Use asprintf.
15241
15242 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
15243
15244         * debug/pcprofiledump.c (print_version): Update copyright year.
15245         * malloc/memusagestat.c (print_version): Likewise.
15246
15247 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
15248
15249         [BZ #14831]
15250         * elf/Makefile (tests): Add tst-audit8.
15251         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
15252         ($(objpfx)tst-audit8.out): New target.
15253         (tst-audit8-ENV): New variable.
15254         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
15255         audit if l_reloc_result is NULL.
15256         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
15257         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
15258         * elf/tst-audit8.c: New file.
15259
15260 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15261
15262         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
15263         * misc/Makefile (CFLAGS-select.c): Define.
15264         * posix/Makefile (CFLAGS-pause.c): Define.
15265
15266 2012-11-13  David S. Miller  <davem@davemloft.net>
15267
15268         * crypt/Makefile: Move test targets after toplevel Rules
15269         inclusion.  Grab any necessary sysdep routines when linking.
15270         * crypt/md5.c (md5_process_block): Remove define, we will always
15271         name it __md5_process_block.
15272         (md5_finish_ctx): Update md5_process_block call.
15273         (md5_stream): Likewise.
15274         (md5_process_bytes): Likewise.
15275         (md5_process_block): Rename to __md5_process_block and move to ...
15276         * crypt/md5-block.c: ... here.
15277         * crypt/sha256.c (sha256_process_block): Move to ...
15278         * crypt/sha256-block.c: ... here.
15279         * crypt/sha512.c (sha512_process_block): Move to ...
15280         * crypt/sha512-block.c: ... here.
15281         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
15282         path.
15283         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
15284         * sysdeps/sparc/sparc64/multiarch/Makefile
15285         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
15286         crypt subdir.
15287         (localedef-aux): Add md5 crypto assembler when in locale subdir.
15288         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
15289         multiarch changes.
15290         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
15291         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
15292         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
15293         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
15294         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
15295         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
15296         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
15297         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
15298         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
15299         file.
15300         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
15301         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
15302         file.
15303         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
15304
15305 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
15306
15307         * timezone/tzselect.ksh: Update from tzcode git revision
15308         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
15309         * timezone/zdump.c: Likewise.
15310         * timezone/zic.c: Likewise.
15311         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
15312         in TZVERSION setting, not $(PKGVERSION).
15313         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
15314         REPORT_BUGS_TO settings.
15315
15316         [BZ #14838]
15317         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
15318         macro.
15319
15320 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15321
15322         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
15323         detection to immediately after _FP_ROUND().
15324         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
15325         bits are 0.
15326
15327 2012-11-11  David S. Miller  <davem@davemloft.net>
15328
15329         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
15330         inttypes.h
15331         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
15332         __close rather than their public counterparts.
15333
15334 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
15335
15336         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
15337         file.
15338         [UNIX98] (sem_timedwait): Do not expect.
15339         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
15340         [XPG4 || UNIX98] (sockatmark): Do not expect.
15341         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
15342         (clock_getcpuclockid): Do not expect.
15343         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
15344         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
15345         Do not expect.
15346         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
15347         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
15348         [UNIX98] (vwscanf): Likewise.
15349         [UNIX98] (vswscanf): Likewise.
15350
15351 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
15352
15353         * timezone/version.h: Remove file.
15354         * timezone/README: Do not refer to version.h.
15355         * timezone/Makefile ($(objpfx)zic.o): New dependency on
15356         $(objpfx)version.h.
15357         ($(objpfx)zdump.o): Likewise.
15358         ($(objpfx)version.h): New target.
15359
15360         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
15361         2012i.
15362         * timezone/README: Don't mention modification to tzselect.ksh.
15363         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
15364         work on unmodified tzselect.ksh.  Substitute version numbers in
15365         tzselect.ksh.
15366
15367         * Makefile (format-me): Remove.
15368         (INSTALL): Adjust indentation.  Use commands directly instead of
15369         using $(format-me).
15370
15371         * aclocal.m4 (ACX_PKGVERSION): New macro.
15372         (ACX_BUGURL): Likewise.
15373         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
15374         (PKGVERSION): New AC_DEFINE_UNQUOTED.
15375         (REPORT_BUGS_TO): Likewise.
15376         * configure: Regenerated.
15377         * config.h.in (PKGVERSION): New macro.
15378         (REPORT_BUGS_TO): Likewise.
15379         * config.make.in (PKGVERSION): New variable.
15380         (PKGVERSION_TEXI): Likewise.
15381         (REPORT_BUGS_TO): Likewise.
15382         (REPORT_BUGS_TEXI): Likewise.
15383         * Makefile (format-me): Use -I$(common-objpfx)manual.
15384         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
15385         ($(common-objpfx)manual/%): New target.
15386         (manual/%): Remove target.
15387         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
15388         (print_version): Use PKGVERSION.
15389         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
15390         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
15391         and REPORT_BUGS_TO.
15392         ($(objpfx)xtrace): Likewise.
15393         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
15394         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
15395         (print_version): Use PKGVERSION.
15396         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
15397         (do_version): Use PKGVERSION.
15398         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
15399         REPORT_BUGS_TO.
15400         (common-ldd-rewrite): Likewise.
15401         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
15402         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
15403         (print_version): Use PKGVERSION.
15404         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
15405         * elf/pldd.c (argp_program_bug_address): Remove variable.
15406         (more_help): New function.
15407         (argp): Use more_help.
15408         (print_version): Use PKGVERSION.
15409         * elf/sln.c (main): Use PKGVERSION.
15410         (usage): Use REPORT_BUGS_TO.
15411         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
15412         (top level): Use PKGVERSION.
15413         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
15414         (print_version): Use PKGVERSION.
15415         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
15416         (print_version): Use PKGVERSION.
15417         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
15418         (print_version): Use PKGVERSION.
15419         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
15420         (print_version): Use PKGVERSION.
15421         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
15422         (print_version): Use PKGVERSION.
15423         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
15424         (print_version): Use PKGVERSION.
15425         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
15426         and BUGURL.
15427         ($(objpfx)memusage): Likewise.
15428         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
15429         (do_version): Use PKGVERSION.
15430         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
15431         (print_version): Use PKGVERSION.
15432         * malloc/mtrace.pl ($PACKAGE): Remove variable.
15433         ($PKGVERSION): New variable.
15434         ($REPORT_BUGS_TO): Likewise.
15435         (usage): Use $REPORT_BUGS_TO.
15436         (top level): Use $PKGVERSION.
15437         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
15438         ($(objpfx)pkgvers.texi): New rule.
15439         ($(objpfx)stamp-pkgvers): Likewise.
15440         * manual/install.texi: Include pkgvers.texi.
15441         (--with-pkgversion): Document new configure option.
15442         (--with-bugurl): Likewise.
15443         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
15444         than necessarily for this particular distribution.  Use
15445         REPORT_BUGS_TO for where to report bugs.
15446         * INSTALL: Regenerated.
15447         * manual/libc.texinfo: Include pkgvers.texi.
15448         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
15449         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
15450         (print_version): Use PKGVERSION.
15451         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
15452         (print_version): Use PKGVERSION.
15453         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
15454         (print_version): Use PKGVERSION.
15455         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
15456         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
15457         macro.
15458         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
15459         (print_version): Use PKGVERSION.
15460         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
15461         (print_version): Use PKGVERSION.
15462         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
15463         and PKGVERSION.
15464
15465         * timezone/checktab.awk: Update from tzcode 2012i.
15466         * timezone/ialloc.c: Likewise.
15467         * timezone/private.h: Likewise.
15468         * timezone/scheck.c: Likewise.
15469         * timezone/tzfile.h: Likewise.
15470         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
15471         (TZVERSION): Hardcode tzcode version number.
15472         * timezone/zdump.c: Update from tzcode 2012i.
15473         * timezone/zic.c: Likewise.
15474         * timezone/version.h: New file.
15475         * timezone/README: Describe version.h.  Update upstream location.
15476
15477         [BZ #14824]
15478         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
15479         (mktemp): Enable declaration.
15480         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
15481         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
15482         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
15483         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
15484         Likewise.
15485         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
15486         Likewise.
15487         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
15488         Likewise.
15489         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
15490         Likewise.
15491         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
15492         Likewise.
15493         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
15494         Likewise.
15495
15496         [BZ #14821]
15497         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
15498         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
15499         for copies of such integer values.
15500         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
15501         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
15502
15503 2012-11-09  Andreas Jaeger  <aj@suse.de>
15504
15505         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
15506         definitions and declarations that are provided by
15507         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
15508
15509 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15510
15511         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
15512         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
15513         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
15514         definition.
15515
15516 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15517
15518         * elf/elf.h: Update comment before AArch64 relocations.
15519
15520 2012-11-07  David S. Miller  <davem@davemloft.net>
15521
15522         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
15523         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
15524         (__start_context): Declare.
15525         (__makecontext_ret): Delete.
15526         (__makecontext): Hook up __start_context instead of
15527         __makecontext_ret.
15528         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
15529         (sysdep_routines): Add __start_context when in stdlib.
15530
15531 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
15532
15533         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
15534         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
15535         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
15536         hardcoded "nm".
15537         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
15538         (READELF): New variable.  Use it instead of hardcoded "readelf".
15539
15540 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
15541
15542         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
15543         * sysdeps/x86/Makefile: Here.
15544         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
15545         * sysdeps/x86/tst-xmmymm.sh: This.
15546
15547 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
15548
15549         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
15550         expectations.
15551         [UNIX98] (pthread_barrier_t): Do not expect.
15552         [UNIX98] (pthread_barrierattr_t): Likewise.
15553         [UNIX98] (pthread_spinlock_t): Likewise.
15554         [UNIX98] (pthread_barrier_destroy): Likewise.
15555         [UNIX98] (pthread_barrier_init): Likewise.
15556         [UNIX98] (pthread_barrier_wait): Likewise.
15557         [UNIX98] (pthread_barrierattr_destroy): Likewise.
15558         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
15559         [UNIX98] (pthread_barrierattr_init): Likewise.
15560         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
15561         [UNIX98] (pthread_getcpuclockid): Likewise.
15562         [UNIX98] (pthread_mutex_timedlock): Likewise.
15563         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
15564         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
15565         [UNIX98] (pthread_sigmask): Likewise.
15566         [UNIX98] (pthread_spin_destroy): Likewise.
15567         [UNIX98] (pthread_spin_init): Likewise.
15568         [UNIX98] (pthread_spin_lock): Likewise.
15569         [UNIX98] (pthread_spin_trylock): Likewise.
15570         [UNIX98] (pthread_spin_unlock): Likewise.
15571         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
15572         Do not expect.
15573         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
15574         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
15575         [XPG3 || XPG4] (pthread_cond_t): Likewise.
15576         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
15577         [XPG3 || XPG4] (pthread_key_t): Likewise.
15578         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
15579         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
15580         [XPG3 || XPG4] (pthread_once_t): Likewise.
15581         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
15582         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
15583         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
15584         [XPG3 || XPG4] (pthread_t): Likewise.
15585
15586         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
15587         not expect.
15588         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
15589
15590         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
15591         Change function return type to int.
15592
15593         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
15594         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
15595         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
15596         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
15597         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
15598         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
15599         [!POSIX] (posix_madvise): Likewise.
15600         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
15601         && !UNIX98].
15602         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
15603         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
15604         (mode_t): Likewise.
15605         (posix_mem_offset): Likewise.
15606         (posix_typed_mem_get_info): Likewise.
15607         (posix_typed_mem_open): Likewise.
15608
15609         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
15610         Change condition to [XOPEN2K8].
15611
15612         * conform/conformtest.pl: Preprocess allow-header data with -x c
15613         instead of from stdin.
15614         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
15615         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
15616         [C99-based standards] (cerfc): Likewise.
15617         [C99-based standards] (cexp2): Likewise.
15618         [C99-based standards] (cexpm1): Likewise.
15619         [C99-based standards] (clog10): Likewise.
15620         [C99-based standards] (clog1p): Likewise.
15621         [C99-based standards] (clog2): Likewise.
15622         [C99-based standards] (clgamma): Likewise.
15623         [C99-based standards] (ctgamma): Likewise.
15624         [C99-based standards] (cerff): Likewise.
15625         [C99-based standards] (cerfcf): Likewise.
15626         [C99-based standards] (cexp2f): Likewise.
15627         [C99-based standards] (cexpm1f): Likewise.
15628         [C99-based standards] (clog10f): Likewise.
15629         [C99-based standards] (clog1pf): Likewise.
15630         [C99-based standards] (clog2f): Likewise.
15631         [C99-based standards] (clgammaf): Likewise.
15632         [C99-based standards] (ctgammaf): Likewise.
15633         [C99-based standards] (cerfl): Likewise.
15634         [C99-based standards] (cerfcl): Likewise.
15635         [C99-based standards] (cexp2l): Likewise.
15636         [C99-based standards] (cexpm1l): Likewise.
15637         [C99-based standards] (clog10l): Likewise.
15638         [C99-based standards] (clog1pl): Likewise.
15639         [C99-based standards] (clog2l): Likewise.
15640         [C99-based standards] (clgammal): Likewise.
15641         [C99-based standards] (ctgammal): Likewise.
15642         * conform/data/inttypes.h-data [C99-based standards]: Include
15643         stdint.h-data.  Remove all expectations for stdint.h contents.
15644         [C99-based standards] (PRI*): Do not allow.
15645         [C99-based standards] (SCN*): Likewise.
15646         [C99-based standards] (*_t): Likewise.
15647         [C99-based-standards] (PRId8): Expect macro.
15648         [C99-based-standards] (PRIi8): Likewise.
15649         [C99-based-standards] (PRIo8): Likewise.
15650         [C99-based-standards] (PRIu8): Likewise.
15651         [C99-based-standards] (PRIx8): Likewise.
15652         [C99-based-standards] (PRIX8): Likewise.
15653         [C99-based-standards] (SCNd8): Likewise.
15654         [C99-based-standards] (SCNi8): Likewise.
15655         [C99-based-standards] (SCNo8): Likewise.
15656         [C99-based-standards] (SCNu8): Likewise.
15657         [C99-based-standards] (SCNx8): Likewise.
15658         [C99-based-standards] (PRIdLEAST8): Likewise.
15659         [C99-based-standards] (PRIiLEAST8): Likewise.
15660         [C99-based-standards] (PRIoLEAST8): Likewise.
15661         [C99-based-standards] (PRIuLEAST8): Likewise.
15662         [C99-based-standards] (PRIxLEAST8): Likewise.
15663         [C99-based-standards] (PRIXLEAST8): Likewise.
15664         [C99-based-standards] (SCNdLEAST8): Likewise.
15665         [C99-based-standards] (SCNiLEAST8): Likewise.
15666         [C99-based-standards] (SCNoLEAST8): Likewise.
15667         [C99-based-standards] (SCNuLEAST8): Likewise.
15668         [C99-based-standards] (SCNxLEAST8): Likewise.
15669         [C99-based-standards] (PRIdFAST8): Likewise.
15670         [C99-based-standards] (PRIiFAST8): Likewise.
15671         [C99-based-standards] (PRIoFAST8): Likewise.
15672         [C99-based-standards] (PRIuFAST8): Likewise.
15673         [C99-based-standards] (PRIxFAST8): Likewise.
15674         [C99-based-standards] (PRIXFAST8): Likewise.
15675         [C99-based-standards] (SCNdFAST8): Likewise.
15676         [C99-based-standards] (SCNiFAST8): Likewise.
15677         [C99-based-standards] (SCNoFAST8): Likewise.
15678         [C99-based-standards] (SCNuFAST8): Likewise.
15679         [C99-based-standards] (SCNxFAST8): Likewise.
15680         [C99-based-standards] (PRId16): Likewise.
15681         [C99-based-standards] (PRIi16): Likewise.
15682         [C99-based-standards] (PRIo16): Likewise.
15683         [C99-based-standards] (PRIu16): Likewise.
15684         [C99-based-standards] (PRIx16): Likewise.
15685         [C99-based-standards] (PRIX16): Likewise.
15686         [C99-based-standards] (SCNd16): Likewise.
15687         [C99-based-standards] (SCNi16): Likewise.
15688         [C99-based-standards] (SCNo16): Likewise.
15689         [C99-based-standards] (SCNu16): Likewise.
15690         [C99-based-standards] (SCNx16): Likewise.
15691         [C99-based-standards] (PRIdLEAST16): Likewise.
15692         [C99-based-standards] (PRIiLEAST16): Likewise.
15693         [C99-based-standards] (PRIoLEAST16): Likewise.
15694         [C99-based-standards] (PRIuLEAST16): Likewise.
15695         [C99-based-standards] (PRIxLEAST16): Likewise.
15696         [C99-based-standards] (PRIXLEAST16): Likewise.
15697         [C99-based-standards] (SCNdLEAST16): Likewise.
15698         [C99-based-standards] (SCNiLEAST16): Likewise.
15699         [C99-based-standards] (SCNoLEAST16): Likewise.
15700         [C99-based-standards] (SCNuLEAST16): Likewise.
15701         [C99-based-standards] (SCNxLEAST16): Likewise.
15702         [C99-based-standards] (PRIdFAST16): Likewise.
15703         [C99-based-standards] (PRIiFAST16): Likewise.
15704         [C99-based-standards] (PRIoFAST16): Likewise.
15705         [C99-based-standards] (PRIuFAST16): Likewise.
15706         [C99-based-standards] (PRIxFAST16): Likewise.
15707         [C99-based-standards] (PRIXFAST16): Likewise.
15708         [C99-based-standards] (SCNdFAST16): Likewise.
15709         [C99-based-standards] (SCNiFAST16): Likewise.
15710         [C99-based-standards] (SCNoFAST16): Likewise.
15711         [C99-based-standards] (SCNuFAST16): Likewise.
15712         [C99-based-standards] (SCNxFAST16): Likewise.
15713         [C99-based-standards] (PRId32): Likewise.
15714         [C99-based-standards] (PRIi32): Likewise.
15715         [C99-based-standards] (PRIo32): Likewise.
15716         [C99-based-standards] (PRIu32): Likewise.
15717         [C99-based-standards] (PRIx32): Likewise.
15718         [C99-based-standards] (PRIX32): Likewise.
15719         [C99-based-standards] (SCNd32): Likewise.
15720         [C99-based-standards] (SCNi32): Likewise.
15721         [C99-based-standards] (SCNo32): Likewise.
15722         [C99-based-standards] (SCNu32): Likewise.
15723         [C99-based-standards] (SCNx32): Likewise.
15724         [C99-based-standards] (PRIdLEAST32): Likewise.
15725         [C99-based-standards] (PRIiLEAST32): Likewise.
15726         [C99-based-standards] (PRIoLEAST32): Likewise.
15727         [C99-based-standards] (PRIuLEAST32): Likewise.
15728         [C99-based-standards] (PRIxLEAST32): Likewise.
15729         [C99-based-standards] (PRIXLEAST32): Likewise.
15730         [C99-based-standards] (SCNdLEAST32): Likewise.
15731         [C99-based-standards] (SCNiLEAST32): Likewise.
15732         [C99-based-standards] (SCNoLEAST32): Likewise.
15733         [C99-based-standards] (SCNuLEAST32): Likewise.
15734         [C99-based-standards] (SCNxLEAST32): Likewise.
15735         [C99-based-standards] (PRIdFAST32): Likewise.
15736         [C99-based-standards] (PRIiFAST32): Likewise.
15737         [C99-based-standards] (PRIoFAST32): Likewise.
15738         [C99-based-standards] (PRIuFAST32): Likewise.
15739         [C99-based-standards] (PRIxFAST32): Likewise.
15740         [C99-based-standards] (PRIXFAST32): Likewise.
15741         [C99-based-standards] (SCNdFAST32): Likewise.
15742         [C99-based-standards] (SCNiFAST32): Likewise.
15743         [C99-based-standards] (SCNoFAST32): Likewise.
15744         [C99-based-standards] (SCNuFAST32): Likewise.
15745         [C99-based-standards] (SCNxFAST32): Likewise.
15746         [C99-based-standards] (PRId64): Likewise.
15747         [C99-based-standards] (PRIi64): Likewise.
15748         [C99-based-standards] (PRIo64): Likewise.
15749         [C99-based-standards] (PRIu64): Likewise.
15750         [C99-based-standards] (PRIx64): Likewise.
15751         [C99-based-standards] (PRIX64): Likewise.
15752         [C99-based-standards] (SCNd64): Likewise.
15753         [C99-based-standards] (SCNi64): Likewise.
15754         [C99-based-standards] (SCNo64): Likewise.
15755         [C99-based-standards] (SCNu64): Likewise.
15756         [C99-based-standards] (SCNx64): Likewise.
15757         [C99-based-standards] (PRIdLEAST64): Likewise.
15758         [C99-based-standards] (PRIiLEAST64): Likewise.
15759         [C99-based-standards] (PRIoLEAST64): Likewise.
15760         [C99-based-standards] (PRIuLEAST64): Likewise.
15761         [C99-based-standards] (PRIxLEAST64): Likewise.
15762         [C99-based-standards] (PRIXLEAST64): Likewise.
15763         [C99-based-standards] (SCNdLEAST64): Likewise.
15764         [C99-based-standards] (SCNiLEAST64): Likewise.
15765         [C99-based-standards] (SCNoLEAST64): Likewise.
15766         [C99-based-standards] (SCNuLEAST64): Likewise.
15767         [C99-based-standards] (SCNxLEAST64): Likewise.
15768         [C99-based-standards] (PRIdFAST64): Likewise.
15769         [C99-based-standards] (PRIiFAST64): Likewise.
15770         [C99-based-standards] (PRIoFAST64): Likewise.
15771         [C99-based-standards] (PRIuFAST64): Likewise.
15772         [C99-based-standards] (PRIxFAST64): Likewise.
15773         [C99-based-standards] (PRIXFAST64): Likewise.
15774         [C99-based-standards] (SCNdFAST64): Likewise.
15775         [C99-based-standards] (SCNiFAST64): Likewise.
15776         [C99-based-standards] (SCNoFAST64): Likewise.
15777         [C99-based-standards] (SCNuFAST64): Likewise.
15778         [C99-based-standards] (SCNxFAST64): Likewise.
15779         [C99-based-standards] (PRIdMAX): Likewise.
15780         [C99-based-standards] (PRIiMAX): Likewise.
15781         [C99-based-standards] (PRIoMAX): Likewise.
15782         [C99-based-standards] (PRIuMAX): Likewise.
15783         [C99-based-standards] (PRIxMAX): Likewise.
15784         [C99-based-standards] (PRIXMAX): Likewise.
15785         [C99-based-standards] (SCNdMAX): Likewise.
15786         [C99-based-standards] (SCNiMAX): Likewise.
15787         [C99-based-standards] (SCNoMAX): Likewise.
15788         [C99-based-standards] (SCNuMAX): Likewise.
15789         [C99-based-standards] (SCNxMAX): Likewise.
15790         [C99-based-standards] (PRIdPTR): Likewise.
15791         [C99-based-standards] (PRIiPTR): Likewise.
15792         [C99-based-standards] (PRIoPTR): Likewise.
15793         [C99-based-standards] (PRIuPTR): Likewise.
15794         [C99-based-standards] (PRIxPTR): Likewise.
15795         [C99-based-standards] (PRIXPTR): Likewise.
15796         [C99-based-standards] (SCNdPTR): Likewise.
15797         [C99-based-standards] (SCNiPTR): Likewise.
15798         [C99-based-standards] (SCNoPTR): Likewise.
15799         [C99-based-standards] (SCNuPTR): Likewise.
15800         [C99-based-standards] (SCNxPTR): Likewise.
15801         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
15802         allow.
15803         * conform/data/stdint.h-data: Update comments to clarify
15804         requirements.
15805         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
15806         type.
15807         [C99-based standards] (INT8_MAX): Likewise.
15808         [C99-based standards] (INT16_MIN): Likewise.
15809         [C99-based standards] (INT16_MAX): Likewise.
15810         [C99-based standards] (INT32_MIN): Likewise.
15811         [C99-based standards] (INT32_MAX): Likewise.
15812         [C99-based standards] (INT64_MIN): Likewise.
15813         [C99-based standards] (INT64_MAX): Likewise.
15814         [C99-based standards] (UINT8_MAX): Likewise.
15815         [C99-based standards] (UINT16_MAX): Likewise.
15816         [C99-based standards] (UINT32_MAX): Likewise.
15817         [C99-based standards] (UINT64_MAX): Likewise.
15818         [C99-based standards] (INT_LEAST8_MIN): Likewise.
15819         [C99-based standards] (INT_LEAST8_MAX): Likewise.
15820         [C99-based standards] (INT_LEAST16_MIN): Likewise.
15821         [C99-based standards] (INT_LEAST16_MAX): Likewise.
15822         [C99-based standards] (INT_LEAST32_MIN): Likewise.
15823         [C99-based standards] (INT_LEAST32_MAX): Likewise.
15824         [C99-based standards] (INT_LEAST64_MIN): Likewise.
15825         [C99-based standards] (INT_LEAST64_MAX): Likewise.
15826         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
15827         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
15828         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
15829         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
15830         [C99-based standards] (INT_FAST8_MIN): Likewise.
15831         [C99-based standards] (INT_FAST8_MAX): Likewise.
15832         [C99-based standards] (INT_FAST16_MIN): Likewise.
15833         [C99-based standards] (INT_FAST16_MAX): Likewise.
15834         [C99-based standards] (INT_FAST32_MIN): Likewise.
15835         [C99-based standards] (INT_FAST32_MAX): Likewise.
15836         [C99-based standards] (INT_FAST64_MIN): Likewise.
15837         [C99-based standards] (INT_FAST64_MAX): Likewise.
15838         [C99-based standards] (UINT_FAST8_MAX): Likewise.
15839         [C99-based standards] (UINT_FAST16_MAX): Likewise.
15840         [C99-based standards] (UINT_FAST32_MAX): Likewise.
15841         [C99-based standards] (UINT_FAST64_MAX): Likewise.
15842         [C99-based standards] (INTPTR_MIN): Likewise.
15843         [C99-based standards] (INTPTR_MAX): Likewise.
15844         [C99-based standards] (UINTPTR_MAX): Likewise.
15845         [C99-based standards] (INTMAX_MIN): Likewise.
15846         [C99-based standards] (INTMAX_MAX): Likewise.
15847         [C99-based standards] (UINTMAX_MAX): Likewise.
15848         [C99-based standards] (PTRDIFF_MIN): Likewise.
15849         [C99-based standards] (PTRDIFF_MAX): Likewise.
15850         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
15851         [C99-based standards] (SIZE_MAX): Likewise.
15852         [C99-based standards] (WCHAR_MAX): Likewise.
15853         [C99-based standards] (WINT_MAX): Likewise.
15854         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
15855         constraint on value.
15856         [C99-based standards] (WCHAR_MIN): Likewise.
15857         [C99-based standards] (WINT_MIN): Likewise.
15858         [C99-based standards] (*_t): Allow.
15859         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
15860         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
15861         Include math.h-data and complex.h-data.  Remove all expectations
15862         of math.h and complex.h contents.
15863         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
15864         at end of line.
15865         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
15866         (struct tm): Expect tag.
15867         [C99-based-standards] (wcstof): Expect function.
15868         [C99-based-standards] (wcstold): Likewise.
15869         [C99-based-standards] (wcstoll): Likewise.
15870         [C99-based-standards] (wcstoull): Likewise.
15871         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
15872         macro-int-constant.  Specify type.
15873         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
15874         constraint on value.
15875         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
15876         Specify type.
15877         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
15878         Specify value.
15879         [ISO C standards]: Do not allow headers.
15880         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
15881         wcs[abcdefghijklmnopqrstuvwxyz]*.
15882         [ISO C standards] (*_t): Do not allow.
15883         * conform/data/wctype.h-data [C99-based standards] (iswblank):
15884         Expect function.
15885         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
15886         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
15887         Specify type.
15888         [ISO C standards]: Do not allow headers.
15889         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
15890         is[abcdefghijklmnopqrstuvwxyz]*.
15891         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
15892         to[abcdefghijklmnopqrstuvwxyz]*.
15893         [ISO C standards] (*_t): Do not allow.
15894         * conform/data/stdalign.h-data: New file.
15895         * conform/data/stdbool.h-data: Likewise.
15896         * conform/data/stdnoreturn.h-data: Likewise.
15897
15898 2012-11-07  Roland McGrath  <roland@hack.frob.com>
15899
15900         [BZ #14815]
15901         * manual/filesys.texi (Directory Entries): Typo fix.
15902         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
15903
15904 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15905
15906         * elf/elf.h (EM_AARCH64): New macro.
15907         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
15908         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
15909         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
15910         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
15911         (R_AARCH64_TLSDESC): Likewise.
15912         (NT_ARM_TLS): Likewise.
15913         (NT_ARM_HW_BREAK): Likewise.
15914         (NT_ARM_HW_WATCH): Likewise.
15915
15916 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
15917
15918         [BZ #14811]
15919         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
15920         (__ieee754_powl): Saturate nonzero exponents with absolute value
15921         below 0x1p-79 to +/- 0x1p-79.
15922         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
15923         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
15924         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
15925         nonzero exponents with absolute value below 0x1p-32 to +/-
15926         0x1p-32.
15927         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
15928         (__ieee754_powl): Saturate nonzero exponents with absolute value
15929         below 0x1p-79 to +/- 0x1p-79.
15930         * math/libm-test.inc (pow_test): Add more tests.
15931
15932 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15933
15934         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
15935         _dl_s390_cap_flags with kernel. Increase string length.
15936         (_dl_s390_platforms): Add z196 and zEC12.
15937
15938 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
15939
15940         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
15941         Change XOPEN21K to XOPEN2K.
15942
15943 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15944
15945         * string/memmove.c: Use memcpy when possible.
15946
15947 2012-11-06  Andreas Jaeger  <aj@suse.de>
15948
15949         * po/eo.po: Update from translation team.
15950
15951 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
15952
15953         [BZ #14793]
15954         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
15955         exponent and small x and y exponents, scale x or y up.  Increase
15956         by 2 the exponent used in scaling up.
15957         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
15958         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15959         * math/libm-test.inc (fma_test): Add more tests.
15960         (fma_test_towardzero): Likewise.
15961         (fma_test_downward): Likewise.
15962         (fma_test_upward): Likewise.
15963
15964 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
15965
15966         [BZ #14805]
15967         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
15968         fenv_t *.
15969
15970         [BZ #14801]
15971         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
15972         namespace for names of struct fields.
15973         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
15974         fenv_t fields.
15975         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
15976         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
15977
15978 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15979
15980         [BZ #3665]
15981         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
15982
15983 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
15984
15985         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
15986         PTR_DEMANGLE.
15987
15988         [BZ #5246]
15989         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
15990         PTR_DEMANGLE.
15991
15992 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
15993
15994         [BZ #14797]
15995         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
15996         definitely overflow as x * y not x * y + z.
15997         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
15998         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15999         * math/libm-test.inc (fma_test): Add more tests.
16000         (fma_test_towardzero): Likewise.
16001         (fma_test_downward): Likewise.
16002         (fma_test_upward): Likewise.
16003
16004 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
16005
16006         [BZ #157]
16007
16008         * include/stub-tag.h: Remove file.
16009         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
16010         '#include' of it.
16011         * manual/maint.texi (Porting): Don't reference it.
16012         * Makerules ($(objpfx)stubs): Likewise.
16013         * dirent/closedir.c: Don't include <stub-tag.h>.
16014         * dirent/dirfd.c: Likewise.
16015         * dirent/fdopendir.c: Likewise.
16016         * dirent/getdents.c: Likewise.
16017         * dirent/getdents64.c: Likewise.
16018         * dirent/opendir.c: Likewise.
16019         * dirent/readdir.c: Likewise.
16020         * dirent/readdir64.c: Likewise.
16021         * dirent/readdir64_r.c: Likewise.
16022         * dirent/readdir_r.c: Likewise.
16023         * dirent/rewinddir.c: Likewise.
16024         * dirent/seekdir.c: Likewise.
16025         * dirent/telldir.c: Likewise.
16026         * gmon/profil.c: Likewise.
16027         * grp/setgroups.c: Likewise.
16028         * inet/if_index.c: Likewise.
16029         * io/access.c: Likewise.
16030         * io/chdir.c: Likewise.
16031         * io/chmod.c: Likewise.
16032         * io/chown.c: Likewise.
16033         * io/close.c: Likewise.
16034         * io/dup.c: Likewise.
16035         * io/dup2.c: Likewise.
16036         * io/dup3.c: Likewise.
16037         * io/euidaccess.c: Likewise.
16038         * io/faccessat.c: Likewise.
16039         * io/fchdir.c: Likewise.
16040         * io/fchmod.c: Likewise.
16041         * io/fchmodat.c: Likewise.
16042         * io/fchown.c: Likewise.
16043         * io/fchownat.c: Likewise.
16044         * io/fcntl.c: Likewise.
16045         * io/flock.c: Likewise.
16046         * io/fstatfs.c: Likewise.
16047         * io/fstatfs64.c: Likewise.
16048         * io/fstatvfs.c: Likewise.
16049         * io/fstatvfs64.c: Likewise.
16050         * io/futimens.c: Likewise.
16051         * io/fxstat.c: Likewise.
16052         * io/fxstat64.c: Likewise.
16053         * io/fxstatat.c: Likewise.
16054         * io/fxstatat64.c: Likewise.
16055         * io/getcwd.c: Likewise.
16056         * io/isatty.c: Likewise.
16057         * io/lchmod.c: Likewise.
16058         * io/lchown.c: Likewise.
16059         * io/link.c: Likewise.
16060         * io/linkat.c: Likewise.
16061         * io/lseek.c: Likewise.
16062         * io/lseek64.c: Likewise.
16063         * io/lxstat64.c: Likewise.
16064         * io/mkdir.c: Likewise.
16065         * io/mkdirat.c: Likewise.
16066         * io/mkfifo.c: Likewise.
16067         * io/mkfifoat.c: Likewise.
16068         * io/open.c: Likewise.
16069         * io/open64.c: Likewise.
16070         * io/openat.c: Likewise.
16071         * io/openat64.c: Likewise.
16072         * io/pipe.c: Likewise.
16073         * io/pipe2.c: Likewise.
16074         * io/poll.c: Likewise.
16075         * io/posix_fadvise.c: Likewise.
16076         * io/posix_fadvise64.c: Likewise.
16077         * io/posix_fallocate.c: Likewise.
16078         * io/posix_fallocate64.c: Likewise.
16079         * io/read.c: Likewise.
16080         * io/readlink.c: Likewise.
16081         * io/readlinkat.c: Likewise.
16082         * io/rmdir.c: Likewise.
16083         * io/sendfile.c: Likewise.
16084         * io/sendfile64.c: Likewise.
16085         * io/statfs.c: Likewise.
16086         * io/statfs64.c: Likewise.
16087         * io/statvfs.c: Likewise.
16088         * io/statvfs64.c: Likewise.
16089         * io/symlink.c: Likewise.
16090         * io/symlinkat.c: Likewise.
16091         * io/ttyname.c: Likewise.
16092         * io/ttyname_r.c: Likewise.
16093         * io/umask.c: Likewise.
16094         * io/unlink.c: Likewise.
16095         * io/unlinkat.c: Likewise.
16096         * io/utime.c: Likewise.
16097         * io/utimensat.c: Likewise.
16098         * io/write.c: Likewise.
16099         * io/xmknod.c: Likewise.
16100         * io/xmknodat.c: Likewise.
16101         * io/xstat.c: Likewise.
16102         * io/xstat64.c: Likewise.
16103         * login/getpt.c: Likewise.
16104         * login/grantpt.c: Likewise.
16105         * login/unlockpt.c: Likewise.
16106         * math/e_acoshl.c: Likewise.
16107         * math/e_acosl.c: Likewise.
16108         * math/e_asinl.c: Likewise.
16109         * math/e_atan2l.c: Likewise.
16110         * math/e_atanhl.c: Likewise.
16111         * math/e_coshl.c: Likewise.
16112         * math/e_expl.c: Likewise.
16113         * math/e_fmodl.c: Likewise.
16114         * math/e_gammal_r.c: Likewise.
16115         * math/e_hypotl.c: Likewise.
16116         * math/e_j0l.c: Likewise.
16117         * math/e_j1l.c: Likewise.
16118         * math/e_jnl.c: Likewise.
16119         * math/e_lgammal_r.c: Likewise.
16120         * math/e_log10l.c: Likewise.
16121         * math/e_log2l.c: Likewise.
16122         * math/e_logl.c: Likewise.
16123         * math/e_powl.c: Likewise.
16124         * math/e_rem_pio2l.c: Likewise.
16125         * math/e_sinhl.c: Likewise.
16126         * math/e_sqrtl.c: Likewise.
16127         * math/fclrexcpt.c: Likewise.
16128         * math/fedisblxcpt.c: Likewise.
16129         * math/feenablxcpt.c: Likewise.
16130         * math/fegetenv.c: Likewise.
16131         * math/fegetexcept.c: Likewise.
16132         * math/fegetround.c: Likewise.
16133         * math/feholdexcpt.c: Likewise.
16134         * math/fesetenv.c: Likewise.
16135         * math/fesetround.c: Likewise.
16136         * math/feupdateenv.c: Likewise.
16137         * math/fgetexcptflg.c: Likewise.
16138         * math/fraiseexcpt.c: Likewise.
16139         * math/fsetexcptflg.c: Likewise.
16140         * math/ftestexcept.c: Likewise.
16141         * math/k_cosl.c: Likewise.
16142         * math/k_rem_pio2l.c: Likewise.
16143         * math/k_sinl.c: Likewise.
16144         * math/k_tanl.c: Likewise.
16145         * math/s_asinhl.c: Likewise.
16146         * math/s_atanl.c: Likewise.
16147         * math/s_cbrtl.c: Likewise.
16148         * math/s_erfl.c: Likewise.
16149         * math/s_expm1l.c: Likewise.
16150         * math/s_log1pl.c: Likewise.
16151         * math/s_tanhl.c: Likewise.
16152         * misc/acct.c: Likewise.
16153         * misc/brk.c: Likewise.
16154         * misc/chflags.c: Likewise.
16155         * misc/chroot.c: Likewise.
16156         * misc/fchflags.c: Likewise.
16157         * misc/fgetxattr.c: Likewise.
16158         * misc/flistxattr.c: Likewise.
16159         * misc/fremovexattr.c: Likewise.
16160         * misc/fsetxattr.c: Likewise.
16161         * misc/fsync.c: Likewise.
16162         * misc/ftruncate.c: Likewise.
16163         * misc/futimes.c: Likewise.
16164         * misc/futimesat.c: Likewise.
16165         * misc/getdomain.c: Likewise.
16166         * misc/getdtsz.c: Likewise.
16167         * misc/gethostid.c: Likewise.
16168         * misc/gethostname.c: Likewise.
16169         * misc/getloadavg.c: Likewise.
16170         * misc/getpagesize.c: Likewise.
16171         * misc/getsysstats.c: Likewise.
16172         * misc/getxattr.c: Likewise.
16173         * misc/gtty.c: Likewise.
16174         * misc/ioctl.c: Likewise.
16175         * misc/lgetxattr.c: Likewise.
16176         * misc/listxattr.c: Likewise.
16177         * misc/llistxattr.c: Likewise.
16178         * misc/lremovexattr.c: Likewise.
16179         * misc/lsetxattr.c: Likewise.
16180         * misc/lutimes.c: Likewise.
16181         * misc/madvise.c: Likewise.
16182         * misc/mincore.c: Likewise.
16183         * misc/mlock.c: Likewise.
16184         * misc/mlockall.c: Likewise.
16185         * misc/mmap.c: Likewise.
16186         * misc/mprotect.c: Likewise.
16187         * misc/msync.c: Likewise.
16188         * misc/munlock.c: Likewise.
16189         * misc/munlockall.c: Likewise.
16190         * misc/munmap.c: Likewise.
16191         * misc/preadv.c: Likewise.
16192         * misc/preadv64.c: Likewise.
16193         * misc/ptrace.c: Likewise.
16194         * misc/pwritev.c: Likewise.
16195         * misc/pwritev64.c: Likewise.
16196         * misc/readv.c: Likewise.
16197         * misc/reboot.c: Likewise.
16198         * misc/remap_file_pages.c: Likewise.
16199         * misc/removexattr.c: Likewise.
16200         * misc/revoke.c: Likewise.
16201         * misc/select.c: Likewise.
16202         * misc/setdomain.c: Likewise.
16203         * misc/setegid.c: Likewise.
16204         * misc/seteuid.c: Likewise.
16205         * misc/sethostid.c: Likewise.
16206         * misc/sethostname.c: Likewise.
16207         * misc/setregid.c: Likewise.
16208         * misc/setreuid.c: Likewise.
16209         * misc/setxattr.c: Likewise.
16210         * misc/sstk.c: Likewise.
16211         * misc/stty.c: Likewise.
16212         * misc/swapoff.c: Likewise.
16213         * misc/swapon.c: Likewise.
16214         * misc/sync.c: Likewise.
16215         * misc/syncfs.c: Likewise.
16216         * misc/syscall.c: Likewise.
16217         * misc/truncate.c: Likewise.
16218         * misc/ualarm.c: Likewise.
16219         * misc/usleep.c: Likewise.
16220         * misc/ustat.c: Likewise.
16221         * misc/utimes.c: Likewise.
16222         * misc/vhangup.c: Likewise.
16223         * misc/writev.c: Likewise.
16224         * posix/_exit.c: Likewise.
16225         * posix/alarm.c: Likewise.
16226         * posix/execve.c: Likewise.
16227         * posix/fexecve.c: Likewise.
16228         * posix/fork.c: Likewise.
16229         * posix/fpathconf.c: Likewise.
16230         * posix/getaddrinfo.c: Likewise.
16231         * posix/getegid.c: Likewise.
16232         * posix/geteuid.c: Likewise.
16233         * posix/getgid.c: Likewise.
16234         * posix/getgroups.c: Likewise.
16235         * posix/getlogin.c: Likewise.
16236         * posix/getlogin_r.c: Likewise.
16237         * posix/getpgid.c: Likewise.
16238         * posix/getpid.c: Likewise.
16239         * posix/getppid.c: Likewise.
16240         * posix/getresgid.c: Likewise.
16241         * posix/getresuid.c: Likewise.
16242         * posix/getsid.c: Likewise.
16243         * posix/getuid.c: Likewise.
16244         * posix/glob64.c: Likewise.
16245         * posix/nanosleep.c: Likewise.
16246         * posix/pathconf.c: Likewise.
16247         * posix/pause.c: Likewise.
16248         * posix/posix_madvise.c: Likewise.
16249         * posix/pread.c: Likewise.
16250         * posix/pread64.c: Likewise.
16251         * posix/pwrite.c: Likewise.
16252         * posix/pwrite64.c: Likewise.
16253         * posix/sched_getaffinity.c: Likewise.
16254         * posix/sched_getp.c: Likewise.
16255         * posix/sched_gets.c: Likewise.
16256         * posix/sched_primax.c: Likewise.
16257         * posix/sched_primin.c: Likewise.
16258         * posix/sched_rr_gi.c: Likewise.
16259         * posix/sched_setaffinity.c: Likewise.
16260         * posix/sched_setp.c: Likewise.
16261         * posix/sched_sets.c: Likewise.
16262         * posix/sched_yield.c: Likewise.
16263         * posix/setgid.c: Likewise.
16264         * posix/setlogin.c: Likewise.
16265         * posix/setpgid.c: Likewise.
16266         * posix/setresgid.c: Likewise.
16267         * posix/setresuid.c: Likewise.
16268         * posix/setsid.c: Likewise.
16269         * posix/setuid.c: Likewise.
16270         * posix/sleep.c: Likewise.
16271         * posix/spawni.c: Likewise.
16272         * posix/sysconf.c: Likewise.
16273         * posix/times.c: Likewise.
16274         * posix/wait.c: Likewise.
16275         * posix/wait3.c: Likewise.
16276         * posix/wait4.c: Likewise.
16277         * posix/waitpid.c: Likewise.
16278         * resolv/gai_sigqueue.c: Likewise.
16279         * resource/getpriority.c: Likewise.
16280         * resource/getrlimit.c: Likewise.
16281         * resource/getrusage.c: Likewise.
16282         * resource/nice.c: Likewise.
16283         * resource/setpriority.c: Likewise.
16284         * resource/setrlimit.c: Likewise.
16285         * resource/ulimit.c: Likewise.
16286         * rt/aio_cancel.c: Likewise.
16287         * rt/aio_fsync.c: Likewise.
16288         * rt/aio_read.c: Likewise.
16289         * rt/aio_sigqueue.c: Likewise.
16290         * rt/aio_suspend.c: Likewise.
16291         * rt/aio_write.c: Likewise.
16292         * rt/clock_getres.c: Likewise.
16293         * rt/clock_gettime.c: Likewise.
16294         * rt/clock_nanosleep.c: Likewise.
16295         * rt/clock_settime.c: Likewise.
16296         * rt/lio_listio.c: Likewise.
16297         * rt/mq_close.c: Likewise.
16298         * rt/mq_getattr.c: Likewise.
16299         * rt/mq_notify.c: Likewise.
16300         * rt/mq_open.c: Likewise.
16301         * rt/mq_receive.c: Likewise.
16302         * rt/mq_send.c: Likewise.
16303         * rt/mq_setattr.c: Likewise.
16304         * rt/mq_timedreceive.c: Likewise.
16305         * rt/mq_timedsend.c: Likewise.
16306         * rt/mq_unlink.c: Likewise.
16307         * rt/shm_open.c: Likewise.
16308         * rt/shm_unlink.c: Likewise.
16309         * rt/timer_create.c: Likewise.
16310         * rt/timer_delete.c: Likewise.
16311         * rt/timer_getoverr.c: Likewise.
16312         * rt/timer_gettime.c: Likewise.
16313         * rt/timer_settime.c: Likewise.
16314         * setjmp/__longjmp.c: Likewise.
16315         * setjmp/setjmp.c: Likewise.
16316         * signal/kill.c: Likewise.
16317         * signal/killpg.c: Likewise.
16318         * signal/raise.c: Likewise.
16319         * signal/sigaction.c: Likewise.
16320         * signal/sigaltstack.c: Likewise.
16321         * signal/sigblock.c: Likewise.
16322         * signal/sigignore.c: Likewise.
16323         * signal/sigintr.c: Likewise.
16324         * signal/signal.c: Likewise.
16325         * signal/sigpause.c: Likewise.
16326         * signal/sigpending.c: Likewise.
16327         * signal/sigqueue.c: Likewise.
16328         * signal/sigreturn.c: Likewise.
16329         * signal/sigset.c: Likewise.
16330         * signal/sigsetmask.c: Likewise.
16331         * signal/sigstack.c: Likewise.
16332         * signal/sigsuspend.c: Likewise.
16333         * signal/sigtimedwait.c: Likewise.
16334         * signal/sigvec.c: Likewise.
16335         * signal/sigwait.c: Likewise.
16336         * signal/sigwaitinfo.c: Likewise.
16337         * signal/sysv_signal.c: Likewise.
16338         * socket/accept.c: Likewise.
16339         * socket/accept4.c: Likewise.
16340         * socket/bind.c: Likewise.
16341         * socket/connect.c: Likewise.
16342         * socket/getpeername.c: Likewise.
16343         * socket/getsockname.c: Likewise.
16344         * socket/getsockopt.c: Likewise.
16345         * socket/isfdtype.c: Likewise.
16346         * socket/listen.c: Likewise.
16347         * socket/recv.c: Likewise.
16348         * socket/recvfrom.c: Likewise.
16349         * socket/recvmsg.c: Likewise.
16350         * socket/send.c: Likewise.
16351         * socket/sendmsg.c: Likewise.
16352         * socket/sendto.c: Likewise.
16353         * socket/setsockopt.c: Likewise.
16354         * socket/shutdown.c: Likewise.
16355         * socket/sockatmark.c: Likewise.
16356         * socket/socket.c: Likewise.
16357         * socket/socketpair.c: Likewise.
16358         * stdio-common/ctermid.c: Likewise.
16359         * stdio-common/cuserid.c: Likewise.
16360         * stdio-common/remove.c: Likewise.
16361         * stdio-common/rename.c: Likewise.
16362         * stdio-common/renameat.c: Likewise.
16363         * stdio-common/tempname.c: Likewise.
16364         * stdlib/getcontext.c: Likewise.
16365         * stdlib/makecontext.c: Likewise.
16366         * stdlib/setcontext.c: Likewise.
16367         * stdlib/swapcontext.c: Likewise.
16368         * stdlib/system.c: Likewise.
16369         * streams/fattach.c: Likewise.
16370         * streams/fdetach.c: Likewise.
16371         * streams/getmsg.c: Likewise.
16372         * streams/getpmsg.c: Likewise.
16373         * streams/putmsg.c: Likewise.
16374         * streams/putpmsg.c: Likewise.
16375         * sysdeps/unix/bsd/getpt.c: Likewise.
16376         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
16377         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
16378         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
16379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
16380         Likewise.
16381         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
16382         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
16383         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
16384         * sysvipc/msgctl.c: Likewise.
16385         * sysvipc/msgget.c: Likewise.
16386         * sysvipc/msgrcv.c: Likewise.
16387         * sysvipc/msgsnd.c: Likewise.
16388         * sysvipc/semctl.c: Likewise.
16389         * sysvipc/semget.c: Likewise.
16390         * sysvipc/semop.c: Likewise.
16391         * sysvipc/semtimedop.c: Likewise.
16392         * sysvipc/shmat.c: Likewise.
16393         * sysvipc/shmctl.c: Likewise.
16394         * sysvipc/shmdt.c: Likewise.
16395         * sysvipc/shmget.c: Likewise.
16396         * termios/tcdrain.c: Likewise.
16397         * termios/tcflow.c: Likewise.
16398         * termios/tcflush.c: Likewise.
16399         * termios/tcgetattr.c: Likewise.
16400         * termios/tcgetpgrp.c: Likewise.
16401         * termios/tcsendbrk.c: Likewise.
16402         * termios/tcsetattr.c: Likewise.
16403         * termios/tcsetpgrp.c: Likewise.
16404         * time/adjtime.c: Likewise.
16405         * time/clock.c: Likewise.
16406         * time/getitimer.c: Likewise.
16407         * time/gettimeofday.c: Likewise.
16408         * time/setitimer.c: Likewise.
16409         * time/settimeofday.c: Likewise.
16410         * time/stime.c: Likewise.
16411         * time/time.c: Likewise.
16412
16413 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
16414
16415         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
16416         /usr/old/bin.
16417
16418         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
16419         instead of spaces.
16420         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
16421
16422 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
16423
16424         [BZ #14796]
16425         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
16426         FE_TONEAREST before applying Dekker multiplication and Knuth
16427         addition.  Clear inexact exceptions and check for exact zero
16428         results afterwards.
16429         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16430         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
16431         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16432         * math/libm-test.inc (fma_test): Add more tests.
16433         (fma_test_towardzero): Likewise.
16434         (fma_test_downward): Likewise.
16435         (fma_test_upward): Likewise.
16436         * sysdeps/generic/math_private.h (default_libc_fesetround): New
16437         function.
16438         (libc_fesetround): New macro.
16439         (libc_fesetroundf): Likewise.
16440         (libc_fesetroundl): Likewise.
16441         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
16442         function.
16443         (libc_fesetround_387): Likewise.
16444         (libc_fesetroundf): New macro.
16445         (libc_fesetround): Likewise.
16446         (libc_fesetroundl): Likewise.
16447         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
16448         function.
16449         (libc_fesetroundf): New macro.
16450         (libc_fesetround): Likewise.
16451         (libc_fesetroundl): Likewise.
16452         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
16453         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
16454         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
16455         libm_hidden_ver.
16456         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
16457         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
16458         libm_hidden_def.
16459         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
16460         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
16461         libm_hidden_ver.
16462         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
16463         libm_hidden_def.
16464
16465         [BZ #3439]
16466         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
16467         integer constant usable in #if and use that to give value to enum
16468         constant.
16469         (FE_DIVBYZERO): Likewise.
16470         (FE_UNDERFLOW): Likewise.
16471         (FE_OVERFLOW): Likewise.
16472         (FE_INVALID): Likewise.
16473         (FE_INVALID_SNAN): Likewise.
16474         (FE_INVALID_ISI): Likewise.
16475         (FE_INVALID_IDI): Likewise.
16476         (FE_INVALID_ZDZ): Likewise.
16477         (FE_INVALID_IMZ): Likewise.
16478         (FE_INVALID_COMPARE): Likewise.
16479         (FE_INVALID_SOFTWARE): Likewise.
16480         (FE_INVALID_SQRT): Likewise.
16481         (FE_INVALID_INTEGER_CONVERSION): Likewise.
16482         (FE_TONEAREST): Likewise.
16483         (FE_TOWARDZERO): Likewise.
16484         (FE_UPWARD): Likewise.
16485         (FE_DOWNWARD): Likewise.
16486         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
16487         (FE_DIVBYZERO): Likewise.
16488         (FE_OVERFLOW): Likewise.
16489         (FE_UNDERFLOW): Likewise.
16490         (FE_INEXACT): Likewise.
16491         (FE_TONEAREST): Likewise.
16492         (FE_DOWNWARD): Likewise.
16493         (FE_UPWARD): Likewise.
16494         (FE_TOWARDZERO): Likewise.
16495         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
16496         (FE_UNDERFLOW): Likewise.
16497         (FE_OVERFLOW): Likewise.
16498         (FE_DIVBYZERO): Likewise.
16499         (FE_INVALID): Likewise.
16500         (FE_TONEAREST): Likewise.
16501         (FE_TOWARDZERO): Likewise.
16502         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
16503         (FE_OVERFLOW): Likewise.
16504         (FE_UNDERFLOW): Likewise.
16505         (FE_DIVBYZERO): Likewise.
16506         (FE_INEXACT): Likewise.
16507         (FE_TONEAREST): Likewise.
16508         (FE_TOWARDZERO): Likewise.
16509         (FE_UPWARD): Likewise.
16510         (FE_DOWNWARD): Likewise.
16511         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
16512         (FE_DIVBYZERO): Likewise.
16513         (FE_OVERFLOW): Likewise.
16514         (FE_UNDERFLOW): Likewise.
16515         (FE_INEXACT): Likewise.
16516         (FE_TONEAREST): Likewise.
16517         (FE_DOWNWARD): Likewise.
16518         (FE_UPWARD): Likewise.
16519         (FE_TOWARDZERO): Likewise.
16520
16521 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
16522
16523         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
16524
16525 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
16526
16527         * scripts/cross-test-ssh.sh (command): Use newlines to separate
16528         commands.  Quote $PWD.
16529         (blacklist_exports): Don't use remove_newlines.  Replace "declare
16530         -x" by "export".
16531         (remove_newlines): Remove.
16532
16533 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
16534
16535         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
16536         * stdlib/stdlib.h (atof): Moved to ...
16537         * include/bits/stdlib-float.h: Here.  New file.
16538         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
16539         * stdlib/bits/stdlib-float.h: New file.
16540         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
16541         -mno-sse -mno-mmx.
16542         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
16543         <xmmintrin.h>.
16544
16545 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
16546
16547         * conform/conformtest.pl (@headers): Add fenv.h.
16548         * conform/data/fenv.h-data: New file.
16549         * include/fenv.h [_ISOMAC]: Disable all contents of file except
16550         include of <math/fenv.h>.
16551
16552         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
16553         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
16554         && !UNIX98].  Enables tests for XOPEN2K8.
16555         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
16556         POSIX2008]: Likewise.
16557
16558         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
16559         (struct rusage): Do not expect type or its members.
16560
16561         [BZ #3439]
16562         * math/math.h (FP_NAN): Define macro to integer constant usable in
16563         #if and use that to give value to enum constant.
16564         (FP_INFINITE): Likewise.
16565         (FP_ZERO): Likewise.
16566         (FP_SUBNORMAL): Likewise.
16567         (FP_NORMAL): Likewise.
16568
16569 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
16570
16571         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
16572         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
16573         arguments.
16574
16575 2012-11-02  Roland McGrath  <roland@hack.frob.com>
16576
16577         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
16578         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
16579         autoconf-time if not.
16580         * configure.in: Remove AC_PREREQ.
16581
16582 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16583
16584         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
16585         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
16586         of the internal implementation.
16587
16588 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
16589
16590         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
16591         except include of <misc/sys/syslog.h>.
16592
16593 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16594
16595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
16596         function returns with a NULL context exit with zero.
16597
16598 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16599
16600         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
16601
16602 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
16603
16604         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
16605         (run_program_cmd): This.
16606         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
16607         (tst_langinfo): New variable.  Use it.
16608
16609 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
16610
16611         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
16612         floating point opcodes.
16613
16614 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
16615
16616         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
16617         variable.
16618
16619         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
16620
16621         * sysdeps/mach/hurd/powerpc: Remove directory.
16622         * sysdeps/mach/powerpc: Likewise.
16623
16624 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16625
16626         * scripts/check-local-headers.sh: Ignore c++ headers.
16627
16628 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
16629
16630         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
16631         __libc_cleanup_region_start argument.
16632
16633 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
16634
16635         [BZ #14784]
16636         [BZ #14785]
16637         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
16638         x * y using scaling, not as x * y + z.
16639         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16640         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16641         * math/libm-test.inc (fma_test): Add more tests.
16642         (fma_test_towardzero): Likewise.
16643         (fma_test_downward): Likewise.
16644         (fma_test_upward): Likewise.
16645
16646 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
16647
16648         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
16649
16650 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
16651
16652         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
16653         New variable.
16654
16655 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
16656
16657         * rt/tst-shm.c (worker): Correct checking for mmap failure.
16658
16659 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
16660
16661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16662         Fix sort order.
16663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16664         Likewise.
16665
16666 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16667
16668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16669         Fix the order of the list for glibc 2.17.
16670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16671         Likewise.
16672
16673 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
16674
16675         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16676
16677 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
16678
16679         [BZ #14610]
16680         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
16681         for low part of x being zero before using __atanl (y).
16682         * math/libm-test.inc (atan2_test): Add another test.
16683
16684         * manual/install.texi (Configuring and compiling): Document
16685         general use of test-wrapper and test-wrapper-env.
16686         * INSTALL: Regenerated.
16687
16688         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
16689         (__fma): 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-128/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         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
16697         (__fmal): Do not extract and scale down low bits on after-rounding
16698         systems when result rounded to normal precision would have normal
16699         exponent.
16700         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
16701         macro.
16702         (fma_test): Add more tests.
16703         (fma_test_towardzero): Likewise.
16704         (fma_test_downward): Likewise.
16705         (fma_test_upward): Likewise.
16706
16707 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
16708
16709         * sysdeps/i386/tininess.h: Renamed to ...
16710         * sysdeps/x86/tininess.h: This.
16711         * sysdeps/x86_64/tininess.h: Removed.
16712
16713 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
16714
16715         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
16716         input.  Use $(build-program-cmd).
16717         ($(objpfx)tst-array1-static.out): Likewise.
16718         ($(objpfx)tst-array2.out): Likewise.
16719         ($(objpfx)tst-array3.out): Likewise.
16720         ($(objpfx)tst-array4.out): Likewise.
16721         ($(objpfx)tst-array5.out): Likewise.
16722         ($(objpfx)tst-array5-static.out): Likewise.
16723
16724 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
16725
16726         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
16727         if defined.
16728
16729         * nss/nsswitch.h (nss_interface_function): Provide new
16730         macro for use with NSS functions.
16731         * grp/initgroups.c: Use new macro.
16732         * nss/getXXbyYY.c: Likewise.
16733         * nss/getXXbyYY_r.c: Likewise.
16734         * nss/getXXent.c: Likewise.
16735         * nss/getXXent_r.c: Likewise.
16736         * sysdeps/posix/getaddrinfo.c: Likewise.
16737
16738 2012-10-30  Andreas Jaeger  <aj@suse.de>
16739
16740         * po/ru.po: Update Russion translation from translation project.
16741
16742 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
16743
16744         [BZ #14152]
16745         [BZ #14783]
16746         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
16747         result and shift together with sticky bit instead of replicating
16748         round-to-nearest rounding.
16749         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16750         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16751         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
16752         missing underflow exceptions.
16753         (fma_test_towardzero): Add more tests.
16754         (fma_test_downward): Likewise.
16755         (fma_test_upward): Likewise.
16756
16757         [BZ #14047]
16758         * sysdeps/generic/tininess.h: New file.
16759         * sysdeps/i386/tininess.h: Likewise.
16760         * sysdeps/sh/tininess.h: Likewise.
16761         * sysdeps/x86_64/tininess.h: Likewise.
16762         * stdlib/tst-strtod-underflow.c: Likewise.
16763         * stdlib/tst-tininess.c: Likewise.
16764         * stdlib/strtod_l.c: Include <tininess.h>.
16765         (round_and_return): Do not set errno for exact underflow cases.
16766         Force an underflow exception when setting errno for underflow.
16767         Determine underflow based on rounding to normal precision if
16768         TININESS_AFTER_ROUNDING.
16769         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
16770         ERANGE for exact underflow cases.
16771         * stdlib/Makefile (tests): Add tst-tininess and
16772         tst-strtod-underflow.
16773         ($(objpfx)tst-tininess): Use $(link-libm).
16774         ($(objpfx)tst-strtod-underflow): Likewise.
16775
16776 2012-10-30  Andreas Jaeger  <aj@suse.de>
16777
16778         [BZ#14767]
16779         * elf/Makefile (tests): Remove conditional for have-initfini-array
16780         since this is now always required and the variable does not exist
16781         anymore.
16782         (tests-static): Likewise.
16783         (modules-names): Likewise.
16784
16785         * po/eo.po: Add Esperanto translation from translation project.
16786
16787         * elf/tst-array1.c (fini_array): Make writeable so that it can be
16788         merged with constructor/destructor.
16789         (init_array): Likewise.
16790         * elf/tst-array2dep.c (fini_array): Likewise.
16791         (init_array): Likewise.
16792
16793 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
16794
16795         * manual/message.texi: Delete @cartouche tags.
16796
16797 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
16798
16799         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
16800         EOPNOTSUPP.
16801         * sysdeps/mach/hurd/fsync.c: Likewise.
16802
16803         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
16804         [_POSIX_REALTIME_SIGNALS]: Change condition to
16805         [_POSIX_REALTIME_SIGNALS > 0].
16806
16807 2012-10-27  Andreas Jaeger  <aj@suse.de>
16808
16809         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
16810         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
16811         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
16812         [__WORDSIZE != 64]: Likewise.
16813
16814 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
16815
16816         *  iconvdata/tst-table.sh: Remove ${SHELL}.
16817         *  iconvdata/tst-tables.sh: Likewise.
16818
16819 2012-10-25  David S. Miller  <davem@davemloft.net>
16820
16821         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16822         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
16823         of strtoull.
16824
16825         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
16826         ifunc-impl-list.c
16827         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16828         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
16829         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
16830         file.
16831
16832 2012-10-25  Roland McGrath  <roland@hack.frob.com>
16833
16834         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16835         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
16836         __getdirentries.
16837
16838 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
16839             Jim Blandy  <jimb@codesourcery.com>
16840
16841         * scripts/cross-test-ssh.sh: New file.
16842         * manual/install.texi (Configuring and compiling): Document use of
16843         cross-test-ssh.sh.
16844         * INSTALL: Regenerated.
16845
16846 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
16847
16848         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
16849         EOPNOTSUPP.
16850
16851 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
16852
16853         * Makeconfig (run-program-prefix): Fix comment.
16854
16855 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
16856             Jim Blandy  <jimb@codesourcery.com>
16857
16858         * Makeconfig (test-wrapper): New variable,
16859         (test-wrapper-env): Likewise.
16860         [$(cross-compiling) = yes && $(test-wrapper) != ""]
16861         (run-built-tests): Define to yes.
16862         (run-program-prefix): Use $(test-wrapper).
16863         (built-program-cmd): Likewise.
16864         * Rules (make-test-out): Use $(test-wrapper-env) and
16865         $(host-built-program-cmd).
16866         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
16867         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
16868         tst-pathopt.sh.
16869         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
16870         $(test-wrapper-env) to tst-rtld-load-self.sh.
16871         ($(objpfx)order2.out): Use $(test-wrapper).
16872         ($(objpfx)tst-initorder.out): Likewise.
16873         ($(objpfx)tst-initorder2.out): Likewise.
16874         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
16875         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
16876         (test_wrapper_env): New variable.  Use it to run ld.so.
16877         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
16878         Use it to run ld.so.
16879         (test_wrapper_env): Likewise.
16880         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
16881         $(test-wrapper) to run-iconv-test.sh.
16882         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
16883         (ICONV): Use $test_wrapper.
16884         * posix/Makefile ($(objpfx)globtest.out): Pass
16885         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
16886         globtest.sh, not $(run-program-prefix).
16887         * posix/globtest.sh (run_via_rtld_prefix): New variable.
16888         (test_wrapper): Likewise.
16889         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
16890         set together with run_via_rtld_prefix.
16891         (run_program_prefix): Define in terms of test_wrapper and
16892         run_via_rtld_prefix.
16893
16894 2012-10-24  Roland McGrath  <roland@hack.frob.com>
16895
16896         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
16897         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
16898         Targets removed.
16899
16900         [BZ #14743]
16901         * include/time.h: Remove librt_hidden_proto (clock_gettime).
16902         Declare __clock_getres, __clock_gettime, __clock_settime,
16903         __clock_nanosleep, and __clock_getcpuclockid.
16904         * rt/clock_gettime.c: Define __clock_gettime as an alias.
16905         Remove librt_hidden_def (clock_gettime).
16906         * sysdeps/unix/clock_gettime.c: Likewise.
16907         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
16908         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
16909         * rt/clock_getres.c: Define __clock_getres as an alias.
16910         * sysdeps/posix/clock_getres.c: Likewise.
16911         * rt/clock_settime.c: Define __clock_settime as an alias.
16912         * sysdeps/unix/clock_settime.c: Likewise.
16913         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
16914         * sysdeps/unix/clock_nanosleep.c: Likewise.
16915         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
16916         * rt/clock-compat.c: New file.
16917         * rt/Makefile (librt-routines): Add clock-compat and move
16918         $(clock-routines) to ...
16919         (routines): ... here, new variable.
16920         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
16921         Don't add get_clockfreq here.
16922         * rt/Versions (libc: GLIBC_2.17): New version set.
16923         Add clock_* symbols here.
16924         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
16925         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
16926         (GLIBC_2.17): Add clock_* symbols.
16927         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
16928         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
16929         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
16930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16931         Likewise.
16932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16933         Likewise.
16934         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
16935         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
16936         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
16937         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
16938         * NEWS: Mention the move.
16939
16940         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
16941         Use __open, __read, __close rather than their public counterparts.
16942         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16943         (__get_clockfreq_via_cpuinfo): Likewise.
16944         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
16945         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
16946
16947         * config.h.in (HAVE_IFUNC): New #undef.
16948         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
16949         was successful.
16950         * configure: Regenerated.
16951
16952 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
16953
16954         * configure.in: Move READELF check to start of file.
16955         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
16956         libc_cv_asm_gnu_indirect_function in the process.
16957         * configure: Regenerated.
16958
16959 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
16960
16961         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
16962         send the output to /dev/null.
16963         (libc_cv_cc_with_libunwind): Likewise.
16964         (libc_cv_as_noexecstack): Likewise.
16965         * configure: Regenerate.
16966
16967 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
16968
16969         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
16970
16971         * posix/globtest.sh (TMPDIR): Do not set.
16972         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
16973         (testout): Likewise.
16974
16975 2012-10-24  Andreas Jaeger  <aj@suse.de>
16976
16977         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
16978         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
16979         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
16980         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
16981         posix_fadvise64, posix_fallocate64.
16982
16983         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
16984         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
16985         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
16986         Likewise.
16987         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
16988         Likewise.
16989         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
16990
16991         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
16992         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
16993         <bits/fcntl-linux.h>.
16994         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
16995
16996         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
16997         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
16998         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
16999         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
17000         [__WORDSIZE != 64]: Likewise.
17001
17002 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
17003
17004         * Makeconfig (run-built-tests): New variable.
17005         * Rules [$(cross-compiling) = yes]: Change condition to
17006         [$(run-built-tests) = no].
17007         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
17008         to [$(run-built-tests) = yes].
17009         * elf/Makefile [$(cross-compiling) = no]: Likewise
17010         * grp/Makefile [$(cross-compiling) = no]: Likewise.
17011         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
17012         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
17013         * intl/Makefile [$(cross-compiling) = no]: Likewise.
17014         * io/Makefile [$(cross-compiling) = no]: Likewise.
17015         * libio/Makefile [$(cross-compiling) = no]: Likewise.
17016         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
17017         * misc/Makefile [$(cross-compiling) = no]: Likewise.
17018         * posix/Makefile [$(cross-compiling) = no]: Likewise.
17019         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
17020         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
17021         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
17022         * string/Makefile [$(cross-compiling) = no]: Likewise.
17023
17024         * posix/Makefile ($(objpfx)globtest.out): Pass
17025         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
17026         $(rtld-installed-name).
17027         * posix/globtest.sh (elf_objpfx): Remove variable.
17028         (rtld_installed_name): Likewise.
17029         (library_path): Likewise.
17030         (run_program_prefix): New variable.  Use for running globtest
17031         binary.
17032
17033 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
17034             Joseph Myers  <joseph@codesourcery.com>
17035
17036         * Makeconfig (host-built-program-cmd): New variable.
17037         * elf/Makefile (tst-stackguard1-ARGS): Use
17038         $(host-built-program-cmd).
17039         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
17040         (tst-spawn-ARGS): Likewise.
17041         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
17042
17043 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
17044             Jim Blandy  <jimb@codesourcery.com>
17045
17046         * Makeconfig (run-via-rtld-prefix): New variable.
17047         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
17048         (built-program-cmd): Likewise.
17049
17050 2012-10-22  Andreas Jaeger  <aj@suse.de>
17051
17052         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
17053         __O_RSYNC if it exists, otherwise to O_SYNC.
17054
17055 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
17056             Joseph Myers  <joseph@codesourcery.com>
17057
17058         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
17059         /dev/null.
17060         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
17061         from /dev/null
17062         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
17063         /dev/null.
17064
17065 2012-10-22  Andreas Jaeger  <aj@suse.de>
17066
17067         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
17068         Define always.
17069         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
17070
17071         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17072         bits/fcntl-linux.h.
17073
17074         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
17075         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
17076
17077         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
17078         to __O_LARGEFILE.
17079         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
17080         to __O_LARGEFILE.
17081
17082 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
17083             Joseph Myers  <joseph@codesourcery.com>
17084
17085         * config.make.in (NM): New variable.
17086
17087 2012-10-21  Andreas Jaeger  <aj@suse.de>
17088
17089         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
17090         definitions and declarations that are provided by
17091         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
17092
17093 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
17094
17095         [BZ #14683]
17096         * elf/Makefile (tests-static): Add tst-leaks1-static.
17097         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
17098         ($(objpfx)tst-leaks1-static): New rule.
17099         ($(objpfx)tst-leaks1-static-mem): Likewise.
17100         (tst-leaks1-static-ENV): New macro.
17101         * elf/dl-open.c (dl_open_worker): Check the main application
17102         only if SHARED is defined.
17103         * elf/tst-leaks1-static.c: New file.
17104
17105 2012-10-20  Andreas Jaeger  <aj@suse.de>
17106
17107         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
17108         generic values for Linux.
17109         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
17110         and declarations that are provided by <bits/fcntl-linux.h> and
17111         include <bits/fcntl-linux.h>.
17112         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17113         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17114
17115 2012-10-20  Roland McGrath  <roland@hack.frob.com>
17116
17117         * io/fcntl.h: Move include of <bits/types.h> to the top and
17118         include it unconditionally.
17119
17120 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
17121
17122         * wcsmbs/Makefile (tests-ifunc): New variable.
17123         (tests): Add $(tests-ifunc).
17124         * wcsmbs/test-wcschr-ifunc.c: New file.
17125         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
17126         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
17127         * wcsmbs/test-wcslen-ifunc.c: Likewise.
17128         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
17129         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
17130
17131         * string/Makefile (tests-ifunc): New variable.
17132         (tests): Add $(tests-ifunc).
17133         * string/test-memccpy.c (TEST_NAME): New macro.
17134         * string/test-memchr.c (TEST_NAME): Likewise.
17135         * string/test-memcmp.c (TEST_NAME): Likewise.
17136         * string/test-memcpy.c (TEST_NAME): Likewise.
17137         * string/test-memmem.c (TEST_NAME): Likewise.
17138         * string/test-memmove.c (TEST_NAME): Likewise.
17139         * string/test-memset.c (TEST_NAME): Likewise.
17140         * string/test-rawmemchr.c (TEST_NAME): Likewise.
17141         * string/test-stpcpy.c (TEST_NAME): Likewise.
17142         * string/test-stpncpy.c (TEST_NAME): Likewise.
17143         * string/test-strcasecmp.c (TEST_NAME): Likewise.
17144         * string/test-strcasestr.c (TEST_NAME): Likewise.
17145         * string/test-strcat.c (TEST_NAME): Likewise.
17146         * string/test-strchr.c (TEST_NAME): Likewise.
17147         * string/test-strcmp.c(TEST_NAME): Likewise.
17148         * string/test-strcpy.c (TEST_NAME): Likewise.
17149         * string/test-strcspn.c (TEST_NAME): Likewise.
17150         * string/test-strlen.c (TEST_NAME): Likewise.
17151         * string/test-strncasecmp.c (TEST_NAME): Likewise.
17152         * string/test-strncmp.c (TEST_NAME): Likewise.
17153         * string/test-strncpy.c (TEST_NAME): Likewise.
17154         * string/test-strnlen.c (TEST_NAME): Likewise.
17155         * string/test-strpbrk.c (TEST_NAME): Likewise.
17156         * string/test-strrchr.c (TEST_NAME): Likewise.
17157         * string/test-strspn.c (TEST_NAME): Likewise.
17158         * string/test-strstr.c (TEST_NAME): Likewise.
17159         * string/test-bcopy-ifunc.c: New file.
17160         * string/test-bzero-ifunc.c: Likewise.
17161         * string/test-memccpy-ifunc.c: Likewise.
17162         * string/test-memchr-ifunc.c: Likewise.
17163         * string/test-memcmp-ifunc.c: Likewise.
17164         * string/test-memcpy-ifunc.c: Likewise.
17165         * string/test-memmem-ifunc.c: Likewise.
17166         * string/test-memmove-ifunc.c: Likewise.
17167         * string/test-mempcpy-ifunc.c: Likewise.
17168         * string/test-memset-ifunc.c: Likewise.
17169         * string/test-rawmemchr-ifunc.c: Likewise.
17170         * string/test-stpcpy-ifunc.c: Likewise.
17171         * string/test-stpncpy-ifunc.c: Likewise.
17172         * string/test-strcasecmp-ifunc.c: Likewise.
17173         * string/test-strcasestr-ifunc.c: Likewise.
17174         * string/test-strcat-ifunc.c: Likewise.
17175         * string/test-strchr-ifunc.c: Likewise.
17176         * string/test-strchrnul-ifunc.c: Likewise.
17177         * string/test-strcmp-ifunc.c: Likewise.
17178         * string/test-strcpy-ifunc.c: Likewise.
17179         * string/test-strcspn-ifunc.c: Likewise.
17180         * string/test-strlen-ifunc.c: Likewise.
17181         * string/test-strncasecmp-ifunc.c: Likewise.
17182         * string/test-strncat-ifunc.c: Likewise.
17183         * string/test-strncmp-ifunc.c: Likewise.
17184         * string/test-strncpy-ifunc.c: Likewise.
17185         * string/test-strnlen-ifunc.c: Likewise.
17186         * string/test-strpbrk-ifunc.c: Likewise.
17187         * string/test-strrchr-ifunc.c: Likewise.
17188         * string/test-strspn-ifunc.c: Likewise.
17189         * string/test-strstr-ifunc.c: Likewise.
17190
17191         * debug/Makefile (tests-ifunc): New variable.
17192         (tests): Add $(tests-ifunc).
17193         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
17194         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
17195         * debug/test-stpcpy_chk-ifunc.c: New file.
17196         * debug/test-strcpy_chk-ifunc.c: Likewise.
17197
17198 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
17199
17200         [BZ #13601]
17201         * elf/dl-load.c (open_verify): Retry read if the entire ELF
17202         header is not read in.
17203
17204 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
17205
17206         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
17207         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
17208         directly.  Pass built executable to script as
17209         $(built-program-cmd).
17210         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
17211         $testprogram without using LD_LIBRARY_PATH and $ldso.
17212
17213         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
17214         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
17215         $(rtld-installed-name).
17216         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
17217         (rtld_installed_name): Likewise.
17218         (library_path): Likewise.
17219         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
17220         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
17221         $(run-program-prefix) to tst-tables.sh.
17222         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
17223         it to run tst-table-from and tst-table-to.
17224         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
17225         Pass it to tst-table.sh.
17226         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
17227         $(run-program-prefix) to tst-gettext.sh.
17228         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
17229         tst-translit.sh.
17230         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
17231         tst-gettext2.sh.
17232         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
17233         to run tst-gettext.
17234         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
17235         to run tst-gettext2.
17236         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
17237         to run tst-translit.
17238         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
17239         $(run-program-prefix) to tst-mtrace.sh.
17240         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
17241         to run tst-mtrace.
17242         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
17243         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
17244         $(rtld-installed-name).
17245         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
17246         (rtld_installed_name): Likewise.
17247         (run_program_prefix): New variable.  Use it to run wordexp-test.
17248
17249         * Makeconfig (ARCH): Remove all definitions.
17250         (machine): Likewise.
17251         [ARCH]: Remove conditional code.
17252         [!objdir]: Give error.
17253         [!objdir] (objpfx): Remove.
17254         [!objdir] (common-objpfx): Likewise.
17255         [!objdir] (common-objdir): Likewise.
17256         * configure.in (config_makefile): Remove.  Hardcode Makefile in
17257         AC_CONFIG_FILES call.
17258         * configure: Regenerated.
17259
17260         [BZ #13888]
17261         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
17262         or TMPDIR.
17263         (testout): Likewise.
17264
17265         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
17266         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
17267         $(rtld-installed-name).
17268         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
17269         (rtld_installed_name): Likwise.
17270         (runit): Remove function.
17271         (run_getconf): New variable,  Use it for running getconf binary.
17272
17273 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
17274
17275         [BZ #14716]
17276         * string/test-memmem.c (check_result): New function.
17277         (do_one_test): Use it.
17278         (check1): New function.
17279         (test_main): Use it.
17280
17281 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
17282
17283         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
17284
17285 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
17286
17287         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
17288         (_G_LSEEK64): Likewise.
17289         (_G_MMAP64): Likewise.
17290         (_G_FSTAT64): Likewise.
17291         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
17292         (_G_LSEEK64): Likewise.
17293         (_G_MMAP64): Likewise.
17294         (_G_FSTAT64): Likewise.
17295         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
17296         unconditional.  Call __mmap64 directly.
17297         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
17298         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
17299         __lseek64 directly.
17300         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
17301         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
17302         __mmap64 directly.
17303         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
17304         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
17305         __lseek64 directly.
17306         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
17307         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
17308         __lseek64 directly.
17309         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
17310         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
17311         __lseek64 directly.
17312         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
17313         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
17314         __fxstat64 directly.
17315         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
17316         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
17317         unconditional.
17318         (freopen64) [!_G_OPEN64]: Remove conditional code.
17319         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
17320         unconditional.
17321         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
17322         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
17323         unconditional.
17324         (ftello64) [!_G_LSEEK64]: Remove conditional code.
17325         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
17326         unconditional.
17327         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
17328         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
17329         unconditional.
17330         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
17331         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
17332         unconditional.
17333         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
17334         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
17335         unconditional.
17336         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
17337         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
17338         unconditional.
17339         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
17340
17341 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
17342
17343         [BZ #12140]
17344         * manual/memory.texi (Malloc Tunable Parameters): Add note
17345         about free list pointers overwriting some perturb bytes.
17346         Wording suggested by Roland McGrath.
17347
17348 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
17349
17350         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
17351         (lgamma_test): Likewise.
17352         (tgamma_test): Likewise.
17353
17354 2012-10-16  Florian Weimer  <fweimer@redhat.com>
17355
17356         [BZ #14700]
17357         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
17358         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
17359
17360 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
17361
17362         * NEWS: Mention BZ #14716.
17363         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
17364         when removing AVAILABLE1_USES_J macro.
17365
17366 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
17367
17368         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
17369         (__bswap_64): __uint64_t for unsigned 64-bit int.
17370
17371 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
17372
17373         * include/string.h (memmem): Declare libc hidden alias.
17374         * string/memmem.c (memmem): Define libc hidden alias.
17375         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
17376         __read, __close instead of open, read, close.
17377
17378 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
17379
17380         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
17381         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
17382         global and hidden.
17383         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
17384         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
17385         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
17386         Likewise.
17387         (__rawmemchr_sse2): Likewise.
17388         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
17389         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
17390         (__strchr_sse2): Likewise.
17391         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
17392         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
17393         (__strcasecmp_sse2): Likewise.
17394         (__strncasecmp_sse2): Likewise.
17395         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
17396         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
17397         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
17398         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
17399         (__strrchr_sse2): Likewise.
17400         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
17401         ifunc-impl-list.c.
17402         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
17403         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
17404         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
17405         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
17406         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
17407         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
17408         * sysdeps/x86_64/multiarch/memset.S: Likewise.
17409         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
17410         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
17411         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
17412         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
17413         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
17414         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
17415         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
17416         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
17417         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
17418         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
17419         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
17420         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
17421         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
17422         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
17423         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
17424         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
17425         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
17426         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
17427         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17428         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
17429         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
17430         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
17431         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
17432
17433         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
17434         global and hidden.
17435         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
17436         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
17437         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
17438         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
17439         Likewise.
17440         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
17441         Likewise.
17442         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
17443         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
17444         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
17445         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
17446         ifunc-impl-list.c.
17447         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
17448         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
17449         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
17450         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
17451         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
17452         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
17453         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
17454         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
17455         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
17456         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
17457         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
17458         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
17459         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
17460         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
17461         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
17462         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
17463         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
17464         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
17465         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
17466         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
17467         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
17468         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
17469         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
17470         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
17471         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
17472         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
17473         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
17474         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
17475         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
17476         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
17477         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
17478         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
17479         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
17480         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
17481         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
17482         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
17483         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
17484         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
17485         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
17486         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
17487         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
17488
17489         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
17490         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
17491         * include/ifunc-impl-list.h: New file.
17492         * misc/ifunc-impl-list.c: Likewise.
17493         * misc/Makefile (routines): Add ifunc-impl-list.
17494         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
17495         * string/test-string.h: Include <ifunc-impl-list.h>.
17496         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
17497         impl_array): New variables.
17498         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
17499         are defined.
17500         (test_init): Call __libc_ifunc_impl_list to initialize
17501         func_list if TEST_IFUNC and TEST_NAME are defined.
17502
17503         * string/Makefile (strop-tests): Add bcopy and bzero.
17504         * string/test-bcopy.c: New file.
17505         * string/test-bzero.c: Likewise.
17506         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
17507         defined.
17508         * string/test-memset.c: Support bzero test if TEST_BZERO is
17509         defined.
17510         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
17511         __libc_memmove.
17512         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
17513         __libc_memset.
17514         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
17515         of memset.
17516
17517 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
17518
17519         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
17520         * configure: Regenerated.
17521
17522         * Makeconfig (+link-static-before-libc): Don't include
17523         $(link-static-libc).
17524
17525         * libio/libio.h (_IO_pos_t): Remove.
17526
17527 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
17528
17529         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
17530         McGrath.
17531
17532 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
17533
17534         * crypt/crypt-entry.c: Include fips-private.h.
17535         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
17536         * crypt/md5c-test.c (main): Tolerate disabled MD5.
17537         * sysdeps/unix/sysv/linux/fips-private.h: New file.
17538         * sysdeps/generic/fips-private.h: New file, dummy fallback.
17539
17540 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
17541
17542         * crypt/crypt-private.h: Include stdbool.h.
17543         (_ufc_setup_salt_r): Return bool.
17544         * crypt/crypt-entry.c: Include errno.h.
17545         (__crypt_r): Return NULL with EINVAL for bad salt.
17546         * crypt/crypt_util.c (bad_for_salt): New.
17547         (_ufc_setup_salt_r): Check that salt is long enough and within
17548         the specified alphabet.
17549         * crypt/badsalttest.c: New file.
17550         * crypt/Makefile (tests): Add it.
17551         ($(objpfx)badsalttest): New.
17552
17553 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
17554
17555         * NEWS: Add entry for BZ #14602.
17556
17557 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
17558
17559         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
17560         type-generic.
17561         * math/libm-test.inc: Update comment listing what functions and
17562         macros are tested.
17563         (isgreater_test): New function.
17564         (isgreaterequal_test): Likewise.
17565         (isless_test): Likewise.
17566         (islessequal_test): Likewise.
17567         (islessgreater_test): Likewise.
17568         (isunordered_test): Likewise.
17569         (main): Call the new functions.
17570
17571 2012-10-09  Roland McGrath  <roland@hack.frob.com>
17572
17573         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
17574         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
17575         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
17576         * sysdeps/i386/configure: Regenerated.
17577         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
17578         * sysdeps/mach/configure: Regenerated.
17579         * sysdeps/mach/hurd/configure: Regenerated.
17580         * sysdeps/powerpc/configure: Regenerated.
17581         * sysdeps/powerpc/powerpc32/configure: Regenerated.
17582         * sysdeps/powerpc/powerpc64/configure: Regenerated.
17583         * sysdeps/s390/s390-32/configure: Regenerated.
17584         * sysdeps/s390/s390-64/configure: Regenerated.
17585         * sysdeps/sh/configure: Regenerated.
17586         * sysdeps/sparc/configure: Regenerated.
17587         * sysdeps/unix/sysv/linux/configure: Regenerated.
17588         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
17589         * sysdeps/x86_64/configure: Regenerated.
17590
17591         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
17592         defined.  Don't check if MAP is NULL.
17593
17594 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
17595
17596         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
17597         (_G_stat64): Likewise.
17598         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
17599         (_G_stat64): Likewise.
17600         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
17601         instead of struct _G_stat64.
17602         * libio/fileops.c (mmap_remap_check): Likewise.
17603         (decide_maybe_mmap): Likewise.
17604         (_IO_new_file_seekoff): Likewise.
17605         (_IO_file_stat): Likewise.
17606         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
17607         _G_off64_t.
17608         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
17609         instead of struct _G_stat64.
17610         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
17611
17612 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
17613
17614         [BZ #14602]
17615         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
17616         Replace with ...
17617         (CHECK_EOL): New macro.
17618         (two_way_short_needle): Check beginning of haystack for EOL.  Use
17619         CHECK_EOL.
17620         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
17621         Replace with CHECK_EOL.
17622         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
17623         Replace with CHECK_EOL.
17624
17625 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
17626
17627         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
17628         type-generic.
17629         * math/libm-test.inc: Update comment listing what functions and
17630         macros are tested.
17631         (finite_test): New function.
17632         (isinf_test): Likewise.
17633         (isnan_test): Likewise.
17634         (fpclassify_test): Test subnormal input.
17635         (isfinite_test): Likewise.
17636         (isnormal_test): Likewise.
17637         (main): Call the new functions.
17638
17639 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
17640
17641         [BZ #14660]
17642         * Makerules (%.dynsym): Force C locale when running
17643         $(OBJDUMP) --dynamic-syms.
17644
17645 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
17646
17647         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
17648         <stdint.h>.
17649
17650 2012-10-06  David S. Miller  <davem@davemloft.net>
17651
17652         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
17653         upper 32-bits of the length value in %o2 since we use branch-on-register
17654         tests which consider the entire 64-bit register.
17655
17656 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
17657
17658         * string/test-strstr.c (check2): Add a test for page boundary.
17659
17660 2012-10-05  David S. Miller  <davem@davemloft.net>
17661
17662         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
17663         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
17664         file.
17665         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
17666         sysdep_routines.
17667         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
17668         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
17669         and bzero when HWCAP_SPARC_CRYPTO is present.
17670
17671 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
17672
17673         [BZ #14602]
17674         * string/test-strstr.c (check2): New function.
17675         (test_main): Call check2.
17676
17677         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
17678         and bug-strchr1.
17679         * string/bug-strcasestr1.c (do_test): Moved to ...
17680         * string/test-strcasestr.c (check1): Here.  New function.
17681         (do_one_test): Break out result checking code into ...
17682         (check_result): This.  New function.
17683         (do_one_test): Call check_result.
17684         (test_main): Call check1.
17685         * string/bug-strchr1.c (do_test): Moved to ...
17686         * string/test-strchr.c (check1): Here.  New function.
17687         (do_one_test): Break out result checking code into ...
17688         (check_result): This.  New function.
17689         (do_one_test): Call check_result.
17690         (test_main): Call check1.
17691         * string/bug-strstr1.c (main): Moved to ...
17692         * string/test-strstr.c (check1): Here.  New function.
17693         (do_one_test): Break out result checking code into ...
17694         (check_result): This.  New function.
17695         (do_one_test): Call check_result.
17696         (test_main): Call check1.
17697         * string/bug-strcasestr1.c: Removed.
17698         * string/bug-strchr1.c: Likewise.
17699         * string/bug-strstr1.c: Likewise.
17700
17701         * elf/Makefile (dl-routines): Add hwcaps.
17702         * elf/dl-support.c (_dl_important_hwcaps): Removed.
17703         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
17704         (_dl_important_hwcaps): Moved to ...
17705         * elf/dl-hwcaps.c: Here.  New file.
17706         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
17707
17708         [BZ #14557]
17709         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
17710         if IS_IN_rtld isn't defined.
17711
17712         * elf/dl-support.c (_dl_sysinfo_map): New.
17713         Include "get-dynamic-info.h" and "setup-vdso.h".
17714         (_dl_non_dynamic_init): Call setup_vdso.
17715         * elf/dynamic-link.h: Don't include <assert.h>.
17716         (elf_get_dynamic_info): Moved to ...
17717         * elf/get-dynamic-info.h: Here.  New file.
17718         * elf/dynamic-link.h: Include "get-dynamic-info.h".
17719         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
17720         * elf/setup-vdso.h: Here.  New file.
17721         * elf/rtld.c: Include "setup-vdso.h".
17722         (dl_main): Call setup_vdso.
17723
17724 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
17725
17726         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
17727         creal in comment listing functions tested.  List finite, isinf,
17728         isnan, isless, islessequal, isgreater, isgreaterequal,
17729         islessgreater, isunordered, lgamma_r and pow10 as functions and
17730         macros not tested.  Mention which functions not tested are aliases
17731         for other functions.  Fix typo.  Note that signs of NaNs are not
17732         tested.
17733
17734         * scripts/config.guess: Update from config.git.
17735         * scripts/config.sub: Likewise.
17736
17737 2012-10-04  Roland McGrath  <roland@hack.frob.com>
17738
17739         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
17740         * misc/madvise.c (madvise): Renamed to __madvise.
17741         Make madvise a weak alias.
17742         * include/sys/mman.h: Declare __madvise.
17743         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
17744         * sysdeps/unix/syscalls.list
17745         (madvise): Make __madvise the strong name, and madvise a weak alias.
17746         * sysdeps/unix/sysv/linux/syscalls.list
17747         (madvise, mmap): Remove redundant entries.
17748         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
17749         * malloc/malloc.c (mtrim): Likewise.
17750         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
17751
17752 2012-10-03  Roland McGrath  <roland@hack.frob.com>
17753
17754         * sysdeps/mach/hurd/dl-cache.c: File removed.
17755         * config.h.in (USE_LDCONFIG): New #undef.
17756         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
17757         * configure: Regenerated.
17758         * elf/Makefile (dl-routines): Add dl-cache only under
17759         [$(use-ldconfig) = yes].
17760         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
17761         cache on [USE_LDCONFIG].
17762         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
17763         [USE_LDCONFIG].
17764         * elf/rtld.c (dl_main): Likewise.
17765
17766 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
17767
17768         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
17769         _SC_LEVEL4_CACHE_LINESIZE.
17770
17771 2012-10-03  Roland McGrath  <roland@hack.frob.com>
17772
17773         * sysdeps/unix/bsd/confstr.h: File removed.
17774
17775 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
17776
17777         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
17778         sys/sdt-config.h.
17779
17780 2012-10-02  Roland McGrath  <roland@hack.frob.com>
17781
17782         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
17783         Make 'mapoff' field ElfW(Off) rather than off_t.
17784
17785 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
17786
17787         * nscd/Makefile: Remove nscd-cflags and all its users.
17788         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
17789         (CFLAGS-nonlib): Add compiler flags for nscd modules.
17790
17791         [BZ #10631]
17792         * malloc.c (malloc_printerr): Clarify error message.
17793
17794 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
17795
17796         [BZ #14648]
17797         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17798         Set bit_FMA_Usable if FMA is supported.
17799         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
17800         macro.
17801         (bit_FMA4_Usable): Updated.
17802         (index_FMA_Usable): New macro.
17803         (CPUID_FMA): Likewise
17804         (HAS_FMA): Defined with bit_FMA_Usable.
17805
17806 2012-10-01  Roland McGrath  <roland@hack.frob.com>
17807
17808         * bits/types.h (__swblk_t): Type removed.
17809         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
17810         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
17811         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17812         (__SWBLK_T_TYPE): Likewise.
17813         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
17814         (__SWBLK_T_TYPE): Likewise.
17815         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17816         (__SWBLK_T_TYPE): Likewise.
17817         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
17818         (__SWBLK_T_TYPE): Likewise.
17819
17820 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
17821             Honza Horak <hhorak@redhat.com>
17822
17823         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
17824         (xdr_mapname): Use YPMAXMAP as maxsize.
17825         (xdr_peername): Use YPMAXPEER as maxsize.
17826         (xdr_keydat): Use YPAXRECORD as maxsize.
17827         (xdr_valdat): Use YPMAXRECORD as maxsize.
17828
17829 2012-10-01  Roland McGrath  <roland@hack.frob.com>
17830
17831         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
17832
17833         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
17834         * csu/init-first.c: ... here.
17835         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
17836         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
17837         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
17838         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
17839         * sysdeps/i386/init-first.c: File removed.
17840         * sysdeps/sh/init-first.c: File removed.
17841
17842 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
17843
17844         [BZ #14645]
17845         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
17846         if x * y might underflow to zero and z is zero.
17847         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17848         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17849         * math/libm-test.inc (min_subnorm_value): New variable.
17850         (fma_test): Add more tests.
17851         (fma_test_towardzero): Likewise.
17852         (fma_test_downward): Likewise
17853         (fma_test_upward): Likewise.
17854         (initialize): Set min_subnorm_value.
17855
17856 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
17857
17858         [BZ #14638]
17859         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
17860         0 + 0.
17861         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
17862         mode for addition resulting in exact zero.
17863         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
17864         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
17865         exact 0 + 0.
17866         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17867         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17868         * math/libm-test.inc (fma_test): Add more tests.
17869         (fma_test_towardzero): New function.
17870         (fma_test_downward): Likewise.
17871         (fma_test_upward): Likewise.
17872         (main): Call the new functions.
17873
17874 2012-09-28  David S. Miller  <davem@davemloft.net>
17875
17876         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
17877
17878 2012-09-28  Roland McGrath  <roland@hack.frob.com>
17879
17880         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
17881         instead of SIGALRM.
17882
17883         * sysdeps/gnu/_G_config.h: Moved to ...
17884         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
17885         * sysdeps/mach/hurd/_G_config.h: Moved to ...
17886         * sysdeps/generic/_G_config.h: ... here.
17887
17888         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
17889
17890         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
17891
17892         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
17893         Conditionalize target on [libnss_test1.so-version].
17894
17895         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
17896
17897         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
17898         (elfobjdir): Move out of conditionals.
17899
17900         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
17901         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
17902         (__nss_lookup_function): Conditionalize label remove_from_tree on
17903         [!DO_STATIC_NSS || SHARED], matching its only use.
17904
17905 2012-09-28  David S. Miller  <davem@davemloft.net>
17906
17907         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
17908         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
17909         file.
17910         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
17911         sysdep_routines.
17912         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
17913         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
17914         when HWCAP_SPARC_CRYPTO is present.
17915
17916 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
17917
17918         * io/tst-mknodat.c: Create a FIFO instead of a socket.
17919
17920 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
17921
17922         [BZ #6530]
17923         * stdio-common/vfprintf.c (process_string_arg): Revert
17924         2000-07-22 change.
17925
17926 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
17927
17928         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
17929         for testcase.
17930         * stdio-common/tst-sprintf.c: Include <locale.h>
17931         (main): Test sprintf's handling of incomplete multibyte
17932         characters.
17933
17934 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
17935
17936         * elf/dl-runtime.c (VERSYMIDX): Removed.
17937         * elf/dl-version.c (VERSYMIDX): Likewise.
17938         * elf/do-rel.h (VERSYMIDX): Likewise.
17939         (VALIDX): Likewise.
17940         * elf/dynamic-link.h (VERSYMIDX): Likewise.
17941         * elf/rtld.c (VALIDX): Likewise.
17942         (ADDRIDX): Likewise.
17943         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
17944         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
17945         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
17946         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
17947         (VALIDX): Likewise.
17948         (ADDRIDX): Likewise.
17949
17950 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
17951
17952         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
17953
17954 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
17955
17956         [BZ #11438]
17957         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
17958         to global scope.
17959         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
17960         addresses are in the same scope as 192.0.2/24.
17961         * posix/gai.conf: Document new scope table defaults.
17962
17963 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17964
17965         [BZ #5298]
17966         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
17967         for ftell.  Compute offsets from write pointers instead.
17968         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
17969
17970 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17971
17972         [BZ #14543]
17973         * libio/Makefile (tests): New test case tst-fseek.
17974         * libio/tst-fseek.c: New test case to verify that fseek/ftell
17975         combination works in wide mode.
17976         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
17977         state when the external buffer state changes.
17978
17979 2012-09-27  David S. Miller  <davem@davemloft.net>
17980
17981         [BZ #14376]
17982         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
17983         pass reloc->r_addend in as the 'high' argument to
17984         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
17985
17986         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17987
17988 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
17989
17990         * rt/tst-aio2.c: Include <pthread.h>.
17991         * rt/tst-aio3.c: Likewise.
17992
17993 2012-09-27  Steve Ellcey  <sellcey@mips.com>
17994
17995         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
17996
17997 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
17998
17999         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
18000         contents on [SHARED].
18001
18002 2012-09-26  Marek Polacek  <polacek@redhat.com>
18003
18004         [BZ #14530]
18005         [BZ #13741]
18006         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
18007         for C++ and GCC <4.3 as well as for non GCC compilers.
18008
18009 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
18010
18011         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18012
18013 2012-09-25  Roland McGrath  <roland@hack.frob.com>
18014
18015         * Makefile.in (all, install): Declare with .PHONY.
18016         Reported by Michael Hope <michael.hope@linaro.org>.
18017
18018 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18019
18020         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
18021         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
18022         system header.
18023         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
18024         Likewise.
18025         (sydep_routines): Add the new and the internal functions.
18026         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
18027         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
18028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
18029         (GLIBC_2.17): Add the new function.
18030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
18031         (GLIBC_2.17): Likewise.
18032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
18033         (GLIBC_2.17): Likewise.
18034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
18035         (GLIBC_2.17): Likewise.
18036         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
18037
18038 2012-09-25  Alan Modra  <amodra@gmail.com>
18039
18040         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
18041         Add release barrier before setting once_control to say
18042         initialisation is done.  Add hints on lwarx.  Use macro in
18043         place of isync.
18044         (clear_once_control): Add release barrier.
18045
18046 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
18047
18048         [BZ #13629]
18049         * math/s_clog.c (__clog): Handle more values close to |z| = 1
18050         specially.
18051         * math/s_clog10.c (__clog10): Likewise.
18052         * math/s_clog10f.c (__clog10f): Likewise.
18053         * math/s_clog10l.c (__clog10l): Likewise.
18054         * math/s_clogf.c (__clogf): Likewise.
18055         * math/s_clogl.c (__clogl): Likewise.
18056         * math/Makefile (libm-calls): Add x2y2m1.
18057         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
18058         (__x2y2m1): Likewise.
18059         (__x2y2m1l): Likewise.
18060         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
18061         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
18062         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
18063         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
18064         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
18065         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
18066         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
18067         * sysdeps/i386/fpu/libm-test-ulps: Update.
18068         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18069
18070         [BZ #14621]
18071         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
18072         int as type of variable DEPTH.
18073         (glob): Use size_t instead of int as type of variables NEWCOUNT
18074         and OLD_PATHC.
18075
18076 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18077
18078         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
18079         Add s_sincosf-sse2.
18080         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
18081         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
18082         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
18083         macros for using routine as __sincosf_ia32.
18084         Use macro for function declaration and weak_alias.
18085         * sysdeps/i386/fpu/libm-test-ulps: Update.
18086
18087         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
18088         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18089
18090         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
18091         subnormal argument.
18092         * math/s_cexpf.c (__cexpf): Likewise.
18093         * math/s_csinf.c (__csinf): Likewise.
18094         * math/s_csinhf.c (__csinhf): Likewise.
18095         * math/s_ctanf.c (__ctanf): Likewise.
18096         * math/s_ctanhf.c (__ctanhf): Likewise.
18097         * math/s_ccosh.c (__ccoshf): Likewise.
18098         * math/s_cexp.c (__cexpl): Likewise.
18099         * math/s_csin.c (__csin): Likewise.
18100         * math/s_csinh.c (__csinh): Likewise.
18101         * math/s_ctan.c (__ctan): Likewise.
18102         * math/s_ctanh.c (ctanh): Likewise.
18103         * math/s_ccoshl.c (__ccoshl): Likewise.
18104         * math/s_cexpl.c (__cexpl): Likewise.
18105         * math/s_csinl.c (__csinl): Likewise.
18106         * math/s_csinhl.c (__csinhl): Likewise.
18107         * math/s_ctanl.c (__ctanl): Likewise.
18108         * math/s_ctanhl.c (__ctanhl): Likewise.
18109
18110 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
18111
18112         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
18113         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
18114         (_IO_off_t): Define to __off_t, not _G_off_t.
18115         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
18116         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
18117         (_IO_wint_t): Define to wint_t, not _G_wint_t.
18118         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
18119         type of __dummy and __dummy2 fields.
18120         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
18121         (_G_ssize_t): Likewise.
18122         (_G_off_t): Likewise.
18123         (_G_pid_t): Likewise.
18124         (_G_uid_t): Likewise.
18125         (_G_wchar_t): Likewise.
18126         (_G_wint_t): Likewise.
18127         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
18128         (_G_ssize_t): Likewise.
18129         (_G_off_t): Likewise.
18130         (_G_pid_t): Likewise.
18131         (_G_uid_t): Likewise.
18132         (_G_wchar_t): Likewise.
18133         (_G_wint_t): Likewise.
18134         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
18135         (_G_ssize_t): Likewise.
18136         (_G_off_t): Likewise.
18137         (_G_pid_t): Likewise.
18138         (_G_uid_t): Likewise.
18139         (_G_wchar_t): Likewise.
18140         (_G_wint_t): Likewise.
18141
18142 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
18143
18144         * malloc/arena.c: Include malloc-sysdep.h.
18145         (shrink_heap): Use check_may_shrink_heap to decide if madvise
18146         is sufficient to shrink the heap or an unmap is needed.
18147         * sysdeps/generic/malloc-sysdep.h: New file.  Define
18148         new function check_may_shrink_heap.
18149         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
18150         new function check_may_shrink_heap.
18151
18152 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
18153
18154         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
18155         comments.
18156
18157 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
18158
18159         * catgets/test-gencat.sh: Add "set -e".
18160         * elf/tst-pathopt.sh: Likewise.
18161         * grp/tst_fgetgrent.sh: Likewise.
18162         * iconvdata/run-iconv-test.sh: Likewise.
18163         * intl/tst-gettext.sh: Likewise.
18164         * intl/tst-gettext2.sh: Likewise.
18165         * intl/tst-gettext4.sh: Likewise.
18166         * intl/tst-gettext6.sh: Likewise.
18167         * intl/tst-translit.sh: Likewise.
18168         * io/ftwtest-sh: Likewise.
18169         * libio/test-freopen.sh: Likewise.
18170         * malloc/tst-mtrace.sh: Likewise.
18171         * posix/globtest.sh: Likewise.
18172         * posix/tst-getconf.sh: Likewise.
18173         * posix/wordexp-tst.sh: Likewise.
18174         * stdio-common/tst-printf.sh: Likewise.
18175         * stdio-common/tst-unbputc.sh: Likewise.
18176         * stdlib/tst-fmtmsg.sh: Likewise.
18177         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
18178         * catgets/Makefile: Do not specify -e option when running
18179         testsuite shell scripts.
18180         * elf/Makefile: Likewise.
18181         * grp/Makefile: Likewise.
18182         * iconvdata/Makefile: Likewise.
18183         * intl/Makefile: Likewise.
18184         * io/Makefile: Likewise.
18185         * libio/Makefile: Likewise.
18186         * malloc/Makefile: Likewise.
18187         * posix/Makefile: Likewise.
18188         * stdio-common/Makefile: Likewise.
18189         * stdlib/Makefile: Likewise.
18190         * sysdeps/x86_64/Makefile: Likewise.
18191
18192         * io/ftwtest-sh: Add copyright header.
18193         * posix/globtest.sh: Likewise.
18194         * posix/tst-getconf.sh: Likewise.
18195         * posix/wordexp-tst.sh: Likewise.
18196         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
18197
18198 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
18199
18200         [BZ #13679]
18201         * Makeconfig (+link): Defined as $(+link-static) if
18202         $(build-shared) isn't yes.
18203         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
18204         isn't yes.
18205         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
18206
18207         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
18208
18209         [BZ #14562]
18210         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
18211         new chunk size with MALLOC_ALIGN_MASK.
18212
18213 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
18214
18215         [BZ #5044]
18216         * stdio-common/printf_fphex.c: Include <stdbool.h> and
18217         <rounding-mode.h>.
18218         (__printf_fphex): Determine rounding using get_rounding_mode and
18219         round_away.
18220         * stdio-common/tst-printf-round.c (struct hex_test): New
18221         structure.
18222         (hex_tests): New variable.
18223         (test_hex_in_one_mode): New function.
18224         (do_test): Also run tests for hex float output.
18225
18226 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
18227
18228         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
18229         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
18230         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
18231         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
18232         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
18233         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
18234         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
18235         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
18236
18237 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
18238
18239         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
18240         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
18241         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
18242         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
18243
18244 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
18245
18246         [BZ #14579]
18247         * elf/rtld.c (dl_main): Limit the check for self loading to normal
18248         mode only.
18249         * elf/tst-rtld-load-self.sh: New test.
18250         * elf/Makefile: Run it.
18251
18252 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
18253
18254         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
18255         (tst-writev-ENV): Remove.
18256         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
18257
18258 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
18259
18260         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
18261
18262 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
18263
18264         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
18265         unconditional.
18266         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
18267         Likewise.
18268         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
18269         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
18270         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
18271         Likewise.
18272
18273 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
18274
18275         [BZ #14587]
18276         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
18277         * config.make.in (have-cpp-asm-debuginfo): Removed.
18278         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
18279         * configure: Regenerated.
18280
18281 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
18282
18283         [BZ #5044]
18284         * stdio-common/printf_fp.c: Include <stdbool.h> and
18285         <rounding-mode.h>.
18286         (___printf_fp): Determine rounding using get_rounding_mode and
18287         round_away.
18288         * stdio-common/tst-printf-round.c: New file.
18289         * stdio-common/Makefile (tests): Add tst-printf-round.
18290         (link-libm): New variable.
18291         ($(objpfx)tst-printf-round): Depend in $(link-libm).
18292
18293 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
18294
18295         [BZ #14576]
18296         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
18297         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
18298         Likewise.
18299         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
18300         Likewise.
18301
18302 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
18303
18304         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
18305         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
18306         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
18307         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
18308
18309 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
18310
18311         [BZ #14518]
18312         * include/rounding-mode.h: New file.
18313         * sysdeps/generic/get-rounding-mode.h: Likewise.
18314         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
18315         * stdlib/strtod_l.c: Include <rounding-mode.h>.
18316         (MAX_VALUE): New macro.
18317         (MIN_VALUE): Likewise.
18318         (overflow_value): New function.
18319         (underflow_value): Likewise.
18320         (round_and_return): Use overflow_value and underflow_value to
18321         determine return values in overflow and underflow cases.  Use
18322         round_away to determine rounding depending on rounding mode.
18323         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
18324         determine return values in overflow and underflow cases.
18325         * stdlib/tst-strtod-round.c: Include <fenv.h>.
18326         (struct test_results): New structure.
18327         (struct test): Use struct test_results to store expected results
18328         for all rounding modes.
18329         (TEST): Include expected results for all rounding modes.
18330         (test_in_one_mode): New function.
18331         (do_test): Use test_in_one_mode to compute and check results.
18332         Check results for all rounding modes.
18333         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
18334         $(link-libm).
18335
18336 2012-12-09  Allan McRae  <allan@archlinux.org>
18337
18338         * sysdeps/i386/fpu/libm-test-ulps: Update
18339
18340 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
18341
18342         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
18343         (_G_int32_t): Likewise.
18344         (_G_uint16_t): Likewise.
18345         (_G_uint32_t): Likewise.
18346         (_G_HAVE_BOOL): Likewise.
18347         (_G_HAVE_ATEXIT): Likewise.
18348         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
18349         (_G_HAVE_IO_FILE_OPEN): Likewise.
18350         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
18351         (_G_int32_t): Likewise.
18352         (_G_uint16_t): Likewise.
18353         (_G_uint32_t): Likewise.
18354         (_G_HAVE_BOOL): Likewise.
18355         (_G_HAVE_ATEXIT): Likewise.
18356         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
18357         (_G_HAVE_IO_FILE_OPEN): Likewise.
18358         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
18359         (_G_int32_t): Likewise.
18360         (_G_uint16_t): Likewise.
18361         (_G_uint32_t): Likewise.
18362         (_G_HAVE_BOOL): Likewise.
18363         (_G_HAVE_ATEXIT): Likewise.
18364         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
18365         (_G_HAVE_IO_FILE_OPEN): Likewise.
18366
18367 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
18368
18369         * csu/libc-tls.c: Update copyright years.
18370
18371 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
18372
18373         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
18374         [!_G_USING_THUNKS]: Remove conditional code.
18375         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
18376         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
18377
18378         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
18379         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
18380         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
18381         (_G_VTABLE_LABEL_PREFIX): Likewise.
18382         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
18383         * sysdeps/gnu/_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         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
18388         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
18389         (_G_VTABLE_LABEL_PREFIX): Likewise.
18390         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
18391
18392 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
18393
18394         * libio/Makefile: Include ../Makeconfig before tests.
18395         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
18396         only if $(build-shared) is yes.
18397
18398         * iconv/gconv_db.c: Update copyright years.
18399
18400 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18401
18402         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
18403         unwind info if defined PIC. Fix special cases description.
18404         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
18405
18406         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
18407         DP_HI_MASK entry.
18408         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
18409
18410 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
18411
18412         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
18413
18414         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
18415         is NULL.
18416
18417         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
18418         (LDLIBS-tst-chk4): This.
18419         (LDFLAGS-tst-chk5): Renamed to ...
18420         (LDLIBS-tst-chk5): This.
18421         (LDFLAGS-tst-chk6): Renamed to ...
18422         (LDLIBS-tst-chk6): This.
18423         (LDFLAGS-tst-lfschk4): Renamed to ...
18424         (LDLIBS-tst-lfschk4): This.
18425         (LDFLAGS-tst-lfschk5): Renamed to ...
18426         (LDLIBS-tst-lfschk5): This.
18427         (LDFLAGS-tst-lfschk6): Renamed to ...
18428         (LDLIBS-tst-lfschk6): This.
18429
18430         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
18431         on $(common-objpfx)soversions.mk.
18432
18433 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
18434
18435         [BZ #10014]
18436         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
18437         example host name.
18438
18439 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
18440
18441         * malloc/arena.c (arena_get_retry): New function that gets
18442         another arena for the caller to try its request on.
18443         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
18444         current arena cannot fulfill the request.
18445         (__libc_memalign): Likewise.
18446         (__libc_memalign): Likewise.
18447         (__libc_pvalloc): Likewise.
18448         (__libc_calloc): Likewise.
18449
18450 2012-09-05  John Tobey  <john.tobey@gmail.com>
18451
18452         [BZ #13542]
18453         * manual/arith.texi (Operations on Complex): Fix description
18454         of carg branch cut.
18455
18456 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
18457
18458         [BZ #10014]
18459         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
18460         host name.
18461
18462         [BZ #10038]
18463         * manual/memory.texi (Memory): Make order of menu items match
18464         order of sections.
18465
18466 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
18467
18468         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
18469         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
18470         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
18471
18472 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
18473
18474         * csu/libc-tls.c (static_dtv): Renamed to ...
18475         (_dl_static_dtv): This.  Make it global.
18476         (_dl_initial_dtv): Removed.
18477         (__libc_setup_tls): Updated.
18478         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
18479         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
18480         DL_INITIAL_DTV.
18481
18482 2012-09-06  Petr Machata  <pmachata@redhat.com>
18483
18484         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
18485         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
18486         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
18487         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
18488
18489 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
18490
18491         [BZ #14545]
18492         * csu/libc-tls.c (_dl_initial_dtv): New variable.
18493         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
18494         freeing dtv[-1].
18495
18496 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
18497
18498         [BZ #14544]
18499         * Makeconfig (link-static-before-libc): Replace $(+prector)
18500         with $(+prectorT).
18501         (link-static-after-libc): Replace $(+postctor) with
18502         $(+postctorT).
18503         (link-bounded): Replace $(+prector)/$(+postctor) with
18504         $(+prectorT)/$(+postctorT).
18505         (+prectorT): New macro.
18506         (+postctorT): Likewise.
18507
18508 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
18509
18510         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
18511         (round_str): Handle values above the maximum for IBM long double
18512         as inexact.
18513         * stdlib/tst-strtod-round.c (tests): Regenerated.
18514
18515 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18516
18517         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
18518         assembler flag.
18519         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
18520         zarch_nohighgprs around the zarch optimized routines.
18521         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
18522         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
18523         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
18524         for zarch.
18525
18526 2012-09-05  David S. Miller  <davem@davemloft.net>
18527
18528         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18529
18530         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
18531         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
18532         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
18533         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18534         entries.
18535
18536 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18537
18538         * malloc/arena.c: Fold copyright years.
18539         * malloc/mcheck.c, malloc/memusage.c: Likewise.
18540
18541 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18542
18543         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
18544
18545 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18546
18547         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
18548
18549 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18550
18551         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
18552         change internal state upon failure.
18553
18554 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18555
18556         * malloc/mcheck.c (mcheck_check_all): Fix typo.
18557         * malloc/memusage.c (mmap): Likewise.
18558         (mmap64, mremap): Likewise.  Adjust name in comment.
18559
18560 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
18561
18562         * libio/fileops.c: Fix typos in comments.
18563         * libio/oldfileops.c: Likewise.
18564         * libio/wfileops.c: Likewise.
18565
18566 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
18567
18568         [BZ #1349]
18569         * malloc/Makefile (tests): Add tst-malloc-usable test case.
18570         (tst-malloc-usable-ENV): Set environment for test case.
18571         * malloc/hooks.c (malloc_check_get_size): New function to get
18572         requested size.
18573         * malloc/malloc.c (musable): Use malloc_check_get_size.
18574         * malloc/tst-malloc-usable.c: New test case.
18575
18576 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18577
18578         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
18579
18580 2012-09-05  Allan McRae  <allan@archlinux.org>
18581
18582         [BZ #13966]
18583         * configure.in (CXX_SYSINCLUDES): Use compiler output to
18584         determine header location.
18585         * configure: Regenerated.
18586
18587 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18588
18589         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
18590         float format.
18591         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
18592         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
18593         format.
18594         (test): Regenerate.
18595
18596 2012-09-04  David S. Miller  <davem@davemloft.net>
18597
18598         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
18599         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
18600         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
18601
18602 2012-09-04  Florian Weimer  <fweimer@redhat.com>
18603
18604         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
18605         failures.
18606
18607         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
18608
18609 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
18610
18611         [BZ #9914]
18612         * libio/iogetdelim.c: Include <limits.h>.
18613         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
18614         + len + 1 would overflow.
18615
18616 2012-09-03  Andreas Jaeger  <aj@suse.de>
18617
18618         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18619         * sysdeps/i386/fpu/libm-test-ulps: Update.
18620
18621 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18622
18623         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
18624         Add s_sinf-sse2, s_conf-sse2.
18625
18626         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
18627         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
18628         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
18629         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
18630
18631         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
18632         for using routine as __sinf_ia32.
18633         Use macro for function declaration and weak_alias.
18634         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
18635         for using routine as __cosf_ia32.
18636         Use macro for function declaration and weak_alias.
18637
18638         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
18639         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
18640
18641         * sysdeps/x86_64/fpu/s_sinf.S: New file.
18642         * sysdeps/x86_64/fpu/s_cosf.S: New file.
18643         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18644
18645         * math/libm-test.inc (cos_test): Add more test cases.
18646         (sin_test): Likewise.
18647         (sincos_test): Likewise.
18648
18649 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18650
18651         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
18652         (IFUNC_RESOLVE): Make pointers to the specialized implementations
18653         hidden.
18654         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
18655
18656 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
18657
18658         [BZ #14538]
18659         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
18660         first element of the GOT.
18661         (elf_machine_load_address): Return the difference between
18662         the runtime address of _DYNAMIC and elf_machine_dynamic ().
18663
18664 2012-09-01  Allan McRae  <allan@archlinux.org>
18665
18666         [BZ #13412]
18667         * configure.in (AWK): Require gawk version 3.0 or later.
18668         * configure: Regenerated.
18669
18670 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
18671
18672         * sysdeps/unix/sysv/linux/kernel-features.h
18673         (__ASSUME_POSIX_CPU_TIMERS): Remove.
18674         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
18675         [__NR_clock_getres]: Make code unconditional.
18676         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
18677         (clock_getcpuclockid): Remove code left unreachable by removal of
18678         conditionals.
18679         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
18680         code unconditional.
18681         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
18682         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
18683         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
18684         Make code unconditional.
18685         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
18686         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
18687         * sysdeps/unix/sysv/linux/clock_settime.c
18688         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
18689         conditional code.
18690         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
18691         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
18692
18693 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
18694
18695         [BZ #14476]
18696         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
18697         scripts/test-installation.pl.
18698
18699         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
18700         and $ld_so_version if it is set.
18701
18702 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
18703
18704         [BZ #14516]
18705         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
18706         failure if reading from procfs failed.
18707         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
18708
18709 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
18710
18711         * sysdeps/unix/sysv/linux/kernel-features.h
18712         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
18713         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
18714         Remove conditional code.
18715         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18716         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
18717         Remove conditional code.
18718         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18719         * sysdeps/unix/sysv/linux/i386/fxstat.c
18720         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
18721         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18722         * sysdeps/unix/sysv/linux/i386/fxstatat.c
18723         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
18724         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18725         * sysdeps/unix/sysv/linux/i386/lxstat.c
18726         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
18727         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18728         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
18729         Remove conditional code.
18730         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18731         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
18732         Remove conditional code.
18733         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18734         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
18735         <kernel-features.h>.
18736         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
18737         Remove.
18738         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
18739         Remove conditional code.
18740         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18741         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
18742         Remove conditional.
18743
18744 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
18745
18746         [BZ #5400]
18747         * NEWS: Add fixed bug number.
18748
18749 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
18750
18751         [BZ #14519]
18752         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
18753         underflowing exponent in case of negative sign.
18754         * stdlib/tst-strtod-round-data: Add more tests.
18755         * stdlib/tst-strtod-round.c (tests): Regenerated.
18756
18757         [BZ #3479]
18758         * stdlib/strtod_l.c (NDIG): Remove.
18759         (HEXNDIG): Likewise.
18760         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
18761         smallest representable value.
18762         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
18763         lie within an exact representation of 1/2 ulp of the result.
18764         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
18765         unconditionally.
18766         (TENS_P9_IDX): Define unconditionally.
18767         (TENS_P9_SIZE): Likewise.
18768         (TENS_P10_IDX): Likewise.
18769         (TENS_P10_SIZE): Likewise.
18770         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
18771         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
18772         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
18773         entries for 10^2^13 and 10^2^14.
18774         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
18775         (TENS_P13_IDX): Define.
18776         (TENS_P13_SIZE): Likewise.
18777         (TENS_P14_IDX): Likewise.
18778         (TENS_P14_SIZE): Likewise.
18779         (_fpioconst_pow10): Change array size to
18780         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
18781         unconditional.
18782         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
18783         1024]: Add entries for 10^2^13 and 10^2^14.
18784         [LAST_POW10 > _LAST_POW10]: Remove #error.
18785         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
18786         (_fpioconst_pow10): Change array size to
18787         FPIOCONST_POW10_ARRAY_SIZE.
18788         * stdlib/gen-fpioconst.c: New file.
18789         * stdlib/gen-tst-strtod-round.c: Likewise.
18790         * stdlib/tst-strtod-round-data: Likewise.
18791         * stdlib/tst-strtod-round.c: Likewise.
18792         * stdlib/Makefile (tests): Add tst-strtod-round.
18793
18794         [BZ #14459]
18795         * stdlib/strtod_l.c: Include <stdint.h>.
18796         (NDEBUG): Do not define.
18797         (round_and_return): Change EXPONENT parameter to type intmax_t.
18798         Rearrange calculations to avoid internal overflow possibilities.
18799         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
18800         Rearrange calculations to avoid internal overflow possibilities.
18801         Assert that number fits inside MPNSIZE limbs.
18802         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
18803         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
18804         calculations and add assertions to avoid internal overflow
18805         possibilities.  Add casts to avoid signed/unsigned operations.
18806         * stdlib/tst-strtod-overflow.c: New file.
18807         * stdlib/Makefile (tests): Add tst-strtod-overflow.
18808
18809 2012-08-25  Marek Polacek  <polacek@redhat.com>
18810
18811         * time/time.h: Fix some typos in comments.
18812
18813 2012-08-23  Roland McGrath  <roland@hack.frob.com>
18814
18815         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
18816         * posix/tst-rfc3484-2.c: Likewise.
18817         * posix/tst-rfc3484-3.c: Likewise.
18818
18819 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
18820
18821         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
18822         (EF_ARM_ABI_FLOAT_HARD): Likewise.
18823
18824 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
18825
18826         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
18827         #include of fxstatat64.c.
18828
18829 2012-08-22  Roland McGrath  <roland@hack.frob.com>
18830
18831         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
18832         * shadow/getspent_r.c: Likewise.
18833         * shadow/getspnam.c: Likewise.
18834         * shadow/getspnam_r.c: Likewise.
18835         * gshadow/getsgent.c: Likewise.
18836         * gshadow/getsgent_r.c: Likewise.
18837         * gshadow/getsgnam.c: Likewise.
18838         * gshadow/getsgnam_r.c: Likewise.
18839         * inet/getnetbyad.c: Likewise.
18840         * inet/getnetbyad_r.c: Likewise.
18841         * inet/getnetbynm.c: Likewise.
18842         * inet/getnetbynm_r.c: Likewise.
18843         * inet/getnetent.c: Likewise.
18844         * inet/getnetent_r.c: Likewise.
18845         * inet/getproto.c: Likewise.
18846         * inet/getproto_r.c: Likewise.
18847         * inet/getprtent.c: Likewise.
18848         * inet/getprtent_r.c: Likewise.
18849         * inet/getprtname.c: Likewise.
18850         * inet/getprtname_r.c: Likewise.
18851         * inet/getrpcbyname.c: Likewise.
18852         * inet/getrpcbyname_r.c: Likewise.
18853         * inet/getrpcbynumber.c: Likewise.
18854         * inet/getrpcbynumber_r.c: Likewise.
18855         * inet/getrpcent.c: Likewise.
18856         * inet/getrpcent_r.c: Likewise.
18857         * inet/getaliasent.c: Likewise.
18858         * inet/getaliasent_r.c: Likewise.
18859         * inet/getaliasname.c: Likewise.
18860         * inet/getaliasname_r.c: Likewise.
18861         * nscd/getgrgid_r.c: Likewise.
18862         * nscd/getgrnam_r.c: Likewise.
18863         * nscd/gethstbyad_r.c: Likewise.
18864         * nscd/gethstbynm3_r.c: Likewise.
18865         * nscd/getpwnam_r.c: Likewise.
18866         * nscd/getpwuid_r.c: Likewise.
18867         * nscd/getsrvbynm_r.c: Likewise.
18868         * nscd/getsrvbypt_r.c: Likewise.
18869         * nscd/gai.c: Likewise.
18870
18871         * configure.in (build_nscd): New substituted variable, set
18872         by --disable-build-nscd and defaults to $use_nscd.
18873         * configure: Regenerated.
18874         * config.make.in (build-nscd): New substituted variable.
18875         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
18876         Change conditional to require [$(build-nscd) = yes] as well.
18877         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
18878
18879         [BZ# 13696]
18880         * configure.in (use_nscd): New substituted variable, set by
18881         --disable-nscd.  If enabled, define USE_NSCD.
18882         * configure: Regenerated.
18883         * config.h.in: Add USE_NSCD.
18884         * config.make.in (use-nscd): New substituted variable.
18885         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18886         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
18887         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
18888         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
18889         (CFLAGS-getgrnam_r.c): Likewise.
18890         (CFLAGS-initgroups.c): Likewise.
18891         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
18892         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
18893         Variables removed.
18894         * inet/getnetgrent_r.c
18895         (nscd_setnetgrent): New function, broken out of ...
18896         (setnetgrent): ... here.  Call it.
18897         (innetgr): Conditionalize nscd bits on [USE_NSCD].
18898         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
18899         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
18900         * nscd/Makefile (routines, aux): Move definitions after include of
18901         Makeconfig.  Conditionalize on [$(use-nscd) != no].
18902         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
18903         Conditionalize on [USE_NSCD].
18904         (is_nscd, nscd_init_cb): Likewise.
18905         (nss_load_library): Conditionalize init callback on [USE_NSCD].
18906         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
18907         * nss/nss_db/db-init.c: Likewise.
18908         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
18909         [USE_NSCD].
18910         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
18911         (make_request): Use it.
18912         (cache_valid_p): New function.
18913         (__check_pf): Use it.
18914         * NEWS: Add item for --disable-nscd.
18915
18916 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
18917
18918         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
18919         to support sed >= 4.2.1-20-ga9bf076.
18920         * configure: Regenerated.
18921
18922 2012-08-22  Roland McGrath  <roland@hack.frob.com>
18923
18924         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
18925         Conditionalize whole body on [IREL].
18926
18927 2012-08-22  Jeff Law <law@redhat.com>
18928
18929         [BZ #14505]
18930         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
18931         if the family is PF_UNSPEC.
18932
18933 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
18934
18935         * Makerules (lib-version): Rename from V.
18936         (install-lib-nosubdir): Change V to lib-version.
18937
18938 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
18939
18940         [BZ #14252]
18941         * powerpc32/power6/wcschr.c: New file.
18942         * powerpc32/power6/wcscpy.c: New file.
18943         * powerpc32/power6/wcsrchr.c: New file.
18944         * powerpc64/power6/wcschr.c: New file.
18945         * powerpc64/power6/wcscpy.c: New file.
18946         * powerpc64/power6/wcsrchr.c: New file.
18947
18948 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
18949
18950         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
18951         (two_way_short_needle): Use it.
18952         * string/strstr.c (AVAILABLE1_USES_J): Define.
18953         * string/strcasestr.c: Likewise.
18954
18955         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
18956         array references.
18957         * string/strcasestr.c (TOLOWER): Make side-effect safe.
18958
18959         [BZ #11607]
18960         * NEWS: Add an entry.
18961         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
18962         define their defaults.
18963         (two_way_short_needle): Detect end-of-string on-the-fly.
18964         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
18965         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
18966         * string/bug-strcasestr1.c: New test.
18967         * string/Makefile: Run it.
18968
18969 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
18970
18971         [BZ #11607]
18972         * string/str-two-way.h (two_way_short_needle): Optimize matching of
18973         the first character.
18974
18975 2012-08-21  Roland McGrath  <roland@hack.frob.com>
18976
18977         * csu/elf-init.c (__libc_csu_irel): Function removed.
18978         * csu/libc-start.c (apply_irel): New function.
18979         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
18980
18981 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
18982
18983         * sysdeps/unix/sysv/linux/kernel-features.h
18984         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
18985         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
18986         <kernel-features.h>.
18987         [__NR_fadvise64_64]: Make code unconditional.
18988         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
18989         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
18990         !__NR_fadvise64_64)]: Likewise.
18991         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
18992         !__NR_fadvise64_64))]: Likewise.
18993         [__NR_fadvise64]: Make code unconditional.
18994         [!__NR_fadvise64]: Remove conditional code.
18995         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
18996         <kernel-features.h>.
18997         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
18998         unconditional.
18999         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19000         conditional code.
19001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
19002         not include <kernel-features.h>.
19003         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19004         unconditional.
19005         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19006         conditional code.
19007         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
19008         include <kernel-features.h>.
19009         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19010         unconditional.
19011         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19012         conditional code.
19013
19014 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
19015
19016         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
19017         slight instruction rearrangements per scrollpipe analysis.
19018         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
19019
19020 2012-08-20  Roland McGrath  <roland@hack.frob.com>
19021
19022         * manual/syslog.texi (syslog; vsyslog, closelog):
19023         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
19024         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
19025
19026         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
19027         DSOCAPS to match condition on defining it.
19028
19029 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
19030
19031         * sysdeps/unix/sysv/linux/kernel-features.h
19032         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
19033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
19034         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19035         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
19037         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19038         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
19040         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19041         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19042
19043         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
19044         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
19045
19046         * sysdeps/unix/sysv/linux/kernel-features.h
19047         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
19048         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
19049         unconditional.
19050         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19051         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
19052         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
19053         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19054         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
19055         Make code unconditional.
19056         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19057         (__mmap64) [!__NR_mmap2]: Likewise.
19058         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
19059         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
19060         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19061         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
19062         [__NR_mmap2]: Make code unconditional.
19063         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19064         (__mmap64) [!__NR_mmap2]: Likewise.
19065
19066 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19067
19068         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
19069
19070 2012-08-18  Andreas Jaeger  <aj@suse.de>
19071
19072         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
19073
19074 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
19075
19076         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
19077         * include/unistd.h (__have_sock_cloexec): Likewise.
19078         (__have_pipe2): Likewise.
19079         (__have_dup3): Likewise.
19080
19081 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
19082
19083         [BZ #9685]
19084         * include/unistd.h (__have_pipe2): Change define into an extern int.
19085         (__have_dup3): Likewise.
19086         * socket/have_sock_cloexec.c: Include fcntl.h.
19087         (__have_pipe2): New variable.
19088         (__have_dup3): Likewise.
19089
19090 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
19091
19092         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
19093
19094 2012-08-17  Marek Polacek  <polacek@redhat.com>
19095
19096         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
19097         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
19098
19099 2012-08-17  Roland McGrath  <roland@hack.frob.com>
19100
19101         * configure.in: Add AC_SUBST for sysheaders.
19102         * configure: Regenerated.
19103         * config.make.in (sysheaders): New substituted variable.
19104
19105         * sysdeps/unix/mkfifo.c: Moved ...
19106         * sysdeps/posix/mkfifo.c: ... here.
19107         * sysdeps/unix/mkfifoat.c: Moved ...
19108         * sysdeps/posix/mkfifoat.c: ... here.
19109
19110         * sysdeps/unix/utime.c: Moved ...
19111         * sysdeps/posix/utime.c: ... here.
19112
19113         * sysdeps/unix/time.c: Moved ...
19114         * sysdeps/posix/time.c: ... here.
19115         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
19116         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
19117
19118         * sysdeps/unix/nice.c: Moved ...
19119         * sysdeps/posix/nice.c: ... here.
19120
19121         * sysdeps/unix/alarm.c: Moved ...
19122         * sysdeps/posix/alarm.c: ... here.
19123
19124         * intl/Makefile ($(codeset_mo)): Depend on the input file.
19125
19126 2012-08-17  Jeff Law <law@redhat.com>
19127
19128         * intl/Makefile (codeset_mo): New variable.
19129         ($(codeset_mo)): New target.
19130         (tst-codeset.out): Depend on that.  Remove explicit rule.
19131         (tst-gettext3.out, tst-gettext5.out): Likewise.
19132         (LOCPATH-ENV, tst-codeset-ENV): New variables.
19133         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
19134         * intl/tst-codeset.sh: Remove.
19135         * intl/tst-gettext3.sh: Likewise.
19136         * intl/tst-gettext5.sh: Likewise.
19137
19138 2012-08-17  Roland McGrath  <roland@hack.frob.com>
19139
19140         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
19141         * sysdeps/unix/syscalls.list: ... here.
19142
19143         * sysdeps/posix/getaddrinfo.c
19144         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
19145         (gaiconf_init, gaiconf_reload): Use them.
19146         [!_STATBUF_ST_NSEC]
19147         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
19148         Define using time_t rather than struct timespec.
19149
19150         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
19151         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
19152         Macros removed.
19153         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
19154         [!NO_THREADS].
19155         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
19156         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
19157         Likewise.
19158
19159         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
19160         __libc_cleanup_push argument.
19161
19162         * bits/param.h: New file.
19163         * misc/sys/param.h: New file.
19164         * include/sys/param.h: New file.
19165         * misc/Makefile (headers): Add bits/param.h.
19166         * sysdeps/generic/sys/param.h: File removed.
19167         * sysdeps/unix/sysv/linux/bits/param.h: New file.
19168         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
19169         * sysdeps/mach/hurd/bits/param.h: New file.
19170         * sysdeps/mach/hurd/sys/param.h: File removed.
19171
19172         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
19173         last change.
19174
19175         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
19176         [_IO_MTSAFE_IO].
19177         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
19178         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
19179         New macros.
19180
19181         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
19182         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
19183         rather than -D_IO_MTSAFE_IO conditionally.
19184         * stdio-common/Makefile (CPPFLAGS): Likewise.
19185         * wcsmbs/Makefile (CPPFLAGS): Likewise.
19186         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
19187         Use $(libio-mtsafe).
19188         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
19189         of -D_IO_MTSAFE_IO.
19190         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
19191         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
19192         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
19193         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
19194         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
19195         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
19196         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
19197         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
19198         (CFLAGS-fread_u_chk.c): Likewise.
19199         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
19200         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
19201         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
19202         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
19203         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
19204         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
19205         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
19206         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
19207         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
19208
19209         * libio/Makefile: Test [$(libc-reentrant) = yes]
19210         instead of [$(filter %REENTRANT, $(defines)) nonempty].
19211
19212         * Makeconfig
19213         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
19214         * sysdeps/pthread/configure: File removed.
19215         * sysdeps/pthread/Makeconfig: New file.
19216         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
19217         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
19218
19219 2012-08-16  Gary Benson  <gbenson@redhat.com>
19220
19221         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
19222         unmapping the first object in a namespace.
19223
19224 2012-08-16  Roland McGrath  <roland@hack.frob.com>
19225
19226         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
19227         (__internal_setnetgrent): ... this.  Add internal_function to
19228         definition.  Add libc_hidden_def.
19229         (setnetgrent): Update caller.
19230         (internal_endnetgrent): Renamed to ...
19231         (__internal_endnetgrent): ... this.  Add internal_function to
19232         definition.  Add libc_hidden_def.
19233         (endnetgrent): Update caller.
19234         (internal_getnetgrent_r): Renamed to ...
19235         (__internal_getnetgrent_r): ... this.  Add internal_function to
19236         definition.  Add libc_hidden_def.
19237         (__getnetgrent_r): Update caller.
19238         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
19239
19240 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
19241
19242         * stdlib/longlong.h: Update from GCC.
19243
19244 2012-08-16  Roland McGrath  <roland@hack.frob.com>
19245
19246         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
19247         on _QL, which is set by umul_ppmm but never used.
19248         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
19249         variables, which are set by GMP macros but never used.
19250         * stdio-common/_itowa.c (_itowa): Likewise.
19251         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
19252         * stdlib/mod_1.c (mpn_mod_1): Likewise.
19253
19254 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
19255
19256         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
19257         struct La_sh_regs is not constant.
19258         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
19259         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
19260         and struct La_sparc64_regs are not constant.
19261
19262 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
19263
19264         * sysdeps/unix/sysv/linux/kernel-features.h
19265         (__ASSUME_POSIX_TIMERS): Remove.
19266         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19267         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19268         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
19269         Make code unconditional.
19270         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19271         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
19272         Make code unconditional.
19273         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19274         * sysdeps/unix/sysv/linux/clock_nanosleep.c
19275         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
19276         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19277         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
19278         Make code unconditional.
19279         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19280         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
19281         (__libc_missing_posix_timers): Remove.
19282
19283 2012-08-15  Roland McGrath  <roland@hack.frob.com>
19284
19285         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
19286         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
19287
19288         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
19289
19290         * elf/dl-sym.c: Include <stdlib.h>.
19291
19292         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
19293         constants, which avoids warnings in 32-bit builds.
19294
19295         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
19296         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
19297
19298         * misc/lseek.c: File moved to ...
19299         * io/lseek.c: ... here.
19300
19301         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
19302
19303         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
19304         shifting LEN more than 31 bits at once.
19305
19306 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19307
19308         [BZ #14195]
19309         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
19310         segmentation fault for a case of two empty input strings.
19311         * string/test-strncasecmp.c (check1): Renamed to...
19312         (bz12205): ...this.
19313         (bz14195): Add new testcase for two empty input strings and N > 0.
19314         (test_main): Call new testcase, adapt for renamed function.
19315
19316 2012-08-15  Andreas Jaeger  <aj@suse.de>
19317
19318         [BZ #14090]
19319         * crypt/md5test2.c: New test, based on test supplied by Serge
19320         Belyshev <belyshev@depni.sinp.msu.ru>.
19321         * crypt/Makefile (xtests): Add md5test-giant..
19322         * crypt/Makefile ($(objpfx)md5test-giant): Add.
19323
19324 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19325
19326         [BZ #14090]
19327         * crypt/md5.c (md5_process_block): Don't assume the buffer
19328         length is less than 2**32.
19329         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
19330         length is less than 2**64.
19331
19332 2012-08-15  Roland McGrath  <roland@hack.frob.com>
19333
19334         * string/str-two-way.h: Include <sys/param.h>.
19335         (MAX): Macro removed.
19336
19337         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
19338         Move #define and #undef of memmove to just before and after
19339         including <string.h>.
19340
19341         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
19342         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
19343         and after including <string.h>.  Move declarations of
19344         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
19345         to before #include "string/memmove.c".
19346
19347         * include/dirent.h: Declare __getdirentries.
19348
19349         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
19350         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
19351
19352 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
19353
19354         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
19355         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
19356         * sysdeps/i386/configure: Regenerated.
19357         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
19358         STABS_CURRENT_FILE, and STABS_FUN.
19359         (END): Remove call to STABS_FUN_END.
19360         (STABS_CURRENT_FILE1): Delete.
19361         (STABS_CURRENT_FILE): Likewise.
19362         (STABS_FUN): Likewise.
19363         (STABS_FUN_END): Likewise.
19364         (STABS_FUN2): Likewise.
19365         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
19366         * sysdeps/x86_64/configure: Regenerated.
19367
19368 2012-08-14  Roland McGrath  <roland@hack.frob.com>
19369
19370         * elf/dl-open.c: Include <atomic.h>.
19371         * elf/dl-lookup.c: Likewise.
19372
19373 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
19374
19375         * sysdeps/unix/sysv/linux/kernel-features.h
19376         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
19377         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
19378         unconditionally.
19379         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
19380         unconditionally.
19381         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
19382         condition on __ASSUME_CLONE_THREAD_FLAGS.
19383
19384 2012-08-14  Andreas Jaeger  <aj@suse.de>
19385
19386         * sysdeps/i386/fpu/libm-test-ulps: Update.
19387
19388 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
19389
19390         * include/atomic.h (atomic_exchange_and_add): Split into ...
19391         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
19392         New atomic macros.
19393
19394 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
19395
19396         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19397
19398 2012-08-13  Jeff Law <law@redhat.com>
19399
19400         * manual/stdio.texi (snprintf): Clarify handling of the trailing
19401         null byte in the output string.
19402
19403 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
19404
19405         * sysdeps/unix/sysv/linux/kernel-features.h
19406         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
19407         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
19408         (__ASSUME_ARG_MAX_STACK_BASED): Define.
19409         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
19410         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
19411         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
19412         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
19413
19414 2012-08-09  Jeff Law <law@redhat.com>
19415
19416         [BZ #13939]
19417         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
19418         When avoid_arena is set, don't retry in the that arena.  Pick the
19419         next one, whatever it might be.
19420         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
19421         (arena_lock): Pass in new parameter to arena_get2.
19422         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
19423         arena_get2.
19424         (__libc_malloc): Unify retrying after main arena failure with
19425         __libc_memalign version.
19426         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
19427
19428 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
19429
19430         [BZ #14166]
19431         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
19432         to __redirect_strstr.
19433         (__strstr_sse42): Use typeof __redirect_strstr.
19434         (__strstr_ia32): Likewise.
19435         (__libc_strstr): New prototype.
19436         (strstr): Renamed to ...
19437         (__libc_strstr): This.
19438         (strstr): New strong alias of __libc_strstr.
19439         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
19440         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
19441         __redirect_time.
19442         Include <time.h>.
19443         (__libc_time): New prototype.
19444         (time_ifunc): Replace time with __libc_time.
19445         (time): New strong alias and hidden definition of __libc_time.
19446         (__GI_time): Remove strong alias.
19447         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
19448         Include <stddef.h>.
19449         (memmove): Redefined to __redirect_memmove.
19450         (__memmove_sse2): Use typeof __redirect_memmove.
19451         (__memmove_ssse3): Likewise.
19452         (__memmove_ssse3_back): Likewise.
19453         (__libc_memmove): New prototype.
19454         (memmove): Renamed to ...
19455         (__libc_memmove): This.
19456         (memmove): New strong alias of __libc_memmove.
19457
19458 2012-08-08  Mark Salter  <msalter@redhat.com>
19459
19460         * elf/elf.h
19461         (R_MN10300_TLS_GD): Define.
19462         (R_MN10300_TLS_LD): Likewise.
19463         (R_MN10300_TLS_LDO): Likewise.
19464         (R_MN10300_TLS_GOTIE): Likewise.
19465         (R_MN10300_TLS_IE): Likewise.
19466         (R_MN10300_TLS_LE): Likewise.
19467         (R_MN10300_TLS_DTPMOD): Likewise.
19468         (R_MN10300_TLS_DTPOFF): Likewise.
19469         (R_MN10300_TLS_TPOFF): Likewise.
19470         (R_MN10300_SYM_DIFF): Likewise.
19471         (R_MN10300_ALIGN): Likewise.
19472         (R_MN10300_NUM): Update.
19473
19474 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
19475
19476         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
19477         Remove.
19478
19479 2012-08-08  Roland McGrath  <roland@hack.frob.com>
19480
19481         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
19482
19483         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
19484         sysdeps/unix -> sysdeps/posix move.
19485         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
19486
19487 2012-08-07      Allan McRae     <allan@archlinux.org>
19488
19489         [BZ #14303]
19490         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
19491         (SUNOS_CPP): Likewise.
19492         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
19493         not found.
19494         (open_input): Call CPP using execvp.
19495
19496 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
19497
19498         * sysdeps/unix/sysv/linux/kernel-features.h
19499         (__ASSUME_PROT_GROWSUPDOWN): Remove.
19500         (__ASSUME_NO_CLONE_DETACHED): Likewise.
19501         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
19502         (__ASSUME_WAITID_SYSCALL): Likewise.
19503         * sysdeps/unix/sysv/linux/dl-execstack.c
19504         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
19505         code unconditional.
19506         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
19507         conditional code.
19508         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
19509         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
19510         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
19511         code.
19512         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
19513         unconditional.
19514         [__ASSUME_WAITID_SYSCALL]: Likewise.
19515         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
19516
19517 2012-08-07  Roland McGrath  <roland@hack.frob.com>
19518
19519         * sysdeps/unix/closedir.c: Renamed to ...
19520         * sysdeps/posix/closedir.c: ... here.
19521         * sysdeps/unix/dirfd.c: Renamed to ...
19522         * sysdeps/posix/dirfd.c: ... here.
19523         * sysdeps/unix/dirstream.h: Renamed to ...
19524         * sysdeps/posix/dirstream.h: ... here.
19525         * sysdeps/unix/fdopendir.c: Renamed to ...
19526         * sysdeps/posix/fdopendir.c: ... here.
19527         * sysdeps/unix/opendir.c: Renamed to ...
19528         * sysdeps/posix/opendir.c: ... here.
19529         * sysdeps/unix/readdir.c: Renamed to ...
19530         * sysdeps/posix/readdir.c: ... here.
19531         * sysdeps/unix/readdir_r.c: Renamed to ...
19532         * sysdeps/posix/readdir_r.c: ... here.
19533         * sysdeps/unix/rewinddir.c: Renamed to ...
19534         * sysdeps/posix/rewinddir.c: ... here.
19535         * sysdeps/unix/seekdir.c: Renamed to ...
19536         * sysdeps/posix/seekdir.c: ... here.
19537         * sysdeps/unix/telldir.c: Renamed to ...
19538         * sysdeps/posix/telldir.c: ... here.
19539         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
19540         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
19541         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
19542         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
19543
19544         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
19545         * bits/fcntl.h: ... here.
19546
19547         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
19548         not 0.
19549         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
19550         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
19551         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
19552         (struct flock): Move l_start, l_len to the beginning.
19553         Use __pid_t for l_pid.
19554         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
19555         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
19556         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
19557         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
19558         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
19559         [__USE_LARGEFILE64] (struct flock64): New type.
19560         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
19561
19562         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
19563         * bits/dirent.h: ... here.
19564
19565         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
19566         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
19567
19568 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
19569
19570         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
19571         Change from 2.6.0 to 2.6.16.
19572         * sysdeps/unix/sysv/linux/configure: Regenerated.
19573         * sysdeps/unix/sysv/linux/kernel-features.h
19574         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
19575         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
19576         version.
19577         (__ASSUME_UTIMES): Likewise.
19578         (__ASSUME_CLONE_STOPPED): Remove.
19579         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
19580         architectures, not kernel version.
19581         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
19582         (__ASSUME_NO_CLONE_DETACHED): Likewise.
19583         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
19584         (__ASSUME_WAITID_SYSCALL): Likewise.
19585         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
19586         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
19587         * README: State 2.6.16 as minimum Linux kernel version.  Do not
19588         refer to older versions.
19589
19590 2012-08-06  Roland McGrath  <roland@hack.frob.com>
19591
19592         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
19593         Define alphasort64 as an alias.
19594         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
19595         Define versionsort64 as an alias.
19596         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
19597         Define scandir64 as an alias.
19598         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
19599         Define scandirat64 as an alias.
19600         * dirent/alphasort64.c (alphasort64):
19601         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
19602         * dirent/versionsort64.c: Likewise.
19603         * dirent/scandir64.c: Likewise.
19604         * dirent/scandirat64.c: Likewise.
19605         * sysdeps/wordsize-64/alphasort.c: File removed.
19606         * sysdeps/wordsize-64/alphasort64.c: File removed.
19607         * sysdeps/wordsize-64/scandir.c: File removed.
19608         * sysdeps/wordsize-64/scandir64.c: File removed.
19609         * sysdeps/wordsize-64/scandirat.c: File removed.
19610         * sysdeps/wordsize-64/scandirat64.c: File removed.
19611         * sysdeps/wordsize-64/versionsort.c: File removed.
19612         * sysdeps/wordsize-64/versionsort64.c: File removed.
19613         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
19614         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
19615         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
19616         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
19617         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
19618         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
19619         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
19620         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
19621
19622         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
19623         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
19624         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
19625         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19626         [defined __arch64__ || defined __sparcv9]
19627         (__INO_T_MATCHES_INO64_T): New macro.
19628         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
19629         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
19630         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
19631         * sysdeps/unix/sysv/linux/bits/dirent.h
19632         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
19633         (_DIRENT_MATCHES_DIRENT64): New macro.
19634
19635         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
19636         Define lockf64 as an alias.
19637         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
19638         Define fseeko64 as an alias.
19639         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
19640         Define ftello64 as an alias.
19641         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
19642         Define _IO_fgetpos64 and fgetpos64 as aliases.
19643         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
19644         Define _IO_fsetpos64 and fsetpos64 as aliases.
19645         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
19646         Conditionalize body on this.
19647         * libio/fseeko64.c: Likewise.
19648         * libio/ftello64.c: Likewise.
19649         * libio/iofgetpos64.c: Likewise.
19650         * libio/iofsetpos64.c: Likewise.
19651         * sysdeps/wordsize-64/lockf.c: File removed.
19652         * sysdeps/wordsize-64/lockf64.c: File removed.
19653         * sysdeps/wordsize-64/fseeko.c: File removed.
19654         * sysdeps/wordsize-64/fseeko64.c: File removed.
19655         * sysdeps/wordsize-64/ftello.c: File removed.
19656         * sysdeps/wordsize-64/ftello64.c: File removed.
19657         * sysdeps/wordsize-64/iofgetpos.c: File removed.
19658         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
19659         * sysdeps/wordsize-64/iofsetpos.c: File removed.
19660         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
19661         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
19662         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
19663         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
19664         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
19665         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
19666         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
19667         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
19668         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
19669         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
19670         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
19671
19672         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
19673         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
19674         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
19675         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19676         [defined __arch64__ || defined __sparcv9]
19677         (__OFF_T_MATCHES_OFF64_T): New macro.
19678         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
19679         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
19680         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19681         (__OFF_T_MATCHES_OFF64_T): New macro.
19682
19683 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
19684
19685         * stdlib/secure-getenv.c (__secure_getenv): Replace
19686         GLIBC_2_16 with GLIBC_2_17.
19687
19688 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
19689
19690         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
19691         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
19692
19693 2012-08-03  David S. Miller  <davem@davemloft.net>
19694
19695         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19696
19697 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
19698
19699         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
19700         Remove.
19701         (__ASSUME_CORRECT_SI_PID): Likewise.
19702         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
19703         (__ASSUME_TMPFS_NAME): Likewise.
19704         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
19705         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
19706         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
19707         (HAVE_AUX_SECURE): Make definition unconditional.
19708         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
19709         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
19710
19711 2012-08-03  Roland McGrath  <roland@hack.frob.com>
19712
19713         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
19714         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
19715         * sysdeps/mach/hurd/eloop-threshold.h: New file.
19716         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
19717         __eloop_threshold instead of SYMLOOP_MAX.
19718
19719         * sysdeps/generic/eloop-threshold.h: New file.
19720         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
19721         of MAXSYMLINKS.
19722         * elf/chroot_canon.c (chroot_canon): Likewise.
19723
19724 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
19725
19726         [BZ #13717]
19727         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
19728         Change to 2.6.0 everywhere.
19729         * sysdeps/unix/sysv/linux/configure: Regenerated.
19730         * sysdeps/unix/sysv/linux/kernel-features.h
19731         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
19732         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
19733         kernel versions.
19734         (__ASSUME_POSIX_TIMERS): Define unconditionally.
19735         (__ASSUME_FUTEX_REQUEUE): Remove.
19736         (__ASSUME_STATFS64): Define unconditionally.
19737         (__ASSUME_AT_SECURE): Likewise.
19738         (__ASSUME_CORRECT_SI_PID): Likewise.
19739         (__ASSUME_TGKILL): Define without depending on kernel version for
19740         i386.
19741         (__ASSUME_UTIMES): Likewise.
19742         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
19743         kernel version.
19744         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
19745         (__ASSUME_TMPFS_NAME): Likewise.
19746         * README: Update reference to Linux kernel versions.
19747
19748 2012-08-02  Marek Polacek  <polacek@redhat.com>
19749
19750         [BZ# 14150]
19751         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
19752         libc_cv_asm_type_prefix with %.
19753         * configure: Regenerated.
19754         * include/libc-symbols.h: Remove comment about
19755         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
19756         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
19757         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
19758         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
19759         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
19760         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
19761         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
19762         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
19763         * elf/tst-unique2mod1.c: Likewise.
19764         * elf/tst-unique1mod2.c: Likewise.
19765         * elf/tst-unique1mod1.c: Likewise.
19766         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
19767         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
19768         Replace ASM_TYPE_DIRECTIVE with .type.
19769         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19770         * sysdeps/i386/sysdep.h: Likewise.
19771         * sysdeps/x86_64/sysdep.h: Likewise.
19772         * sysdeps/sh/sysdep.h: Likewise.
19773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19774         Do not define ASM_TYPE_DIRECTIVE.
19775         * sysdeps/powerpc/sysdep.h: Likewise.
19776         * sysdeps/powerpc/powerpc32/sysdep.h:
19777         Replace ASM_TYPE_DIRECTIVE with .type.
19778         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
19779         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
19780         * sysdeps/i386/fpu/e_powf.S: Likewise.
19781         * sysdeps/i386/fpu/e_expl.S: Likewise.
19782         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
19783         * sysdeps/i386/fpu/e_acosh.S: Likewise.
19784         * sysdeps/i386/fpu/e_pow.S: Likewise.
19785         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
19786         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
19787         * sysdeps/i386/fpu/s_expm1.S: Likewise.
19788         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
19789         * sysdeps/i386/fpu/e_log2.S: Likewise.
19790         * sysdeps/i386/fpu/e_log2l.S: Likewise.
19791         * sysdeps/i386/fpu/e_scalb.S: Likewise.
19792         * sysdeps/i386/fpu/e_powl.S: Likewise.
19793         * sysdeps/i386/fpu/e_log10f.S: Likewise.
19794         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
19795         * sysdeps/i386/fpu/e_logl.S: Likewise.
19796         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
19797         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
19798         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
19799         * sysdeps/i386/fpu/e_log2f.S: Likewise.
19800         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
19801         * sysdeps/i386/fpu/e_log.S: Likewise.
19802         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
19803         * sysdeps/i386/fpu/e_logf.S: Likewise.
19804         * sysdeps/i386/fpu/e_log10l.S: Likewise.
19805         * sysdeps/i386/fpu/e_atanh.S: Likewise.
19806         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
19807         * sysdeps/i386/fpu/e_log10.S: Likewise.
19808         * sysdeps/i386/fpu/s_frexp.S: Likewise.
19809         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
19810         * sysdeps/i386/fpu/s_asinh.S: Likewise.
19811         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
19812         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
19813         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
19814         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
19815         * sysdeps/i386/i686/strtok.S: Likewise.
19816         * sysdeps/i386/i386-mcount.S: Likewise.
19817         * sysdeps/i386/strtok.S: Likewise.
19818         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
19819         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
19820         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
19821         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
19822         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
19823         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
19824         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
19825         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
19826         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
19827         * sysdeps/x86_64/_mcount.S: Likewise.
19828         * sysdeps/x86_64/strtok.S: Likewise.
19829         * sysdeps/sh/_mcount.S: Likewise.
19830
19831 2012-08-01  Roland McGrath  <roland@hack.frob.com>
19832
19833         * libio/iofopen.c: Include <fcntl.h>.
19834         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
19835         (_IO_fopen64, fopen64): Define as aliases.
19836         * libio/iofopen64.c: Include <fcntl.h>.
19837         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
19838         Conditionalize body on this.
19839         * sysdeps/wordsize-64/iofopen.c: File removed.
19840         * sysdeps/wordsize-64/iofopen64.c: File removed.
19841
19842 2012-08-01  Marek Polacek  <polacek@redhat.com>
19843
19844         * libc/Makeconfig: Use elf in place of binfmt-subdir.
19845         Use dlfcn directly instead of a variable.
19846         (binfmt-subdir): Do not define.
19847         (dlfcn): Likewise.
19848
19849 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
19850
19851         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
19852         Remove all definitions.
19853         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
19854         <kernel-features.h>.
19855         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
19856         (miss_F_GETOWN_EX): Remove all definitions.
19857         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
19858         macro definition.
19859         [!__ASSUME_FCNTL64]: Remove conditional code.
19860         [__ASSUME_FCNTL64]: Make code unconditional.
19861         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
19862         <kernel-features.h>.
19863         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
19864         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
19865         (lockf64) [__NR_fcntl64]: Make code unconditional.
19866         (lockf64) [__ASSUME_FCNTL64]: Likewise.
19867
19868         * sysdeps/unix/sysv/linux/kernel-features.h
19869         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
19870         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
19871         Make code unconditional.
19872         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
19873         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
19874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
19875         [__NR_vfork]: Make code unconditional.
19876         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
19877         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
19878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
19879         [__NR_vfork]: Make code unconditional.
19880         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
19881         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
19882
19883 2012-08-01  Roland McGrath  <roland@hack.frob.com>
19884
19885         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
19886         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
19887
19888         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
19889         Define mkstemp64 as an alias.
19890         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
19891         Define mkstemps64 as an alias.
19892         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
19893         Define mkostemp64 as an alias.
19894         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
19895         Define mkostemps64 as an alias.
19896         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
19897         Conditionalize body on this.
19898         * misc/mkostemp64.c: Likewise.
19899         * misc/mkostemps64.c: Likewise.
19900         * misc/mkstemps64.c: Likewise.
19901         * sysdeps/wordsize-64/mkstemp64.c: File removed.
19902         * sysdeps/wordsize-64/mkostemp64.c: File removed.
19903         * sysdeps/wordsize-64/mkostemp.c: File removed.
19904         * sysdeps/wordsize-64/mkstemp.c: File removed.
19905         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
19906         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
19907         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
19908         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
19909
19910         [BZ #14138]
19911         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
19912         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
19913         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
19914         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
19915
19916         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
19917         compat_symbol macros from <shlib-compat.h> rather than the underlying
19918         default_symbol_version and symbol_version macros, so that DEFAULT
19919         lines in shlib-versions are respected.
19920         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
19921
19922 2012-08-01  Florian Weimer  <fweimer@redhat.com>
19923
19924         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
19925         Declare with warn_unused_result.
19926         (setgid, setregid, setegid, setresgid): Likewise.
19927         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
19928         Likewise.
19929         * WUR-REPORT: Remove set*id functions.
19930
19931 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
19932
19933         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
19934
19935 2012-07-31  Roland McGrath  <roland@hack.frob.com>
19936
19937         [BZ #10191]
19938         * include/sys/socket.h (__libc_accept, __libc_accept4):
19939         Add attribute_hidden.
19940         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
19941
19942         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
19943         use of PTR_MANGLE.
19944         * inet/getnetgrent_r.c (setup): Likewise.
19945
19946         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
19947
19948 2012-07-31  David S. Miller  <davem@davemloft.net>
19949
19950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19951
19952 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
19953
19954         [BZ #13629]
19955         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
19956         value between 1.0 and 2.0 and smaller part has absolute value less
19957         than 1.0.
19958         * math/s_clog10.c (__clog10): Likewise.
19959         * math/s_clog10f.c (__clog10f): Likewise.
19960         * math/s_clog10l.c (__clog10l): Likewise.
19961         * math/s_clogf.c (__clogf): Likewise.
19962         * math/s_clogl.c (__clogl): Likewise.
19963         * math/libm-test.inc (clog_test): Add more tests.
19964         (clog10_test): Likewise.
19965         * sysdeps/i386/fpu/libm-test-ulps: Update.
19966         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19967
19968 2012-07-31  Florian Weimer  <fweimer@redhat.com>
19969
19970         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
19971         Exit with zero in case no suitable GID is found, and write a
19972         message to standard error.
19973
19974 2012-07-30  Roland McGrath  <roland@hack.frob.com>
19975
19976         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
19977         rather than to 1.
19978         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
19979         (MAXPATHLEN): Removed.
19980         (NOGROUP, NODEV): New macros.
19981         (setbit, clrbit, isset, isclr): New macros.
19982         (howmany, roundup, powerof2): New macros.
19983         (DEV_BSIZE): New macro.
19984
19985         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
19986         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
19987
19988         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
19989         definition on [!__NO_LONG_DOUBLE_MATH].
19990
19991         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
19992         PTR_MANGLE and PTR_DEMANGLE.
19993
19994         * socket/accept4.c (accept4): Rename to __libc_accept4.
19995         Define accept4 as a weak alias.
19996
19997         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
19998         on [_DIRENT_HAVE_D_TYPE].
19999         * io/ftw.c (ftw_dir): Likewise.
20000
20001         * io/xmknod.c (__xmknod): Don't check PATH for being null.
20002
20003         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
20004
20005         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
20006         Use the BSD numbers rather than the arbitrary ones we had.
20007         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
20008         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
20009         (SIGXCPU, SIGXFSZ): New macros.
20010         (_NSIG): Now 32.
20011
20012         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
20013         initializer on [_LIBC_REENTRANT].
20014
20015         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
20016         definitions inside [_POSIX_MAPPED_FILES].
20017
20018         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
20019
20020         * dirent/opendir.c: Include <fcntl.h>.
20021
20022         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
20023         (__libc_getspecific): Likewise.
20024         (__libc_key_create): Likewise.
20025
20026         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
20027         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
20028         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
20029         (tmpfile64): Define as alias.
20030         * sysdeps/wordsize-64/tmpfile.c: File removed.
20031         * sysdeps/wordsize-64/tmpfile64.c: File removed.
20032         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
20033         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
20034
20035         * stdio-common/vfscanf.c: Include <stdbool.h>.
20036         * nss/makedb.c: Likewise.
20037         * stdio-common/_i18n_number.h: Likewise.
20038         * argp/argp-help.c: Likewise.
20039         * posix/wordexp.c: Likewise.
20040         * sysdeps/posix/spawni.c: Likewise.
20041         * nss/nss_files/files-initgroups.c: Likewise.
20042         * stdio-common/reg-modifier.c: Include <stdlib.h>.
20043         * nss/nss_files/files-initgroups.c: Likewise.
20044         * nss/nss_db/db-netgrp.c: Likewise.
20045         * nss/nss_db/db-initgroups.c: Likewise.
20046         * io/fchmodat.c: Include <sys/stat.h>.
20047
20048         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
20049         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
20050
20051         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
20052         [HAVE_MMAP].
20053
20054         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
20055         Add multiple inclusion protection.
20056
20057 2012-07-27  David S. Miller  <davem@davemloft.net>
20058
20059         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20060
20061 2012-07-27  Gary Benson  <gbenson@redhat.com>
20062
20063         [BZ #14298]
20064         * elf/rtld.c: Include <stap-probe.h>.
20065         (dl_main): Added static probes "init_start" and "init_complete".
20066         * elf/dl-load.c: Include <stap-probe.h>.
20067         (lose): Take new parameter "nsid".
20068         Added static probe "map_failed".
20069         (_dl_map_object_from_fd): Pass namespace id to lose.
20070         Added static probe "map_start".
20071         (open_verify): Pass namespace id to lose.
20072         * elf/dl-open.c: Include <stap-probe.h>.
20073         (dl_open_worker) Added static probes "map_complete", "reloc_start"
20074         and "reloc_complete".
20075         * elf/dl-close.c: Include <stap-probe.h>.
20076         (_dl_close_worker): Added static probes "unmap_start" and
20077         "unmap_complete".
20078         * elf/rtld-debugger-interface.txt: New file documenting the above.
20079
20080 2012-07-26  Roland McGrath  <roland@hack.frob.com>
20081
20082         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
20083         rather than a string variable.
20084         * sunrpc/rpc_main.c (h_output): Likewise.
20085         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
20086
20087 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
20088
20089         * inet/check_native.c: New file.
20090
20091 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
20092
20093         [BZ #13629]
20094         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
20095         if larger part has absolute value 1.0.
20096         * math/s_clog10.c (__clog10): Likewise.
20097         * math/s_clog10f.c (__clog10f): Likewise.
20098         * math/s_clog10l.c (__clog10l): Likewise.
20099         * math/s_clogf.c (__clogf): Likewise.
20100         * math/s_clogl.c (__clogl): Likewise.
20101         * math/libm-test.inc (clog_test): Add more tests.
20102         (clog10_test): Likewise.
20103         * sysdeps/i386/fpu/libm-test-ulps: Update.
20104         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20105
20106         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
20107         (pltexit): Likewise.
20108         (La_regs): Likewise.
20109         (La_retval): Likewise.
20110         (int_retval): Likewise.
20111         Update #error for removed macros to refer only to definitions in
20112         tst-audit.h.
20113         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
20114         macro.
20115         (pltexit): Likewise.
20116         (La_regs): Likewise.
20117         (La_retval): Likewise.
20118         (int_retval): Likewise.
20119         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
20120         macro.
20121         (pltexit): Likewise.
20122         (La_regs): Likewise.
20123         (La_retval): Likewise.
20124         (int_retval): Likewise.
20125         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
20126         macro.
20127         (pltexit): Likewise.
20128         (La_regs): Likewise.
20129         (La_retval): Likewise.
20130         (int_retval): Likewise.
20131         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
20132         macro.
20133         (pltexit): Likewise.
20134         (La_regs): Likewise.
20135         (La_retval): Likewise.
20136         (int_retval): Likewise.
20137         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
20138         macro.
20139         (pltexit): Likewise.
20140         (La_regs): Likewise.
20141         (La_retval): Likewise.
20142         (int_retval): Likewise.
20143         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
20144         macro.
20145         (pltexit): Likewise.
20146         (La_regs): Likewise.
20147         (La_retval): Likewise.
20148         (int_retval): Likewise.
20149         * sysdeps/generic/tst-audit.h: Update comment to refer only to
20150         macro definitions in tst-audit.h.
20151         * sysdeps/i386/tst-audit.h: New file.
20152         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
20153         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
20154         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
20155         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
20156         * sysdeps/sh/tst-audit.h: Likewise.
20157         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
20158         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
20159         * sysdeps/x86_64/tst-audit.h: Likewise.
20160
20161 2012-07-26  Andreas Jaeger  <aj@suse.de>
20162
20163         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
20164         ptrace.
20165
20166         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
20167         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
20168         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
20169         PTRACE_O_MASK.
20170         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
20171         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
20172         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
20173
20174         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
20175         value.
20176
20177         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
20178         _sigsys.
20179         (si_call_addr, si_syscall, si_arch): Define new macro.
20180         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
20181         _sigsys.
20182         (si_call_addr, si_syscall, si_arch): Define new marcro.
20183         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
20184         _sigsys.
20185         (si_call_addr, si_syscall, si_arch): Define new macro.
20186         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
20187         _sigsys.
20188         (si_call_addr, si_syscall, si_arch): Define new macro.
20189
20190 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
20191
20192         [BZ #13717]
20193         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20194         Change to 2.4.21 where previously 2.4.1.
20195         * sysdeps/unix/sysv/linux/configure: Regenerated.
20196         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
20197         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
20198         Linux kernel version.
20199         (__ASSUME_STD_AUXV): Remove.
20200         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
20201         kernel version.
20202         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
20203         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
20204         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
20205         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
20206         (__ASSUME_NETLINK_SUPPORT): Likewise.
20207         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
20208         (__no_netlink_support): Remove conditional definition.
20209         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
20210         Remove.
20211         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
20212         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
20213         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
20214         (if_nameindex_ioctl): Remove.
20215         (if_nameindex_netlink): Do not handle __no_netlink_support.
20216         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
20217         code.
20218         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
20219         Remove conditional code.
20220         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
20221         code.
20222         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
20223         unconditional.
20224         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
20225         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
20226         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
20227         Remove.
20228         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
20229         [!__ASSUME_STD_AUXV]: Remove conditional code.
20230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
20231         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
20232         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
20233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
20234         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
20235         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
20236         code.
20237         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
20238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
20239         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
20240         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
20241         conditional code.
20242         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
20243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
20244         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
20245         code.
20246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
20247         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
20248         conditional code.
20249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
20250         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
20251         code unconditional.
20252         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20253         conditional code.
20254         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20255         unconditional.
20256         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20257         conditional code.
20258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20259         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20260         unconditional.
20261         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20262         conditional code.
20263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
20264         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
20265         code unconditional.
20266         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20267         conditional code.
20268         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20269         unconditional.
20270         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20271         conditional code.
20272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
20273         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
20274         code unconditional.
20275         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20276         conditional code.
20277         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20278         unconditional.
20279         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20280         conditional code.
20281
20282 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
20283
20284         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
20285         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
20286         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
20287         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
20288         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
20289         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
20290         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
20291         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
20292         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
20293         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
20294         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
20295         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
20296         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
20297         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
20298         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
20299         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
20300         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
20301         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
20302         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
20303         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
20304         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
20305         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
20306         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
20307
20308 2012-07-25  Florian Weimer  <fweimer@redhat.com>
20309
20310         * Versions.def: Add GLIBC_2.17.
20311         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
20312         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
20313         Introduce __libc_secure_getenv.
20314         * stdlib/Versions (2.17): Add secure_getenv
20315         (GLIBC_PRIVATE): Add __libc_secure_getenv.
20316         * stdlib/secure-getenv.c: Rename __secure_getenv to
20317         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
20318         symbol __secure_getenv for GLIBC_2.0.
20319         * stdlib/tst-secure-getenv.c: New.
20320         * stdlib/Makefile (tests): Add testcase.
20321         * manual/startup.texi (Environment Access): Document
20322         secure_getenv.
20323         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
20324         __libc_secure_getenv.
20325         * inet/ruserpass.c (ruserpass): Likewise.
20326         * malloc/mtrace.c (mtrace): Likewise.
20327         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
20328         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
20329         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
20330         * sysdeps/posix/tempname.c: Likewise.  Evaluate
20331         HAVE_SECURE_GETENV.
20332         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
20333         __secure_getenv to __libc_secure_getenv.
20334         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
20335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
20336         Likewise.
20337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
20338         Likewise.
20339         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
20340         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
20341         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
20342         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
20343         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
20344         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
20345         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
20346
20347 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
20348
20349         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
20350         (struct La_i86_retval): Likewise.
20351         (struct La_x86_64_regs): Likewise.
20352         (struct La_x86_64_retval): Likewise.
20353         (struct La_x32_regs): Likewise.
20354         (struct La_x32_retval): Likewise.
20355         (struct La_ppc32_regs): Likewise.
20356         (struct La_ppc32_retval): Likewise.
20357         (struct La_ppc64_regs): Likewise.
20358         (struct La_ppc64_retval): Likewise.
20359         (struct La_sh_regs): Likewise.
20360         (struct La_sh_retval): Likewise.
20361         (struct La_s390_32_regs): Likewise.
20362         (struct La_s390_32_retval): Likewise.
20363         (struct La_s390_64_regs): Likewise.
20364         (struct La_s390_64_retval): Likewise.
20365         (struct La_sparc32_regs): Likewise.
20366         (struct La_sparc32_retval): Likewise.
20367         (struct La_sparc64_regs): Likewise.
20368         (struct La_sparc64_retval): Likewise.
20369         (struct audit_ifaces): Remove architecture-specific pltenter and
20370         pltexit members.
20371         * sysdeps/i386/ldsodefs.h: New file.
20372         * sysdeps/powerpc/ldsodefs.h: Likewise.
20373         * sysdeps/s390/ldsodefs.h: Likewise.
20374         * sysdeps/sh/ldsodefs.h: Likewise.
20375         * sysdeps/sparc/ldsodefs.h: Likewise.
20376         * sysdeps/x86_64/ldsodefs.h: Likewise.
20377
20378 2012-07-25  Marek Polacek  <polacek@redhat.com>
20379
20380         [BZ #6808]
20381         * math/libm-test.inc (yn_test): Add another test.
20382         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
20383         to ERANGE when the result is +-Inf.
20384         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
20385         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
20386         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
20387         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
20388
20389 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
20390
20391         * conform/data/time.h-data (NULL): Use macro-constant.  Require
20392         equal to 0.
20393         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
20394         clock_t.
20395         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
20396
20397 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
20398
20399         * configure.in <sysdeps resolving>: Correct printing
20400         Implies_before.
20401         * configure: Regenerate.
20402
20403 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
20404
20405         * math/w_ilogb.c: Include <limits.h>.
20406         * math/w_ilogbl.c: Likewise.
20407
20408 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
20409
20410         * manual/lang.texi (__va_copy): Document primarily as ISO C99
20411         va_copy.  Document allowing for unavailable va_copy only as
20412         pre-C99 compatibility.
20413         * manual/string.texi (Copying and Concatenation): Use va_copy
20414         instead of __va_copy in concat example.
20415
20416 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
20417
20418         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
20419         (__sendto): Use create_address_port.  Initialize APORT and deallocate
20420         it if not null.
20421
20422         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
20423         with O_NOLINK passed to __file_name_lookup.
20424
20425         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
20426         with O_NOLINK passed to __file_name_lookup.
20427
20428         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
20429         negative N or less than NGIDS.
20430
20431         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
20432         type to string_t.  Set ERANGE as errno and return it if NAME is not big
20433         enough.  Use memcpy instead of strncpy.
20434
20435 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
20436
20437         * elf/Makefile (check-data): Remove.
20438         (localplt.data): New vpath directive.
20439         ($(objpfx)check-localplt.out): Use localplt.data from vpath
20440         instead of $(check-data).
20441         * scripts/data/localplt-generic.data: Move to ...
20442         * sysdeps/generic/localplt.data: ... here.
20443         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
20444         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
20445         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
20446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
20447         ... here.
20448         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
20449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
20450         ... here.
20451         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
20452         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
20453         ... here.
20454         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
20455         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
20456         ... here.
20457         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
20458         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
20459         ... here.
20460         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
20461         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
20462         ... here.
20463
20464 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20465
20466         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
20467         PPC32 and PPC64 files.
20468         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
20469         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
20470
20471 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20472
20473         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
20474         __makecontext_ret to ...
20475         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
20476         ... here and call exit if uc_link is NULL.  New file.
20477         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
20478         __makecontext_ret.S.
20479         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
20480         __makecontext_ret to ...
20481         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
20482         ... here and call exit if uc_link is NULL.  New file.
20483         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
20484         __makecontext_ret.S.
20485
20486 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20487
20488         * elf/elf.h (R_390_IRELATIVE): New definition.
20489         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
20490         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
20491         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
20492         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
20493         (elf_machine_lazy_rel): Likewise.
20494         * sysdeps/s390/dl-irel.h: New file.
20495         * sysdeps/s390/s390-64/memcpy.S: New asm code.
20496         * sysdeps/s390/s390-64/memset.S: New asm code.
20497         * sysdeps/s390/s390-64/memcmp.S: New asm code.
20498         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
20499         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
20500         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
20501         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
20502         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
20503         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
20504         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
20505         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
20506         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
20507         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
20508         * sysdeps/s390/s390-32/memcpy.S: New asm code.
20509         * sysdeps/s390/s390-32/memset.S: New asm code.
20510         * sysdeps/s390/s390-32/memcmp.S: New asm code.
20511
20512 2012-07-17  Marek Polacek  <polacek@redhat.com>
20513
20514         [BZ #14349]
20515         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
20516         * sysdeps/s390/s390-64/configure.in: Likewise.
20517         * sysdeps/sparc/configure.in: Likewise.
20518         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
20519         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
20520         * sysdeps/i386/configure.in: Likewise.
20521         * sysdeps/x86_64/configure.in: Likewise.
20522         * sysdeps/sh/configure.in: Likewise.
20523         * sysdeps/s390/s390-32/configure: Regenerated.
20524         * sysdeps/s390/s390-64/configure: Likewise.
20525         * sysdeps/x86_64/configure: Likewise.
20526         * sysdeps/sh/configure: Likewise.
20527         * sysdeps/powerpc/powerpc64/configure: Likewise.
20528         * sysdeps/powerpc/powerpc32/configure: Likewise.
20529         * sysdeps/sparc/configure: Likwise.
20530         * sysdeps/i386/configure: Likewise.
20531
20532         * elf/dl-open.c: Comment fixes.
20533
20534 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
20535
20536         * Makefile [CXX] (check-data): Remove.
20537         [CXX] (c++-types.data): New vpath directive.
20538         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
20539         vpath.  Do not allow for C++ type data being missing.
20540         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
20541         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
20542         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
20543         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
20544         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
20545         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
20546         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
20547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
20548         ... here.
20549         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
20550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
20551         ... here.
20552         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
20553         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
20554         ... here.
20555         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
20556         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
20557         ... here.
20558         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
20559         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
20560         ... here.
20561         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
20562         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
20563         ... here.
20564         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
20565         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
20566         ... here.
20567         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
20568         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
20569
20570         * elf/tls-macros.h (TLS_LE): Move architecture-specific
20571         definitions to architecture-specific files.
20572         (TLS_IE): Likewise.
20573         (TLS_LD): Likewise.
20574         (TLS_GD): Likewise.
20575         * sysdeps/i386/tls-macros.h: New file.
20576         * sysdeps/powerpc/tls-macros.h: Likewise.
20577         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
20578         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
20579         * sysdeps/sh/tls-macros.h: Likewise.
20580         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
20581         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
20582         * sysdeps/x86_64/tls-macros.h: Likewise.
20583
20584 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
20585
20586         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
20587         zero value for regular exit case.
20588
20589         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
20590         (__start_context): Preserve zero value for regular exit case.
20591
20592 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
20593             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20594
20595         * manual/setjmp.texi (setcontext): Clarify normal process
20596         termination when uc_link is the null pointer.
20597         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
20598         exit call.
20599
20600 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
20601
20602         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
20603         preprocessor.  Test for each exception mask separately.
20604
20605 2012-07-16  Andreas Jaeger  <aj@suse.de>
20606
20607         * po/ru.po: Update from translation team.
20608
20609 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
20610
20611         * conform/data/string.h-data (NULL): Use macro-constant.  Require
20612         equal to 0.
20613         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
20614         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
20615         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
20616         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
20617         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20618
20619 2012-07-13  Andreas Jaeger  <aj@suse.de>
20620
20621         * po/fr.po: Update from translation team.
20622
20623 2012-07-12  Marek Polacek  <polacek@redhat.com>
20624
20625         [BZ #14173]
20626         * math/libm-test.inc (yn_test): Add test for BZ #14173.
20627         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
20628         loop condition.
20629
20630 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
20631
20632         [BZ #13717]
20633         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20634         Change to 2.4.1 where previously 2.4.0.
20635         * sysdeps/unix/sysv/linux/configure: Regenerated.
20636         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
20637         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
20638         version.
20639         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
20640         (__ASSUME_AT_CLKTCK): Remove.
20641         (__ASSUME_AT_PAGESIZE): Likewise.
20642         (__ASSUME_AT_XID): Likewise.
20643         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
20644         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
20645         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
20646         unconditionally.
20647         (HAVE_AUX_PAGESIZE): Likewise.
20648         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
20649         [__ASSUME_AT_CLKTCK]: Make code unconditional.
20650         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
20651
20652 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
20653
20654         [BZ #14307]
20655         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
20656         the temporary buffer used to invoke __gethostbyname2_r,
20657         __gethostbyaddr_r and gethostbyname4_r to make room for struct
20658         host_data / struct gaih_addrtuple.
20659         * resolv/nss_dns/dns-host.c (global scope): Move definition of
20660         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
20661         header file nss/nsswitch.h.
20662         * nss/nsswitch.h (global scope): Add definition of implementation
20663         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
20664         resolv/nss_dns/dns-host.c).
20665
20666 2012-07-11  Andreas Jaeger  <aj@suse.de>
20667
20668         * po/fr.po: Update from translation team.
20669
20670         * po/sv.po: Update from translation team
20671         * po/fr.po: Another update from translation team.
20672
20673 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20674
20675         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
20676         for subnormals or multiply small sinh result by itself.
20677         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
20678         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20679
20680 2012-07-11  David S. Miller  <davem@davemloft.net>
20681
20682         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20683
20684 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
20685
20686         [BZ #14347]
20687         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
20688         (INTERNAL_MARK): Shift it here.
20689
20690 2012-07-10  Marek Polacek  <polacek@redhat.com>
20691
20692         [BZ #14151]
20693         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
20694         libc_cv_asm_global_directive with .globl.
20695         * configure: Regenerated.
20696         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
20697         with .globl.
20698         * sysdeps/i386/configure: Regenerated.
20699         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
20700         with .globl.
20701         * sysdeps/x86_64/configure: Regenerated.
20702         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
20703         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
20704         * elf/tst-unique2mod2.c: Likewise.
20705         * elf/tst-unique2mod1.c: Likewise.
20706         * elf/tst-unique1mod2.c: Likewise.
20707         * elf/tst-unique1mod1.c: Likewise.
20708         * sysdeps/s390/s390-32/sysdep.h: Likewise.
20709         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
20710         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20711         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
20712         * sysdeps/mach/sysdep.h: Likewise.
20713         * sysdeps/i386/sysdep.h: Likewise.
20714         * sysdeps/i386/i386-mcount.S: Likewise.
20715         * sysdeps/x86_64/_mcount.S: Likewise.
20716         * sysdeps/x86_64/sysdep.h: Likewise.
20717         * sysdeps/sh/_mcount.S: Likewise.
20718         * sysdeps/sh/sysdep.h: Likewise.
20719         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
20720         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
20721         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
20722         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
20723         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
20724         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
20725         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
20726         * locale/localeinfo.h: Likewise.
20727         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
20728         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
20729
20730 2012-07-09  Roland McGrath  <roland@hack.frob.com>
20731
20732         [BZ #14336]
20733         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
20734         system".
20735         * manual/message.texi (The Uniforum approach): Likewise.
20736         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
20737         (glibc iconv Implementation): Likewise.
20738
20739 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
20740
20741         [BZ #14337]
20742         * math/s_clog.c (__clog): Avoid scaling a value down where that
20743         could result in underflow.
20744         * math/s_clog10.c (__clog10): Likewise.
20745         * math/s_clog10f.c (__clog10f): Likewise.
20746         * math/s_clog10l.c (__clog10l): Likewise.
20747         * math/s_clogf.c (__clogf): Likewise.
20748         * math/s_clogl.c (__clogl): Likewise.
20749         * math/libm-test.inc (clog_test): Add more tests.
20750         (clog10_test): Likewise.
20751         * sysdeps/i386/fpu/libm-test-ulps: Update.
20752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20753
20754 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
20755
20756         [BZ #14283]
20757         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
20758         by 7 not 8 to examine high bit of fractional part.
20759
20760         [BZ #14042]
20761         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
20762         for call to __mcount_internal.
20763         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
20764         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
20765         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
20766
20767 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
20768
20769         [BZ #14154]
20770         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
20771         approximation for values within 0x1p-13f of an odd multiple of
20772         pi/4.
20773         * math/libm-test.inc (tan_test): Do not allow spurious underflow
20774         exception.  Add more tests.
20775         * sysdeps/i386/fpu/libm-test-ulps: Update.
20776
20777         [BZ #6778]
20778         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
20779         inputs and return -1 for them.  Do not check for +Inf in case not
20780         reachable for +Inf.
20781         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
20782         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
20783         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
20784         and return -1 for them.  Do not check for +Inf in case not
20785         reachable for +Inf.
20786         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
20787         define.
20788         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
20789         and return -1 for them.  Do not check for +Inf in case not
20790         reachable for +Inf.
20791         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
20792         spurious underflow.
20793         * sysdeps/i386/fpu/libm-test-ulps: Update.
20794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20795
20796 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
20797
20798         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
20799
20800 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
20801
20802         [BZ #14157]
20803         [BZ #14331]
20804         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
20805         could result in spurious underflow.  Scale down values above
20806         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
20807         * math/s_csqrtf.c (__csqrtf): Likewise.
20808         * math/s_csqrtl.c (__csqrtl): Likewise.
20809         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
20810         spurious underflow.
20811         * sysdeps/i386/fpu/libm-test-ulps: Update.
20812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20813
20814 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
20815
20816         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
20817         xopen-msg.sed.
20818         * catgets/xopen-msg.awk: New file.
20819         * catgets/xopen-msg.sed: Removed.
20820
20821         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
20822         po2text.sed.
20823         * intl/po2test.awk: New file.
20824         * intl/po2test.sed: Removed.
20825
20826 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
20827
20828         [BZ #14328]
20829         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
20830         or multiply small sinh result by itself.
20831         * math/s_ctanf.c (__ctanf): Likewise.
20832         * math/s_ctanh.c (__ctanh): Likewise.
20833         * math/s_ctanhf.c (__ctanhf): Likewise.
20834         * math/s_ctanhl.c (__ctanhl): Likewise.
20835         * math/s_ctanl.c (__ctanl): Likewise.
20836         * math/libm-test.inc (ctan_test_tonearest): New function.
20837         (ctan_test_towardzero): Likewise.
20838         (ctan_test_downward): Likewise.
20839         (ctan_test_upward): Likewise.
20840         (ctanh_test_tonearest): Likewise.
20841         (ctanh_test_towardzero): Likewise.
20842         (ctanh_test_downward): Likewise.
20843         (ctanh_test_upward): Likewise.
20844         (main): Call these new functions.
20845         * sysdeps/i386/fpu/libm-test-ulps: Update.
20846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20847
20848 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
20849
20850         * .gitignore: Delete /ports entry.
20851
20852 2012-07-03  Andreas Jaeger  <aj@suse.de>
20853
20854         * po/bg.po: Update from translation team.
20855         * po/cs.po: Likewise.
20856         * po/de.po: Likewise.
20857         * po/hr.po: Likewise.
20858         * po/nl.pl: Likewise.
20859         * po/pl.po: Likewise.
20860         * po/vi.po: Likewise.
20861
20862 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
20863
20864         * Makeconfig [!+link] (+link-before-libc): New variable.
20865         [!+link] (+link-after-libc): Likewise.
20866         [!+link] (+link-tests): Likewise.
20867         [!+link] (+link): Define in terms of $(+link-before-libc) and
20868         $(+link-after-libc).
20869         [!+link-static] (+link-static-before-libc): New variable.
20870         [!+link-static] (+link-static-after-libc): Likewise.
20871         [!+link-static] (+link-static-tests): Likewise.
20872         [!+link-static] (+link-static): Define in terms of
20873         $(+link-static-before-libc) and $(+link-static-after-libc).
20874         [build-shared] (link-libc-before-gnulib): New variable.
20875         [build-shared] (link-libc-tests): Likewise.
20876         [build-shared] (link-libc): Define in terms of
20877         $(link-libc-before-gnulib).
20878         [!build-shared] (link-libc-tests): New variable.
20879         (link-libc-static-tests): New variable.
20880         [!gnulib] (gnulib-arch): New variable.
20881         [!gnulib] (gnulib-tests): Likewise.
20882         [!gnulib] (static-gnulib-arch): Likewise.
20883         [!gnulib] (static-gnulib-tests): Likewise.
20884         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
20885         Define with "=" instead of ":=".
20886         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
20887         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
20888         * Rules (binaries-all-notests): New variable.
20889         (binaries-all-tests): Likewise.
20890         (binaries-static-notests): Likewise.
20891         (binaries-static-tests): Likewise.
20892         (binaries-all): Define using $(binaries-all-notests) and
20893         $(binaries-all-tests).
20894         (binaries-static): Define using $(binaries-static-notests) and
20895         $(binaries-static-tests).
20896         (binaries-shared-tests): New variable.
20897         (binaries-shared-notests): Likewise.
20898         (binaries-shared): Remove variable.
20899         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
20900         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
20901         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
20902         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
20903         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
20904         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
20905         * elf/Makefile (sln-modules): New variable.
20906         (extra-objs): Add $(sln-modules:=.o).
20907         (ldconfig-modules): Add static-stubs.
20908         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
20909         * elf/static-stubs.c: New file.
20910
20911         [BZ #14283]
20912         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
20913         by 7 not 8 to examine high bit of fractional part.  Use volatile
20914         variables when splitting into final array of floats if
20915         __FLT_EVAL_METHOD__ != 0.
20916         * math/libm-test.inc (cos_test): Add another test.
20917         (sin_test): Likewise.
20918         * sysdeps/i386/fpu/libm-test-ulps: Update.
20919
20920         [BZ #14273]
20921         * math/libm-test.inc (cosh_test): Add more tests.
20922
20923         * version.h (RELEASE): Set to "development".
20924         (VERSION): Set to "2.16.90".
20925
20926 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
20927
20928         * NEWS: Update copyright. Remove last-updated date.
20929         Mention math library bug fixes and timezone data changes.
20930         * README: Mention GNU/Hurd, x32, and HPPA support status.
20931
20932 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
20933
20934         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
20935
20936 2012-06-27  Andreas Jaeger  <aj@suse.de>
20937
20938         * manual/contrib.texi (Contributors): Add Samuel Thibault.
20939
20940 2012-06-25  Andreas Jaeger  <aj@suse.de>
20941
20942         * sysdeps/s390/fpu/libm-test-ulps: Update.
20943
20944 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
20945             Thomas Schwinge  <thomas@codesourcery.com>
20946
20947         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
20948         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
20949         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
20950         fanotify_mark.
20951
20952 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
20953
20954         * sysdeps/mach/start.c: Remove file.
20955         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
20956         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
20957         * sysdeps/sh/init-first.c: Likewise.
20958
20959         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
20960         registers for frame unwinding purposes, add CFI directives.
20961         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
20962         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
20963         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
20964         Likewise.
20965
20966         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
20967         __fortify_fail returning.
20968         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
20969
20970         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
20971         sysdeps/sh/____longjmp_chk.S.
20972         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
20973         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
20974         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
20975         (gen-as-const-headers): Append sigaltstack-offsets.sym.
20976
20977         * sysdeps/sh/abort-instr.h: New file.
20978         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
20979         process in case exit returns.
20980
20981         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
20982         initialize the GOT register before use.
20983
20984         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
20985         calculation of ARGC > 4.
20986
20987         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
20988         meaningful names to some local labels.
20989
20990 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20991             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
20992
20993         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
20994         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
20995         (__arch_compare_and_exchange_val_16_acq): Likewise.
20996         (__arch_compare_and_exchange_val_32_acq): Likewise.
20997         (atomic_exchange_and_add): Fix gUSA sequence.
20998         (atomic_add): Likewise.
20999         (atomic_add_negative): Likewise.
21000         (atomic_add_zero): Likewise.
21001         (atomic_bit_test_set): Likewise.
21002
21003 2012-06-22  Andreas Schwab  <schwab@redhat.com>
21004
21005         [BZ #13579]
21006         * include/link.h (struct link_map): Add l_free_initfini.
21007         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
21008         l_initfini.
21009         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
21010         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
21011         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
21012         set.
21013
21014 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
21015
21016         * configure.in: Use AC_LANG_SOURCE.
21017         * configure: Regenerate.
21018
21019 2012-06-22  Roland McGrath  <roland@hack.frob.com>
21020
21021         * configure.in (libc_cv_localstatedir): New substituted variable.
21022         * configure: Regenerated.
21023         * config.make.in (localstatedir): New variable, substituted from
21024         libc_cv_localstatedir.
21025         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
21026         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
21027         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
21028         * sysdeps/gnu/configure: Regenerated.
21029
21030 2012-06-21  Jeff Law  <law@redhat.com>
21031
21032         [BZ #14277]
21033         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
21034         free.  Simplify list management for _LIBC case.
21035
21036 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
21037
21038         [BZ #14273]
21039         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
21040         Clear sign bit of 64-bit integer value before comparing against
21041         overflow value.
21042
21043         * sysdeps/mach/configure: Regenerated.
21044
21045 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
21046
21047         [BZ #14278]
21048         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
21049
21050 2012-06-21  Jeff Law  <law@redhat.com>
21051
21052         [BZ #13882]
21053         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
21054         uint16_t for elements in the "seen" array to avoid char overflows.
21055         * elf/dl-fini.c (_dl_sort_fini): Likewise.
21056         * elf/dl-open.c (dl_open_worker): Likewise.
21057
21058 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
21059
21060         * scripts/list-sources.sh: Scan PORTS for translations.
21061         * po/libc.pot: Regenerated.
21062
21063 2012-06-21  Andreas Jaeger  <aj@suse.de>
21064
21065         [BZ #12194]
21066         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
21067         warning.
21068         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
21069         * bits/byteswap-16.h (__bswap_16): Likewise.
21070         * bits/byteswap.h (__bswap_constant_16): Likewise.
21071
21072 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
21073
21074         [BZ #14117]
21075         * sysdeps/i386/fpu_control.h: Removed.
21076         * sysdeps/x86_64/fpu_control.h: Moved to ...
21077         * sysdeps/x86/fpu_control.h: Here.
21078
21079         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
21080         (_FPU_SETCW): Likewise.
21081
21082 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
21083
21084         [BZ #14117]
21085         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
21086         * sysdeps/x86/fpu/bits/mathinline.h: This.
21087         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
21088
21089         [BZ #14050]
21090         [BZ #14117]
21091         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
21092         functions if __x86_64__ is defined.
21093
21094 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
21095
21096         * string/endian.h: Add !__ASSEMBLER__ condition for including
21097         conversion interfaces.
21098
21099 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
21100
21101         [BZ #14241]
21102         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
21103         of ABS(x) in calculating zero to negative powers other than odd
21104         integers.
21105         * math/libm-test.inc (pow_test): Add more tests.
21106
21107 2012-06-15  Andreas Jaeger  <aj@suse.de>
21108
21109         * manual/contrib.texi (Contributors): Update entry of Liubov
21110         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
21111         Machado Filho.
21112
21113 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
21114
21115         * string/string.h: Add __wur to GNU version of strerror_r.
21116
21117 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
21118
21119         [BZ #14229]
21120         * string/Makefile (tests): Add tst-strtok_r.
21121         * string/tst-strtok_r.c: New file.
21122         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
21123         RAX_LP/RDX_LP on SAVE_PTR.
21124
21125 2012-06-14  Roland McGrath  <roland@hack.frob.com>
21126
21127         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
21128
21129 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
21130
21131         * libm_test.inc (csqrt_test): Allow more spurious underflow
21132         exceptions.
21133         (j0_test): Likewise.
21134         (j1_test): Likewise.
21135         (y0_test): Likewise.
21136         (y1_test): Likewise.
21137
21138 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
21139
21140         * po/Makefile (libc.pot): Use UTF-8 charset.
21141
21142 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
21143
21144         [BZ #14210]
21145         Suppress sign-conversion warning from FD_SET.
21146         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
21147         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
21148         not unsigned long int.
21149         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
21150
21151 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
21152
21153         [BZ #14050]
21154         [BZ #14117]
21155         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
21156         __extern_always_inline instead of __extern_inline.
21157         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
21158         (__signbit): Likewise.
21159         (__signbitl): Support C++ namespace.
21160         (lrintf): New inline function.
21161         (lrint): Likewise.
21162         (llrintf): Likewise.
21163         (llrint): Likewise.
21164         (fmaxf): Likewise.
21165         (fmax): Likewise.
21166         (fminf): Likewise.
21167         (fmin): Likewise.
21168         (rint): Likewise.
21169         (rintf): Likewise.
21170         (ceil): Likewise.
21171         (ceilf): Likewise.
21172         (floor): Likewise.
21173         (floorf): Likewise.
21174         (nearbyint): Likewise.
21175         (nearbyintf): Likewise.
21176
21177 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
21178
21179         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
21180         non-default versions.
21181
21182 2012-06-11  Roland McGrath  <roland@hack.frob.com>
21183
21184         [BZ #14218]
21185         * manual/argp.texi (Argp): Reword argp_parse description slightly.
21186
21187 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
21188
21189         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
21190         (FE_UPWARD, FE_DOWNWARD): Don't define.
21191         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
21192         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21193
21194         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
21195         reading it.
21196         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
21197         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21198
21199 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21200
21201         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
21202         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
21203         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
21204         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
21205
21206 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
21207
21208         [BZ #14117]
21209         * sysdeps/i386/fpu/bits/fenv.h: Removed.
21210         * sysdeps/i386/fpu/Implies: New file.
21211         * sysdeps/x86_64/fpu/Implies: Likewise.
21212         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
21213         * sysdeps/x86/fpu/bits/fenv.h: This.
21214
21215         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
21216         __SSE_MATH__.
21217
21218 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
21219
21220         [BZ #14134]
21221         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
21222         character 0xffff that matches the last element of the
21223         conversion table.
21224
21225 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21226
21227         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
21228         fmodl commit.
21229
21230 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21231
21232         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
21233         values higher than 25.6283.
21234
21235 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21236
21237         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
21238         subnormal exponent extraction and add some __builtin_expect.
21239         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
21240         Fix for subnormal mantissa calculation.
21241
21242 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
21243
21244         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
21245         cpu2 is -1 and errno is not ENOSYS.
21246
21247 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
21248
21249         [BZ #14117]
21250         * sysdeps/i386/i486/bits/string.h: Renamed to ...
21251         * sysdeps/x86/bits/string.h: This.
21252         * sysdeps/x86_64/bits/string.h: Removed.
21253
21254         * sysdeps/i386/i486/bits/string.h: Define inline functions only
21255         if not compiling for x86-64, but compiling for >= i486.
21256
21257         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
21258         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
21259
21260         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
21261         New macro from Linux kernel 3.4.0.
21262         (FP_XSTATE_MAGIC2): Likewise.
21263         (FP_XSTATE_MAGIC2_SIZE): Likewise.
21264         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
21265         (struct _fpx_sw_bytes): New struct.
21266         (struct _xsave_hdr): Likewise.
21267         (struct _ymmh_state): Likewise.
21268         (struct _xstate): Likewise.
21269
21270         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
21271         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
21272         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
21273         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
21274         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
21275         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
21276
21277         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
21278         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
21279         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
21280         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
21281         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
21282         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
21283
21284 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21285
21286         [BZ #13743]
21287         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
21288         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
21289         (sysdep_headers): Include sys/platform/ppc.h.
21290         * sysdeps/powerpc/test-gettimebase.c: Test for
21291         __ppc_get_timebase() to catch future ISA opcode/insn changes.
21292         * manual/Makefile (appendices): Include platform.texi.
21293         * manual/contrib.texi (Contributors): Update @node pointers.
21294         * manual/maint.texi (Maintenance): Likewise.
21295         (Platform): New node.
21296         * manual/platform.texi: New file.  Document the new features.
21297
21298 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
21299             Jakub Jelinek  <jakub@redhat.com>
21300
21301         [BZ #14188]
21302         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
21303         where __builtin_expect is unavailable.
21304
21305 2012-06-03  David S. Miller  <davem@davemloft.net>
21306
21307         * stdlib/longlong.h: Updated from GCC.
21308
21309 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
21310
21311         [BZ #14042]
21312         * sysdeps/powerpc/powerpc32/mcount.c: New file.
21313         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
21314         __mcount_internal.
21315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
21316         (GLIBC_2.16): Likewise.
21317
21318 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
21319
21320         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
21321
21322 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
21323
21324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
21325         (default-abi): New variable.
21326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
21327         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
21328         variable.
21329         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
21330         Likewise.
21331         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
21332         Likewise.
21333         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
21334         Likewise.
21335
21336         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
21337         definition.  Document in comment.
21338
21339 2012-06-01  David S. Miller  <davem@davemloft.net>
21340
21341         * stdlib/longlong.h: Updated from GCC.
21342
21343 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
21344
21345         [BZ #14117]
21346         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
21347         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
21348         sys/debugreg.h sys/io.h here.
21349         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
21350         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
21351         sys/io.h.
21352         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
21353         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
21354         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
21355         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
21356         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
21357         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
21358
21359         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
21360         Define only if __x86_64__ is defined.
21361
21362 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
21363
21364         [BZ #14048]
21365         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
21366         Use int64_t for variable i.
21367         * math/libm-test.inc (fmod_test): Add more tests.
21368
21369         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
21370         z computation is not scheduled after fetestexcept.
21371         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
21372         Use math_force_eval instead of asm to ensure calculation scheduled
21373         before exception test.
21374         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
21375         Ensure a1 + u.d computation is not scheduled after fetestexcept.
21376
21377 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
21378
21379         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
21380         computation is not scheduled after fetestexcept.
21381
21382 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
21383
21384         [BZ #14117]
21385         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
21386         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
21387
21388 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21389
21390         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
21391         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
21392
21393 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
21394
21395         [BZ #14117]
21396         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
21397         <bits/wordsize.h>.
21398         (__WCHAR_MIN): Support __WORDSIZE == 64.
21399         (__WCHAR_MAX): Likewise.
21400
21401         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
21402         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
21403
21404         [BZ #14183]
21405         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
21406         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
21407
21408         [BZ #14117]
21409         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
21410         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
21411
21412         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
21413         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
21414
21415         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
21416         Defined to 1 if __x86_64__ isn't defined.
21417         (_STAT_VER_LINUX_OLD): New.
21418         (st_atime): Remove duplicate.
21419         (st_mtime): Likewise.
21420         (st_ctime): Likewise.
21421
21422 2012-05-31  David S. Miller  <davem@davemloft.net>
21423
21424         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
21425         entries.
21426
21427 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
21428
21429         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
21430         gen-libm-test.pl.
21431
21432         [BZ #14132]
21433         * elf/dl-reloc.c: Include <_itoa.h>.
21434         (_dl_reloc_bad_type): Remove use of INTUSE.
21435         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
21436         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
21437         * stdio-common/psiginfo.c (psiginfo): Likewise.
21438         * stdio-common/psignal.c (psignal): Likewise.
21439         * string/strsignal.c (strsignal): Likewise.
21440         * include/signal.h (_sys_siglist): Declare hidden proto.
21441         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
21442         INTVARDEF with libc_hidden_data_def.
21443         * stdio-common/itoa-udigits.c: Likewise.
21444         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
21445         (_itoa_lower_digits_internal): Remove declaration.
21446         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
21447         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
21448         (_sys_sigabbrev_internal): Remove aliases.
21449         (_sys_siglist): Define hidden alias.
21450
21451 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
21452
21453         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21454         bits/sysctl.h.
21455
21456 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
21457
21458         [BZ #14117]
21459         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
21460         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
21461
21462         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
21463         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
21464         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
21465         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
21466         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
21467         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
21468
21469         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
21470         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
21471         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
21472
21473         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
21474         with __addr.
21475         (insw): Likewise.
21476         (insl): Likewise.
21477         (outsb): Likewise.
21478         (outsw): Likewise.
21479         (outsl): Likewise.
21480
21481         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
21482         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
21483         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
21484
21485         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
21486         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
21487         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
21488         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
21489         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
21490         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
21491
21492         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
21493         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
21494
21495         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
21496         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
21497
21498         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
21499         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
21500         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
21501
21502         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
21503         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
21504         to ...
21505         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
21506
21507         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
21508         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
21509         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
21510
21511         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
21512         for x86-64.
21513         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
21514
21515 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
21516
21517         * math/math.h (M_El): Use two more decimal places.
21518         (M_LOG2El): Likewise.
21519         (M_LOG10El): Likewise.
21520         (M_LN2l): Likewise.
21521         (M_LN10l): Likewise.
21522         (M_PIl): Likewise.
21523         (M_PI_2l): Likewise.
21524         (M_PI_4l): Likewise.
21525         (M_1_PIl): Likewise.
21526         (M_2_PIl): Likewise.
21527         (M_2_SQRTPIl): Likewise.
21528         (M_SQRT2l): Likewise.
21529         (M_SQRT1_2l): Likewise.
21530
21531 2012-05-31  David S. Miller  <davem@davemloft.net>
21532
21533         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
21534         values between float registers.
21535         * sysdeps/sparc/sparc64/memset.S: Likewise.
21536         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
21537
21538 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
21539
21540         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
21541         -D_FORTIFY_SOURCE=1.
21542         (CPPFLAGS-tst-longjmp_chk.c): Define.
21543         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
21544         (CPPFLAGS-tst-longjmp_chk2.c): Define.
21545         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
21546         CFLAGS-tst-wchar-h.c.
21547
21548 2012-05-31  Marek Polacek  <polacek@redhat.com>
21549
21550         [BZ #14132]
21551         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
21552         __endmntent_internal): Remove declaration.
21553         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
21554         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
21555         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
21556
21557 2012-05-30  David S. Miller  <davem@davemloft.net>
21558
21559         * sysdeps/sparc/sparc32/soft-fp/q_util.c
21560         (___Q_simulate_exceptions): Use real FP ops rather than writing
21561         into the %fsr.
21562         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
21563         Likewise.
21564
21565 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21566
21567         [BZ #14117]
21568         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
21569         * sysdeps/x86/bits/xtitypes.h: This.
21570
21571         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
21572         * sysdeps/x86/bits/wordsize.h: This.
21573
21574         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
21575         * sysdeps/x86/bits/huge_vall.h: This.
21576
21577         * sysdeps/i386/bits/select.h: Removed.
21578         * sysdeps/x86_64/bits/select.h: Renamed to ...
21579         * sysdeps/x86/bits/select.h: This.
21580
21581         * sysdeps/i386/bits/setjmp.h: Removed.
21582         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
21583         * sysdeps/x86/bits/setjmp.h: This.
21584
21585         * sysdeps/i386/bits/mathdef.h: Removed.
21586         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
21587         * sysdeps/x86/bits/mathdef.h: This.
21588
21589 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
21590
21591         [BZ #14132]
21592         * include/sys/socket.h (__connect_internal)
21593         (__libc_sa_len_internal): Remove declaration.
21594         (__connect, __libc_sa_len): Declare hidden_proto.
21595         (SA_LEN): Remove use of INTUSE.
21596         * socket/connect.c: Add libc_hidden_def.
21597         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
21598         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
21599         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
21600         alias.
21601         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
21602         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
21603         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
21604         of adding _internal alias.
21605
21606 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21607
21608         [BZ #14117]
21609         * sysdeps/i386/bits/link.h: Removed.
21610         * sysdeps/i386/bits/linkmap.h: Likewise.
21611         * sysdeps/x86_64/bits/link.h: Renamed to ...
21612         * sysdeps/x86/bits/link.h: This.
21613         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
21614         * sysdeps/x86/bits/linkmap.h: This.
21615
21616         * sysdeps/i386/bits/endian.h: Removed.
21617         * sysdeps/x86_64/bits/endian.h: Renamed to ...
21618         * sysdeps/x86/bits/endian.h: This.
21619
21620         * sysdeps/i386/bits/byteswap.h: Removed.
21621         * sysdeps/i386/bits/byteswap-16.h: Likewise.
21622         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
21623         * sysdeps/x86/bits/byteswap.h: This.
21624         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
21625         * sysdeps/x86/bits/byteswap-16.h: This.
21626         * sysdeps/i386/Implies: Add x86.
21627         * sysdeps/x86_64/Implies: Likewise.
21628
21629 2012-05-30  David S. Miller  <davem@davemloft.net>
21630
21631         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
21632         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
21633         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
21634         (FP_TRAPPING_EXCEPTIONS): Define.
21635         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
21636         (FP_TRAPPING_EXCEPTIONS): Define.
21637         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
21638         subnormals only when inexact has been signalled or underflow
21639         exceptions are enabled.
21640         (_FP_PACK_CANONICAL): Likewise.
21641
21642 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21643
21644         [BZ #14183]
21645         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
21646         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
21647
21648 2012-05-30  Richard Henderson  <rth@twiddle.net>
21649
21650         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
21651         with #ifndef NOT_IN_libc.
21652
21653         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
21654         marked to avoid plt entry.
21655
21656 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21657
21658         [BZ #14112]
21659         * Makeconfig (default-abi): New macro.
21660         (abi-includes): Likewise.
21661         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
21662         $(abi-$(default-abi)-lib-soname) for soname if defined.
21663         ($(common-objpfx)gnu/lib-names.stmp): Generate from
21664         abi-variants.
21665         * Makefile (installed-stubs): Likewise.
21666         * include/stubs-biarch.h: Removed.
21667         * scripts/lib-names.awk: Only handle one library at a time.
21668         * scripts/soversions.awk: Remove WORDSIZE support.
21669         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
21670         entries.
21671         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
21672         Removed.
21673         (syscall-list-default-condition): Likewise.
21674         (syscall-list-default-condition): Likewise.
21675         (syscall-list-includes): Likewise.
21676         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
21677         syscall-list-* with abi-*.  Handle undefined abi-variants.
21678         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
21679         * sysdeps/unix/sysv/linux/i386/Implies: New file.
21680         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
21681         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
21682         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
21683         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
21684         Removed.
21685         (syscall-list-32-options): Likewise.
21686         (syscall-list-32-condition): Likewise.
21687         (syscall-list-64-options): Likewise.
21688         (syscall-list-64-condition): Likewise.
21689         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
21690         macro.
21691         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
21692         Renamed to ...
21693         (abi-*): This.
21694         (abi-64-ld-soname): New macro.
21695         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
21696         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
21697         Renamed to ...
21698         (abi-*): This.
21699         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
21700         * sysdeps/x86_64/x32/shlib-versions: Likewise.
21701
21702 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
21703
21704         * sysdeps/unix/sysv/linux/kernel-features.h
21705         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
21706         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
21707         include <kernel-features.h>.
21708         [!__NR_ftruncate64]: Remove conditional code.
21709         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21710         [__NR_ftruncate64]: Make code unconditional.
21711         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21712         * sysdeps/unix/sysv/linux/truncate64.c: Do not
21713         include <kernel-features.h>.
21714         [!__NR_ftruncate64]: Remove conditional code.
21715         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21716         [__NR_ftruncate64]: Make code unconditional.
21717         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
21719         include <kernel-features.h>.
21720         [!__NR_ftruncate64]: Remove conditional code.
21721         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21722         [__NR_ftruncate64]: Make code unconditional.
21723         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
21725         include <kernel-features.h>.
21726         [!__NR_ftruncate64]: Remove conditional code.
21727         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21728         [__NR_ftruncate64]: Make code unconditional.
21729         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21730
21731         * configure.in (libc_cv_fpie): Weaken to a compile test using
21732         LIBC_TRY_CC_OPTION.
21733         * configure: Regenerated.
21734
21735 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21736
21737         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
21738         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
21739         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
21740         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
21741         Refreshed.
21742         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
21743         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
21744         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
21745         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
21746         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
21747         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
21748         Refreshed.
21749
21750 2012-05-27  David S. Miller  <davem@davemloft.net>
21751
21752         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
21753         (___Q_zero): New.
21754         (__Q_simulate_exceptions): Return void.  Change to simulate
21755         exceptions by writing into the %fsr.
21756         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
21757         (__Qp_handle_exceptions): Likewise.
21758         (numbers): Delete.
21759         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
21760         __Qp_handle_exceptions.
21761         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
21762         __Qp_handle_exceptions.
21763         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
21764         as unused and give dummy FP_RND_NEAREST initializer.
21765         (FP_INHIBIT_RESULTS): Define.
21766         (___Q_simulate_exceptions): Update declaration.
21767         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
21768         formatting.
21769         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
21770         as unused and give dummy FP_RND_NEAREST initializer.
21771         (__Qp_handle_exceptions): Update declaration.
21772         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
21773         formatting.
21774
21775 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
21776
21777         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
21778         the temporary FPU control word.
21779         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
21780         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
21781         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
21782         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
21783         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
21784         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21785         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21786         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21787         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21788         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
21789         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21790
21791 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21792
21793         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
21794         fields.
21795
21796 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
21797
21798         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
21799         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
21800         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
21801         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
21802         Likewise.
21803         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
21804         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
21805         Likewise.
21806
21807 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
21808
21809         * po/h.po: Update from translation team.
21810
21811 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
21812
21813         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
21814
21815         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
21816         handling of denormals.
21817         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
21818         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
21819         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
21820         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
21821         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
21822         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
21823         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
21824         Likewise.
21825
21826 2012-05-26  Marek Polacek  <polacek@redhat.com>
21827
21828         [BZ #14152]
21829         * math/libm-test.inc (fma_test): Don't always expect underflow
21830         exception.
21831
21832 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21833
21834         [BZ #12416]
21835         * elf/tst-execstack.c: Include stackinfo.h.
21836         (do_test): Adjust test case to ensure that pthread_getattr_np
21837         behaviour remains the same after marking stack executable.
21838
21839 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
21840
21841         * sysdeps/unix/sysv/linux/kernel-features.h
21842         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
21843         * sysdeps/unix/sysv/linux/i386/getrlimit.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         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
21848         kernel-features.h.
21849         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
21850         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
21851
21852 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21853
21854         * configure.in: Define the default includes to being none.
21855         * configure: Regenerated.
21856
21857 2012-05-25  Roland McGrath  <roland@hack.frob.com>
21858
21859         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
21860         * sysdeps/x86_64/setjmp.S: Likewise.
21861         * sysdeps/i386/bsd-setjmp.S: Likewise.
21862         * sysdeps/i386/bsd-_setjmp.S: Likewise.
21863         * sysdeps/i386/setjmp.S: Likewise.
21864         * sysdeps/i386/__longjmp.S: Likewise.
21865         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
21866         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
21867
21868         * include/stap-probe.h: New file.
21869         * configure.in: Handle --enable-systemtap.
21870         * configure: Regenerated.
21871         * config.h.in (USE_STAP_PROBE): New #undef.
21872         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
21873         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
21874         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
21875
21876 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
21877
21878         [BZ #13717]
21879         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
21880         to 2.4.0 where earlier.
21881         * sysdeps/unix/sysv/linux/configure: Regenerated.
21882         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.c: Do not include
21887         <kernel-features.h>.
21888         [__ASSUME_32BITUIDS]: Make code unconditional.
21889         [!__ASSUME_32BITUIDS]: Remove conditional code.
21890         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
21891         [__ASSUME_32BITUIDS]: Make code unconditional.
21892         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
21893         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.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/getgid.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/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.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/msgctl.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/semctl.c: Do not include
21930         <kernel-features.h>.
21931         [__ASSUME_32BITUIDS]: Make code unconditional.
21932         [!__ASSUME_32BITUIDS]: Remove conditional code.
21933         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
21934         <kernel-features.h>.
21935         [__NR_setresgid] (__setresgid): Do not declare.
21936         [__ASSUME_32BITUIDS]: Make code unconditional.
21937         [!__ASSUME_32BITUIDS]: Remove conditional code.
21938         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
21939         <kernel-features.h>.
21940         [__NR_setresuid] (__setresuid): Do not declare.
21941         [__ASSUME_32BITUIDS]: Make code unconditional.
21942         [!__ASSUME_32BITUIDS]: Remove conditional code.
21943         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/setreuid.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/setuid.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/i386/shmctl.c: Do not include
21980         <kernel-features.h>.
21981         [__ASSUME_32BITUIDS]: Make code unconditional.
21982         [!__ASSUME_32BITUIDS]: Remove conditional code.
21983         * sysdeps/unix/sysv/linux/kernel-features.h
21984         (__ASSUME_SETRESUID_SYSCALL): Remove.
21985         (__ASSUME_SETRESGID_SYSCALL): Likewise.
21986         (__ASSUME_32BITUIDS): Likewise.
21987         (__ASSUME_LDT_WORKS): Likewise.
21988         (__ASSUME_O_DIRECTORY): Likewise.
21989         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
21990         architecture but not kernel version.
21991         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
21992         (__ASSUME_MMAP2_SYSCALL): Likewise.
21993         (__ASSUME_STAT64_SYSCALL): Likewise.
21994         (__ASSUME_IPC64): Likewise.
21995         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
21996         <kernel-features.h>.
21997         [__ASSUME_32BITUIDS]: Make code unconditional.
21998         [!__ASSUME_32BITUIDS]: Remove conditional code.
21999         * sysdeps/unix/sysv/linux/opendir.c: Do not include
22000         <kernel-features.h>.
22001         [__ASSUME_O_DIRECTORY]: Make code unconditional.
22002         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
22003         132096]: Remove conditional code.
22004         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
22005         * sysdeps/unix/sysv/linux/s390/s390-32/chown.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/s390/s390-32/lchown.c: Do not include
22010         <kernel-features.h>.
22011         [__ASSUME_32BITUIDS]: Make code unconditional.
22012         [!__ASSUME_32BITUIDS]: Remove conditional code.
22013         * sysdeps/unix/sysv/linux/setegid.c: Do not include
22014         <kernel-features.h>.
22015         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
22016         unconditional.
22017         (__setresgid): Do not declare.
22018         [__ASSUME_32BITUIDS]: Make code unconditional.
22019         [!__ASSUME_32BITUIDS]: Remove conditional code.
22020         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
22021         <kernel-features.h>.
22022         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
22023         unconditional.
22024         (__setresuid): Do not declare.
22025         [__ASSUME_32BITUIDS]: Make code unconditional.
22026         [!__ASSUME_32BITUIDS]: Remove conditional code.
22027         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22028         <kernel-features.h>.
22029         [__ASSUME_32BITUIDS]: Make code unconditional.
22030         [!__ASSUME_32BITUIDS]: Remove conditional code.
22031         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
22032         <kernel-features.h>.
22033         [__ASSUME_32BITUIDS]: Make code unconditional.
22034         [!__ASSUME_32BITUIDS]: Remove conditional code.
22035
22036 2012-05-25  Richard Henderson  <rth@twiddle.net>
22037
22038         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
22039         dl_hwcap to ifunc resolver.
22040         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
22041         elf_ifunc_invoke.
22042         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
22043         dl_hwcap to ifunc resolver.
22044         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
22045
22046 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22047
22048         [BZ #14153]
22049         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
22050         for |x| <= 2**-26, not 2**-57.
22051         * math/libm-test.inc (acos_test): Do not allow spurious underflow
22052         exception.
22053
22054 2012-05-24  Jeff Law  <law@redhat.com>
22055
22056         * stdio-common/Makefile (tests): Add bug25.
22057         * stdio-common/bug25.c: New test.
22058
22059 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
22060
22061         [BZ #13576]
22062         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
22063         multiple of MALLOC_ALIGNMENT in size.
22064         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
22065
22066 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22067
22068         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
22069         Require >= 256.
22070         (FILENAME_MAX): Use macro-int-constant.
22071         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
22072         (_IOFBF): Use macro-int-constant.
22073         (_IOLBF): Likewise.
22074         (_IONBF): Likewise.
22075         (SEEK_CUR): Likewise.
22076         (SEEK_END): Likewise.
22077         (SEEK_SET): Likewise.
22078         (TMP_MAX): Likewise.
22079         (EOF): Use macro-int-constant.  Require < 0.
22080         (NULL): Use macro-constant.  Require == 0.
22081         (stdin): Require type to be FILE *.
22082         (stdout): Likewise.
22083         (stderr): Likewise.
22084         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
22085         macro-int-constant.
22086         (EXIT_SUCCESS): Likewise.
22087         (NULL): Use macro-constant.  Require == 0.
22088         (RAND_MAX): Use macro-int-constant.
22089         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
22090         [C99-based standards] (strtof): Require function.
22091         [C99-based standards] (strtold): Likewise.
22092         [C99-based standards] (strtoll): Likewise.
22093         [C99-based standards] (strtoull): Likewise.
22094         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
22095         [ISO || ISO99 || ISO11] (limits.h): Likewise.
22096         [ISO || ISO99 || ISO11] (math.h): Likewise.
22097         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
22098         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
22099         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22100
22101 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
22102
22103         [BZ #14132]
22104         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
22105         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
22106         * intl/dgettext.c (DCGETTEXT): Likewise.
22107         * intl/gettext.c (DCGETTEXT): Likewise.
22108         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
22109         * posix/regex_internal.h (gettext): Likewise.
22110         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
22111         Remove declaration.
22112         * include/argz.h (__argz_count_internal)
22113         (__argz_stringify_internal): Remove declaration.
22114         (__argz_count, __argz_stringify): Declare hidden proto.
22115         * intl/dcgettext.c: Remove use of INTDEF.
22116         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
22117         * string/argz-stringify.c: Likewise.
22118         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
22119         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
22120         Declare hidden proto.
22121         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
22122         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
22123         Declare hidden proto.
22124         * include/stdio.h (__asprintf_internal): Don't declare.
22125         (__asprintf): Don't define as macro.  Declare hidden proto.
22126         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
22127         (__fsetlocking): Declare hidden proto.
22128         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
22129         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
22130         hidden proto.
22131         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
22132         (_IO_setlinebuf): Remove use of INTUSE.
22133         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
22134         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
22135         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
22136         Remove declaration.
22137         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
22138         (_IO_do_flush): Remove use of INTUSE.
22139         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
22140         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
22141         (_IO_adjust_column, _IO_least_wmarker)
22142         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
22143         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
22144         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
22145         (_IO_default_doallocate, _IO_wdefault_doallocate)
22146         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
22147         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
22148         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
22149         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
22150         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
22151         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
22152         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
22153         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
22154         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
22155         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
22156         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
22157         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
22158         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
22159         proto.
22160         (_IO_flush_all_internal, _IO_adjust_column_internal)
22161         (_IO_default_uflow_internal, _IO_default_finish_internal)
22162         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
22163         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
22164         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
22165         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
22166         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
22167         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
22168         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
22169         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
22170         (_IO_file_close_internal, _IO_file_close_it_internal)
22171         (_IO_file_underflow_internal, _IO_file_overflow_internal)
22172         (_IO_file_init_internal, _IO_file_attach_internal)
22173         (_IO_file_fopen_internal, _IO_file_read_internal)
22174         (_IO_file_sync_internal, _IO_file_seek_internal)
22175         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
22176         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
22177         (_IO_str_underflow_internal, _IO_str_overflow_internal)
22178         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
22179         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
22180         (_IO_list_all_internal, _IO_link_in_internal)
22181         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
22182         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
22183         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
22184         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
22185         (_IO_do_write_internal, _IO_padn_internal)
22186         (_IO_getline_info_internal, _IO_getline_internal)
22187         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
22188         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
22189         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
22190         (_IO_vfscanf_internal, _IO_vfprintf_internal)
22191         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
22192         (_IO_init_internal, _IO_un_link_internal): Don't declare.
22193         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
22194         with libc_hidden_ver, remove use of INTUSE.
22195         * libio/genops.c: Likewise.
22196         * libio/freopen.c: Likewise.
22197         * libio/freopen64.c: Likewise.
22198         * libio/iofclose.c: Likewise.
22199         * libio/iofdopen.c: Likewise.
22200         * libio/iofflush.c: Likewise.
22201         * libio/iofflush_u.c: Likewise.
22202         * libio/iofgets.c: Likewise.
22203         * libio/iofgets_u.c: Likewise.
22204         * libio/iofopen.c: Likewise.
22205         * libio/iofopncook.c: Likewise.
22206         * libio/iofread.c: Likewise.
22207         * libio/iofread_u.c: Likewise.
22208         * libio/ioftell.c: Likewise.
22209         * libio/iofwrite.c: Likewise.
22210         * libio/iogetline.c: Likewise.
22211         * libio/iogets.c: Likewise.
22212         * libio/iogetwline.c: Likewise.
22213         * libio/iopadn.c: Likewise.
22214         * libio/iopopen.c: Likewise.
22215         * libio/ioseekoff.c: Likewise.
22216         * libio/ioseekpos.c: Likewise.
22217         * libio/iosetbuffer.c: Likewise.
22218         * libio/iosetvbuf.c: Likewise.
22219         * libio/ioungetc.c: Likewise.
22220         * libio/ioungetwc.c: Likewise.
22221         * libio/iovdprintf.c: Likewise.
22222         * libio/iovsprintf.c: Likewise.
22223         * libio/iovsscanf.c: Likewise.
22224         * libio/memstream.c: Likewise.
22225         * libio/obprintf.c: Likewise.
22226         * libio/oldfileops.c: Likewise.
22227         * libio/oldiofclose.c: Likewise.
22228         * libio/oldiofdopen.c: Likewise.
22229         * libio/oldiofopen.c: Likewise.
22230         * libio/oldiopopen.c: Likewise.
22231         * libio/oldstdfiles.c: Likewise.
22232         * libio/putc.c: Likewise.
22233         * libio/setbuf.c: Likewise.
22234         * libio/setlinebuf.c: Likewise.
22235         * libio/stdfiles.c: Likewise.
22236         * libio/strops.c: Likewise.
22237         * libio/vasprintf.c: Likewise.
22238         * libio/vscanf.c: Likewise.
22239         * libio/vsnprintf.c: Likewise.
22240         * libio/vswprintf.c: Likewise.
22241         * libio/wfiledoalloc.c: Likewise.
22242         * libio/wfileops.c: Likewise.
22243         * libio/wgenops.c: Likewise.
22244         * libio/wmemstream.c: Likewise.
22245         * libio/wstrops.c: Likewise.
22246         * libio/__fpurge.c: Likewise.
22247         * libio/__fsetlocking.c: Likewise.
22248         * assert/assert.c: Likewise.
22249         * debug/fgets_chk.c: Likewise.
22250         * debug/fgets_u_chk.c: Likewise.
22251         * debug/fread_chk.c: Likewise.
22252         * debug/fread_u_chk.c: Likewise.
22253         * debug/gets_chk.c: Likewise.
22254         * debug/obprintf_chk.c: Likewise.
22255         * debug/vasprintf_chk.c: Likewise.
22256         * debug/vdprintf_chk.c: Likewise.
22257         * debug/vsnprintf_chk.c: Likewise.
22258         * debug/vsprintf_chk.c: Likewise.
22259         * malloc/mtrace.c: Likewise.
22260         * misc/error.c: Likewise.
22261         * misc/syslog.c: Likewise.
22262         * stdio-common/asprintf.c: Likewise.
22263         * stdio-common/fxprintf.c: Likewise.
22264         * stdio-common/getw.c: Likewise.
22265         * stdio-common/isoc99_fscanf.c: Likewise.
22266         * stdio-common/isoc99_scanf.c: Likewise.
22267         * stdio-common/isoc99_vfscanf.c: Likewise.
22268         * stdio-common/isoc99_vscanf.c: Likewise.
22269         * stdio-common/isoc99_vsscanf.c: Likewise.
22270         * stdio-common/printf-prs.c: Likewise.
22271         * stdio-common/printf_fp.c: Likewise.
22272         * stdio-common/printf_fphex.c: Likewise.
22273         * stdio-common/printf_size.c: Likewise.
22274         * stdio-common/putw.c: Likewise.
22275         * stdio-common/scanf.c: Likewise.
22276         * stdio-common/sprintf.c: Likewise.
22277         * stdio-common/tmpfile.c: Likewise.
22278         * stdio-common/vfprintf.c: Likewise.
22279         * stdio-common/vfscanf.c: Likewise.
22280         * stdlib/strfmon_l.c: Likewise.
22281         * sunrpc/openchild.c: Likewise.
22282         * sunrpc/xdr_stdio.c: Likewise.
22283         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
22284         * sysdeps/mach/hurd/tmpfile.c: Likewise.
22285
22286 2012-05-24  Roland McGrath  <roland@hack.frob.com>
22287
22288         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
22289
22290         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
22291         in the third column, to generate for the shared library an IFUNC
22292         that uses _dl_vdso_vsym.
22293         * Makerules (COMPILE.c, compile-stdin.c): New variables.
22294         * Makeconfig (object-suffixes-noshared): New variable.
22295
22296         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
22297         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
22298         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
22299         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
22300
22301         [BZ #14132]
22302         * include/sys/time.h (__gettimeofday): Remove macro.
22303         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
22304         * time/gettimeofday.c (__gettimeofday): Remove #undef.
22305         Remove INTDEF.
22306         (__gettimeofday): Add libc_hidden_def.
22307         (gettimeofday): Add libc_hidden_weak.
22308         * sysdeps/mach/gettimeofday.c: Likewise.
22309         * sysdeps/posix/gettimeofday.c: Likewise.
22310         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
22311         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
22312         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
22313         (__gettimeofday_internal): Remove strong_alias.
22314         (__gettimeofday): Add libc_hidden_def.
22315         (gettimeofday): Add libc_hidden_weak.
22316         * sysdeps/unix/syscalls.list (gettimeofday):
22317         Remove __gettimeofday_internal alias.
22318
22319 2012-05-24  Daniel Jacobowitz  <drow@false.org>
22320             H.J. Lu  <hongjiu.lu@intel.com>
22321
22322         [BZ #12495]
22323         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
22324         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
22325         (largebin_index_32_big): New.
22326         (largebin_index): Use it for 16-byte alignment.
22327         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
22328         correction with front_misalign.
22329
22330 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
22331
22332         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
22333         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
22334         Likewise.
22335         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
22336         Likewise.
22337         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
22338         Likewise.
22339         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
22340         Likewise.
22341         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
22342         Likewise.
22343         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
22344         Likewise.
22345         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
22346         Likewise.
22347         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
22348         Likewise.
22349         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
22350         Likewise.
22351         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
22352         Likewise.
22353         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
22354         Likewise.
22355         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
22356         Likewise.
22357
22358         * scripts/data/c++-types-x32-linux-gnu.data: New file.
22359         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
22360
22361 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22362
22363         [BZ #10846]
22364         [BZ #14036]
22365         * math/libm-test.inc (exp_test): Add test from bug 14036.
22366         (pow_test): Add test from bug 10846.
22367
22368         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
22369         and other flags.
22370         (special_function): Do not include flags in test name.
22371         (parse_args): Likewise.
22372         * sysdeps/i386/fpu/libm-test-ulps: Update.
22373         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
22374         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
22375         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
22376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22377
22378         * math/gen-libm-test.pl (%beautify): Add entries for underflow
22379         exceptions.
22380         * math/libm-test.inc ("Philosophy"): Update comment about
22381         exception testing.
22382         (UNDERFLOW_EXCEPTION): New macro.
22383         (UNDERFLOW_EXCEPTION_OK): Likewise.
22384         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
22385         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
22386         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
22387         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
22388         (INVALID_EXCEPTION_OK): Update value.
22389         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
22390         (OVERFLOW_EXCEPTION_OK): Likewise.
22391         (IGNORE_ZERO_INF_SIGN): Likewise.
22392         (test_exceptions): Handle underflow exceptions.
22393         (acos_test): Update for underflow exception expectations.
22394         (cexp_test): Likewise.
22395         (clog_test): Likewise.
22396         (clog10_test): Likewise.
22397         (csqrt_test): Likewise.
22398         (ctan_test): Likewise.
22399         (ctanh_test): Likewise.
22400         (exp_test): Likewise.
22401         (exp10_test): Likewise.
22402         (exp2_test): Likewise.
22403         (expm1_test): Likewise.
22404         (fma_test): Likewise.
22405         (j0_test): Likewise.
22406         (jn_test): Likewise.
22407         (nexttoward_test): Likewise.
22408         (pow_test): Likewise.
22409         (scalbn_test): Likewise.
22410         (scalbln_test): Likewise.
22411         (tan_test): Likewise.
22412         (y1_test): Likewise.
22413         * sysdeps/i386/fpu/libm-test-ulps: Update.
22414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22415
22416 2012-05-23  David S. Miller  <davem@davemloft.net>
22417
22418         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
22419         (__libc_sigaction): Remove unused local variables.
22420
22421 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
22422
22423         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
22424
22425 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
22426
22427         mktime: avoid signed integer overflow
22428         * time/mktime.c (__mktime_internal): Do not mishandle the case
22429         where diff == INT_MIN.
22430
22431         mktime: simplify computation of average
22432         * time/mktime.c (ranged_convert): Use new time_t_avg function
22433         instead of rolling our own (probably-slower) code.
22434
22435         mktime: do not assume signed right shift propagates sign bit
22436         * time/mktime.c (isdst_differ): New static function.
22437         (__mktime_internal): No need to normalize tm_isdst now.
22438         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
22439         tm_isdst values.
22440
22441         mktime: merge another wrapv change from gnulib
22442         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
22443         from some compilers.
22444
22445         mktime: remove incorrect attempt at unusual arithmetics
22446         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
22447         The code didn't really work on such machines anyway.
22448         (TYPE_MINIMUM): Assume two's complement.
22449         (twos_complement_arithmetic): Verify that long_int and time_t
22450         are two's complement (or unsigned, in the latter case).
22451
22452         mktime: check signed shifts on long_int and time_t, too
22453         * time/mktime.c (SHR): Check that shifts work as desired
22454         on the types long_int and time_t too, as SHR is used on
22455         such types.
22456
22457         mktime: do not assume 'long' is wide enough
22458         * time/mktime.c (verify): Move decl up.
22459         (long_int): New type.
22460         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
22461         to remove assumption in the code that 'long' is wide enough to
22462         store year values.  This assumption is not true on x32 and on
22463         some non-glibc platforms.
22464
22465         mktime: merge wrapv change from gnulib
22466         * time/mktime.c (WRAPV): New macro.
22467         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
22468         (guess_time_tm, __mktime_internal): Do not assume that signed
22469         integer overflow wraps around; modern compilers generate code
22470         where this assumption is no longer valid.
22471
22472 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
22473
22474         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
22475         Replace "jmp L(pseudo_end)" with "ret".
22476         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
22477         Likewise.
22478
22479 2012-05-23  Andreas Jaeger  <aj@suse.de>
22480
22481         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
22482         * sysdeps/unix/sysv/linux/poll.c: Remove file.
22483
22484 2012-05-23  Andreas Jaeger  <aj@suse.de>
22485             Maximilian Attems  <max@stro.at>
22486
22487         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
22488         New macros.
22489
22490 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
22491
22492         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
22493         code so that pseudo_end is just ret and the stack pointer is
22494         correct also for static library in error case.
22495
22496 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
22497
22498         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
22499         move to syscalls.list.
22500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
22501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
22502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
22503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
22504
22505         * manual/install.texi (Running make install): Do not mention Linux
22506         kernel version for which pt_chown is not needed.
22507         (Linux): Do not mention problems with nscd with 2.0 kernels.
22508         * INSTALL: Regenerated.
22509
22510 2012-05-23  Andreas Jaeger  <aj@suse.de>
22511
22512         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
22513         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
22514         macro.
22515         * sysdeps/unix/sysv/linux/s390/bits/mman.h
22516         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22517         * sysdeps/unix/sysv/linux/sh/bits/mman.h
22518         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22519         * sysdeps/unix/sysv/linux/i386/bits/mman.h
22520         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22521         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
22522         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22523         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
22524         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22525         * sysdeps/unix/sysv/linux/bits/in.h
22526         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
22527
22528 2012-05-22  Roland McGrath  <roland@hack.frob.com>
22529
22530         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
22531         (PREPARE_VERSION): Just use assert instead, it will be elided
22532         under [NDEBUG] anyway.
22533
22534 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
22535
22536         * sysdeps/unix/sysv/linux/Makefile: Include
22537         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
22538         (sysdep_routines): Remove sysctl.
22539         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
22540         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
22541         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
22542         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
22543         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
22544
22545 2012-05-22  Andreas Jaeger  <aj@suse.de>
22546
22547         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
22548         that pseudo_end is just ret and the stack pointer is correct also
22549         for static library in error case.
22550
22551 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
22552
22553         [BZ #14122]
22554         * nss/nsswitch.c (defconfig_entries): New variable.
22555         (__nss_database_lookup): Don't leak defconfig entries.
22556         (nss_parse_service_list): Don't leak on error paths.
22557         (free_database_entries): New function.
22558         (free_defconfig): New function.
22559         (free_mem): Move common code to free_database_entries.
22560
22561 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
22562
22563         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
22564         Add arch_prctl.
22565         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
22566
22567         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22568         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
22569         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
22570         New macro.
22571         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
22572         (INTERNAL_SYSCALL_TYPES): Likewise.
22573         (LOAD_ARGS_TYPES_[1-6]): Likewise.
22574         (LOAD_REGS_TYPES_[1-6]): Likewise.
22575         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
22576         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
22577
22578 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22579
22580         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
22581         copysignl for GLIBC_2_0.
22582         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
22583         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
22584         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
22585         logbl for GLIBC_2_0.
22586         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
22587         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
22588
22589 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
22590
22591         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
22592         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
22593
22594         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
22595         Use "neg %eax".
22596
22597         * time/mktime.c: Update copyright years.
22598
22599 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
22600
22601         mktime: merge comment-quoting-style change from gnulib
22602         * time/mktime.c: Quote 'like this' in comments.
22603         The GNU coding standards suggest that we no longer quote `like this',
22604         as "`" and "'" are typically rendered asymmetrically nowadays.
22605         The typical gnulib style is to quote 'like this' when quoting
22606         code, and "like this" when quoting English.
22607
22608         * time/mktime.c (compile-command): Add "-I.".
22609
22610         mktime: merge mktime-internal.h change from gnulib
22611         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
22612
22613         mktime: merge time_r change from gnulib
22614         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
22615
22616         mktime: merge DEBUG change from gnulib
22617         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
22618         case system <time.h> has a #define.
22619
22620         mktime: merge <sys/types.h> change from gnulib
22621         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
22622         since <time.t> is now guaranteed to define time_t.
22623
22624         mktime: merge HAVE_CONFIG_H change from gnulib
22625         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
22626
22627 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
22628
22629         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
22630         Use "neg %eax".
22631
22632         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
22633         __rlim_t cast.
22634         (struct rusage): Use anonymous union to pad each field to
22635         __syscall_slong_t.
22636
22637 2012-05-21  David S. Miller  <davem@davemloft.net>
22638
22639         * Makefules (o-iterator): Remove .s cases.
22640         (compile-command.s): Delete.
22641         (COMPILE.s): Delete.
22642         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
22643
22644 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
22645
22646         * configure.in (libc_cv_predef_stack_protector): Only consider
22647         "foobar" and "__stack_chk_fail" lines in libc_undefs.
22648         * configure: Regenerated.
22649
22650 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
22651
22652         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
22653         New macro.  Use R*LP on int and pointer.
22654         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
22655         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
22656         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
22657         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
22658
22659         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
22660         [__WORDSIZE_TIME64_COMPAT32] instead of
22661         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
22662         (struct utmp): Likewise.
22663         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
22664         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
22665         Renamed to ...
22666         (__WORDSIZE_TIME64_COMPAT32): This.
22667         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
22668         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
22669         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
22670         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
22671         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
22672         (__WORDSIZE_TIME64_COMPAT32): New macro.
22673
22674 2012-05-21  Andreas Jaeger  <aj@suse.de>
22675
22676         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
22677         only if [SHARED]. Add prototype for __wcschr_ia32.
22678
22679 2012-05-21  Roland McGrath  <roland@hack.frob.com>
22680
22681         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
22682         of %rbp unmolested in the jmp_buf while mangling the low bits.
22683         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
22684         unmolested high bits of %rbp while demangling the low bits.
22685         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
22686
22687 2012-05-21  Andreas Jaeger  <aj@suse.de>
22688
22689         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
22690         * sunrpc/svc_simple.c: Use it for registerrpc.
22691         * sunrpc/xcrypt.c: Use it for passwd2des.
22692
22693         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
22694
22695 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
22696
22697         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
22698         Don't define if [__SYSCALL_WORDSIZE != 32].
22699         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
22700         New macro.
22701
22702 2012-05-21  Bruno Haible  <bruno@clisp.org>
22703             Andreas Jaeger  <aj@suse.de>
22704
22705         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
22706         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
22707         inptr and inend for must_buffer_ch.
22708         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
22709         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
22710         * stdio-common/Makefile (tests): Remove bug15.
22711         (bug15-ENV): Remove macro.
22712         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
22713         anymore.
22714
22715 2012-05-19  Andreas Jaeger  <aj@suse.de>
22716             Roland McGrath  <roland@hack.frob.com>
22717
22718         * manual/contrib.texi: Completely rewritten. It contains now an
22719         alphabetical list of contributors and their contributions.
22720
22721 2012-05-21  Richard Henderson  <rth@twiddle.net>
22722
22723         * misc/getauxval.c (__getauxval): Use unsigned long int.
22724         * misc/sys/auxv.h: Include <sys/cdefs.h>.
22725         (getauxval): Use unsigned long int.
22726
22727 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
22728
22729         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
22730
22731 2012-05-21  Roland McGrath  <roland@hack.frob.com>
22732
22733         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
22734         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
22735         __alignof__ (long double).
22736
22737 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22738
22739         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22740
22741 2012-05-20  Richard Henderson  <rth@twiddle.net>
22742
22743         * misc/getauxval.c: New file.
22744         * misc/sys/auxv.h: New file.
22745         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
22746         (routines): Add getauxval.
22747         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
22748         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
22749         * elf/dl-sysdep.c (_dl_auxv): Remove.
22750         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
22751         * elf/dl-support.c (_dl_auxv): New variable.
22752         (_dl_aux_init): Initialize it.
22753         * manual/startup.texi (Auxiliary Vector): New node.
22754         * sysdeps/generic/bits/hwcap.h: New file.
22755         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
22756         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
22757         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
22758         * sysdeps/sparc/sysdep.h: ... here.  Include it.
22759         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
22760         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
22761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
22762         Update.
22763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
22764         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
22765         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
22766         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
22767         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
22768         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
22769         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
22770         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
22771
22772 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22773
22774         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22775
22776 2012-05-19  David S. Miller  <davem@davemloft.net>
22777
22778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22779
22780 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
22781
22782         [BZ #14123]
22783         * math/s_ccosh.c: Include <float.h>
22784         (__ccosh): Avoid internal overflow calculating sinh and cosh
22785         values before multiplying by sin and cos values.
22786         * math/s_ccoshf.c: Likewise.
22787         * math/s_ccoshl.c: Likewise.
22788         * math/s_csin.c: Likewise.
22789         * math/s_csinf.c: Likewise.
22790         * math/s_csinl.c: Likewise.
22791         * math/s_csinh.c: Likewise.
22792         * math/s_csinhf.c: Likewise.
22793         * math/s_csinhl.c: Likewise.
22794         * math/libm-test.inc (ccos_test): Add more tests.
22795         (ccosh_test): Likewise.
22796         (csin_test): Likewise.
22797         (csinh_test): Likewise.
22798         * sysdeps/i386/fpu/libm-test-ulps: Update.
22799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22800
22801 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
22802
22803         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
22804         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
22805
22806         * sysdeps/x86_64/x32/_itoa.h: Add comment.
22807
22808 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
22809
22810         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
22811         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
22812         * sysdeps/powerpc/soft-fp/Versions: Likewise.
22813         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
22814         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
22815         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
22816         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
22817         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
22818         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
22819         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
22820         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
22821         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
22822         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
22823         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
22824         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
22825         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
22826         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
22827         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
22828         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
22829         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
22830         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
22831         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
22832         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
22833         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
22834         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
22835         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
22836         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
22837         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
22838         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
22839         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
22840         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
22841
22842 2012-05-18  Andreas Jaeger  <aj@suse.de>
22843
22844         * csu/.gitignore: Delete.
22845
22846 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22847
22848         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
22849         (timex): Use __syscall_slong_t.
22850
22851 2012-05-18  Andreas Jaeger  <aj@suse.de>
22852             Carlos O'Donell  <carlos_odonell@mentor.com>
22853
22854         * manual/install.texi (Configuring and compiling): Update
22855         description about files modified in the source directory.
22856         * INSTALL: Regenerated.
22857
22858 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22859
22860         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
22861         value.  Use "or" to set return value to -1.
22862         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
22863         negate return value.
22864
22865 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22866
22867         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
22868         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
22869         failure if the compiler has Graphite support disabled.
22870         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
22871         Likewise.
22872         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
22873         CFLAGS-memmove.c): Likewise.
22874         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
22875         Likewise.
22876
22877 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22878
22879         * sysdeps/x86_64/x32/_itoa.h: New file.
22880
22881         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
22882         getdents system call only if kernel and user dirents have the
22883         same d_ino and d_off.
22884
22885         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
22886         LLONG_MAX != LONG_MAX.
22887         (_itoa_word): Use _ITOA_WORD_TYPE on value.
22888         (_fitoa_word): Likewise.
22889
22890         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
22891         years.
22892         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
22893         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
22894         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
22895
22896         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
22897         include <bits/wordsize.h>.  Check __x86_64__ instead of
22898         __WORDSIZE.
22899         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
22900         if __x86_64__ is defined.  Use anonymous union on fpstate.
22901
22902         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
22903         anonymous union.
22904
22905 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
22906
22907         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
22908         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
22909         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
22910         Refer to _rtld_local_ro instead of _rtld_global_ro.
22911         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
22912         Likewise.
22913         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
22914         Likewise.
22915         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
22916         Likewise.
22917         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
22918         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
22919         of _rtld_global, and rtld_progname instead of _dl_argv[0].
22920
22921         * sysdeps/powerpc/powerpc32/dl-machine.c
22922         (__elf_machine_runtime_setup) [PROF]: Don't reference
22923         _dl_prof_resolve.
22924
22925 2012-05-18  Andreas Jaeger  <aj@suse.de>
22926
22927         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
22928         function only available for GCCs before 3.4 since GCC 3.4
22929         introduced a builtin.
22930         (lrint): Likewise.
22931         (llrintf): Likewise.
22932         (llrint): Likewise.
22933         (fmaxf): Likewise.
22934         (fmax): Likewise.
22935         (fminf): Likewise.
22936         (fmin): Likewise.
22937         (rint): Likewise.
22938         (rintf): Likewise.
22939         (nearbyint): Likewise.
22940         (nearbyintf): Likewise.
22941         (ceil): Likewise.
22942         (ceilf): Likewise.
22943         (floor): Likewise.
22944         (floorf): Likewise.
22945
22946 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
22947
22948         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
22949         on both fields and cast pointer to __syscall_ulong_t.
22950
22951         * bits/types.h (__fsword_t): New type.
22952         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
22953         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
22954         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
22955         (__FSWORD_T_TYPE): Likewise.
22956         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
22957         (__FSWORD_T_TYPE): Likewise.
22958         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
22959         (__FSWORD_T_TYPE): Likewise.
22960         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
22961         (__FSWORD_T_TYPE): Likewise.
22962         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
22963         __SWORD_TYPE with __fsword_t.
22964         (statfs64): Likewise.
22965
22966 2012-05-17  David S. Miller  <davem@davemloft.net>
22967
22968         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
22969
22970 2012-05-17  Andreas Jaeger  <aj@suse.de>
22971
22972         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
22973         warning.
22974
22975 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
22976
22977         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
22978
22979 2012-05-17  Andreas Jaeger  <aj@suse.de>
22980
22981         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
22982         when it is used.
22983
22984 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
22985
22986         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
22987
22988 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
22989
22990         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
22991         * sysdeps/x86_64/tst-mallocalign1.c: New file.
22992
22993 2012-05-17  Andreas Jaeger  <aj@suse.de>
22994             Carlos O'Donell  <carlos_odonell@mentor.com>
22995
22996         [BZ #14059]
22997         * sysdeps/x86_64/multiarch/init-arch.h
22998         (bit_YMM_Usable): Rename to...
22999         (bit_AVX_Usable): ... this.
23000         (bit_FMA4_Usable): New macro.
23001         (bit_XMM_state): New macro.
23002         (bit_YMM_state): New macro.
23003         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
23004         [__ASSEMBLER__] (index_AVX_Usable): ... this.
23005         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
23006         (CPUID_OSXSAVE): New macro.
23007         (CPUID_AVX): New macro.
23008         (CPUID_FMA4): New macro.
23009         (index_YMM_Usable): Rename to...
23010         (index_AVX_Usable): ... this.
23011         (HAS_AVX): Use HAS_ARCH_FEATURE.
23012         (HAS_FMA4): Likewise.
23013         (HAS_YMM_USABLE): Remove.
23014         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23015         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
23016         are present.
23017         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
23018         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
23019         * sysdeps/x86_64/multiarch/Makefile: Likewise.
23020         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
23021         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
23022
23023 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
23024
23025         * math/libm-test.c: Support platforms without multiple rounding modes.
23026         * math/bug-nextafter.c: Support platforms without FP exceptions.
23027         * math/bug-nexttoward.c: Likewise.
23028         * math/test-fenv.c: Likewise.
23029         * math/test-misc.c: Likewise.
23030         * stdlib/bug-getcontext.c: Likewise.
23031
23032 2012-05-17  Andreas Jaeger  <aj@suse.de>
23033
23034         * manual/examples/search.c (critter_cmp): Change signature to
23035         avoid warnings.
23036         * manual/string.texi (Collation Functions): Likewise.
23037
23038 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23039
23040         * bits/types.h: Fold copyright years.
23041         * bits/typesizes.h: Likewise.
23042         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
23043         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
23044         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
23045         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
23046         * time/time.h: Likewise.
23047
23048 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
23049
23050         [BZ #208]
23051         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
23052         in instead of returning them.  Return void.
23053         (__libc_mallinfo): Accumulate over all arenas.
23054         (__malloc_stats): Adjust for change in int_mallinfo interface.
23055
23056 2012-05-16  Roland McGrath  <roland@hack.frob.com>
23057
23058         [BZ #10375]
23059         * configure.in (NM): Add AC_CHECK_TOOL for it.
23060         (libc_extra_cflags): New substituted variable.
23061         Check for -fstack-protector being used implicitly.
23062         * configure: Regenerated.
23063         * config.make.in (config-extra-cflags): New variable,
23064         gets @libc_extra_cflags@.
23065         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
23066
23067         [BZ #10375]
23068         * configure.in: Check for _FORTIFY_SOURCE being predefined.
23069         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
23070         * configure: Regenerated.
23071         * config.make.in (CPPUNDEFS): New substituted variable.
23072         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
23073         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
23074         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
23075
23076 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23077
23078         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
23079         (mq_attr): Use __syscall_slong_t.
23080
23081 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23082
23083         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
23084         Check __x86_64__ instead of __WORDSIZE.
23085         (_STAT_VER_LINUX): Likewise.
23086         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
23087         __syscall_ulong_t and __syscall_slong_t.
23088         (stat64): Likewise.
23089
23090 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23091
23092         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
23093
23094 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23095
23096         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
23097
23098 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23099
23100         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
23101         __syscall_ulong_t.
23102
23103         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
23104         include <bits/wordsize.h>.  Check __x86_64__ instead of
23105         __WORDSIZE.
23106         (greg_t): Use "__extension__ long long int" if __x86_64__ is
23107         defined.
23108         (mcontext_t): Replace "unsigned long" with "unsigned long long".
23109
23110         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
23111         include <bits/wordsize.h>.  Check __x86_64__ instead of
23112         __WORDSIZE.
23113         (user_regs_struct): Use "__extension__ unsigned long long"
23114         instead of "unsigned long" if __x86_64__ is defined.
23115         (user): Likewise.  Pad after pointer field if __ILP32__ is
23116         defined.
23117
23118 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
23119
23120         * configure.in (makeinfo): Require version 4.5 or later.  Allow
23121         versions 5 to 9.
23122         * configure: Regenerated.
23123         * manual/install.texi (texinfo): Increase version requirement to
23124         4.5 or later.
23125         * INSTALL: Regenerated.
23126
23127         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
23128
23129 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23130
23131         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
23132
23133         * sysdeps/x86_64/x32/ffs.c: New file.
23134
23135         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
23136         __syscall_ulong_t.
23137         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
23138         defined.  Use __syscall_ulong_t.
23139         (shminfo): Use __syscall_ulong_t.
23140         (shm_info): Likewise.
23141
23142         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
23143         __syscall_ulong_t.
23144
23145         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
23146         <bits/wordsize.h>.
23147         (msgqnum_t): Use __syscall_ulong_t.
23148         (msglen_t): Likewise.
23149         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
23150         __syscall_ulong_t.
23151
23152         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
23153         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23154
23155         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
23156
23157         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
23158         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
23159
23160         * sysvipc/sys/msg.h (msgbuf): Replace long int with
23161         __syscall_slong_t.
23162
23163         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
23164         include <bits/wordsize.h>.  Check __x86_64__ instead of
23165         __WORDSIZE.
23166
23167         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
23168         "unsigned long long int" if __x86_64__ is defined.
23169         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
23170
23171         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
23172         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23173         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
23174
23175         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
23176         <stdint.h>.
23177         (GET_PC): Cast to uintptr_t first.
23178         (GET_FRAME): Likewise.
23179         (GET_STACK): Likewise.
23180
23181         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
23182         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
23183         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
23184         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
23185         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
23186         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
23187         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
23188         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
23189         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
23190         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
23191         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
23192         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
23193         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
23194         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
23195         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
23196         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
23197         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
23198         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
23199         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
23200         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
23201         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
23202         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
23203         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
23204         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
23205         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
23206         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
23207         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
23208         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
23209         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
23210
23211 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
23212
23213         * Makerules (+depfiles): Also collect depfiles from .oS in
23214         $(extra-objs).
23215         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
23216         .oS, $(libnldbl-routines)).
23217
23218         * Makerules (native-compile-mkdep-flags): Define.
23219         * sunrpc/Makefile (extra-objs): Add $(addprefix
23220         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
23221         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
23222         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
23223         calling $(make-target-directory).
23224
23225 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23226
23227         * bits/types.h (__snseconds_t): Removed.
23228         * time/time.h (struct timespec): Replace __snseconds_t with
23229         __syscall_slong_t.
23230         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
23231         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
23232         Likewise.
23233         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23234         (__SNSECONDS_T_TYPE): Likewise.
23235         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23236         (__SNSECONDS_T_TYPE): Likewise.
23237         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23238         (__SNSECONDS_T_TYPE): Likewise.
23239
23240 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23241
23242         * sysdeps/mach/hurd/bits/typesizes.h
23243         (__SYSCALL_SLONG_TYPE): New macro.
23244         (__SYSCALL_ULONG_TYPE): Likewise.
23245
23246 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23247
23248         * bits/types.h (__syscall_slong_t): New type.
23249         (__syscall_ulong_t): Likewise.
23250
23251         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
23252         (__SYSCALL_ULONG_TYPE): Likewise.
23253         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23254         (__SYSCALL_SLONG_TYPE): Likewise.
23255         (__SYSCALL_ULONG_TYPE): Likewise.
23256         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23257         (__SYSCALL_SLONG_TYPE): Likewise.
23258         (__SYSCALL_ULONG_TYPE): Likewise.
23259         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23260         (__SYSCALL_SLONG_TYPE): Likewise.
23261         (__SYSCALL_ULONG_TYPE): Likewise.
23262
23263 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23264
23265         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
23266         Add sigaltstack-offsets.sym.
23267         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
23268         <sigaltstack-offsets.h>.
23269         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
23270         longjmp_msg pointer.
23271         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
23272         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
23273         signal stack.
23274         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
23275
23276 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
23277
23278         * elf/stackguard-macros.h: Remove file.
23279         * sysdeps/generic/stackguard-macros.h: New file.
23280         * sysdeps/i386/stackguard-macros.h: Likewise.
23281         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
23282         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
23283         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
23284         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
23285         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
23286         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
23287         * sysdeps/x86_64/stackguard-macros.h: Likewise.
23288         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
23289         <elf/stackguard-macros.h>.
23290
23291         [BZ #14109]
23292         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
23293         __aligned__ in attribute.
23294         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
23295         (gregset_t): Likewise.
23296
23297 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23298
23299         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
23300         * sysdeps/x86_64/64/Implies-after: Here.  New file.
23301         * sysdeps/x86_64/x32/Implies-after: New file.
23302
23303 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23304
23305         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
23306         and access return value for _dl_profile_fixup.  Use R10_LP to
23307         load frame size.
23308
23309 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23310
23311         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
23312
23313 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23314
23315         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
23316         * sysdeps/x86_64/x32/sysdep.h: New file.
23317
23318 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23319
23320         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
23321         * sysdeps/x86_64/setjmp.S: Likewise.
23322
23323 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23324
23325         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
23326         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
23327         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
23328         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
23329         remove unused global constant.
23330
23331 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
23332
23333         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
23334         include of <not-cancel.h>.
23335
23336 2012-05-15  Roland McGrath  <roland@hack.frob.com>
23337
23338         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
23339
23340 2012-05-15  Jeff Law  <law@redhat.com>
23341             Andreas Jaeger  <aj@suse.de>
23342
23343         [BZ #13594]
23344         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
23345         out from...
23346         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
23347         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
23348         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
23349         code changing __hst_map_handle.map.
23350
23351 2012-05-15  Roland McGrath  <roland@hack.frob.com>
23352
23353         * configure.in (sysnames): Look for Implies-before and Implies-after
23354         files.
23355         * configure: Regenerated.
23356
23357 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23358
23359         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
23360         8-byte data alignment with LP_SIZE alignment.
23361
23362 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23363
23364         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
23365         into R10_LP.
23366
23367 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23368
23369         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
23370
23371 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23372
23373         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
23374         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
23375         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
23376         Likewise.
23377         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
23378
23379 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23380
23381         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
23382         (stackinfo_sub_sp): Likewise.
23383
23384 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23385
23386         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
23387         RAX_LP.
23388
23389 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23390
23391         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
23392         into R*_LP.
23393
23394 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23395
23396         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
23397         sizes into R*_LP.
23398
23399 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23400
23401         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
23402
23403 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23404
23405         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
23406         into R11_LP and load __x86_64_shared_cache_size_half into
23407         R8_LP.
23408
23409 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23410
23411         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
23412         R8_LP.
23413
23414 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23415
23416         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
23417         logb for POWER7.
23418         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
23419         logbf for POWER7.
23420         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
23421         logbl for POWER7.
23422         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
23423         powerpc32/power7/fpu/s_logb.c via #include.
23424         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
23425         powerpc32/power7/fpu/s_logbf.c via #include.
23426         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
23427         powerpc32/power7/fpu/s_logbl.c via #include.
23428
23429 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
23430
23431         * README.libm: Remove file.
23432
23433 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23434
23435         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
23436         count for x32.  Use R*_LP and omit operand-size suffix.
23437
23438 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23439
23440         * shlib-versions: Move x86_64-.*-linux.* entries to ...
23441         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
23442         * sysdeps/x86_64/x32/shlib-versions: New file.
23443
23444 2012-05-14  Roland McGrath  <roland@hack.frob.com>
23445
23446         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
23447         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
23448         Use _dl_fatal_printf instead.
23449
23450 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
23451
23452         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
23453         set if not set by the user.  Do not allow for being unset.
23454         * sysdeps/unix/sysv/linux/configure: Regenerated.
23455
23456 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23457
23458         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
23459         the `q' suffix from lea and replace .quad with ASM_ADDR.
23460
23461 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23462
23463         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
23464         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
23465         instead of $17.
23466         (PTR_DEMANGLE): Likewise.
23467
23468 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23469
23470         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
23471         (LP_OP): Likewise.
23472         (ASM_ADDR): Likewise.
23473         (RAX_LP): Likewise.
23474         (RBP_LP): Likewise.
23475         (RBX_LP): Likewise.
23476         (RCX_LP): Likewise.
23477         (RDI_LP): Likewise.
23478         (RSI_LP): Likewise.
23479         (RSP_LP): Likewise.
23480         (R8_LP): Likewise.
23481         (R9_LP): Likewise.
23482         (R10_LP): Likewise.
23483         (R10_LP): Likewise.
23484         (R11_LP): Likewise.
23485         (R12_LP): Likewise.
23486         (R13_LP): Likewise.
23487         (R14_LP): Likewise.
23488         (R15_LP): Likewise.
23489
23490 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23491
23492         * sysdeps/x86_64/x32/dl-machine.h: New file.
23493
23494 2012-05-14  Andreas Jaeger  <aj@suse.de>
23495
23496         * manual/Makefile (subdir): Remove export of subdir.
23497         (all): Remove target.
23498         (.PHONY): Remove all from list.
23499         (mkinstalldirs): Remove.
23500         (.PHONY): Remove installdirs from list.
23501         ($(inst_infodir)/libc.info): Use make-target-directory.
23502         (installdirs): Remove.
23503         (subdir_%): Remove.
23504         (glibc-targets): Remove.
23505         (lib): Remove.
23506         (stubs): Remove.
23507         ($(objpfx)stubs ../po/manual.pot): Remove.
23508         ($(objpfx)stamp%): Remove.
23509         (make-target-directory): Remove.
23510         (subdir_install): Remove.
23511         (routines): Remove.
23512         (aux): Remove.
23513         (sources): Remove.
23514         (objects): Remove.
23515         (headers): Remove.
23516
23517         [BZ #13750]
23518         * manual/.gitignore: Remove, it's not needed anymore.
23519         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
23520         all files in it.
23521         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
23522         directory.
23523         (texis): Renamed to $(objpfx)texis.
23524         (texis-path): New, contains path to generated files.
23525         (chapters.%): Use texis-path for complete path, add extra argument
23526         libc-texinfo.sh.
23527         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
23528         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
23529         (summary,texi, stamp-summary): Use complete path of
23530         files. Generate files in build dir.
23531         (dir-add.texi): Build in build dir.
23532         (libm-err.texi,stamp-libm-err): Likewise.
23533         (version.texi, stamp-version): Likewise.
23534         (.%c.texi): Likewise.
23535         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
23536         (mostlyclean): Remove target.
23537         (realclean): Remove target.
23538         (generated): Add new variable with contents from mostlyclean and
23539         realclean, remove entries duplicated in common-mostlyclean, add
23540         stamp-libm-err and stamp-version.
23541         (generated-dirs): Add libc directory.
23542         ($(inst_infodir)/libc.info): Install files from build dir.
23543
23544         * manual/install.texi (Configuring and compiling): Adjust since
23545         the info files are not part of the tar ball anymore.
23546
23547 2012-05-14  Andreas Jaeger  <aj@suse.de>
23548
23549         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
23550         variable.
23551
23552 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
23553
23554         [BZ #13717]
23555         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
23556         to 2.2.0 where earlier.
23557         * sysdeps/unix/sysv/linux/configure: Regenerated.
23558         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
23559         Remove conditional code.
23560         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
23561         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
23562         Remove conditional code.
23563         [!__NR_lchown]: Likewise.
23564         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
23565         [__NR_lchown]: Likewise.
23566         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
23567         comment referencing __ASSUME_LCHOWN_SYSCALL.
23568         * sysdeps/unix/sysv/linux/i386/sigaction.c
23569         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23570         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23571         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
23572         Remove conditional code.
23573         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
23574         (__protocol_available): Remove #if 0 code.
23575         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
23576         conditional code.
23577         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
23578         * sysdeps/unix/sysv/linux/kernel-features.h
23579         (__ASSUME_GETCWD_SYSCALL): Don't define.
23580         (__ASSUME_REALTIME_SIGNALS): Likewise.
23581         (__ASSUME_PREAD_SYSCALL): Likewise.
23582         (__ASSUME_PWRITE_SYSCALL): Likewise.
23583         (__ASSUME_POLL_SYSCALL): Likewise.
23584         (__ASSUME_LCHOWN_SYSCALL): Likewise.
23585         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
23586         non-SPARC.
23587         (__ASSUME_SIOCGIFNAME): Don't define.
23588         (__ASSUME_MSG_NOSIGNAL): Likewise.
23589         (__ASSUME_SENDFILE): Define unconditionally.
23590         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
23591         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
23592         conditional code.
23593         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
23594         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
23595         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
23596         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
23597         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
23598         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
23599         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
23600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
23601         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
23602         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
23604         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
23605         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
23607         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23608         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
23610         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23611         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
23613         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
23614         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
23616         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
23617         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
23619         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23620         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
23622         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23623         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23624         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
23625         Remove conditional code.
23626         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23627         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
23628         Remove conditional code.
23629         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23630         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
23631         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
23632         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
23633         Remove conditional code.
23634         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23635         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
23636         Remove conditional code.
23637         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23638         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
23639         Remove conditional code.
23640         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23641         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
23642         Remove conditional code.
23643         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23644         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
23645         Remove conditional code.
23646         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23647         * sysdeps/unix/sysv/linux/sh/pwrite64.c
23648         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23649         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23650         * sysdeps/unix/sysv/linux/sigaction.c
23651         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23652         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23653         * sysdeps/unix/sysv/linux/sigpending.c
23654         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23655         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23656         * sysdeps/unix/sysv/linux/sigprocmask.c
23657         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23658         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23659         * sysdeps/unix/sysv/linux/sigsuspend.c
23660         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23661         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23662         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
23663         (__libc_missing_rt_sigs): Remove.
23664         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
23665         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
23666         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
23667         Remove conditional code.
23668         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
23669         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
23670         return 1.
23671         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
23672         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
23673         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
23674         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
23675
23676 2012-05-14  Andreas Jaeger  <aj@suse.de>
23677
23678         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
23679         it's not used in glibc.
23680         (__coshm1): Likewise.
23681         (__acosh1p): Likewise.
23682         (__sgn): Likewise.
23683
23684         * manual/string.texi (Copying and Concatenation): Add missing
23685         variable in concat example.
23686         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
23687
23688 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23689
23690         [BZ #14103]
23691         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
23692         __builtin_clzl with __builtin_clzll.
23693
23694 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23695
23696         [BZ #14104]
23697         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
23698         libc_freeres_ptr.
23699
23700 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23701
23702         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
23703         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
23704         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
23705         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
23706
23707 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
23708
23709         * NEWS: Update ia64 info.
23710
23711 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
23712
23713         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
23714         used as bcopy.
23715
23716 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
23717
23718         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
23719         * sysdeps/unix/syscalls.list (dup3): Likewise.
23720         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
23721         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
23722
23723 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
23724
23725         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
23726         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
23727
23728 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
23729
23730         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
23731         thread pointer.
23732         (TLS_IE): Use mov/add instead of movq/addq to load thread
23733         pointer.
23734         (TLS_GD_PREFIX): New.
23735         (TLS_GD): Use it.
23736
23737 2012-05-11  David S. Miller  <davem@davemloft.net>
23738
23739         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
23740         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
23741         (_FPU_SETCW): Likewise.
23742
23743 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
23744
23745         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
23746         is 32-byte aligned.
23747
23748 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
23749
23750         [BZ #11837]
23751         * iconvdata/gb18030.c: Update tables.
23752         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
23753         characters specially.
23754         (BODY for TO_LOOP): Add encoding of missing ranges.
23755
23756 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
23757
23758         [BZ #13673]
23759         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
23760         * sysdeps/mach/hurd/dup3.c: Likewise.
23761         * sysdeps/mach/hurd/readlinkat.c: Likewise.
23762         * sysdeps/powerpc/memmove.c:: Likewise.
23763
23764 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
23765
23766         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
23767         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
23768
23769 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
23770
23771         * elf/elf.h (R_X86_64_RELATIVE64): New.
23772         (R_X86_64_NUM): Updated.
23773         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
23774         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
23775         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
23776         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
23777         tst-quad1pie tst-quad2pie
23778         (modules-names): Add tst-quadmod1 tst-quadmod2.
23779         ($(objpfx)tst-quad1): New dependency.
23780         ($(objpfx)tst-quad2): Likewise.
23781         ($(objpfx)tst-quad1pie): Likewise.
23782         ($(objpfx)tst-quad2pie): Likewise.
23783         * sysdeps/x86_64/tst-quad1.c: New file.
23784         * sysdeps/x86_64/tst-quad1pie.c: New file.
23785         * sysdeps/x86_64/tst-quad2.c: Likewise.
23786         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
23787         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
23788         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
23789         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
23790         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
23791
23792 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23793
23794         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
23795         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
23796         * streams/stropts.h (t_scalar_t): Define type.
23797
23798         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
23799         (_PATH_PRESERVE): Set to "/var/lib".
23800         (_PATH_RWHODIR): Set to "/var/spool/rwho".
23801
23802         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
23803         instead of int.
23804
23805         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
23806         if __dir_mkfile succeeded.
23807
23808         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
23809         checking for _hurd_dtablesize.  Unlock it right after having
23810         finished _hurd_dtable allocation.
23811
23812 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23813
23814         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
23815         * sysdeps/mach/hurd/configure: Regenerated.
23816         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
23817         special-casing to...
23818         * sysdeps/gnu/configure.in: ... this new file.
23819         * sysdeps/unix/sysv/linux/configure: Regenerated.
23820         * sysdeps/gnu/configure: New generated file.
23821
23822         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
23823         for Linux: use nsec instead of usec, as well as:
23824         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
23825         members of type struct timespec.
23826         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
23827         New macros.
23828         (struct stat64): Likewise.
23829         (_STATBUF_ST_NSEC): New macro.
23830         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
23831
23832         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
23833         __strtoul_internal rather than strtoul.
23834
23835 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
23836
23837         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
23838         and reject them.
23839
23840 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23841
23842         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
23843         which preserves existing values.
23844         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
23845
23846 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
23847
23848         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
23849         TIMEOUT values.  Return EINVAL for NFDS values either negative or
23850         greater than FD_SETSIZE.
23851
23852 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23853
23854         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
23855         allocated, call __vm_protect to finish enabling the existing space, and
23856         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
23857         allocate the remainder.
23858
23859 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
23860
23861         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
23862         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
23863
23864 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23865
23866         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
23867         sysdeps/mach/hurd/readlink.c.
23868
23869         * posix/tst-sysconf.c (posix_options): Only use
23870         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
23871         _POSIX_SYNCHRONIZED_IO when they are defined
23872         * sysdeps/mach/hurd/bits/posix_opt.h:
23873         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
23874         (_XOPEN_REALTIME): Undefine macro.
23875         (_XOPEN_REALTIME_THREADS): Undefine macro.
23876         (_XOPEN_SHM): Undefine macro.
23877         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
23878         macro to -1.
23879         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
23880         macro to -1.
23881         (_POSIX_ASYNC_IO): Undefine macro.
23882         (_POSIX_PRIORITIZED_IO): Undefine macro.
23883         (_POSIX_SPIN_LOCKS): Define macro to -1.
23884
23885         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
23886         SA_NODEFER, SA_RESETHAND.
23887         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
23888         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
23889         F_DUPFD_CLOEXEC.
23890
23891 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23892
23893         * elf/Makefile (pldd-modules): Define unconditionally.
23894
23895 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23896
23897         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
23898
23899 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23900
23901         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
23902         Return ENOENT when name is empty.
23903         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
23904
23905 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23906
23907         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
23908
23909         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
23910
23911 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23912
23913         Fix mlock in all cases except non-readable pages.
23914         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
23915         instead of VM_PROT_ALL as parameter to __vm_wire function.
23916
23917         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
23918         (__mkdir): When path is `/', just fail with EEXIST.
23919         * sysdeps/mach/hurd/mkdirat.c: Likewise.
23920
23921 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23922
23923         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
23924         <sys/uio.h> (for writev).
23925         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
23926         and <sys/param.h> (for MIN).
23927
23928 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
23929
23930         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
23931         REQUESTED_TIME.  Properly set the remaining time and return EINTR
23932         if interrupted.
23933
23934 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23935
23936         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
23937         Depend on against $(link-rpcuserlibs).
23938
23939 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23940
23941         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
23942         (__libc_stack_end): Do not use attribute_relro.
23943         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
23944         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
23945         to libthread-provided value.
23946         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
23947         attribute_relro.
23948
23949 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23950
23951         [BZ #3748]
23952         * bits/libc-lock.h (__libc_once_get): New macro.
23953         * sysdeps/mach/bits/libc-lock.h: Likewise.
23954         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
23955         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
23956         instead of using implementation details.
23957
23958         * libio/fileops.c: Unconditionally include <kernel-features.h>.
23959         * libio/freopen.c: Likewise.
23960         * libio/freopen64.c: Likewise.
23961         * misc/syslog.c: Likewise.
23962         * nscd/connections.c: Likewise.
23963         * nscd/netgroupcache.c: Likewise.
23964         * sysdeps/posix/getcwd.c: Likewise.
23965
23966 2012-05-10  Roland McGrath  <roland@hack.frob.com>
23967
23968         * math/w_ilogbf.c: Add #include <limits.h>.
23969
23970 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23971
23972         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
23973         path instead of returning without unlocking.
23974
23975         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
23976         immediate-write ioctls.
23977         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
23978
23979 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23980
23981         * sysdeps/mach/hurd/i386/init-first.c (init): Use
23982         __builtin_frame_address instead of making assumptions about the
23983         location of the return address relative to DATA.  Force early load of
23984         the return address.
23985         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
23986         __builtin_frame_address.
23987
23988         dup3 for GNU Hurd.
23989         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
23990         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
23991         implement dup3 and do some further code clean-ups.
23992         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
23993         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
23994
23995 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23996
23997         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
23998
23999         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
24000         HURD_CRITICAL_END around holding _hurd_dtable_lock.
24001         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
24002         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
24003         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
24004         d->port.lock.
24005
24006         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
24007         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
24008         when handler == SIG_ERR, not when handler != SIG_ERR.
24009
24010 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24011
24012         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
24013         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
24014         definitions.
24015
24016         accept4 for GNU Hurd.
24017         * include/sys/socket.h (__libc_accept4): New prototype.
24018         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
24019         to implement __libc_accept4.
24020         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
24021         __libc_accept4.
24022         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
24023
24024         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
24025         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
24026         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
24027         signal-defines.sym.
24028
24029 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24030
24031         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
24032
24033 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24034
24035         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
24036         assertion on O_CLOEXEC flag.
24037         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
24038         * hurd/intern-fd.c: Likewise.
24039         * hurd/port2fd.c: Likewise.
24040
24041 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24042
24043         [BZ #3906]
24044         * bits/in.h (IPV6_PKTINFO): Define new macro.
24045         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
24046
24047 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24048
24049         [BZ #13954]
24050         [BZ #13955]
24051         [BZ #13956]
24052         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
24053         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
24054         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
24055         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
24056         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24057         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
24058         * math/libm-test.inc (logb_test) : Additional logb tests.
24059
24060 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
24061             Andreas Jaeger  <aj@suse.de>
24062
24063         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
24064         * configure: Regenerated.
24065         * config.h.in (LINK_OBSOLETE_RPC): New macro.
24066         * config.make.in (link-obsolete-rpc): New substituted variable.
24067         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
24068         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
24069         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
24070         (shared-only-routines): Don't set it under [link-obsolete-rpc],
24071         so that libc.a contains the symbols.
24072         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
24073         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
24074         * sunrpc/auth_none.c: Likewise.
24075         * sunrpc/auth_unix.c: Likewise.
24076         * sunrpc/authdes_prot.c: Likewise.
24077         * sunrpc/authuxprot.c: Likewise.
24078         * sunrpc/clnt_gen.c: Likewise.
24079         * sunrpc/clnt_perr.c: Likewise.
24080         * sunrpc/clnt_raw.c: Likewise.
24081         * sunrpc/clnt_simp.c: Likewise.
24082         * sunrpc/clnt_tcp.c: Likewise.
24083         * sunrpc/clnt_udp.c: Likewise.
24084         * sunrpc/clnt_unix.c: Likewise.
24085         * sunrpc/des_crypt.c: Likewise.
24086         * sunrpc/des_soft.c: Likewise.
24087         * sunrpc/get_myaddr.c: Likewise.
24088         * sunrpc/key_call.c: Likewise.
24089         * sunrpc/key_prot.c: Likewise.
24090         * sunrpc/netname.c: Likewise.
24091         * sunrpc/pm_getmaps.c: Likewise.
24092         * sunrpc/pm_getport.c: Likewise.
24093         * sunrpc/pmap_clnt.c: Likewise.
24094         * sunrpc/pmap_prot.c: Likewise.
24095         * sunrpc/pmap_prot2.c: Likewise.
24096         * sunrpc/pmap_rmt.c: Likewise.
24097         * sunrpc/publickey.c: Likewise.
24098         * sunrpc/rpc_cmsg.c: Likewise.
24099         * sunrpc/rpc_common.c: Likewise.
24100         * sunrpc/rpc_dtable.c: Likewise.
24101         * sunrpc/rpc_prot.c: Likewise.
24102         * sunrpc/rpc_thread.c: Likewise.
24103         * sunrpc/rtime.c: Likewise.
24104         * sunrpc/svc.c: Likewise.
24105         * sunrpc/svc_auth.c: Likewise.
24106         * sunrpc/svc_raw.c: Likewise.
24107         * sunrpc/svc_run.c: Likewise.
24108         * sunrpc/svc_tcp.c: Likewise.
24109         * sunrpc/svc_udp.c: Likewise.
24110         * sunrpc/svc_unix.c: Likewise.
24111         * sunrpc/svcauth_des.c: Likewise.
24112         * sunrpc/xcrypt.c: Likewise.
24113         * sunrpc/xdr.c: Likewise.
24114         * sunrpc/xdr_array.c: Likewise.
24115         * sunrpc/xdr_float.c: Likewise.
24116         * sunrpc/xdr_intXX_t.c: Likewise.
24117         * sunrpc/xdr_mem.c: Likewise.
24118         * sunrpc/xdr_rec.c: Likewise.
24119         * sunrpc/xdr_ref.c: Likewise.
24120         * sunrpc/xdr_sizeof.c: Likewise.
24121         * sunrpc/xdr_stdio.c: Likewise.
24122
24123 2012-05-10  Roland McGrath  <roland@hack.frob.com>
24124
24125         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
24126         change.  Update copyright years.
24127
24128 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
24129
24130         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
24131
24132 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
24133             Joseph Myers  <joseph@codesourcery.com>
24134             Paul Pluzhnikov  <ppluzhnikov@google.com>
24135
24136         [BZ #14012]
24137         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
24138         requiring rpcgen.
24139         [cross-compiling] (extra-libs): Likewise.
24140         [cross-compiling] (extra-libs-others): Likewise.
24141         [cross-compiling] (librpcsvc-routines): Likewise.
24142         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
24143         [cross-compiling] (omit-deps): Likewise.
24144         (sunrpc-CPPFLAGS): New variable.
24145         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
24146         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
24147         (cross-rpcgen-objs): New variable.
24148         (extra-objs): Append $(cross-rpcgen-objs).
24149         ($(cross-rpcgen-objs)): New rule.
24150         ($(objpfx)cross-rpcgen): Likewise.
24151         (rpcgen-cmd): Define to use $(built-program-file).  Expand
24152         comment.
24153         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
24154         ($(objpfx)x%.stmp): Likewise.
24155         * sunrpc/proto.h [IS_IN_build] (_): Define.
24156         [IS_IN_build] (_libc_intl_domainname): Likewise.
24157
24158 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24159
24160         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
24161         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
24162         and R_X86_64_TPOFF64.
24163
24164 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
24165
24166         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
24167         sysdeps/unix/sysv/syscalls.list.
24168         (stime): Likewise.
24169         (utime): Likewise.
24170         * sysdeps/unix/sysv/syscalls.list: Remove file.
24171
24172 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
24173
24174         [BZ #3440]
24175         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
24176         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
24177         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
24178         (__LC_IDENTIFICATION): Make these macros useful in #if
24179         expressions, as required by C99.
24180
24181 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
24182
24183         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
24184         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
24185         after this.
24186
24187 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
24188
24189         * stdlib/longlong.h: Updated from GCC.
24190
24191 2012-05-09  Andreas Jaeger  <aj@suse.de>
24192
24193         * nscd/nscd.c (run_modes): Make named enum, reorder so that
24194         default is first entry.
24195         (run_mode): Set type.
24196         (main): Remove informal message about syslog.
24197         (options): Fix typo.
24198
24199         [BZ #14053]
24200         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
24201         to asm.
24202         (lrint): Likewise.
24203         (llrintf): Likewise.
24204         (llrint): Likewise.
24205         (rint): Likewise.
24206         (rintf): Likewise.
24207         (nearbyint): Likewise.
24208         (nearbyintf): Likewise.
24209
24210 2012-05-09  Andreas Jaeger  <aj@suse.de>
24211             Pedro Alves  <palves@redhat.com>
24212
24213         * nscd/nscd.c (run_mode): Use enum.
24214         (main): Cleanup coding style issue.
24215
24216 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
24217             Andreas Jaeger  <aj@suse.de>
24218
24219         * nscd/nscd.c (go_background): Replaced with...
24220         (run_mode): ... this.
24221         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
24222         (options): Add -F --foreground.
24223         (main): Implement it.
24224         (parse_opt): Parse it.
24225
24226 2012-05-09  Andreas Jaeger  <aj@suse.de>
24227
24228         [BZ #14083]
24229         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
24230         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
24231         -Wconversion warning.
24232         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
24233         Likewise.
24234
24235 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
24236
24237         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
24238         == 0.
24239         (LC_ALL): Use macro-int-constant.
24240         (LC_COLLATE): Likewise.
24241         (LC_CTYPE): Likewise.
24242         (LC_MESSAGES): Likewise.
24243         (LC_MONETARY): Likewise.
24244         (LC_NUMERIC): Likewise.
24245         (LC_TIME): Likewise.
24246         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
24247         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
24248         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24249         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
24250         Specify type.
24251         [C99-based standards] (float_t): Expect type.
24252         [C99-based standards] (double_t): Expect type.
24253         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
24254         type.
24255         [C99-based standards] (HUGE_VALL): Likewise.
24256         [C99-based standards] (INFINITY): Likewise.
24257         [C99-based standards] (NAN): Likewise.
24258         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
24259         [C99-based standards] (FP_NAN): Likewise.
24260         [C99-based standards] (FP_NORMAL): Likewise.
24261         [C99-based standards] (FP_SUBNORMAL): Likewise.
24262         [C99-based standards] (FP_ZERO): Likewise.
24263         [C99-based standards] (FP_FAST_FMA): Use
24264         optional-macro-int-constant.  Specify type.  Require == 1.
24265         [C99-based standards] (FP_FAST_FMAF): Likewise.
24266         [C99-based standards] (FP_FAST_FMAL): Likewise.
24267         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
24268         [C99-based standards] (FP_ILOGBNAN): Likewise.
24269         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
24270         Specify type.
24271         [C99-based standards] (MATH_ERREXCEPT): Likewise.
24272         [C99-based standards] (math_errhandling): Specify type.
24273         [ISO99 || ISO11] (signgam): Do not allow.
24274         [non-C99-based standards] (copysignf): Do not allow.
24275         [non-C99-based standards] (exp2f): Likewise.
24276         [non-C99-based standards] (log2f): Likewise.
24277         [non-C99-based standards] (modff): Allow.
24278         [non-C99-based standards] (erff): Do not allow.
24279         [non-C99-based standards] (erfcf): Likewise.
24280         [non-C99-based standards] (gammaf): Likewise.
24281         [non-C99-based standards] (hypotf): Likewise.
24282         [non-C99-based standards] (j0f): Likewise.
24283         [non-C99-based standards] (j1f): Likewise.
24284         [non-C99-based standards] (jnf): Likewise.
24285         [non-C99-based standards] (lgammaf): Likewise.
24286         [non-C99-based standards] (tgammaf): Likewise.
24287         [non-C99-based standards] (y0f): Likewise.
24288         [non-C99-based standards] (y1f): Likewise.
24289         [non-C99-based standards] (ynf): Likewise.
24290         [non-C99-based standards] (isnanf): Likewise.
24291         [non-C99-based standards] (acoshf): Likewise.
24292         [non-C99-based standards] (asinhf): Likewise.
24293         [non-C99-based standards] (atanhf): Likewise.
24294         [non-C99-based standards] (cbrtf): Likewise.
24295         [non-C99-based standards] (expm1f): Likewise.
24296         [non-C99-based standards] (ilogbf): Likewise.
24297         [non-C99-based standards] (log1pf): Likewise.
24298         [non-C99-based standards] (logbf): Likewise.
24299         [non-C99-based standards] (nextafterf): Likewise.
24300         [non-C99-based standards] (remainderf): Likewise.
24301         [non-C99-based standards] (rintf): Likewise.
24302         [non-C99-based standards] (scalbf): Likewise.
24303         [non-C99-based standards] (copysignl): Likewise.
24304         [non-C99-based standards] (exp2l): Likewise.
24305         [non-C99-based standards] (log2l): Likewise.
24306         [non-C99-based standards] (modfl): Allow.
24307         [non-C99-based standards] (erfl): Do not allow.
24308         [non-C99-based standards] (erfcl): Likewise.
24309         [non-C99-based standards] (gammal): Likewise.
24310         [non-C99-based standards] (hypotl): Likewise.
24311         [non-C99-based standards] (j0l): Likewise.
24312         [non-C99-based standards] (j1l): Likewise.
24313         [non-C99-based standards] (jnl): Likewise.
24314         [non-C99-based standards] (lgammal): Likewise.
24315         [non-C99-based standards] (tgammal): Likewise.
24316         [non-C99-based standards] (y0l): Likewise.
24317         [non-C99-based standards] (y1l): Likewise.
24318         [non-C99-based standards] (ynl): Likewise.
24319         [non-C99-based standards] (isnanl): Likewise.
24320         [non-C99-based standards] (acoshl): Likewise.
24321         [non-C99-based standards] (asinhl): Likewise.
24322         [non-C99-based standards] (atanhl): Likewise.
24323         [non-C99-based standards] (cbrtl): Likewise.
24324         [non-C99-based standards] (expm1l): Likewise.
24325         [non-C99-based standards] (ilogbl): Likewise.
24326         [non-C99-based standards] (log1pl): Likewise.
24327         [non-C99-based standards] (logbl): Likewise.
24328         [non-C99-based standards] (nextafterl): Likewise.
24329         [non-C99-based standards] (remainderl): Likewise.
24330         [non-C99-based standards] (rintl): Likewise.
24331         [non-C99-based standards] (scalbl): Likewise.
24332         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24333         [non-C99-based standards] (FP_*): Do not allow.
24334         [C99-based standards] (FP_*): Change to
24335         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
24336         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
24337         allow.
24338         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
24339         (SIG_ERR): Likewise.
24340         [X/Open-based standards] (SIG_HOLD): Likewise.
24341         (SIG_IGN): Likewise.
24342         (SIGABRT): Use macro-int-constant.  Specify type.  Require
24343         positive value.
24344         (SIGFPE): Likewise.
24345         (SIGILL): Likewise.
24346         (SIGINT): Likewise.
24347         (SIGSEGV): Likewise.
24348         (SIGTER): Likewise.
24349         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
24350         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
24351         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
24352         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
24353         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
24354         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
24355         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
24356         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
24357         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
24358         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
24359         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
24360         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
24361         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
24362         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
24363         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
24364         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
24365         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
24366         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
24367         [X/Open-based standards] (SIGTRAP): Likewise.
24368         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
24369         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
24370         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
24371         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
24372         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
24373         allow.
24374
24375 2012-05-08  Ian Wienand  <ianw@vmware.com>
24376
24377         [BZ #14080]
24378         * time/tzset.c (__tzset_parse_tz): Update default rules for
24379         daylight time changes in the Energy Policy Act of 2005.
24380
24381 2012-05-09  Andreas Jaeger  <aj@suse.de>
24382
24383         [BZ #13983]
24384         * elf/ldconfig.c (parse_conf): Change string to make clear that
24385         ldconfig only issued a warning if ld.so.conf does not exist.
24386
24387 2012-05-08  David S. Miller  <davem@davemloft.net>
24388
24389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
24390         movxtod instead of popping the value on the stack.
24391
24392         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24393
24394 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
24395
24396         * config.h.in: Add HAVE_ARM_PCS_VFP.
24397
24398 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
24399
24400         [BZ #13979]
24401         * include/features.h: Warn if user requests __FORTIFY_SOURCE
24402         checking but the checks are disabled for any reason.
24403
24404 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
24405
24406         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
24407         and ELF64_R_TYPE with ELFW(R_TYPE).
24408
24409 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
24410
24411         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
24412         (ulimit): Likewise.
24413
24414         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
24415         (settimeofday): Likewise.
24416
24417 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
24418
24419         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
24420         a struct th_u2 inside the union, and move tu_block/tu_code into
24421         a new th_u3 union of tu_block/tu_code inside of that.  Move
24422         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
24423         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
24424         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
24425         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
24426         (th_stuff): Change to th_u1.tu_stuff.
24427         (th_data): Define.
24428         (th_msg): Change to th_u1.th_u2.tu_data.
24429
24430 2012-05-07  David S. Miller  <davem@davemloft.net>
24431
24432         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24433
24434         [BZ #14074]
24435         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
24436         (SETUP_PIC_REG): Use it.
24437         (SETUP_PIC_REG_LEAF): Use it.
24438
24439 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
24440
24441         [BZ #13885]
24442         [BZ #13923]
24443         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
24444         USE_AS_EXPM1L.
24445         (EXPL_FINITE): Likewise.
24446         (FLDLOG): Likewise.
24447         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
24448         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
24449         e_expl.S.
24450         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
24451         USE_AS_EXPM1L.
24452         (EXPL_FINITE): Likewise.
24453         (FLDLOG): Likewise.
24454         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
24455         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
24456         e_expl.S.
24457         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
24458         test of -max_value argument for long double.
24459         * sysdeps/i386/fpu/libm-test-ulps: Update.
24460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24461
24462 2012-05-06  David S. Miller  <davem@davemloft.net>
24463
24464         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
24465         quad soft-float symbols whose references which are compiler
24466         generated.
24467         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
24468
24469 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
24470
24471         [BZ #13884]
24472         [BZ #13914]
24473         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
24474         USE_AS_EXP10L.
24475         (EXPL_FINITE): Likewise.
24476         (FLDLOG): Likewise.
24477         (c0): Likewise.
24478         (c1): Likewise.
24479         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
24480         Adjust comments for base varying.
24481         (__expl_finite): Change alias to EXPL_FINITE.
24482         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
24483         e_expl.S.
24484         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
24485         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
24486         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
24487         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
24488         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
24489         USE_AS_EXP10L.
24490         (EXPL_FINITE): Likewise.
24491         (FLDLOG): Likewise.
24492         (c0): Likewise.
24493         (c1): Likewise.
24494         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
24495         Adjust comments for base varying.
24496         (__expl_finite): Change alias to EXPL_FINITE.
24497         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
24498         tests for bugs.
24499         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24500
24501         [BZ #14064]
24502         * math/libm-test.inc (check_float_internal): Correct ulp
24503         calculation for subnormal expected results.
24504
24505 2012-05-06  Andreas Jaeger  <aj@suse.de>
24506
24507         * Makeconfig (+math-flags): New, set to -frounding-math.
24508         (+cflags): Add +math-flags so that all of glibc gets compiled with
24509         it.
24510
24511         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
24512
24513 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
24514
24515         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
24516         Disable one test.
24517
24518         [BZ #13787]
24519         [BZ #13922]
24520         [BZ #14036]
24521         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
24522         (__ieee754_expl): Allow for and saturate large arguments.
24523         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
24524         (u_threshold): Likewise.
24525         (__exp): Call __ieee754_exp before checking for overflow and
24526         underflow.
24527         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
24528         (u_threshold): Likewise.
24529         (__expf): Call __ieee754_expf before checking for overflow and
24530         underflow.
24531         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
24532         (u_threshold): Likewise.
24533         (__expl): Call __ieee754_expl before checking for overflow and
24534         underflow.
24535         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
24536         (__ieee754_expl): Allow for and saturate large arguments.
24537         * math/libm-test.inc (exp_test): Add another test.  Do not allow
24538         missing overflow exception on overflow.
24539         (expm1_test): Do not allow missing overflow exception on overflow.
24540
24541         * sysdeps/i386/fpu/e_expl.c: Move to ...
24542         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
24543         rather than using inline asm.
24544         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
24545         * sysdeps/x86_64/fpu/e_expl.S: Copy from
24546         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
24547
24548         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
24549         (nice): Likewise.
24550         (poll): Likewise.
24551         (signal): Likewise.
24552         (time): Likewise.
24553         (times): Likewise.
24554
24555 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
24556
24557         * sysdeps/unix/syscalls.list (adjtime): Add entry from
24558         sysdeps/unix/common/syscalls.list.
24559         (fchmod): Likewise.
24560         (fchown): Likewise.
24561         (ftruncate): Likewise.
24562         (getrusage): Likewise.
24563         (gettimeofday): Likewise.
24564         (setpgid): Likewise.
24565         (setregid): Likewise.
24566         (setreuid): Likewise.
24567         (sigaction): Likewise.
24568         (truncate): Likewise.
24569         (vhangup): Likewise.
24570         * sysdeps/unix/common/syscalls.list: Remove file.
24571         * sysdeps/unix/bsd/Implies: Don't include unix/common.
24572         * sysdeps/unix/sysv/linux/Implies: Likewise.
24573
24574 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
24575
24576         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
24577         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
24578         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
24579         Moved to ...
24580         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
24581         Here.
24582         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
24583         to ...
24584         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
24585         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
24586         to ...
24587         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
24588         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
24589         to ...
24590         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
24591         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
24592         to ...
24593         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
24594         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
24595         to ...
24596         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
24597         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
24598         to ...
24599         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
24600         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
24601         to ...
24602         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
24603         Here.
24604         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
24605         to ...
24606         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
24607         Here.
24608         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
24609         to ...
24610         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
24611         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
24612         Moved to ...
24613         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
24614         Here.
24615         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
24616         to ...
24617         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
24618
24619 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
24620
24621         * sysdeps/unix/common/bits/dirent.h: Remove file.
24622         * sysdeps/unix/common/bits/fcntl.h: Likewise.
24623
24624         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
24625         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
24626         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
24627         * sysdeps/unix/bsd/isatty.c: Likewise.
24628         * sysdeps/unix/bsd/tcdrain.c: Likewise.
24629         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
24630         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
24631
24632 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24633
24634         [BZ #13563]
24635         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
24636         long double comparison inaccuracies.
24637         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
24638         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24639
24640 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
24641
24642         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
24643         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
24644
24645 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
24646
24647         [BZ #14049]
24648         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
24649         nonzero digits before rounding a hex value.
24650         * stdlib/tst-strtod.c (tests): Add another test.
24651
24652 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24653
24654         * sysdeps/s390/fpu/libm-test-ulps: Update.
24655
24656 2012-05-03  Andreas Jaeger  <aj@suse.de>
24657
24658         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
24659         does not get optimized out.
24660         (malloc_opt_barrier): New.
24661
24662 2012-05-03  Andreas Jaeger  <aj@suse.de>
24663             Roland McGrath  <roland@hack.frob.com>
24664
24665         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
24666         intermediate file deletion.
24667         (generated): Add .symlist files.
24668
24669 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
24670
24671         [BZ #13775]
24672         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
24673         Redirect under this condition.
24674         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
24675         [__USE_GNU] (__dprintf_chk): Not under this condition.
24676         [__USE_GNU] (__vdprintf_chk): Likewise.
24677         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
24678         under this condition.
24679         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
24680         [__USE_XOPEN2K8] (dprintf): Define under this condition.
24681         [__USE_XOPEN2K8] (vdprintf): Likewise.
24682         [__USE_GNU] (__dprintf_chk): Not under this condition.
24683         [__USE_GNU] (__vdprintf_chk): Likewise.
24684         [__USE_GNU] (dprintf): Likewise.
24685         [__USE_GNU] (vdprintf): Likewise.
24686
24687 2012-05-03  Roland McGrath  <roland@hack.frob.com>
24688
24689         * elf/Makefile (common-generated): Set this instead of generated for
24690         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
24691         $(all-built-dso)-derived lists.
24692
24693 2012-05-03  Andreas Jaeger  <aj@suse.de>
24694
24695         * sysdeps/i386/fpu/libm-test-ulps: Update.
24696
24697         * FAQ: Removed.
24698         * FAQ.in: Likewise.
24699         * scripts/gen-FAQ.pl: Likewise.
24700         * manual/install.texi (Installation): Point to online location of
24701         FAQ.
24702         * Makefile (files-for-dist): Remove FAQ.
24703         (FAQ): Remove.
24704
24705 2012-05-02  Allan McRae  <allan@archlinux.org>
24706
24707         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
24708         (LDFLAGS-reldepmod5.so): Likewise.
24709         (LDFLAGS-reldep6mod1.so): Likewise.
24710         (LDFLAGS-reldep6mod4.so): Likewise.
24711         (LDFLAGS-reldep8mod3.so): Likewise.
24712         (LDFLAGS-unload4mod1.so): Likewise.
24713         (LDFLAGS-unload4mod2.so): Likewise.
24714         (LDFLAGS-tst-initorder): Likewise.
24715         (LDFLAGS-tst-initordera2.so): Likewise.
24716         (LDFLAGS-tst-initordera3.so): Likewise.
24717         (LDFLAGS-tst-initordera4.so): Likewise.
24718         (LDFLAGS-tst-initorderb2.so): Likewise.
24719         (LDFLAGS-noload): Likewise.
24720         (LDFLAGS-next): Likewise.
24721         (LDFLAGS-order2mod1.so): Likewise.
24722         (LDFLAGS-order2mod2.so): Likewise.
24723         (LDFLAGS-tst-initorder2): Likewise.
24724         (LDFLAGS-tst-initorder2a.so): Likewise.
24725         (LDFLAGS-tst-initorder2b.so): Likewise.
24726         (LDFLAGS-tst-initorder2c.so): Likewise.
24727         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
24728
24729 2012-05-02  David S. Miller  <davem@davemloft.net>
24730
24731         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24732
24733 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
24734
24735         [BZ #14055]
24736         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
24737
24738 2012-05-02  Andreas Jaeger  <aj@suse.de>
24739
24740         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
24741         since we manipulate rounding mode.
24742         (CPPFLAGS-test-idouble.c): Likewise.
24743         (CPPFLAGS-test-ifloat.c): Likewise.
24744         (CFLAGS-test-ldouble.c): Likewise.
24745         (CFLAGS-test-double.c): Likewise.
24746         (CFLAGS-test-float.c): Likewise.
24747         (CFLAGS-test-misc.c): Likewise.
24748         (CFLAGS-test-test-fenv.c): Likewise.
24749
24750 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24751
24752         [BZ #2550]
24753         [BZ #2570]
24754         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
24755         comparisons to determine direction to adjust input.
24756
24757 2012-05-01  Roland McGrath  <roland@hack.frob.com>
24758
24759         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
24760         output to the target.
24761
24762         * scripts/localplt.awk: New file.
24763         * elf/Makefile ($(objpfx)check-localplt): Target removed.
24764         (check-localplt-CFLAGS): Variable removed.
24765         ($(all-built-dso:=.jmprel)): New static pattern rule.
24766         (generated): Add those targets.
24767         (localplt-built-dso): New variable.
24768         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
24769
24770         * elf/check-localplt.c: File removed.
24771
24772         * scripts/check-execstack.awk: New file.
24773         * elf/Makefile ($(objpfx)check-execstack): Target removed.
24774         (check-execstack-CFLAGS): Variable removed.
24775         ($(objpfx)check-execstack.h): Target removed.
24776         ($(objpfx)execstack-default): New target.
24777         (generated): Add that instead of check-execstack.h.
24778         ($(all-built-dso:=.phdr)): New static pattern rule.
24779         (generated): Add those targets.
24780         * elf/check-execstack.c: File removed.
24781
24782         * scripts/check-textrel.awk: New file.
24783         * elf/Makefile ($(objpfx)check-textrel): Target removed.
24784         (check-textrel-CFLAGS): Variable removed.
24785         (all-built-dso): Use := to define.o
24786         ($(all-built-dso:=.dyn)): New static pattern rule.
24787         (generated): Add those targets.
24788         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
24789         * config.make.in (READELF): New substituted variable.
24790         * elf/check-textrel.c: File removed.
24791
24792 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
24793
24794         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
24795         allow.
24796         * conform/data/ctype.h-data [C99-based standards] (isblank):
24797         Expect function.
24798         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
24799         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
24800         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24801         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
24802         Specify type.  Require positive value.
24803         (EILSEQ): Likewise.
24804         (ERANGE): Likewise.
24805         [ISO || POSIX] (EILSEQ): Do not expect.
24806         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
24807         Specify type.  Require positive value.
24808         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
24809         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
24810         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
24811         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
24812         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
24813         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
24814         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
24815         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
24816         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
24817         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
24818         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
24819         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
24820         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
24821         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
24822         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
24823         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
24824         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
24825         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
24826         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
24827         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
24828         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
24829         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
24830         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
24831         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
24832         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
24833         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
24834         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
24835         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
24836         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
24837         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
24838         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
24839         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
24840         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
24841         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
24842         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
24843         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
24844         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
24845         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
24846         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
24847         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
24848         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
24849         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
24850         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
24851         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
24852         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
24853         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
24854         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
24855         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
24856         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
24857         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
24858         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
24859         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
24860         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
24861         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
24862         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
24863         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
24864         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
24865         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
24866         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
24867         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
24868         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
24869         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
24870         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
24871         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
24872         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
24873         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
24874         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
24875         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
24876         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
24877         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
24878         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
24879         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
24880         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
24881         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
24882         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
24883         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
24884         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
24885         Require >= 2.
24886         (FLT_ROUNDS): Expect as macro, not constant.
24887         (FLT_MANT_DIG): Use macro-int-constant.
24888         (DBL_MANT_DIG): Likewise.
24889         (LDBL_MANT_DIG): Likewise.
24890         (FLT_DIG): Likewise.
24891         (DBL_DIG): Likewise.
24892         (LDBL_DIG): Likewise.
24893         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
24894         (DBL_MIN_EXP): Likewise.
24895         (LDBL_MIN_EXP): Likewise.
24896         (FLT_MAX_EXP): Use macro-int-constant.
24897         (DBL_MAX_EXP): Likewise.
24898         (LDBL_MAX_EXP): Likewise.
24899         (FLT_MAX_10_EXP): Likewise.
24900         (DBL_MAX_10_EXP): Likewise.
24901         (LDBL_MAX_10_EXP): Likewise.
24902         (FLT_MAX): Use macro-constant.
24903         (DBL_MAX): Likewise.
24904         (LDBL_MAX): Likewise.
24905         (FLT_EPSILON): Use macro-constant.  Give upper bound.
24906         (DBL_EPSILON): Likewise.
24907         (LDBL_EPSILON): Likewise.
24908         (FLT_MIN): Likewise.
24909         (DBL_MIN): Likewise.
24910         (LDBL_MIN): Likewise.
24911         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
24912         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
24913         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
24914         [ISO11] (FLT_HAS_SUBNORM): Likewise.
24915         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
24916         [ISO11] (DBL_DECIMAL_DIG): Likewise.
24917         [ISO11] (FLT_DECIMAL_DIG): Likewise.
24918         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
24919         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
24920         [ISO11] (FLT_TRUE_MIN): Likewise.
24921         [ISO11] (LDBL_TRUE_MIN): Likewise.
24922         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24923         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
24924         (SCHAR_MIN): Use macro-int-constant.  Specify type.
24925         (SCHAR_MAX): Likewise.
24926         (UCHAR_MAX): Likewise.
24927         (CHAR_MIN): Likewise.
24928         (CHAR_MAX): Likewise.
24929         (MB_LEN_MAX): Use macro-int-constant.
24930         (SHRT_MIN): Use macro-int-constant.  Specify type.
24931         (SHRT_MAX): Likewise.
24932         (USHRT_MAX): Likewise.
24933         (INT_MAX): Likewise.
24934         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
24935         bound negative.
24936         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
24937         bound with "U".
24938         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
24939         bound with "L".
24940         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
24941         bound negative.  Suffix upper bound with "L".
24942         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
24943         bound with "UL".
24944         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
24945         Specify type.
24946         [C99-based standards] (LLONG_MAX): Likewise.
24947         [C99-based standards] (ULLONG_MAX): Likewise.
24948         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
24949         == 0.
24950         [ISO11] (max_align_t): Require type.
24951         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24952
24953         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
24954         from $CFLAGS, without defining away __attribute__ calls.
24955         (checknamespace): Use $CFLAGS_namespace.
24956
24957         * conform/conformtest.pl (@keywords): Only include C99 keywords
24958         for standards based on C99 or C11.
24959
24960         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
24961         Disable tests.
24962         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
24963         UNIX98]: Likewise.
24964
24965         * conform/conformtest.pl: Handle "macro-int-constant" and test for
24966         usability of symbols in #if.
24967
24968         * conform/conformtest.pl: If macro or constant types start
24969         "promoted:", expect the symbol to be of the following type
24970         promoted by the integer promotions.
24971
24972         * conform/conformtest.pl: Parse all "constant" and "macro" lines
24973         in one place.  Also handle "macro-constant".
24974
24975         * conform/conformtest.pl: Only accept expected macro values with
24976         "==".  Parse all "macro" lines in one place.
24977         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
24978
24979         * conform/conformtest.pl: Handle braced types on "constant" lines
24980         instead of handling "typed-constant".
24981         * conform/data/signal.h-data: Use "constant" instead of
24982         "typed-constant".
24983
24984         * conform/conformtest.pl: Handle "optional-" at start of lines in
24985         one place rather than duplicating several cases.  Handle each
24986         format of "macro" line with initial "optional-".
24987
24988         * conform/conformtest.pl: Only accept expected constant or
24989         optional-constant values with "==".  Parse all "constant" lines in
24990         one place.  Parse all "optional-constant" lines in one place.
24991         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
24992         * conform/data/fmtmsg.h-data: Likewise.
24993         * conform/data/netinet/in.h-data: Likewise.
24994         * conform/data/tar.h-data: Likewise.
24995         * conform/data/limits.h-data: Use "==" form on "constant" and
24996         "optional-constant" lines.
24997
24998         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
24999         Use -std=c99 for XOPEN2K.
25000         (@knownproblems): Remove.
25001         (newtoken): Don't check %isknown.
25002
25003         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
25004         Do not expect macro.
25005         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
25006         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
25007         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
25008         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
25009         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
25010         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
25011         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
25012         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
25013         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
25014         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
25015         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
25016         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
25017         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
25018         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
25019         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
25020         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
25021         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
25022         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
25023         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
25024         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
25025         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
25026         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
25027         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
25028         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
25029         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
25030         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
25031         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
25032         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
25033         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
25034         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
25035         [XPG3] (acosh): Likewise.
25036         [XPG3] (asinh): Likewise.
25037         [XPG3] (atanh): Likewise.
25038         [XPG3] (cbrt): Likewise.
25039         [XPG3] (expm1): Likewise.
25040         [XPG3] (ilogb): Likewise.
25041         [XPG3] (log1p): Likewise.
25042         [XPG3] (logb): Likewise.
25043         [XPG3] (nextafter): Likewise.
25044         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
25045         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
25046         [XPG3] (remainder): Likewise.
25047         [XPG3] (rint): Likewise.
25048         [XPG3 || XPG4 || UNIX98] (round): Likewise.
25049         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
25050         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
25051         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
25052         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
25053         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
25054         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
25055         [UNIX98 || XOPEN2K] (scalb): Expect.
25056         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
25057         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
25058         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
25059         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
25060         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
25061         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
25062         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
25063         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
25064         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
25065         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
25066         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
25067         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
25068         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
25069         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
25070         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
25071         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
25072         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
25073         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
25074         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
25075         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
25076         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
25077         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
25078         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
25079         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
25080         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
25081         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
25082         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
25083         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
25084         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
25085         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
25086         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
25087         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
25088         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
25089         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
25090         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
25091         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
25092         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
25093         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
25094         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
25095         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
25096         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
25097         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
25098         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
25099         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
25100         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
25101         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
25102         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
25103         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
25104         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
25105         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
25106         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
25107         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
25108         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
25109         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
25110         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
25111         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
25112         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
25113         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
25114         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
25115         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
25116         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
25117         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
25118         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
25119         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
25120         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
25121         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
25122         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
25123         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
25124         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
25125         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
25126         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
25127         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
25128         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
25129         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
25130         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
25131         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
25132         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
25133         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
25134         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
25135         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
25136         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
25137         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
25138         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
25139         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
25140         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
25141         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
25142         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
25143         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
25144         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
25145         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
25146         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
25147         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
25148         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
25149         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
25150         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
25151         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
25152         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
25153         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
25154         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
25155         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
25156         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
25157         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
25158         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
25159         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
25160         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
25161         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
25162         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
25163         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
25164         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
25165         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
25166         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
25167         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
25168         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
25169         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
25170         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
25171         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
25172         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
25173         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
25174         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
25175         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
25176         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
25177         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
25178         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
25179         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
25180         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
25181         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
25182         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
25183         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
25184         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
25185         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
25186         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
25187         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
25188         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
25189         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
25190         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
25191         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
25192         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
25193
25194         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
25195         _XOPEN_SOURCE_EXTENDED for XPG4.
25196
25197         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
25198
25199         * Makeconfig (localtime): Remove variable.
25200         (inst_localtime-file): Likewise.
25201
25202 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
25203
25204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
25205         Update.
25206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25207         Update.
25208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
25209         Update.
25210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
25211         Update.
25212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
25213         Update.
25214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
25215         Update.
25216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25217         Update.
25218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
25219         Update.
25220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
25221         Update.
25222
25223 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
25224
25225         [BZ #2550]
25226         [BZ #2570]
25227         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
25228         comparisons to determine direction to adjust input.
25229         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
25230         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
25231         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
25232         Likewise.
25233         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
25234         Likewise.
25235         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
25236         Likewise.
25237         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
25238         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
25239         Likewise.
25240         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
25241         Likewise.
25242         * math/libm-test.inc (nexttoward_test): Add more tests.
25243
25244 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
25245
25246         [BZ #14040]
25247         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
25248         in version GLIBC_2.1, not GLIBC_2.0.
25249         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
25250         Likewise.
25251
25252 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
25253
25254         [BZ #13942]
25255         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
25256         (1 - x) * (1 + x).
25257         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
25258         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
25259         * math/libm-test.inc (acos_test): Add more tests.
25260         (asin_test): Likewise.
25261         * sysdeps/i386/fpu/libm-test-ulps: Update.
25262         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25263
25264         [BZ #14034]
25265         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
25266         of square root.
25267         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
25268         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
25269         * math/libm-test.inc (acos_test_tonearest): New function.
25270         (acos_test_towardzero): Likewise.
25271         (acos_test_downward): Likewise.
25272         (acos_test_upward): Likewise.
25273         (asin_test_tonearest): Likewise.
25274         (asin_test_towardzero): Likewise.
25275         (asin_test_downward): Likewise.
25276         (asin_test_upward): Likewise.
25277         (main): Call the new functions.
25278         * sysdeps/i386/fpu/libm-test-ulps: Update.
25279         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25280
25281         [BZ #13884]
25282         [BZ #13924]
25283         * math/e_exp10.c: Include <float.h>.
25284         (__ieee754_exp10): Handle underflow here rather than multiplying
25285         large negative argument by M_LN10.
25286         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
25287         of __ieee754_expf.
25288         * math/e_exp10l.c: Include <float.h>.
25289         (__ieee754_exp10l): Handle underflow here rather than multiplying
25290         large negative argument by M_LN10l.
25291         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
25292         spurious overflow exception on underflow.
25293
25294 2012-04-29  Marek Polacek  <polacek@redhat.com>
25295
25296         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
25297         (__fortify_function): New macro.
25298         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
25299         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
25300         __extern_always_inline.
25301         * libio/bits/stdio2.h: Likewise.
25302         * libio/bits/stdio.h: Likewise.
25303         * string/string.h: Likewise.
25304         * string/bits/string3.h: Likewise.
25305         * include/stdio.h: Likewise.
25306         * stdlib/bits/stdlib.h: Likewise.
25307         * stdlib/stdlib.h: Likewise.
25308         * rt/bits/mqueue2.h: Likewise.
25309         * rt/mqueue.h: Likewise.
25310         * posix/bits/unistd.h: Likewise.
25311         * posix/unistd.h: Likewise.
25312         * io/bits/poll2.h: Likewise.
25313         * io/bits/fcntl2.h: Likewise.
25314         * io/fcntl.h: Likewise.
25315         * io/sys/poll.h: Likewise.
25316         * misc/bits/syslog.h: Likewise.
25317         * misc/bits/syslog-ldbl.h: Likewise.
25318         * misc/sys/syslog.h: Likewise.
25319         * socket/bits/socket2.h: Likewise.
25320         * socket/sys/socket.h: Likewise.
25321         * debug/tst-chk1.c: Likewise.
25322         * wcsmbs/bits/wchar2.h: Likewise.
25323         * wcsmbs/bits/wchar-ldbl.h: Likewise.
25324         * wcsmbs/wchar.h: Likewise.
25325
25326 2012-04-29  Andreas Jaeger  <aj@suse.de>
25327
25328         * Makerules (tests): Remove enable-check-abi protection.
25329         (check-abi-warn): Remove.
25330         (check-abi-%): Remove check-abi-warn usage.
25331
25332         * configure.in: Remove check-abi configure option.
25333         * configure: Regenerated.
25334         * config.make.in (enable-check-abi): Remove.
25335
25336 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
25337
25338         [BZ #14033]
25339         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
25340         double functions to double *_finite functions.
25341
25342         [BZ #13941]
25343         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
25344         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
25345         LDBL_MIN_EXP.
25346         * stdio-common/Makefile (tests): Add tst-sprintf3.
25347         * stdio-common/tst-sprintf3.c: New file.
25348
25349         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
25350         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
25351
25352 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
25353
25354         * conform/conformtest.pl: Remove duplicate typed-constant
25355         handling.
25356
25357 2012-04-28  David S. Miller  <davem@davemloft.net>
25358
25359         * Makerules (%.abilist): Add vpath on sysdep_dirs.
25360         (check-abi-%): Remove AWK script prerequisite and explicit
25361         abilist directory.
25362         (check-abi): Rewrite to just diff the symlist with the abilist.
25363         (config-tls, config-abi-config): Delete, no longer used.
25364         (update-abi-%): Remove AWK script and explicit abilist directory.
25365         (update-abi): Rewrite to simply compare and conditionally copy the
25366         symlist and the sysdep abilist file.  Remove update-abi-config
25367         checks.
25368         * abilist/ld.abilist: Remove.
25369         * abilist/libBrokenLocale.abilist: Remove.
25370         * abilist/libanl.abilist: Remove.
25371         * abilist/libcrypt.abilist: Remove.
25372         * abilist/libdl.abilist: Remove.
25373         * abilist/librt.abilist: Remove.
25374         * abilist/libthread_db.abilist: Remove.
25375         * abilist/libutil.abilist: Remove.
25376         * scripts/extract-abilist.awk: Remove.
25377         * scripts/merge-abilist.awk: Remove.
25378         * sysdeps/generic/libcidn.abilist: New file.
25379         * sysdeps/generic/libnss_compat.abilist: New file.
25380         * sysdeps/generic/libnss_db.abilist: New file.
25381         * sysdeps/generic/libnss_dns.abilist: New file.
25382         * sysdeps/generic/libnss_files.abilist: New file.
25383         * sysdeps/generic/libnss_hesiod.abilist: New file.
25384         * sysdeps/generic/libnss_nis.abilist: New file.
25385         * sysdeps/generic/libnss_nisplus.abilist: New file.
25386         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
25387         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
25388         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
25389         file.
25390         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
25391         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
25392         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
25393         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
25394         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
25395         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
25396         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
25397         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
25398         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
25399         file.
25400         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
25401         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
25402         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
25403         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
25404         file.
25405         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
25406         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
25407         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
25408         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
25409         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
25410         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
25411         file.
25412         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
25413         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
25414         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
25415         file.
25416         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
25417         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
25418         New file.
25419         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
25420         New file.
25421         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
25422         New file.
25423         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
25424         New file.
25425         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
25426         New file.
25427         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
25428         New file.
25429         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
25430         New file.
25431         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
25432         New file.
25433         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
25434         New file.
25435         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
25436         New file.
25437         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
25438         New file.
25439         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
25440         New file.
25441         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
25442         New file.
25443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
25444         file.
25445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
25446         New file.
25447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
25448         New file.
25449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
25450         file.
25451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
25452         New file.
25453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
25454         New file.
25455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
25456         file.
25457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
25458         New file.
25459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
25460         New file.
25461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
25462         New file.
25463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
25464         New file.
25465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
25466         New file.
25467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
25468         New file.
25469         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
25470         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
25471         file.
25472         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
25473         New file.
25474         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
25475         file.
25476         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
25477         file.
25478         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
25479         file.
25480         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
25481         file.
25482         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
25483         file.
25484         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
25485         New file.
25486         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
25487         file.
25488         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
25489         file.
25490         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
25491         New file.
25492         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
25493         file.
25494         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
25495         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
25496         file.
25497         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
25498         New file.
25499         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
25500         file.
25501         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
25502         file.
25503         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
25504         file.
25505         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
25506         file.
25507         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
25508         file.
25509         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
25510         New file.
25511         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
25512         file.
25513         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
25514         file.
25515         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
25516         New file.
25517         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
25518         file.
25519         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
25520         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
25521         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
25522         file.
25523         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
25524         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
25525         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
25526         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
25527         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
25528         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
25529         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
25530         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
25531         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
25532         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
25533         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
25534         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
25535         file.
25536         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
25537         New file.
25538         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
25539         file.
25540         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
25541         file.
25542         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
25543         file.
25544         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
25545         file.
25546         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
25547         file.
25548         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
25549         New file.
25550         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
25551         New file.
25552         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
25553         file.
25554         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
25555         New file.
25556         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
25557         file.
25558         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
25559         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
25560         file.
25561         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
25562         New file.
25563         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
25564         file.
25565         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
25566         file.
25567         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
25568         file.
25569         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
25570         file.
25571         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
25572         file.
25573         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
25574         New file.
25575         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
25576         New file.
25577         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
25578         file.
25579         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
25580         New file.
25581         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
25582         file.
25583
25584 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
25585
25586         * conform/conformtest.pl: Fix typo in handling typed-constant from
25587         allow-header.
25588
25589 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
25590
25591         * README: Cut down references to pre-2.6 Linux kernels and
25592         Linuxthreads.  Update lists of configurations in libc and ports
25593         and sort alphabetically.  Say "or newer" with Linux kernel version
25594         requirements.
25595
25596         * config.h.in [IS_IN_build]: Allow compiling without optimization.
25597
25598 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
25599
25600         [BZ #887]
25601         * math/libm-test.inc (logb_test_downward): New test to expose
25602         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
25603         rounding mode.
25604
25605 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
25606
25607         [BZ #14027]
25608         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
25609         to be done.
25610         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
25611         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
25612
25613 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
25614
25615         * sysdeps/unix/i386/brk.S: Remove file.
25616         * sysdeps/unix/i386/dl-brk.S: Likewise.
25617         * sysdeps/unix/i386/pipe.S: Likewise.
25618         * sysdeps/unix/i386/sigreturn.S: Likewise.
25619         * sysdeps/unix/i386/syscall.S: Likewise.
25620         * sysdeps/unix/i386/vfork.S: Likewise.
25621         * sysdeps/unix/i386/wait.S: Likewise.
25622
25623         * sysdeps/unix/common/tcsendbrk.c: Move to ...
25624         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
25625
25626         * configure.in (arm*-none*): Do not allow without
25627         --enable-hacker-mode.
25628         (netbsd*): Remove case setting base_os.
25629         (386bsd*): Likewise.
25630         (freebsd*): Likewise.
25631         (bsdi*): Likewise.
25632         (osf*): Likewise.
25633         (sunos*): Likewise.
25634         (ultrix*): Likewise.
25635         (newsos*): Likewise.
25636         (dynix*): Likewise.
25637         (*bsd*): Likewise.
25638         (sysv*): Likewise.
25639         (isc*): Likewise.
25640         (esix*): Likewise.
25641         (sco*): Likewise.
25642         (minix*): Likewise.
25643         (irix4*): Likewise.
25644         (irix6*): Likewise.
25645         (solaris[2-9]*): Likewise.
25646         (none): Likewise.
25647         * configure: Regenerated.
25648
25649 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25650
25651         [BZ #11521]
25652         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
25653         overflow or cancellation in calculating denominator.
25654         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
25655         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
25656         down expression to avoid unexpected rounding in newer GCCs.
25657         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
25658
25659 2012-04-26  David S. Miller  <davem@davemloft.net>
25660
25661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
25662         long-double compat symbols.
25663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
25664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
25665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
25666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
25667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
25668         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
25669         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
25670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
25671         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
25672         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
25673         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
25674         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
25675         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
25676
25677 2012-04-25  David S. Miller  <davem@davemloft.net>
25678
25679         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
25680         HWCAP_* values only after the memory barriers have been defined.
25681         (atomic_full_barrier): Define.
25682         (atomic_read_barrier): Define.
25683         (atomic_write_barrier): Define.
25684
25685 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
25686
25687         * shlib-versions: Add libgcc_s version information.
25688         * sysdeps/generic/libgcc_s.h: Remove.
25689         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
25690         libgcc_s.h.
25691         * sysdeps/gnu/unwind-resume.c: Likewise.
25692         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
25693
25694 2012-04-25  David S. Miller  <davem@davemloft.net>
25695
25696         * sysdeps/unix/sparc/brk.S: Delete.
25697         * sysdeps/unix/sparc/dl-brk.S: Delete.
25698         * sysdeps/unix/sparc/pipe.S: Delete.
25699         * sysdeps/unix/sparc/sysdep.S: Delete.
25700         * sysdeps/unix/sparc/sysdep.h: Delete.
25701         * sysdeps/unix/sparc/vfork.S: Delete.
25702         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
25703         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
25704         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
25705         ret_ERRVAL, r0, r1, MOVE): Define.
25706         (JUMPTARGET): Remove.
25707         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
25708         sysdeps/unix/sparc/sysdep.h
25709         (ENTRY, END): Remove.
25710         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25711
25712 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
25713
25714         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
25715         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
25716         -DIS_IN_build.
25717
25718         * timezone/README: Update upstream location and email address for
25719         tzcode and tzdata.
25720         * timezone/zdump.c: Update from tzcode 2012b.
25721         * timezone/zic.c: Likewise.
25722
25723         * configure.in (libc_cv_as_needed): Remove test.
25724         * configure: Regenerated.
25725         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
25726         conditional definition.
25727         [$(have-as-needed) != yes] (no-as-needed): Likewise.
25728         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
25729         * config.make.in (have-as-needed): Remove variable.
25730
25731 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
25732             Paul Pluzhnikov  <ppluzhnikov@google.com>
25733
25734         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
25735         strings correctly.
25736
25737 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
25738
25739         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
25740         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
25741         * sysdeps/sh/strlen.S: Likewise.
25742
25743 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
25744
25745         * sysdeps/unix/fork.S: Remove file.
25746         * sysdeps/unix/i386/fork.S: Likewise.
25747         * sysdeps/unix/sparc/fork.S: Likewise.
25748
25749         * sysdeps/unix/system.c: Remove file.
25750         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
25751
25752         * sysdeps/unix/getegid.S: Remove file.
25753         * sysdeps/unix/geteuid.S: Likewise.
25754
25755 2012-04-24  Roland McGrath  <roland@hack.frob.com>
25756
25757         * scripts/check-localplt.awk: New file.
25758         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
25759         of diff.
25760         * scripts/data/localplt-generic.data: Add a comment.
25761
25762         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
25763         NODE when __dir_mkfile failed.
25764         * sysdeps/mach/hurd/symlinkat.c: Likewise.
25765         Reported by Ludovic Courtès <ludo@gnu.org>.
25766
25767 2012-04-24  Andreas Jaeger  <aj@suse.de>
25768
25769         * Makerules (common-clean): Also remove gen-as-const-headers
25770         files.
25771
25772 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
25773
25774         * Makerules (native-compile): Do not change working directory for
25775         build.  Use $(OUTPUT_OPTION) in command.
25776         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
25777
25778 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25779
25780         [BZ #13886]
25781         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
25782         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
25783         * math/libm-test.inc (floor_test): Add more tests.
25784         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
25785
25786 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
25787
25788         * sysdeps/unix/getdents.c: Remove file.
25789         * sysdeps/unix/sysv/getdents.c: Likewise.
25790         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
25791
25792         * sysdeps/unix/syscalls.list (madvise): Add syscall from
25793         sysdeps/unix/mman/syscalls.list.
25794         (mmap): Likewise.
25795         (mprotect): Likewise.
25796         (msync): Likewise.
25797         (munmap): Likewise.
25798         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
25799         * sysdeps/unix/mman/syscalls.list: Remove.
25800         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
25801
25802         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
25803         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
25804         * configure: Regenerated.
25805         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
25806         $(libgcc_s_suffix).
25807         * config.make.in (libgcc_s_suffix): Remove variable.
25808
25809 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
25810
25811         * sysdeps/unix/sysv/gethostname.c: Move to ...
25812         * sysdeps/posix/gethostname.c: ... here.
25813
25814         * sysdeps/unix/execve.S: Remove file.
25815
25816         * sysdeps/unix/_exit.S: Remove file.
25817
25818 2012-04-23  Andreas Jaeger  <aj@suse.de>
25819
25820         [BZ #13739]
25821         * manual/Makefile: Remove make dist support, there's no
25822         need for a stand-alone documentation tar ball.
25823         (TEXI2DVI): Define always, it's not in Makeconfig.
25824         (dist): Removed.
25825         (tar-it): Removed.
25826         (edition): Removed.
25827         (glibc-doc-$(edition).tar): Removed
25828         (%.Z): Removed.
25829         (%.gz): Removed.
25830         (%.uu): Removed.
25831         (ETAGS): Remove, it's in Makeconfig.
25832         (move-if-change): Remove, it's in Makeconfig.
25833
25834 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
25835
25836         [BZ #13970]
25837         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
25838         (strtod, strtof, strtold, strtol, strtoul, strtoq)
25839         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
25840         (strtod_l, strtof_l, strtold_l): Remove __wur.
25841         It is not necessarily an error to ignore strtol's return value.
25842         One can reliably look at the stored endptr to decide whether
25843         the number had valid syntax.
25844
25845 2012-04-21  Andreas Jaeger  <aj@suse.de>
25846
25847         [BZ #13739]
25848         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
25849
25850 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
25851
25852         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
25853         * sysdeps/unix/sysv/Versions: Remove file.
25854
25855 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
25856
25857         [BZ #13927]
25858         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25859
25860 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
25861
25862         [BZ #7064]
25863         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
25864         version from __vm86.
25865
25866 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
25867
25868         * sysdeps/unix/common/lxstat.c: Remove file.
25869         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
25870
25871         * sysdeps/unix/sysv/Makefile: Remove file.
25872
25873         * sysdeps/unix/sysv/direct.h: Remove file.
25874
25875         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
25876         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
25877         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
25878         * sysdeps/unix/sysv/bits/signum.h: Likewise.
25879         * sysdeps/unix/sysv/bits/stat.h: Likewise.
25880         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
25881         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
25882
25883         * sysdeps/unix/sysv/setrlimit.c: Remove file.
25884
25885         * sysdeps/unix/xmknod.c: Remove file.
25886         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
25887
25888         * sysdeps/unix/sysv/settimeofday.c: Remove file.
25889
25890         * sysdeps/unix/sysv/i386/time.S: Remove file.
25891
25892         * sysdeps/unix/fxstat.c: Remove file.
25893         * sysdeps/unix/xstat.c: Likewise.
25894         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
25895
25896         * sysdeps/unix/sysv/sigaction.c: Remove file.
25897
25898         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
25899         (sysdep_headers): Remove variable.
25900         [termio.h not in sysdep_headers] (generated): Likewise.
25901         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
25902         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
25903         * sysdeps/unix/sysv/tcdrain.c: Likewise.
25904         * sysdeps/unix/sysv/tcflow.c: Likewise.
25905         * sysdeps/unix/sysv/tcflush.c: Likewise.
25906         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
25907         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
25908         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
25909         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
25910         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
25911
25912         * sysdeps/unix/siglist.c: Remove file.
25913
25914         * sysdeps/unix/getppid.S: Remove file.
25915
25916         * sysdeps/unix/mkdir.c: Remove file.
25917         * sysdeps/unix/rmdir.c: Likewise.
25918
25919 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
25920
25921         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
25922         ERR_MAX value.
25923         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
25924         errlist-compat value.
25925
25926 2012-04-18  David S. Miller  <davem@davemloft.net>
25927
25928         * sysdeps/generic/memcopy.h (reg_char): Delete.
25929         * debug/strcat_chk.c: Use char, not reg_char.
25930         * debug/strcpy_chk.c: Likewise.
25931         * debug/strncat_chk.c: Likewise.
25932         * debug/strncpy_chk.c: Likewise.
25933         * string/memchr.c: Likewise.
25934         * string/memrchr.c: Likewise.
25935         * string/rawmemchr.c: Likewise.
25936         * string/strcat.c: Likewise.
25937         * string/strchr.c: Likewise.
25938         * string/strchrnul.c: Likewise.
25939         * string/strcmp.c: Likewise.
25940         * string/strcpy.c: Likewise.
25941         * string/strncat.c: Likewise.
25942         * string/strncmp.c: Likewise.
25943         * string/strncpy.c: Likewise.
25944
25945 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
25946
25947         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
25948         __builtin_memcopy is called when src and dest ranges are known to not
25949         overlap.
25950
25951 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
25952
25953         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
25954         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
25955         fwd_align_merge macro call.
25956         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
25957         bwd_align_merge macro call.
25958         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
25959
25960 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
25961
25962         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
25963         bwd_align_merge macros.
25964         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
25965         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
25966         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
25967
25968 2012-04-18  David S. Miller  <davem@davemloft.net>
25969
25970         * sysdeps/sparc/sparc64/memcopy.h: Delete.
25971
25972 2012-04-18  Andreas Jaeger  <aj@suse.de>
25973
25974         [BZ# 6794]
25975         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
25976         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
25977         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
25978
25979         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
25980         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
25981         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
25982
25983         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
25984         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
25985         Adjust for changed ldbl-128 files.
25986
25987         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
25988         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
25989         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
25990
25991 2012-04-17  David S. Miller  <davem@davemloft.net>
25992
25993         * sysdeps/sparc/sparc32/memcopy.h: Delete.
25994
25995 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
25996
25997         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
25998         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
25999         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
26000         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
26001         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
26002         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
26003
26004 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26005
26006         [BZ #6794]
26007         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
26008         * math/libm-test.inc: Add ilogb errno and exception tests.
26009         * math/w_ilogb.c: New file: ilogb wrapper.
26010         * math/w_ilogbf.c: New file: ilogbf wrapper.
26011         * math/w_ilogbl.c: New file: ilogbl wrapper.
26012         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
26013         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
26014         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
26015         exception being thrown with 0.0 as argument.
26016         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
26017         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
26018         exception being thrown with 0.0 as argument.
26019         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
26020         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
26021         exception being thrown with 0.0 as argument.
26022         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
26023         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
26024         exception being thrown with 0.0 as argument.
26025         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
26026         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
26027         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
26028         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
26029         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
26030         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
26031         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
26032         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
26033         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
26034
26035 2012-04-17  Petr Baudis  <pasky@ucw.cz>
26036
26037         * include/sys/uio.h: Change __vector to __iovec to avoid clash
26038         with altivec.
26039
26040 2012-04-16  Marek Polacek  <polacek@redhat.com>
26041
26042         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
26043
26044 2012-04-16  Marek Polacek  <polacek@redhat.com>
26045
26046         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
26047         operands of fdivp instruction.
26048
26049 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
26050
26051         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
26052         * elf/tst-auditmod3b.c: Likewise.
26053         * elf/tst-auditmod4b.c: Likewise.
26054         * elf/tst-auditmod5b.c: Likewise.
26055         * elf/tst-auditmod6b.c: Likewise.
26056         * elf/tst-auditmod6c.c: Likewise.
26057         * elf/tst-auditmod7b.c: Likewise.
26058         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
26059         * sysdeps/x86_64/preconfigure.in: Likewise.
26060         * sysdeps/x86_64/preconfigure: Regenerated.
26061
26062 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
26063
26064         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
26065         __ILP32__.
26066
26067 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
26068
26069         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26070         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
26071
26072 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
26073
26074         [BZ #13973]
26075         * locale/iso-639.def: Fix gl language name. Spotted by
26076         Yaron Shahrabani.
26077
26078 2012-04-12  Roland McGrath  <roland@hack.frob.com>
26079
26080         [BZ #2074]
26081         * libio/libio.h (__io_write_fn): Update comment.
26082
26083 2012-04-12  Petr Baudis  <pasky@ucw.cz>
26084
26085         [BZ #2074]
26086         * stdio.texi (Hook Functions): The user provided writer function
26087         is not allowed to return -1.
26088
26089 2012-04-11  David S. Miller  <davem@davemloft.net>
26090
26091         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26092
26093 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
26094
26095         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
26096         Add a leading slash to rtkaio.
26097
26098 2012-04-11  Jim Meyering  <meyering@redhat.com>
26099
26100         [BZ #11959]
26101         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
26102         It is not necessarily an error to ignore fwrite's return
26103         value.  One can reliably use ferror to test for errors after
26104         the fact.
26105
26106 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
26107
26108         * bits/types.h (__snseconds_t): New type.
26109         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
26110
26111         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
26112         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
26113         (__SNSECONDS_T_TYPE): Likewise.
26114         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
26115         (__SNSECONDS_T_TYPE): Likewise.
26116         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
26117         (__SNSECONDS_T_TYPE): Likewise.
26118
26119 2012-04-10  Andreas Jaeger  <aj@suse.de>
26120
26121         [BZ #2636]
26122         * manual/time.texi (Processor Time): Return type of times is
26123         elapsed real time since an arbitrary point in the past.
26124         (CPU Time): Move CLK_TCK from here...
26125         (Processor Time): ...to here.  Correct description.
26126         * manual/conf.texi (Constants for Sysconf): Correct description of
26127         _SC_CLK_TCK.
26128
26129 2012-04-10  David S. Miller  <davem@davemloft.net>
26130
26131         [BZ #13967]
26132         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
26133         where the is a gap between DT_REL(A) and DT_JMPREL.
26134
26135 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
26136
26137         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
26138         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
26139         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
26140
26141 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26142
26143         * elf/dl-support.c (_dl_inhibit_cache): New variable.
26144         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
26145         (dl_main): Handle --inhibit-cache.
26146         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
26147         _dl_inhibit_cache.
26148         * elf/dl-load.c (_dl_map_object): Use it.
26149         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
26150
26151 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
26152
26153         [BZ #13872]
26154         * sysdeps/i386/fpu/e_powl.S (p78): New object.
26155         (__ieee754_powl): Saturate large exponents rather than testing for
26156         overflow of y*log2(x).
26157         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
26158         * math/libm-test.inc (pow_test): Do not permit spurious overflow
26159         exceptions.
26160
26161         [BZ #11521]
26162         * math/s_ctan.c: Include <float.h>.
26163         (__ctan): Avoid internal overflow or cancellation in calculating
26164         denominator.
26165         * math/s_ctanf.c: Likewise.
26166         * math/s_ctanl.c: Likewise.
26167         * math/s_ctanh.c: Likewise.
26168         * math/s_ctanhf.c: Likewise.
26169         * math/s_ctanhl.c: Likewise.
26170         * math/libm-test.inc (ctan_test): Add more tests.
26171         (ctanh_test): Likewise.
26172         * sysdeps/i386/fpu/libm-test-ulps: Update.
26173         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26174
26175 2012-04-09  Andreas Jaeger  <aj@suse.de>
26176
26177         [BZ #6894]
26178         * manual/filesys.texi (Directory Entries): Mention that d_namlen
26179         is an optional BSD extension.
26180
26181         [BZ #10254]
26182         * manual/stdio.texi (Opening Streams): Document additional fopen
26183         parameters.
26184
26185 2012-04-09  Roland McGrath  <roland@hack.frob.com>
26186
26187         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
26188         %eax without telling the compiler.
26189
26190 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
26191
26192         [BZ # 13963]
26193         * manual/install.texi: Use sourceware.org.
26194
26195 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
26196
26197         [BZ #13873]
26198         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
26199         (__ieee754_pow): Generate overflow and underflow using huge*huge
26200         and tiny*tiny rather than just returning constant infinity or zero
26201         for large exponents.
26202         * math/libm-test.inc (pow_test): Require overflow exceptions for
26203         applicable cases of large exponents.
26204
26205         [BZ #706]
26206         * sysdeps/i386/fpu/e_pow.S (p10): New object.
26207         (__ieee754_pow): Use iterative multiplication algorithm only for
26208         integer exponents with absolute value below 1024.  Check for odd
26209         integer exponents when using algorithm for real exponents.
26210         * math/libm-test.inc (pow_test): Add more tests.
26211         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26212
26213 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
26214
26215         [BZ #13705]
26216         * math/libm-test.inc (exp_test): Do not allow overflow exception
26217         on underflow test.
26218
26219 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
26220
26221         [BZ #13705]
26222         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
26223         instead of __kernel_standard_f.
26224
26225 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
26226
26227         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
26228         * sysdeps/x86_64/memset_chk.S: Likewise.
26229
26230 2012-04-08  Andreas Jaeger  <aj@suse.de>
26231
26232         [BZ #10153]
26233         * manual/startup.texi (Environment Access): Describe return value
26234         for putenv and setenv.
26235
26236         [BZ #6895]
26237         * manual/filesys.texi (Directory Entries): Add description for
26238         DT_LNK.
26239
26240         [BZ #6890]
26241         * manual/filesys.texi (Directory Entries): Clarify that it's file
26242         system not operating system in the description of DT_UNKNOWN.
26243
26244         [BZ #6578]
26245         * manual/syslog.texi (closelog): Fix reference, it's openlog.
26246
26247 2012-04-08  Stephen Compall  <s11@member.fsf.org>
26248
26249         [BZ #6649]
26250         * manual/llio.texi (Opening and Closing Files): Add cross
26251         reference to explain mode argument.
26252
26253 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
26254
26255         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
26256         * sysdeps/x86_64/memset_chk.S: Likewise.
26257
26258 2012-04-07  David S. Miller  <davem@davemloft.net>
26259
26260         * elf/elf.h (R_SPARC_WDISP10): Define.
26261         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
26262         R_SPARC_SIZE32.
26263         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
26264         R_SPARC_SIZE64 and R_SPARC_H34.
26265
26266 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
26267
26268         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
26269         conditions and remove no longer applicable assertion.
26270
26271 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
26272
26273         * bits/byteswap.h: Include <features.h>.
26274         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
26275         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
26276
26277 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
26278
26279         * bits/byteswap.h (__bswap_16): Removed.
26280         Include <bits/byteswap-16.h> to get __bswap_16.
26281         * sysdeps/i386/bits/byteswap.h: Likewise.
26282         * sysdeps/s390/bits/byteswap.h: Likewise.
26283         * sysdeps/x86_64/bits/byteswap.h: Likewise.
26284         * bits/byteswap-16.h: New file.
26285         * sysdeps/i386/bits/byteswap-16.h: Likewise.
26286         * sysdeps/s390/bits/byteswap-16.h: Likewise.
26287         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
26288         * string/Makefile (headers): Add bits/byteswap-16.h.
26289
26290 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26291
26292         [BZ #13895]
26293         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
26294         extra indirection.
26295         * nss/Makefile (tests-static, tests): Add tst-nss-static.
26296         * nss/tst-nss-static.c: New.
26297
26298 2012-04-06  Robert Millan  <rmh@gnu.org>
26299
26300         [BZ #6486]
26301         * manual/llio.texi (File Position Primitive): lseek
26302         refers to WHENCE when it really means OFFSET.
26303
26304 2012-04-06  Andreas Jaeger  <aj@suse.de>
26305
26306         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
26307         strncmp declarations.
26308
26309         * abilist/libc.abilist: Add __poll and __ppoll.
26310
26311 2012-04-05  David S. Miller  <davem@davemloft.net>
26312
26313         * scripts/check-local-headers.sh: Accept a host triplet in the
26314         path matched by the exclude regexp.
26315
26316         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
26317         definition.
26318         * sysdeps/powerpc/powerpc32/dl-machine.h
26319         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
26320         * sysdeps/s390/s390-32/dl-machine.h
26321         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
26322         * sysdeps/sparc/sparc32/dl-machine.h
26323         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
26324         * sysdeps/sparc/sparc64/dl-machine.h
26325         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
26326
26327         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
26328         lazy binding.
26329         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
26330         undefined symbol errors.
26331
26332         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
26333         DT_NEEDED entries.
26334
26335 2012-04-05  Michael Matz  <matz@suse.de>
26336
26337         [BZ #13592]
26338         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
26339
26340 2012-04-05  Andreas Jaeger  <aj@suse.de>
26341
26342         [BZ #13908]
26343         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
26344         comment.
26345
26346 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26347
26348         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
26349         which ROUND is no valid rounding mode.
26350
26351 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26352
26353         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
26354         read again.
26355         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
26356
26357 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26358
26359         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
26360         an exception using FPU order intentionally.
26361
26362 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26363
26364         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
26365         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
26366         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
26367         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
26368
26369 2012-04-05  Simon Josefsson  <simon@josefsson.org>
26370
26371         [BZ #12340]
26372         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
26373         EINVAL when BUFLEN is too smal.
26374
26375 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
26376
26377         [BZ #13553]
26378         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
26379         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
26380
26381 2012-04-03  Andreas Jaeger  <aj@suse.de>
26382
26383         [BZ #13938]
26384         * manual/setjmp.texi (System V contexts): Fix sentence.
26385
26386         [BZ #13926]
26387         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
26388         New macro for this case.
26389         [!__GNUC__] (__bswap_64): New inline function for this case.
26390         * sysdeps/x86_64/bits/byteswap.h: Likewise.
26391         * bits/byteswap.h: Likewise.
26392         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
26393         ull, guard with __GLIBC_HAVE_LONG_LONG.
26394
26395         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
26396         __GLIBC_HAVE_LONG_LONG.
26397
26398         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
26399         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
26400
26401 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26402
26403         [BZ #13691]
26404         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
26405         inptr and inend, rather than using last_ch.
26406
26407 2012-04-02  David S. Miller  <davem@davemloft.net>
26408
26409         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
26410         * stdio-common/printf-parse.h (read_int): Change return type to
26411         'int', return -1 on INT_MAX overflow.
26412         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
26413         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
26414         overflows INT_MAX.  Check for overflow of in-format-string precision
26415         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
26416         SIZE_MAX not INT_MAX for integer overflow test.
26417         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
26418         skip the construct in the format string but do not record anything.
26419         * stdio-common/bug22.c: Adjust to test both width/prevision
26420         INT_MAX overflow as well as total length INT_MAX overflow.  Check
26421         explicitly for proper errno values.
26422
26423 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
26424
26425         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
26426         CHAR_MAX.
26427         * string/test-strcmp.c [! WIDE]: Likewise.
26428         * time/tst-mktime2.c: Likewise for INT_MAX.
26429         * string/test-string.h: #include <sys/param.h> for MIN.
26430
26431         * csu/init-first.c (__libc_init_first): Call __ctype_init.
26432         * sysdeps/i386/init-first.c (init): Likewise.
26433         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
26434         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
26435         * sysdeps/sh/init-first.c (init): Likewise.
26436
26437 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
26438
26439         * po/ru.po: Update from translation team.
26440         * po/vi.po: Likewise.
26441
26442 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
26443
26444         * resolv/nss_dns/dns-host.c: Merge copyright years.
26445
26446 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26447
26448         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
26449         Optimize memcpy with prefetch if
26450         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
26451         src, dst pointers have unequal 16 byte alignments.
26452
26453 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
26454
26455         [BZ #13928]
26456         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
26457         from a CNAME entry and return the minimum ttl for the query.
26458         (gaih_getanswer_slice): Likewise.
26459
26460 2012-03-30  Jeff Law  <law@redhat.com>
26461
26462         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
26463         due to long keys.
26464         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
26465         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
26466
26467         * resolv/nss_dns/dns-host.c: Update copyright year.
26468
26469 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
26470
26471         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
26472         requests to save a system call.  Fix check that all bytes are sent.
26473
26474         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
26475         comments for sendmmsg.
26476
26477 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26478
26479         [BZ #13691]
26480         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
26481         with only 1 character between 0x0041 and 0x01b0.
26482         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
26483         * wcsmbs/tst-mbsnrtowcs.c: New file.
26484
26485 2012-03-29  David S. Miller  <davem@davemloft.net>
26486
26487         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
26488         small copies by hand.
26489
26490 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
26491
26492         [BZ #13761]
26493         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
26494         _nss_compat_initgroups_dyn): Fall back to malloc/free
26495         for large group memberships.
26496
26497 2012-03-28  David S. Miller  <davem@davemloft.net>
26498
26499         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
26500         that branches into memcpy.
26501         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
26502         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
26503         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
26504         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
26505         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
26506         bits.
26507         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
26508         implementation too.
26509         * sysdeps/sparc/mempcpy.S: New file.
26510
26511         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
26512         the IFUNC routine in the libc case.
26513         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
26514
26515         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
26516         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
26517         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
26518         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
26519         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
26520         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
26521         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
26522         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
26523
26524         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
26525         loop to 256 bytes instead of 64 bytes and fix test signedness.
26526
26527         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
26528         * sysdeps/sparc/sparc32/Makefile: rather than here...
26529         * sysdeps/sparc/sparc64/Makefile: and here.
26530
26531 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
26532
26533         * malloc/mallocbug.c: Avoid warnings about unused variables.
26534
26535 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
26536
26537         [BZ #13760]
26538         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
26539         in the right place. Discard and retry query if response is
26540         larger than input buffer size.
26541
26542 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
26543
26544         [BZ #369]
26545         [BZ #2678]
26546         [BZ #3866]
26547         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
26548         x for large integer exponent.
26549         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
26550         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
26551         sign of result as needed afterwards.
26552         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
26553         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
26554         result for underflowing pow the same as for overflow.
26555         (__kernel_standard_l): Handle powl overflow and underflow here
26556         rather than calling __kernel_standard.
26557         * math/libm-test.inc (pow_test): Add more tests.
26558
26559         [BZ #3868]
26560         [BZ #13879]
26561         [BZ #13910]
26562         [BZ #13911]
26563         [BZ #13912]
26564         [BZ #13913]
26565         [BZ #13915]
26566         [BZ #13916]
26567         [BZ #13917]
26568         [BZ #13918]
26569         [BZ #13919]
26570         [BZ #13920]
26571         [BZ #13921]
26572         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
26573         * sysdeps/ieee754/k_standard.c: Include <float.h>.
26574         (__kernel_standard_l): New function.
26575         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
26576         __kernel_standard.
26577         * math/w_acosl.c (__acosl): Likewise.
26578         * math/w_asinl.c (__asinl): Likewise.
26579         * math/w_atan2l.c (__atan2l): Likewise.
26580         * math/w_atanhl.c (__atanhl): Likewise.
26581         * math/w_coshl.c (__coshl): Likewise.
26582         * math/w_exp10l.c (__exp10l): Likewise.
26583         * math/w_exp2l.c (__exp2l): Likewise.
26584         * math/w_fmodl.c (__fmodl): Likewise.
26585         * math/w_hypotl.c (__hypotl): Likewise.
26586         * math/w_j0l.c (__j0l, __y0l): Likewise.
26587         * math/w_j1l.c (__j1l, __y1l): Likewise.
26588         * math/w_jnl.c (__jnl, __ynl): Likewise.
26589         * math/w_lgammal.c (__lgammal): Likewise.
26590         * math/w_log10l.c (__log10l): Likewise.
26591         * math/w_log2l.c (__log2l): Likewise.
26592         * math/w_logl.c (__logl): Likewise.
26593         * math/w_powl.c (__powl): Likewise.
26594         * math/w_remainderl.c (__remainderl): Likewise.
26595         * math/w_scalbl.c (sysv_scalbl): Likewise.
26596         * math/w_sinhl.c (__sinhl): Likewise.
26597         * math/w_sqrtl.c (__sqrtl): Likewise.
26598         * math/w_tgammal.c (__tgammal): Likewise.
26599         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
26600         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
26601         * math/libm-test.inc (acos_test): Add more tests.
26602         (acosh_test): Likewise.
26603         (asin_test): Likewise.
26604         (atanh_test): Likewise.
26605         (exp_test): Likewise.
26606         (exp10_test): Likewise.
26607         (exp2_test): Likewise.
26608         (expm1_test): Likewise.
26609         (lgamma_test): Likewise.
26610         (log_test): Likewise.
26611         (log10_test): Likewise.
26612         (log1p_test): Likewise.
26613         (log2_test): Likewise.
26614         (pow_test): Do not allow some spurious overflow exceptions.
26615         (sqrt_test): Add more tests.
26616         (tgamma_test): Likewise.
26617         (y0_test): Likewise.
26618         (y1_test): Likewise.
26619         (yn_test): Likewise.
26620
26621 2012-03-27  Anton Blanchard  <anton@samba.org>
26622
26623         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
26624         MAP_HUGETLB.
26625         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
26626         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
26627         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
26628
26629 2012-03-27  David S. Miller  <davem@davemloft.net>
26630
26631         * conform/Makefile: Run run-conformtest.sh using $(BASH).
26632
26633         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
26634         have-as-vis3 check.
26635
26636 2012-03-27  Andreas Jaeger  <aj@suse.de>
26637
26638         * sysdeps/x86_64/elf/configure.in: Moved to ...
26639         * sysdeps/x86_64/configure.in: ... here.
26640         * sysdeps/x86_64/elf/start.S: Moved to ...
26641         * sysdeps/x86_64/start.S: ... here.
26642         * sysdeps/x86_64/elf/configure: Delete.
26643
26644         * sysdeps/x86_64/configure.in: Merge contents from
26645         sysdeps/i386/configure.in (without i686 check).
26646
26647         * sysdeps/i386/elf/Versions: Merge into ...
26648         * sysdeps/i386/Versions: ... this.
26649         * sysdeps/i386/elf/Versions: Delete file.
26650         * sysdeps/i386/elf/start.S: Moved to ...
26651         * sysdeps/i386/start.S: ...here.
26652         * sysdeps/i386/elf/configure.in: Merge into...
26653         * sysdeps/i386/configure.in: ...here.
26654         * sysdeps/i386/elf/configure.in: Delete file.
26655         * sysdeps/i386/elf/configure: Delete file.
26656
26657         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
26658         * debug/backtracesyms.c: ... here.
26659         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
26660         * debug/backtracesymsfd.c: ... here.
26661         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
26662         * sysdeps/generic/ifunc-sel.h: ... here.
26663
26664         * sysdeps/unix/i386/start.c: Delete file.
26665         * sysdeps/unix/sparc/start.c: Delete file.
26666         * sysdeps/unix/start.c: Delete file.
26667
26668         * sysdeps/sh/elf/configure.in: Moved to ...
26669         * sysdeps/sh/configure.in: ... here.
26670         * sysdeps/sh/elf/start.S: Moved to ...
26671         * sysdeps/sh/start.S: ... here.
26672         * sysdeps/sh/elf/configure: Delete file.
26673
26674         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
26675         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
26676         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
26677         * sysdeps/powerpc/powerpc64/entry.h: ... here.
26678         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
26679         * sysdeps/powerpc/powerpc64/start.S: here.
26680         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
26681         * sysdeps/powerpc/powerpc64/Makefile: ... this.
26682         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
26683         * sysdeps/powerpc/powerpc64/configure.in: ... this.
26684         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
26685
26686         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
26687         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
26688         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
26689         * sysdeps/powerpc/powerpc32/start.S: ... here.
26690         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
26691         * sysdeps/powerpc/powerpc32/configure.in: ... this.
26692         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
26693
26694         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
26695         * sysdeps/powerpc/ifunc-sel.h: ... here.
26696         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
26697         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
26698
26699         * sysdeps/sparc/elf/configure.in: Moved to ...
26700         * sysdeps/sparc/configure.in: ... here.
26701         * sysdeps/sparc/elf/configure: Delete file.
26702         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
26703         * sysdeps/sparc/sparc32/start.S: ... here.
26704         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
26705         * sysdeps/sparc/sparc64/start.S: ... here.
26706         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
26707         * sysdeps/sparc/sparc32/Makefile: ... this.
26708         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
26709         * sysdeps/sparc/sparc64/Makefile: ... this.
26710
26711         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
26712         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
26713         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
26714         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
26715         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
26716         * sysdeps/s390/s390-32/setjmp.S: ... here.
26717         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
26718         * sysdeps/s390/s390-32/configure.in: ... here.
26719         * sysdeps/s390/s390-32/elf/configure: Delete file.
26720         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
26721         * sysdeps/s390/s390-32/start.S: ... here.
26722
26723         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
26724         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
26725         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
26726         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
26727         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
26728         * sysdeps/s390/s390-64/setjmp.S: ... here.
26729         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
26730         * sysdeps/s390/s390-64/configure.in: ... here
26731         * sysdeps/s390/s390-64/elf/configure: Delete file.
26732         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
26733         * sysdeps/s390/s390-64/start.S: ... here.
26734         * sysdeps/s390/s390-64/elf/configure: Delete.
26735
26736         * configure.in: Remove support for elf directories in sysdeps.
26737
26738         * configure: Regenerated.
26739         * sysdeps/i386/configure: Regenerated.
26740         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26741         * sysdeps/powerpc/powerpc64/configure: Regenerated.
26742         * sysdeps/s390/s390-32/configure: Regenerated.
26743         * sysdeps/s390/s390-64/configure: Regenerated.
26744         * sysdeps/sh/configure: Regenerated.
26745         * sysdeps/sparc/configure: Regenerated.
26746         * sysdeps/x86_64/configure: Regenerated.
26747
26748 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
26749
26750         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26751
26752         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
26753         denormal result into account.
26754
26755 2012-03-25  Roland McGrath  <roland@hack.frob.com>
26756
26757         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
26758         Reported by Allan McRae <allan@archlinux.org>.
26759
26760 2012-03-23  Jeff Law  <law@redhat.com>
26761
26762         * nss/getnssent.c (__nss_getent): Fix typo.
26763
26764 2012-03-23  David S. Miller  <davem@davemloft.net>
26765
26766         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26767
26768 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
26769
26770         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
26771         to pad to uint64_t for each field.
26772         (dl_tls_index): Replace unsigned long with uint64_t.
26773
26774 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
26775         Paul Pluzhnikov  <ppluzhnikov@google.com>
26776
26777         [BZ #6528]
26778         * grp/Makefile (otherlibs): Don't set it.
26779         * inet/Makefile (otherlibs): Likewise.
26780         * login/Makefile (otherlibs): Likewise.
26781         * nscd/Makefile (otherlibs): Likewise.
26782         * posix/Makefile (otherlibs): Likewise.
26783         * pwd/Makefile (otherlibs): Likewise.
26784         * rt/Makefile (otherlibs): Likewise.
26785         * sunrpc/Makefile (otherlibs): Likewise.
26786         * nss/Makefile (otherlibs): Likewise.
26787         Add libnss_files to routines and static-only-routines.
26788         ($(objpfx)getent): Remove rule.
26789         * resolv/Makefile: Add libnss_dns and libresolv to routines and
26790         static-only-routines.
26791
26792 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
26793
26794         [BZ #13892]
26795         * math/s_cexp.c: Include <float.h>.
26796         (__cexp): Handle exp result overflowing not necessarily
26797         overflowing both real and imaginary parts of result.
26798         * math/s_cexpf.c: Likewise.
26799         * math/s_cexpl.c: Likewise.
26800         * math/libm-test.inc (cexp_test): Add more tests.
26801         * sysdeps/i386/fpu/libm-test-ulps: Update.
26802         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26803
26804 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
26805
26806         * include/link.h (ELFW): New macro.
26807         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
26808         Replace ELF64_R_TYPE with ELFW(R_TYPE).
26809
26810 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
26811
26812         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
26813         with uint64_t.
26814
26815 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
26816
26817         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
26818         declaration.
26819         (struct La_x32_retval): Likewise.
26820
26821 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
26822
26823         * sysdeps/x86_64/preconfigure.in: New file.
26824         * sysdeps/x86_64/preconfigure: New generated file.
26825
26826 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
26827
26828         [BZ #13824]
26829         * math/e_exp2l.c: Include <float.h>.
26830         (__ieee754_exp2l): Handle overflow and underflow cases
26831         separately.  Only pass fractional part of argument to
26832         __ieee754_expl.
26833         * math/libm-test.inc (exp2_test): Add more tests.
26834
26835         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
26836         negating x to take absolute value.
26837         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
26838         Likewise.
26839         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
26840         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
26841         Likewise.
26842         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
26843         computing low part if x was negated.
26844         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
26845
26846 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
26847
26848         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
26849         la_x32_gnu_pltexit.
26850         (pltexit): Cast int_retval to ptrdiff_t.
26851         * elf/tst-auditmod3b.c: Likewise.
26852         * elf/tst-auditmod4b.c: Likewise.
26853         * elf/tst-auditmod5b.c: Likewise.
26854         * elf/tst-auditmod6b.c: Likewise.
26855         * elf/tst-auditmod6c.c: Likewise.
26856         * elf/tst-auditmod7b.c: Likewise.
26857
26858         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
26859         and x32_gnu_pltexit.
26860
26861         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
26862         __ELF_NATIVE_CLASS.
26863         (La_x32_regs): New macro.
26864         (La_x32_retval): Likewise.
26865         (la_x32_gnu_pltenter): New function prototype.
26866         (la_x32_gnu_pltexit): Likewise.
26867
26868 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
26869
26870         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
26871         exponent.
26872
26873         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26874
26875         * configure.in (libc_cv_cc_nofma): Check for option to disable
26876         generation of FMA instructions.
26877         * configure: Regenerate.
26878         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
26879         * sysdeps/ieee754/dbl-64/Makefile: New file.
26880         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26881         Remove brandred-fma4.
26882         (CFLAGS-brandred-fma4.c): Remove.
26883         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
26884         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
26885         define.
26886         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
26887         define.
26888
26889 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
26890
26891         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
26892         LLONG_MAX != LONG_MAX.
26893         (_itoa_word): Use _ITOA_WORD_TYPE on value.
26894         (_fitoa_word): Likewise.
26895         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
26896         LLONG_MAX != LONG_MAX.
26897         * stdio-common/_itowa.h: Include <_itoa.h>.
26898         (_itowa_word): Use _ITOA_WORD_TYPE on value.
26899         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
26900         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
26901         only if not defined.
26902         (_ITOA_WORD_TYPE): Likewise.
26903         (_itoa_word): Use _ITOA_WORD_TYPE on value.
26904         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
26905
26906 2012-03-21  David S. Miller  <davem@davemloft.net>
26907
26908         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26909
26910 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
26911
26912         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
26913         of x86_64 when setting libc_cv_slibdir, libdir and
26914         libc_cv_localedir.
26915         * sysdeps/unix/sysv/linux/configure: Regenerated.
26916
26917 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
26918
26919         * manual/lang.texi (Old Varargs): Remove section.
26920         (How Variadic): Update menu.
26921         (va_start): Do not mention varargs.h.
26922
26923 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
26924             Joseph Myers  <joseph@codesourcery.com>
26925
26926         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
26927         link test.
26928         * configure: Regenerated.
26929
26930 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
26931
26932         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
26933         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
26934         conformtest.pl
26935
26936 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
26937
26938         * NOTES: Remove.
26939         * Makefile (files-for-dist): Remove NOTES.
26940         (NOTES): Remove rule.
26941         * README: Don't refer to NOTES.
26942         * manual/creature.texi: Don't include macros.texi.
26943         * manual/intro.texi (creature.texi): Remove comment referring to
26944         NOTES.
26945
26946         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
26947         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
26948         * configure: Regenerated.
26949         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
26950         LIBC_TRY_CC_OPTION.
26951         (libc_cv_as_i686): Likewise.
26952         (libc_cv_cc_avx): Likewise.
26953         (libc_cv_cc_sse2avx): Likewise.
26954         (libc_cv_cc_fma4): Likewise.
26955         (libc_cv_cc_novzeroupper): Likewise.
26956         * sysdeps/i386/configure: Regenerated.
26957
26958         [BZ #13883]
26959         * sysdeps/i386/fpu/s_cexp.S: Remove.
26960         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
26961         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
26962         * math/libm-test.inc (cexp_test): Add more tests.
26963         * sysdeps/i386/fpu/libm-test-ulps: Update.
26964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26965
26966 2012-03-21  Allan McRae  <allan@archlinux.org>
26967
26968         * timezone/Makefile: Do not install iso3166.tab and zone.tab
26969
26970 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
26971
26972         [BZ #13871]
26973         * math/w_exp2.c: Do not include <float.h>.
26974         (o_threshold, u_threshold): Remove.
26975         (__exp2): Calculate result before checking finiteness and calling
26976         __kernel_standard.
26977         * math/w_exp2f.c: Likewise.
26978         * math/w_exp2l.c: Likewise.
26979         * math/libm-test.inc (exp2_test): Require overflow exception for
26980         1e6 input.
26981
26982         [BZ #3866]
26983         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
26984         range of signed 64-bit integers before using fistpll.  Remove
26985         checks for whether integers fit in mantissa bits.
26986         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
26987         the range of signed 32-bit integers before using fistpl.  Remove
26988         checks for whether integers fit in mantissa bits.
26989         * sysdeps/i386/fpu/e_powl.S (p64): New object.
26990         (__ieee754_powl): Test for y outside the range of signed 64-bit
26991         integers before using fistpll.  Reduce 64-bit values to 63-bit
26992         ones as needed.
26993         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
26994         divide-by-zero is raised for zero to large negative powers.
26995         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
26996         (__ieee754_powl): Test for y outside the range of signed 64-bit
26997         integers before using fistpll.  Reduce 64-bit values to 63-bit
26998         ones as needed.
26999         * math/libm-test.inc (pow_test): Add more tests.
27000
27001 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27002
27003         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
27004         <stdio-common/_itoa.h>.
27005         * debug/segfault.c: Likewise.
27006         * elf/dl-cache.c: Likewise.
27007         * elf/dl-minimal.c: Likewise.
27008         * elf/dl-misc.c: Likewise.
27009         * elf/dl-sysdep.c: Likewise.
27010         * elf/dl-version.c: Likewise.
27011         * elf/rtld.c: Likewise.
27012         * hurd/hurdsock.c: Likewise.
27013         * hurd/lookup-retry.c: Likewise.
27014         * malloc/malloc.c: Likewise.
27015         * malloc/mtrace.c: Likewise.
27016         * nscd/nscd_getgr_r.c: Likewise.
27017         * nscd/nscd_getpw_r.c: Likewise.
27018         * nscd/nscd_getserv_r.c: Likewise.
27019         * posix/getopt_init.c: Likewise.
27020         * posix/wordexp.c: Likewise.
27021         * stdio-common/_itoa.c: Likewise.
27022         * stdio-common/printf_fphex.c: Likewise.
27023         * stdio-common/vfprintf.c: Likewise.
27024         * string/_strerror.c: Likewise.
27025         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
27026         * sysdeps/i386/i686/hp-timing.h: Likewise.
27027         * sysdeps/mach/_strerror.c: Likewise.
27028         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
27029         * sysdeps/mach/hurd/sethostid.c: Likewise.
27030         * sysdeps/mach/hurd/xmknodat.c: Likewise.
27031         * sysdeps/mach/xpg-strerror.c: Likewise.
27032         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
27033         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
27034         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
27035         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
27036         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
27037         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
27038         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
27039         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
27040         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
27041         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
27042         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
27043         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
27044         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
27045         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
27046         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
27047         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
27048         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
27049         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
27050         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
27051         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
27052         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
27053
27054         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
27055
27056         * stdio-common/_itoa.h: Moved to ...
27057         * sysdeps/generic/_itoa.h: Here.
27058
27059         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
27060
27061         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
27062         instead of "_itoa.h" and "_itowa.h".
27063         * stdio-common/vfprintf.: Likewise.
27064
27065 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27066
27067         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
27068         <bits/wordsize.h>.
27069         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
27070         (__signbit): Likwise.
27071         (llrintf): Likwise.
27072         (llrint): Likwise.
27073
27074 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27075
27076         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
27077         __WORDSIZE != 64.
27078
27079 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
27080
27081         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
27082         OVERFLOW_EXCEPTION_OK.
27083         * math/libm-test.inc ("Philosophy"): Update comment about
27084         exception testing.
27085         (OVERFLOW_EXCEPTION): Define.
27086         (OVERFLOW_EXCEPTION_OK): Likewise.
27087         (INVALID_EXCEPTION_OK): Renumber.
27088         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
27089         (IGNORE_ZERO_INF_SIGN): Likewise.
27090         (test_exceptions): Handle FE_OVERFLOW.
27091         (exp10_test): Expect overflow exceptions.
27092         (exp2_test): Likewise.
27093         (expm1_test): Likewise.
27094         (nextafter_test): Likewise.
27095         (pow_test): Likewise.
27096         (scalbn_test): Likewise.
27097         (scalbln_test): Likewise.
27098
27099 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27100
27101         * sysdeps/x86_64/bits/atomic.h
27102         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
27103         64bit integer.
27104         (atomic_exchange_acq): Likewise.
27105         (__arch_exchange_and_add_body): Likewise.
27106         (__arch_add_body): Likewise.
27107         (atomic_add_negative): Likewise.
27108         (atomic_add_zero): Likewise.
27109
27110 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27111
27112         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
27113         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
27114
27115 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27116
27117         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
27118         Check __x86_64__ instead of __WORDSIZE.
27119
27120 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27121
27122         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
27123
27124 2012-03-19  David S. Miller  <davem@davemloft.net>
27125
27126         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27127
27128         * sysdeps/sparc/fpu/fenv_private.h: New file.
27129         * sysdeps/sparc/fpu/math_private.h: Use it.
27130         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
27131         Remove.
27132         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
27133         (libc_feholdexcept_setroundl): Remove.
27134         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
27135         Remove.
27136         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
27137         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
27138
27139 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27140
27141         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
27142         int64_t instead of long int.
27143         (INSERT_WORDS64): Likwise.
27144
27145 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27146
27147         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
27148         _Unwind_GetCFA return to _Unwind_Ptr first.
27149
27150 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
27151
27152         [BZ #13629]
27153         * math/s_clog.c: Include <float.h>.
27154         (__clog): Scale large or subnormal inputs.
27155         * math/s_clogf.c: Likewise.
27156         * math/s_clogl.c: Likewise.
27157         * math/s_clog10.c: Include <float.h>.
27158         (M_LOG10_2): Define.
27159         (__clog10): Scale large or subnormal inputs.
27160         * math/s_clog10f.c: Likewise.
27161         * math/s_clog10l.c: Likewise.
27162         * math/libm-test.inc (clog_test): Add more tests.
27163         (clog10_test): Likewise.
27164         * sysdeps/i386/fpu/libm-test-ulps: Update.
27165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27166
27167         [BZ #11451]
27168         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
27169         x and y.
27170         * math/libm-test.inc (atan2_test): Add another test.
27171
27172         * Makerules (common-objdir-compile): Remove.
27173         * sysdeps/unix/Makefile (config-generated): Do not add
27174         $(unix-generated) to variable.
27175         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
27176         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
27177         Remove rule.
27178         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
27179         Likewise.
27180         [generic bits/local_lim.h] (before-compile): Do not append to
27181         variable.
27182         [generic bits/local_lim.h] (common-generated): Likewise.
27183         [generic sys/param.h] (before-compile): Do not append to variable.
27184         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
27185         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
27186         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
27187         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
27188         include.
27189         [generic sys/param.h] (sys/param.h-includes): Remove variable.
27190         [generic sys/param.h] (sys/param.h-includes): Remove rule.
27191         [generic sys/param.h] ($(addprefix
27192         $(common-objpfx),$(sys/param.h-includes))): Likewise.
27193         [generic sys/param.h] (common-generated): Do not append to
27194         variable.
27195         [generic sys/param.h] (sysdep_headers): Likewise.
27196         [generic bits/errno.h] (before-compile): Do not append to
27197         variable.
27198         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
27199         rule.
27200         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
27201         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
27202         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
27203         [generic bits/errno.h] (common-generated): Do not append to
27204         variable.
27205         [generic bits/ioctls.h] (before-compile): Do not append to
27206         variable.
27207         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
27208         rule.
27209         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
27210         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
27211         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
27212         rule.
27213         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
27214         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
27215         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
27216         [generic bits/ioctls.h] (common-generated): Do not append to
27217         variable.
27218         [generic sys/syscall.h] (syscall.h): Remove variable.
27219         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
27220         rule.
27221         [generic sys/syscall.h] (before-compile): Do not append to
27222         variable.
27223         [generic sys/syscall.h] (common-generated): Likewise.
27224         * sysdeps/unix/errnos-tmpl.c: Remove file.
27225         * sysdeps/unix/errnos.awk: Likewise.
27226         * sysdeps/unix/ioctls-tmpl.c: Likewise.
27227         * sysdeps/unix/ioctls.awk: Likewise.
27228         * sysdeps/unix/mk-local_lim.c: Likewise.
27229         * sysdeps/unix/snarf-ioctls: Likewise.
27230
27231 2012-03-19  Richard Henderson  <rth@twiddle.net>
27232
27233         * sysdeps/i386/fpu/fenv_private.h: New file.
27234         * sysdeps/i386/fpu/math_private.h: Use it.
27235         (math_opt_barrier, math_force_eval): Remove.
27236         (libc_feholdexcept_setround_53bit): Remove.
27237         (libc_feupdateenv_53bit): Remove.
27238         * sysdeps/x86_64/fpu/math_private.h: Likewise.
27239         (math_opt_barrier, math_force_eval): Remove.
27240         (libc_feholdexcept): Remove.
27241         (libc_feholdexcept_setround): Remove.
27242         (libc_fetestexcept, libc_fesetenv): Remove.
27243         (libc_feupdateenv_test): Remove.
27244         (libc_feupdateenv, libc_feholdsetround): Remove.
27245         (libc_feresetround): Remove.
27246
27247         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
27248         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
27249
27250         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
27251         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
27252         (libc_feupdateenv_testl): New.
27253         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
27254         (libc_feupdateenv_testf): New.
27255         (libc_feupdateenv): Use libc_feupdateenv_test.
27256         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
27257         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
27258
27259         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
27260         (libc_feholdsetroundf, libc_feholdsetroundl): New.
27261         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
27262         (libc_feresetround_noex): New.
27263         (libc_feresetround_noexf): New.
27264         (libc_feresetround_noexl): New.
27265         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
27266         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
27267         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
27268         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
27269         SET_RESTORE_ROUND.
27270         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
27271         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
27272         (__cos): Likewise.
27273         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
27274         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
27275         SET_RESTORE_ROUND_NOEX.
27276         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
27277         SET_RESTORE_ROUND_NOEXF.
27278         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
27279         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
27280         (libc_feholdsetroundf): New.
27281         (libc_feresetround, libc_feresetroundf): New.
27282
27283         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
27284         (libc_feholdexcept_setround_53bit): Convert from macro to function.
27285         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
27286
27287         * sysdeps/generic/math_private.h: Include <fenv.h>.
27288         (default_libc_feholdexcept): New.
27289         (default_libc_feholdexcept_setround): New.
27290         (default_libc_fesetenv, default_libc_feupdateenv): New.
27291         (libc_feholdexcept): Only define if undefined.
27292         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
27293         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
27294         (libc_feholdexcept_setroundl): Likewise.
27295         (libc_feholdexcept_setround_53bit): Likewise.
27296         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
27297         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
27298         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
27299         (libc_feupdateenv_53bit): Likewise.
27300         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
27301         (libc_feholdexcept): Convert from macro to inline function.
27302         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
27303         (libc_fesetenv, libc_feupdateenv): Likewise.
27304
27305         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
27306         not previously defined.
27307         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
27308         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
27309         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
27310         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
27311         * sysdeps/ieee754/flt-32/math_private.h: New file.
27312         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
27313         math_private.h below SET_FLOAT_WORD.
27314         (__isnan, __isinf_ns, __finite): Remove.
27315         (__isnanf, __isinf_nsf, __finitef): Remove.
27316
27317 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
27318
27319         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27320
27321 2012-03-17  David S. Miller  <davem@davemloft.net>
27322
27323         [BZ #6471]
27324         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
27325         for 2.16.
27326
27327 2012-03-16  David S. Miller  <davem@davemloft.net>
27328
27329         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
27330         warnings.
27331
27332         [BZ #6471]
27333         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
27334         properly.
27335         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
27336         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
27337         sysdep_routines when subdir is sysvipc.
27338         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
27339         __getshmlba helper.
27340
27341         * sysdeps/sparc/fpu/libm-test/ulps: Update.
27342
27343 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27344
27345         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
27346         [__LP64__].
27347
27348 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27349
27350         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
27351         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
27352         (__lround): Renamed to ...
27353         (__llround): This.  Replace long int with long long int.
27354         Define lround functions as aliases of llround functions.
27355         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
27356
27357 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27358
27359         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
27360         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
27361         adresses to uintptr_t.  Replace "long int" and "unsigned long
27362         int" with "greg_t" on va_arg.
27363
27364 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27365
27366         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
27367         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
27368
27369         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
27370         Move e_machine check before EI_CLASS check.  Handle x32
27371         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
27372         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
27373         SKIP_EM_IA_64 and include
27374         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
27375
27376         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
27377         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
27378         (add_system_dir): New macro.
27379
27380         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
27381         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
27382
27383 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
27384
27385         [BZ #2551]
27386         [BZ #2552]
27387         [BZ #2553]
27388         [BZ #2554]
27389         [BZ #2562]
27390         [BZ #2563]
27391         [BZ #2565]
27392         [BZ #2566]
27393         [BZ #2576]
27394         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
27395         (y0): Likewise.
27396         * math/w_j0f.c (j0f): Likewise.
27397         (y0f): Likewise.
27398         * math/w_j0l.c (__j0l): Likewise.
27399         (__y0l): Likewise.
27400         * math/w_j1.c (j1): Likewise.
27401         (y1): Likewise.
27402         * math/w_j1f.c (j1f): Likewise.
27403         (y1f): Likewise.
27404         * math/w_j1l.c (__j1l): Likewise.
27405         (__y1l): Likewise.
27406         * math/w_jn.c (jn): Likewise.
27407         (yn): Likewise.
27408         * math/w_jnf.c (jnf): Likewise.
27409         (ynf): Likewise.
27410         * math/w_jnl.c (__jnl): Likewise.
27411         (__ynl): Likewise.
27412         * math/libm-test.inc (j0_test): Add more tests.
27413         (j1_test): Likewise.
27414         (jn_test): Likewise.  Add trailing semicolon to existing test.
27415         (y0_test): Likewise.
27416         (y1_test): Likewise.
27417         * sysdeps/i386/fpu/libm-test-ulps: Update.
27418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27419
27420         [BZ #13851]
27421         [BZ #13854]
27422         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
27423         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
27424         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
27425         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
27426         (__tanl): Set errno for infinite argument.
27427         * sysdeps/i386/fpu/mptan.c: Remove.
27428         * sysdeps/i386/fpu/s_tan.S: Likewise.
27429         * sysdeps/i386/fpu/s_tanl.S: Likewise.
27430         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
27431         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
27432         * math/libm-test.inc (tan_test): Add more tests and enable more
27433         tests for double and long double.
27434         * sysdeps/i386/fpu/libm-test-ulps: Update.
27435         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27436
27437 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
27438
27439         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
27440         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
27441
27442 2012-03-16  Roland McGrath  <roland@hack.frob.com>
27443
27444         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
27445         * configure.in: Use it for both main tree and add-ons.
27446         * configure: Regenerated.
27447
27448 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27449
27450         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
27451
27452 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
27453
27454         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
27455         in comment.
27456
27457         [BZ #13851]
27458         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
27459         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
27460         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
27461         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
27462         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
27463         infinite argument.
27464         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
27465         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
27466         != 0 for prec == 2.
27467         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
27468         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
27469         * sysdeps/i386/fpu/s_cosl.S: Likewise.
27470         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
27471         * sysdeps/i386/fpu/s_sinl.S: Likewise.
27472         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
27473         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
27474         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
27475         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
27476         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
27477         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
27478         * math/libm-test.inc (cos_test): Add more tests and enable more
27479         tests for long double.
27480         (sin_test): Likewise.
27481         (sincos_test): Likewise.
27482         * sysdeps/i386/fpu/libm-test-ulps: Update.
27483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27484
27485 2012-03-16  David S. Miller  <davem@davemloft.net>
27486
27487         * sysdeps/sparc/fpu/math_private.h: New file.
27488
27489 2012-03-15  David S. Miller  <davem@davemloft.net>
27490
27491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
27492         file.
27493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
27494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
27495         file.
27496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
27497         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
27498         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
27499         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
27500         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
27501         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
27502         sysdep routines.
27503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
27504
27505         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
27506         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
27507
27508         * sysdeps/sparc/sparc-ifunc.h: New file.
27509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
27510         sparc-ifunc.h
27511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
27512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27513         Likewise.
27514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
27515         Likewise.
27516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
27517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
27518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
27519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
27520         Likewise.
27521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
27522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
27523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
27524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
27525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
27526         Likewise.
27527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
27528         Likewise.
27529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
27530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
27531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
27532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
27533         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
27534         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
27535         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
27536         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
27537         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
27538         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
27539         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
27540         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
27541         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
27542         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
27543         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
27544         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
27545         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
27546         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
27547         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
27548         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
27549         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
27550         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
27551         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
27552         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
27553
27554 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
27555
27556         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
27557         scaling.
27558         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27559
27560 2012-03-15  Andreas Jaeger  <aj@suse.de>
27561
27562         [BZ #13852]
27563         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
27564         ieee754/flt-32 implementation for sin, cos and sincos.
27565         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
27566         * sysdeps/i386/fpu/s_cosf.S: Likewise.
27567         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
27568         * sysdeps/i386/fpu/s_sinf.S: Likewise.
27569         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
27570         ieee754/flt-32 implementation for tan.
27571
27572         * math/libm-test.inc (cos_test): Enable some large input tests for
27573         float as well
27574         (sin_test): Likewise.
27575         (sincos_test): Likewise.
27576         (tan_test): Add tests for large input.
27577
27578         * sysdeps/i386/fpu/libm-test-ulps: Update.
27579
27580 2012-03-15  Andreas Jaeger  <aj@suse.de>
27581
27582         [BZ #13658]
27583         * math/libm-test.inc (cos_test): Add more test cases.
27584         (sin_test): Likewise.
27585         (sincos_test): Likewise.
27586
27587 2012-03-15  Andreas Jaeger  <aj@suse.de>
27588
27589         [BZ #13837]
27590         * math/libm-test.inc (cos_test): Add a test case for large input
27591         value.
27592         (sin_test): Likewise.
27593         (sincos_test): Likewise.
27594
27595 2012-03-15  Andreas Jaeger  <aj@suse.de>,
27596         Joseph Myers  <joseph@codesourcery.com>
27597
27598         [BZ #13658]
27599         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
27600         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
27601         * sysdeps/i386/fpu/branred.c: Likewise.
27602         * sysdeps/i386/fpu/dosincos.c: Likewise.
27603         * sysdeps/i386/fpu/mpa.c: Likewise.
27604         * sysdeps/i386/fpu/s_cos.S: Likewise.
27605         * sysdeps/i386/fpu/s_sin.S: Likewise.
27606         * sysdeps/i386/fpu/s_sincos.S: Likewise.
27607         * sysdeps/i386/fpu/sincos32.c: Likewise.
27608
27609         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
27610         Define.
27611         (libc_feupdateenv_53bit): Define.
27612         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
27613         Define.
27614         (libc_feupdateenv_53bit): Define.
27615
27616         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
27617         53 bit (without extend i386 double precision).
27618
27619         * math/libm-test.inc (sincos_test): Add tests for large input.
27620         (sin): Likewise.
27621         (cos): Likewise.
27622
27623         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27624
27625 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
27626
27627         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27628
27629 2012-03-15  David S. Miller  <davem@davemloft.net>
27630
27631         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
27632         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
27633         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
27634         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
27635         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
27636         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
27637         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
27638         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
27639         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
27640         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
27641         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
27642         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
27643         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
27644         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
27645         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
27646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
27647         file.
27648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
27649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
27650         file.
27651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
27652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
27653         file.
27654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
27655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
27656         file.
27657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
27658         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
27659         fmin/fmax sysdep routines.
27660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
27661
27662 2012-03-14  David S. Miller  <davem@davemloft.net>
27663
27664         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
27665         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
27666         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
27667         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
27668         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
27669         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
27670         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
27671         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
27672         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
27673         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
27674         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
27675         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
27676         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
27677         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
27678         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
27679         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
27680         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
27681         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
27682         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
27683         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
27684         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
27685         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
27686         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
27687         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
27688         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
27689         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
27690         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
27691         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
27692         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
27693         routines.
27694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
27695         file.
27696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
27697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
27698         file.
27699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
27700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
27701         file.
27702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
27703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
27704         file.
27705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
27706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
27707         file.
27708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
27709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
27710         file.
27711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
27712         file.
27713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
27714         file.
27715         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
27716         file.
27717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
27718         New file.
27719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
27720         file.
27721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
27722         file.
27723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
27724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
27725         file.
27726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
27727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
27728         file.
27729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
27730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
27731         file.
27732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
27733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
27734         VIS3 routines.
27735
27736         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
27737         New file.
27738
27739         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27740
27741         * sysdeps/sparc/configure.in: New file.
27742         * sysdeps/sparc/configure: Generate.
27743         * configure.in (libc_cv_sparc_as_vis3): Substitute.
27744         * configure: Regenerate.
27745         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
27746         * config.make.in (have-as-vis3): New.
27747         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
27748         available use -Av9d instead of -Av9a.
27749         * sysdeps/sparc/sparc64/Makefile: Likewise.
27750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
27751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
27752         New file.
27753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
27754         file.
27755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
27756         New file.
27757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
27758         file.
27759         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
27760         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
27761         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
27762         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
27763         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
27764
27765         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
27766         fzeros/fnegs to load 0x80000000 into a float register instead of
27767         using the stack.
27768         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
27769
27770 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
27771
27772         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27773         bits/syscall.h.
27774         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
27775         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
27776         ($(inst_includedir)/bits/syscall.h): Remove rule.
27777         ($(objpfx)bits/syscall.d): Include instead of
27778         $(objpfx)syscall-list.d.
27779         (generated): Change syscall-list.h and syscall-list.d to
27780         bits/syscall.h and bits/syscall.d.
27781
27782 2012-03-14  Roland McGrath  <roland@hack.frob.com>
27783
27784         [BZ #13846]
27785         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
27786
27787 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
27788
27789         [BZ #13841]
27790         * math/s_csqrt.c: Include <float.h>.
27791         (__csqrt): Scale large or subnormal inputs.
27792         * math/s_csqrtf.c: Likewise.
27793         * math/s_csqrtl.c: Likewise.
27794         * math/libm-test.inc (csqrt_test): Add more tests.
27795         * sysdeps/i386/fpu/libm-test-ulps: Update.
27796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27797
27798         [BZ #13840]
27799         * math/libm-test.inc (hypot_test): Add more tests.
27800
27801 2012-03-13  David S. Miller  <davem@davemloft.net>
27802
27803         [BZ #13840]
27804         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
27805         double-precision for the calculation instead of scaling.
27806
27807 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
27808
27809         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
27810         manipulate bits before adding and subtracting TWO52[sx].
27811         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
27812         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27813         Likewise.
27814         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
27815
27816 2012-03-13  David S. Miller  <davem@davemloft.net>
27817
27818         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
27819         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
27820         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
27821         rtld-global-offsets.h
27822         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27823
27824         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
27825         large parameters.
27826
27827         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
27828
27829         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
27830         'err' in the ifdef scope in which it is actually used.
27831
27832         * nss/nss_db/db-init.c: Include string.h
27833
27834 2012-03-12  David S. Miller  <davem@davemloft.net>
27835
27836         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
27837         masking out of the most significant byte of random value used.
27838         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
27839         Fix coding style in previous change.
27840
27841         * sysdeps/unix/sysv/linux/kernel-features.h
27842         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
27843         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
27844         expression.
27845         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
27846         later.
27847
27848 2012-03-11  David S. Miller  <davem@davemloft.net>
27849
27850         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
27851         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
27852         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
27853         for 'resultvar' otherwise things get truncated on 64-bit.
27854
27855         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
27856         Fix masking out of the most significant byte of random value used.
27857
27858         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27859
27860 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
27861
27862         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27863
27864 2012-03-09  David S. Miller  <davem@davemloft.net>
27865
27866         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
27867         variables with appropriate CPP guards.
27868         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
27869         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
27870         on resulting framesize and the management of the outregs buffer for pltexit.
27871         Preserve floating point return values across _dl_call_pltexit call.
27872         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
27873         framesize and the management of the outregs buffer for pltexit.
27874         Preserve floating point return values across _dl_call_pltexit
27875         call.
27876         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
27877         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
27878         (print_exit): Fix format string for return register value.
27879
27880 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
27881
27882         * sunrpc/Makefile (others): Add rpcgen.
27883         ($(objpfx)rpcgen): Remove special build rule and dependency on
27884         libc.
27885         * sunrpc/rpcgen.c: New file.
27886
27887 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
27888
27889         [BZ #13673]
27890         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
27891         * stdio-common/bug-vfprintf-nargs.c: Likewise.
27892         * sysdeps/i386/crti.S: Likewise.
27893         * sysdeps/i386/crtn.S: Likewise.
27894         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
27895         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
27896         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
27897         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
27898         * sysdeps/sh/crti.S: Likewise.
27899         * sysdeps/sh/crtn.S: Likewise.
27900         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
27901
27902         [BZ #13673]
27903         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
27904         with URL.
27905         * locale/programs/locfile-kw.gperf: Likewise.
27906         * locale/programs/charmap-kw.h: Regenerated.
27907         * locale/programs/locfile-kw.h: Likewise.
27908
27909         [BZ #13673]
27910         * intl/plural.y: Replace FSF snail mail address with URL.
27911         * intl/plural.c: Regenerated.
27912
27913 2012-03-09  Richard Henderson  <rth@twiddle.net>
27914
27915         * include/math_private.h: Remove file.
27916         * math/math_private.h: Move file ...
27917         * sysdeps/generic/math_private.h: ... here.
27918
27919         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
27920         * sysdeps/powerpc/fpu/math_private.h: Likewise.
27921         * sysdeps/x86_64/fpu/math_private.h: Likewise.
27922
27923         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
27924         and <math_private.h>.
27925         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
27926         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
27927         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
27928         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
27929         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
27930         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
27931         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
27932         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
27933         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
27934         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
27935         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
27936         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
27937         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
27938         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
27939         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
27940         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
27941         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
27942         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
27943         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
27944         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
27945         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27946         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
27947         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
27948         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27949         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
27950         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
27951         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
27952         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
27953         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
27954         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
27955         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
27956         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
27957         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
27958         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
27959         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
27960         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
27961         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
27962         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
27963         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
27964         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
27965         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
27966         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
27967         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
27968         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
27969         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
27970         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
27971         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
27972         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
27973         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
27974         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
27975         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
27976         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
27977         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
27978         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
27979         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
27980         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
27981         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
27982         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
27983         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
27984         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
27985         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
27986         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
27987         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
27988         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
27989         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
27990         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
27991         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
27992         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
27993         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
27994         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
27995         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
27996         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
27997         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
27998         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
27999         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
28000         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
28001         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
28002         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
28003         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
28004         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
28005         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
28006         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
28007         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
28008         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
28009         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
28010         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
28011         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
28012         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
28013         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
28014         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
28015         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
28016         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
28017         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28018         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
28019         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
28020         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
28021         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28022         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
28023         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
28024         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
28025         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
28026         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
28027         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
28028         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
28029         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
28030         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
28031         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
28032         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
28033         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
28034         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
28035         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
28036         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
28037         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
28038         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
28039         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
28040         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28041         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
28042         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
28043         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
28044         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
28045         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
28046         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
28047         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28048         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
28049         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
28050         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
28051         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
28052         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
28053         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
28054         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
28055         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
28056         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
28057         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
28058         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
28059         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
28060         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
28061         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
28062         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
28063         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
28064         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
28065         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28066         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
28067         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
28068         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
28069         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
28070         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
28071         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
28072         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
28073         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
28074         * sysdeps/ieee754/k_standard.c: Likewise.
28075         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
28076         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
28077         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
28078         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
28079         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
28080         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
28081         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
28082         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
28083         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
28084         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
28085         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
28086         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
28087         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
28088         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
28089         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
28090         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
28091         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
28092         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
28093         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
28094         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
28095         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
28096         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
28097         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
28098         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
28099         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
28100         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
28101         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
28102         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
28103         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
28104         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
28105         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
28106         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
28107         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
28108         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
28109         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
28110         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
28111         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
28112         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
28113         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
28114         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
28115         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
28116         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
28117         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
28118         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
28119         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
28120         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
28121         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
28122         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
28123         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
28124         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
28125         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
28126         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
28127         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
28128         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
28129         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
28130         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
28131         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
28132         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
28133         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
28134         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
28135         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
28136         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
28137         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
28138         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
28139         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
28140         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
28141         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
28142         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
28143         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
28144         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
28145         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
28146         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
28147         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
28148         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
28149         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
28150         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
28151         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
28152         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
28153         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
28154         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
28155         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
28156         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
28157         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
28158         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
28159         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
28160         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
28161         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
28162         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
28163         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
28164         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
28165         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
28166         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
28167         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
28168         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
28169         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
28170         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
28171         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
28172         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
28173         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
28174         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
28175         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
28176         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
28177         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
28178         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
28179         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
28180         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
28181         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
28182         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
28183         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
28184         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
28185         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
28186         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
28187         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
28188         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
28189         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
28190         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28191         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
28192         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
28193         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28194         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
28195         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
28196         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
28197         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
28198         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
28199         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
28200         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
28201         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
28202         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
28203         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
28204         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
28205         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
28206         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
28207         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
28208         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
28209         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
28210         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
28211         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
28212         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
28213         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
28214         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
28215         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
28216         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
28217         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
28218         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
28219         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
28220         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
28221         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
28222         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
28223         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
28224         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
28225         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
28226         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
28227         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
28228         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
28229         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
28230         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
28231         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
28232         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
28233         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
28234         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
28235         * sysdeps/ieee754/s_lib_version.c: Likewise.
28236         * sysdeps/ieee754/s_matherr.c: Likewise.
28237         * sysdeps/ieee754/s_signgam.c: Likewise.
28238         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
28239         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
28240         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
28241         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
28242         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
28243         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
28244         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
28245         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
28246         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
28247         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
28248         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
28249         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
28250         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
28251         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
28252         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
28253         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
28254         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
28255         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
28256         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
28257         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
28258         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
28259
28260 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
28261
28262         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
28263         * sunrpc/rpc_main.c: Likewise.
28264         * sunrpc/rpc_svcout.c: Likewise.
28265
28266 2012-03-09  David S. Miller  <davem@davemloft.net>
28267
28268         * include/math_private.h: New file.
28269
28270 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
28271
28272         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
28273         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
28274         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
28275         from <bits/socket_type.h>.
28276         (enum __socket_type): Don't define here.
28277         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
28278         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28279         bits/socket_type.h.
28280
28281         [BZ #13566]
28282         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
28283         checking __USE_GNU.
28284
28285         * Makerules ($(inst_includedir)/%.h): New rule.
28286         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
28287         (install-others): Remove variable setting.
28288         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
28289
28290 2012-03-08  Richard Henderson  <rth@twiddle.net>
28291
28292         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
28293         from macro to inline function; merge with the
28294         !__LIBC_INTERNAL_MATH_INLINES version.
28295         (__ieee754_sqrtf): Likewise.
28296
28297         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
28298         to inline function.
28299         (__rintf, __floor, __floorf): Likewise.
28300
28301         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
28302         macro to inline function.
28303         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
28304
28305         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
28306         not <math/math_private.h>.
28307
28308 2012-03-08  David S. Miller  <davem@davemloft.net>
28309
28310         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
28311         copyright year.
28312         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
28313
28314 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
28315
28316         * resolv/gai_misc.c (handle_requests): Fix struct timespec
28317         normalization.
28318         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
28319         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
28320
28321 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
28322
28323         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
28324         be defined individually, they must be defined as a block.  Define
28325         S for printing a string instead of hidint the different by using a
28326         macro for adding the 'l'.
28327         * stdio-common/tst-fphex-wide.c: Adjust.
28328
28329 2012-03-07  Marek Polacek  <polacek@redhat.com>
28330
28331         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
28332
28333 2012-03-08  Marek Polacek  <polacek@redhat.com>
28334
28335         [BZ #13806]
28336         * stdio-common/Makefile (tests): Add tst-fphex-wide.
28337         * stdio-common/tst-fphex.c: Define a few macros to make the
28338         test reusable.  Use them.
28339         * stdio-common/tst-fphex-wide.c: New file.
28340
28341 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
28342
28343         [BZ #6911]
28344         * manual/macros.texi (gnusystems): New macro.
28345         (nongnusystems): Likewise.
28346         (gnulinuxhurdsystems): Likewise.
28347         (gnuhurdsystems): Likewise..
28348         (gnulinuxsystems): Likewise.
28349         * manual/charset.texi: Use new macros or @theglibc{} to refer to
28350         variants of the GNU system, not "GNU system".
28351         * manual/conf.texi: Likewise.
28352         * manual/errno.texi: Likewise.  Update example of errno macro
28353         expansion.
28354         * manual/filesys.texi: Likewise.
28355         (getumask): Document as specific to GNU/Hurd.
28356         * manual/install.texi: Likewise.  Reword some references to
28357         GNU/Linux.
28358         * manual/intro.texi: Likewise.
28359         * manual/io.texi: Likewise.
28360         (File Name Portability): Detail which constraints are inapplicable
28361         to all GNU systems and which are only inapplicable to GNU/Hurd.
28362         * manual/job.texi: Likewise.
28363         * manual/llio.texi: Likewise.
28364         (O_NOCTTY): Document as present on GNU/Linux.
28365         * manual/maint.texi: Likewise.
28366         * manual/memory.texi: Likewise.
28367         * manual/pattern.texi: Likewise.
28368         * manual/pipe.texi: Likewise.
28369         * manual/process.texi: Likewise.
28370         * manual/resource.texi: Likewise.
28371         (RUSAGE_CHILDREN): Remove statement about specifying a particular
28372         child on GNU/Hurd.
28373         * manual/setjmp.texi: Likewise.
28374         * manual/signal.texi: Likewise.
28375         * manual/startup.texi: Likewise.
28376         * manual/stdio.texi: Likewise.
28377         * manual/terminal.texi: Likewise.
28378         (ONLCR): Document as POSIX.
28379         (OXTABS): Document availability on GNU/Linux as XTABS.
28380         (ONOEOT): Document availability separately from other bits.
28381         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
28382         * manual/time.texi: Likewise.
28383         * manual/users.texi: Likewise.
28384         * INSTALL: Regenerated.
28385         * sysdeps/gnu/errlist.c: Regenerated.
28386
28387         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
28388         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
28389         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
28390         puts.
28391         * configure: Regenerated.
28392
28393 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
28394
28395         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
28396         default includes instead of AC_HEADER_CHECK.
28397         * sysdeps/i386/configure: Regenerated.
28398
28399         [BZ #10716]
28400         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
28401         * math/s_cacoshf.c (__cacoshf): Likewise.
28402         * math/s_cacoshl.c (__cacoshl): Likewise.
28403         * math/s_casinh.c (__casinh): Set signs of result from argument.
28404         * math/s_casinhf.c (__casinhf): Likewise.
28405         * math/s_casinhl.c (__casinhl): Likewise.
28406         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
28407         (casinh_test): Add more tests.
28408         * sysdeps/i386/fpu/libm-test-ulps: Update.
28409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28410
28411 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
28412
28413         * po/zh_TW.po: Update from translation team.
28414
28415         * login/Makefile (distribute): Remove variable.
28416         * catgets/Makefile: Likewise.
28417         * mach/Makefile: Likewise.
28418         * malloc/Makefile: Likewise.
28419         * misc/Makefile: Likewise.
28420         * iconv/Makefile: Likewise.
28421         * nscd/Makefile: Likewise.
28422         * hurd/Makefile: Likewise.
28423         * manual/Makefile: Likewise.
28424         * locale/Makefile: Likewise.
28425         * intl/Makefile: Likewise.
28426         * conform/Makefile: Likewise.
28427         * nss/Makefile: Likewise.
28428         * time/Makefile: Likewise.
28429         * soft-fp/Makefile: Likewise.
28430         * dirent/Makefile: Likewise.
28431         * gmon/Makefile: Likewise.
28432         * po/Makefile: Likewise.
28433         * rt/Makefile: Likewise.
28434         * socket/Makefile: Likewise.
28435         * math/Makefile: Likewise.
28436         * signal/Makefile: Likewise.
28437         * debug/Makefile: Likewise.
28438         * elf/Makefile: Likewise.
28439         * timezone/Makefile: Likewise.
28440         * stdlib/Makefile: Likewise.
28441         * iconvdata/Makefile: Likewise.
28442         * sunrpc/Makefile: Likewise.
28443         * io/Makefile: Likewise.
28444         * argp/Makefile: Likewise.
28445         * inet/Makefile: Likewise.
28446         * hesiod/Makefile: Likewise.
28447         * grp/Makefile: Likewise.
28448         * csu/Makefile: Likewise.
28449         * wctype/Makefile: Likewise.
28450         * crypt/Makefile: Likewise.
28451         * libio/Makefile: Likewise.
28452         * string/Makefile: Likewise.
28453         * nis/Makefile: Likewise.
28454         * resolv/Makefile: Likewise.
28455         * stdio-common/Makefile: Likewise.
28456         * wcsmbs/Makefile: Likewise.
28457         * dlfcn/Makefile: Likewise.
28458         * posix/Makefile: Likewise.
28459
28460         [BZ #6959]
28461         * timezone/Makefile: Don't install timezone files, just the programs
28462         and scripts.
28463
28464 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
28465
28466         * nss/databases.def: Add missing gshadow entry.
28467
28468         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
28469
28470 2012-03-06  Marek Polacek  <polacek@redhat.com>
28471
28472         [BZ #13726]
28473         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
28474         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
28475         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
28476         * stdio-common/tst-long-dbl-fphex.c: New file.
28477
28478 2012-03-06  David S. Miller  <davem@davemloft.net>
28479
28480         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
28481         (set_obp_int): New function.
28482         (get_obp_int): New function.
28483         (__get_clockfreq_via_dev_openprom): Likewise.
28484         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
28485         Avoid unused variable warnings on 'val' and use builtin_expect.
28486         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
28487         __builtin_expect.
28488         (INLINE_CLONE_SYSCALL): Likewise.
28489
28490 2012-03-05  David S. Miller  <davem@davemloft.net>
28491
28492         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28493
28494 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
28495
28496         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28497
28498         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
28499         only for |x| >= 40.
28500         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
28501
28502 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
28503
28504         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
28505         Replace gettimeofday with __vdso_gettimeofday.
28506
28507         * sysdeps/unix/sysv/linux/x86_64/init-first.c
28508         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
28509         __vdso_clock_gettime and __vdso_getcpu.
28510
28511         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
28512         time with __vdso_time.
28513
28514 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
28515
28516         * manual/lang.texi (size_t): Note types to which size_t may be
28517         equivalent with the GNU C Library, but do not describe when
28518         differences between them are significant.
28519
28520 2012-03-05  Andreas Jaeger  <aj@suse.de>
28521
28522         * sysdeps/i386/fpu/libm-test-ulps: Update.
28523
28524 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
28525
28526         [BZ #3976]
28527         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
28528         (__ieee754_pow): Save and restore rounding mode and use
28529         round-to-nearest for main computations.
28530         * math/libm-test.inc (pow_test_tonearest): New function.
28531         (pow_test_towardzero): Likewise.
28532         (pow_test_downward): Likewise.
28533         (pow_test_upward): Likewise.
28534         (main): Call the new functions.
28535         * sysdeps/i386/fpu/libm-test-ulps: Update.
28536         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28537
28538         [BZ #3976]
28539         * math/libm-test.inc (cosh_test_tonearest): New function.
28540         (cosh_test_towardzero): Likewise.
28541         (cosh_test_downward): Likewise.
28542         (cosh_test_upward): Likewise.
28543         (sinh_test_tonearest): Likewise.
28544         (sinh_test_towardzero): Likewise.
28545         (sinh_test_downward): Likewise.
28546         (sinh_test_upward): Likewise.
28547         (main): Call the new functions.
28548         * sysdeps/i386/fpu/libm-test-ulps: Update.
28549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28550
28551 2012-03-05  Tom de Vries  <tom@codesourcery.com>
28552
28553         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
28554         default stack guard is set in last bytes.
28555         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
28556
28557 2012-03-05  Kees Cook  <keescook@chromium.org>
28558
28559         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
28560
28561         [BZ #13656]
28562         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
28563         possibly allocate from heap instead of stack.
28564         * stdio-common/bug-vfprintf-nargs.c: New file.
28565         * stdio-common/Makefile (tests): Add nargs overflow test.
28566
28567 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
28568
28569         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28570
28571 2012-03-03  Marek Polacek  <polacek@redhat.com>
28572
28573         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
28574         * math/math_private.h: Likewise.
28575         * stdlib/tst-strtod.c: Likewise.
28576         * sysdeps/i386/i486/bits/atomic.h: Likewise.
28577         * sysdeps/x86_64/bits/atomic.h: Likewise.
28578
28579 2012-03-02  David S. Miller  <davem@davemloft.net>
28580
28581         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
28582         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
28583         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
28584         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
28585         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
28586         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
28587         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
28588         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
28589
28590 2012-03-02  Roland McGrath  <roland@hack.frob.com>
28591
28592         [BZ #13792]
28593         * manual/examples/README: New file, says the example source files
28594         can be used under GPL>=2.
28595         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
28596         line containing just "*/".
28597         * manual/examples/add.c: Add copyright header (GPL>=2).
28598         * manual/examples/argp-ex1.c: Likewise.
28599         * manual/examples/argp-ex2.c: Likewise.
28600         * manual/examples/argp-ex3.c: Likewise.
28601         * manual/examples/argp-ex4.c: Likewise.
28602         * manual/examples/atexit.c: Likewise.
28603         * manual/examples/db.c: Likewise.
28604         * manual/examples/dir.c: Likewise.
28605         * manual/examples/dir2.c: Likewise.
28606         * manual/examples/execinfo.c: Likewise.
28607         * manual/examples/filecli.c: Likewise.
28608         * manual/examples/filesrv.c: Likewise.
28609         * manual/examples/fmtmsgexpl.c: Likewise.
28610         * manual/examples/genpass.c: Likewise.
28611         * manual/examples/inetcli.c: Likewise.
28612         * manual/examples/inetsrv.c: Likewise.
28613         * manual/examples/isockad.c: Likewise.
28614         * manual/examples/longopt.c: Likewise.
28615         * manual/examples/memopen.c: Likewise.
28616         * manual/examples/memstrm.c: Likewise.
28617         * manual/examples/mkfsock.c: Likewise.
28618         * manual/examples/mkisock.c: Likewise.
28619         * manual/examples/mygetpass.c: Likewise.
28620         * manual/examples/pipe.c: Likewise.
28621         * manual/examples/popen.c: Likewise.
28622         * manual/examples/rprintf.c: Likewise.
28623         * manual/examples/search.c: Likewise.
28624         * manual/examples/select.c: Likewise.
28625         * manual/examples/setjmp.c: Likewise.
28626         * manual/examples/sigh1.c: Likewise.
28627         * manual/examples/sigusr.c: Likewise.
28628         * manual/examples/stpcpy.c: Likewise.
28629         * manual/examples/strdupa.c: Likewise.
28630         * manual/examples/strftim.c: Likewise.
28631         * manual/examples/strncat.c: Likewise.
28632         * manual/examples/subopt.c: Likewise.
28633         * manual/examples/swapcontext.c: Likewise.
28634         * manual/examples/termios.c: Likewise.
28635         * manual/examples/testopt.c: Likewise.
28636         * manual/examples/testpass.c: Likewise.
28637         * manual/examples/timeval_subtract.c: Likewise.
28638
28639         [BZ #13792]
28640         * manual/time.texi (Elapsed Time): Move timeval_subtract example
28641         function to ...
28642         * manual/timeval_subtract.c.texi: ... here, new file.
28643
28644 2012-03-02  David S. Miller  <davem@davemloft.net>
28645
28646         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
28647
28648 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
28649
28650         [BZ #3976]
28651         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
28652         (__sin): Save and restore rounding mode and use round-to-nearest
28653         for all computations.
28654         (__cos): Save and restore rounding mode and use round-to-nearest
28655         for all computations.
28656         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
28657         <fenv.h>.
28658         (tan): Save and restore rounding mode and use round-to-nearest for
28659         all computations.
28660         * math/libm-test.inc (cos_test_tonearest): New function.
28661         (cos_test_towardzero): Likewise.
28662         (cos_test_downward): Likewise.
28663         (cos_test_upward): Likewise.
28664         (sin_test_tonearest): Likewise.
28665         (sin_test_towardzero): Likewise.
28666         (sin_test_downward): Likewise.
28667         (sin_test_upward): Likewise.
28668         (tan_test_tonearest): Likewise.
28669         (tan_test_towardzero): Likewise.
28670         (tan_test_downward): Likewise.
28671         (tan_test_upward): Likewise.
28672         (main): Call the new functions.
28673         * sysdeps/i386/fpu/libm-test-ulps: Update.
28674         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28675
28676         [BZ #10135]
28677         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
28678         small n, then large n, before computing and testing k+n.
28679         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
28680         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
28681         Likewise.
28682         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
28683         Likewise.
28684         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
28685         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
28686         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
28687         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
28688         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
28689         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
28690         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
28691         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
28692         * math/libm-test.inc (scalbn_test): Add more tests.
28693         (scalbln_test): Likewise.
28694
28695         * manual/filesys.texi (mode_t): Describe constraints on size and
28696         signedness, not exact equivalence to a particular type.
28697         (ino_t): Likewise.
28698         (ino64_t): Likewise.
28699         (dev_t): Likewise.
28700         (nlink_t): Likewise.
28701         (blkcnt_t): Likewise.
28702         (blkcnt64_t): Likewise.
28703         * manual/llio.texi (off_t): Likewise.
28704
28705         [BZ #3976]
28706         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
28707         (__ieee754_exp): Save and restore rounding mode and use
28708         round-to-nearest for all computations.
28709         * math/libm-test.inc (exp_test_tonearest): New function.
28710         (exp_test_towardzero): Likewise.
28711         (exp_test_downward): Likewise.
28712         (exp_test_upward): Likewise.
28713         (main): Call the new functions.
28714         * sysdeps/i386/fpu/libm-test-ulps: Update.
28715         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28716
28717 2012-03-01  Chris Demetriou  <cgd@google.com>
28718
28719         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
28720         have predictable order.
28721
28722 2012-03-01  David S. Miller  <davem@davemloft.net>
28723
28724         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
28725
28726         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
28727         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
28728         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
28729         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
28730
28731         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
28732         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
28733         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
28734         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
28735         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
28736         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
28737         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
28738         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
28739         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
28740
28741         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28742
28743         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
28744         * sysdeps/sparc/fpu/libm-test-ulps: to here.
28745         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
28746
28747         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
28748         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
28749         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
28750         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
28751         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
28752         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
28753         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
28754         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
28755         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
28756         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
28757         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
28758         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
28759         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
28760         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
28761         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
28762         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
28763         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
28764         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
28765         * sysdeps/sparc/elf/configure: Regenerated.
28766
28767 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
28768
28769         * configure.in (AS, LD): Require binutils 2.20 or later.
28770         * configure: Regenerated.
28771         * manual/install.texi (Tools for Compilation): Give binutils 2.20
28772         as required minimum version.
28773         * INSTALL: Regenerated.
28774
28775         [BZ #2541]
28776         [BZ #4108]
28777         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
28778         before squaring exponent.
28779         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
28780         bottom long double and 27 bits of top long double before squaring
28781         exponent.
28782         * math/libm-test.inc (erfc_test): Add more tests.
28783         * sysdeps/i386/fpu/libm-test-ulps: Update.
28784         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28785         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28786
28787 2012-03-01  Kai Tietz  <ktietz@redhat.com>
28788
28789         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
28790         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
28791         containing bit-fields.
28792         * soft-fp/extended.h (_FP_UNION_E): Likewise.
28793         * soft-fp/single.h (_FP_UNION_S): Likewise.
28794         * soft-fp/double.h (_FP_UNION_D): Likewise.
28795
28796 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
28797
28798         [BZ #13786]
28799         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
28800         not include ../strcmp.S.
28801         [USE_AS_STRNCASECMP_L]: Likewise.
28802         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
28803         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
28804         * sysdeps/i386/i686/multiarch/strncase_l-c.c
28805         (__strncasecmp_l_ia32): Define as alias to
28806         __strncasecmp_l_nonascii.
28807
28808         [BZ #5794]
28809         * math/libm-test.inc (expm1_test): Add test for bug 5794.
28810         * sysdeps/i386/fpu/libm-test-ulps: Update.
28811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28812
28813         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
28814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28815
28816 2012-02-29  Jeff Law  <law@redhat.com>
28817
28818         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
28819         out of bounds read.
28820
28821 2012-02-29  Marek Polacek  <polacek@redhat.com>
28822
28823         [BZ #13706]
28824         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
28825         * elf/Makefile: Add rules to run tst-unused-dep.out.
28826
28827 2012-02-28  David S. Miller  <davem@davemloft.net>
28828
28829         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
28830         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
28831         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
28832         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
28833         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
28834         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
28835
28836 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
28837
28838         * math/libm-test.inc (llround_test): Move one test from
28839         lround_test.  Use TEST_f_L in moved test.
28840         (lround_test): Move misplaced test to llround_test.  Add testcase
28841         from bug 2561.
28842
28843 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
28844
28845         * sysdeps/x86_64/fpu/e_expf.S: New file.
28846         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
28847
28848 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
28849
28850         [BZ #13637]
28851         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
28852         of remain_len that may cause incomplete multi-byte character and
28853         false match.
28854         * posix/bug-regex33.c: New file.
28855         * posix/Makefile (tests): Add bug-regex33.
28856
28857 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
28858
28859         * manual/macros.texi: New file.
28860         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
28861         * manual/libc.texinfo: Include macros.texi.
28862         * manual/creatute.texi: Likewise.
28863         * manual/install.texi: Likewise.
28864         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
28865         @glibcadj{} in references to the GNU C Library.
28866         * manual/charset.texi: Likewise.
28867         * manual/conf.texi: Likewise.
28868         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
28869         when not using those macros.
28870         * manual/creature.texi: Likewise.
28871         * manual/crypt.texi: Likewise.
28872         * manual/errno.texi: Likewise.
28873         * manual/filesys.texi: Likewise.
28874         * manual/header.texi: Likewise.
28875         * manual/install.texi: Likewise.
28876         * manual/intro.texi: Likewise.
28877         * manual/io.texi: Likewise.
28878         * manual/job.texi: Likewise.
28879         * manual/lang.texi: Likewise.
28880         * manual/libc.texiinfo: Likewise.
28881         * manual/llio.texi: Likewise.
28882         * manual/locale.texi: Likewise.
28883         * manual/maint.texi: Likewise.
28884         * manual/math.texi: Likewise.
28885         * manual/memory.texi: Likewise.
28886         * manual/message.texi: Likewise.
28887         * manual/nss.texi: Likewise.
28888         * manual/pattern.texi: Likewise.
28889         * manual/process.texi: Likewise.
28890         * manual/resource.texi: Likewise.
28891         * manual/search.texi: Likewise.
28892         * manual/setjmp.texi: Likewise.
28893         * manual/signal.texi: Likewise.
28894         * manual/socket.texi: Likewise.
28895         * manual/startup.texi: Likewise.
28896         * manual/stdio.texi: Likewise.
28897         * manual/string.texi: Likewise.
28898         * manual/sysinfo.texi: Likewise.
28899         * manual/syslog.texi: Likewise.
28900         * manual/terminal.texi: Likewise.
28901         * manual/time.texi: Likewise.
28902         * manual/users.texi: Likewise.
28903         * INSTALL: Regenerated.
28904         * NOTES: Regenerated.
28905         * sysdeps/gnu/errlist.c: Regenerated.
28906
28907 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
28908
28909         * include/dirent.h: Include <dirstream.h> before
28910         <dirent/dirent.h>.
28911
28912 2012-02-28  David S. Miller  <davem@davemloft.net>
28913
28914         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
28915         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
28916         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
28917         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
28918
28919 2012-02-27  David S. Miller  <davem@davemloft.net>
28920
28921         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
28922         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
28923         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
28924         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
28925
28926         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
28927         frame pointer instead of stack pointer relative arg slot.
28928         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
28929         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
28930         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
28931
28932 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
28933
28934         [BZ #3992]
28935         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
28936
28937 2012-02-27  David S. Miller  <davem@davemloft.net>
28938
28939         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
28940         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
28941         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
28942         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
28943         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
28944         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
28945         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
28946         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
28947
28948 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
28949
28950         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
28951         later.  Allow versions 5-9.
28952         * configure: Regenerated.
28953         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
28954         required minimum version and 4.6 as recommended version.  Do not
28955         mention bugs in GCC 2.7 and 2.8.
28956         * INSTALL: Regenerated.
28957
28958 2012-02-27  David S. Miller  <davem@davemloft.net>
28959
28960         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
28961         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
28962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
28963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
28964         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
28965         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
28966         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
28967         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
28968
28969         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
28970         manipulate bits before adding and subtracting TWO112[sx].
28971         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
28972
28973 2012-02-27  Roland McGrath  <roland@hack.frob.com>
28974
28975         [BZ #13775]
28976         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
28977         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
28978         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
28979         being in POSIX, because they are in 1003.1-2008.
28980
28981         * rt/tst-aio.c: Include <fcntl.h>.
28982         * rt/tst-aio7.c: Likewise.
28983         * rt/tst-aio64.c: Likewise.
28984
28985         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
28986
28987 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
28988
28989         * manual/install.texi (--with-headers): Describe headers as
28990         interface headers, not private headers.
28991         (Specific advice for GNU/Linux systems): Describe use of headers
28992         from "make headers_install", not private headers from older
28993         kernels.
28994         * INSTALL: Regenerated.
28995         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
28996         Change to 2.6.19.
28997         * sysdeps/unix/sysv/linux/configure: Regenerated.
28998
28999         * manual/llio.texi (fclean): Remove documentation.
29000
29001         * manual/Makefile (libc-texi-generated): New variable.  Include
29002         version.texi.
29003         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
29004         $(libc-texi-generated), not duplicated list of files.
29005         (version.texi, stamp-version): New rules.
29006         (realclean): Remove $(libc-texi-generated), not individual files
29007         from that list.  Do not remove dir-add.texinfo.
29008         * manual/libc.texinfo: Comment out uses of edition numbers and
29009         references to printed manual.  Remove last-updated dates.
29010         (EDITION): Comment out.
29011         (ISBN): Likewise.
29012         (VERSION, UPDATED): Remove.
29013         (version.texi): Include.
29014
29015 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
29016
29017         * sysdeps/posix/spawni.c: Include <signal.h>.
29018         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
29019         * sysdeps/pthread/aio_fsync.c: Likewise.
29020
29021 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
29022
29023         * conform/Makefile (tests): Run only when not cross-compiling and
29024         when fast-check is not defined.
29025
29026         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
29027         * conform/data/limits.h-data: Fixes for POSIX2008.
29028         * conform/run-conformtest.sh: Run all tests.
29029         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
29030         headers.
29031         * include/bits/dlfcn.h: Likewise.
29032         * include/langinfo.h: Likewise.
29033         * include/monetary.h: Likewise.
29034         * include/sys/poll.h: Likewise.
29035
29036         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
29037         for __USE_GNU.
29038         * posix/spawn.h: Define __need_sigset_t.
29039         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
29040         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
29041         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
29042         to get sigevent_t only.
29043         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
29044         only for __USE_GNU.
29045         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
29046         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
29047         process_vm_writev only for __USE_GNU.
29048         * termios/termios.h: Declare tcgetsid also for POSIX2008.
29049
29050         * conform/Makefile: For now ignore errors from run-conformtest.
29051         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
29052         POSIX to avoid namespace pollution.  Don't prepend headers.
29053         * conform/data/aio.h-data: Fixes for POSIX testing.
29054         * conform/data/fcntl.h-data: Likewise.
29055         * conform/data/glob.h-data: Likewise.
29056         * conform/data/grp.h-data: Likewise.
29057         * conform/data/pthread.h-data: Likewise.
29058         * conform/data/pwd.h-data: Likewise.
29059         * conform/data/signal.h-data: Likewise.
29060         * conform/data/spawn.h-data: Likewise.
29061         * conform/data/stdio.h-data: Likewise.
29062         * conform/data/stdlib.h-data: Likewise.
29063         * conform/data/stropts.h-data: Likewise.
29064         * conform/data/sys/mman.h-data: Likewise.
29065         * conform/data/sys/stat.h-data: Likewise.
29066         * conform/data/sys/types.h-data: Likewise.
29067         * conform/data/sys/wait.h-data: Likewise.
29068         * conform/data/time.h-data: Likewise.
29069         * conform/data/unistd.h-data: Likewise.
29070         * conform/data/utime.h-data: Likewise.
29071
29072         * io/sys/stat.h: fchmod was always in POSIX.
29073         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
29074         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
29075         * rt/aio.h: Define __need_timespec before including <time.h>.
29076         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
29077         struct.  Add forward declaration of pthread_attr_t and use it in
29078         sigevent.
29079         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
29080         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
29081         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
29082         always remove CLK_TCK definition.
29083
29084 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
29085
29086         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
29087
29088 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
29089
29090         * conform/run-conformtest.sh: New file.
29091         * conform/Makefile: Run run-conformtest for tests.
29092         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
29093         support.
29094
29095         * conform/data/uchar.h-data: New file.
29096         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
29097         * conform/data/arpa/inet.h-data: Likewise.
29098         * conform/data/assert.h-data: Likewise.
29099         * conform/data/complex.h-data: Likewise.
29100         * conform/data/cpio.h-data: Likewise.
29101         * conform/data/ctype.h-data: Likewise.
29102         * conform/data/dirent.h-data: Likewise.
29103         * conform/data/dlfcn.h-data: Likewise.
29104         * conform/data/errno.h-data: Likewise.
29105         * conform/data/fcntl.h-data: Likewise.
29106         * conform/data/float.h-data: Likewise.
29107         * conform/data/fmtmsg.h-data: Likewise.
29108         * conform/data/fnmatch.h-data: Likewise.
29109         * conform/data/ftw.h-data: Likewise.
29110         * conform/data/glob.h-data: Likewise.
29111         * conform/data/grp.h-data: Likewise.
29112         * conform/data/iconv.h-data: Likewise.
29113         * conform/data/inttypes.h-data: Likewise.
29114         * conform/data/langinfo.h-data: Likewise.
29115         * conform/data/libgen.h-data: Likewise.
29116         * conform/data/limits.h-data: Likewise.
29117         * conform/data/locale.h-data: Likewise.
29118         * conform/data/math.h-data: Likewise.
29119         * conform/data/monetary.h-data: Likewise.
29120         * conform/data/mqueue.h-data: Likewise.
29121         * conform/data/ndbm.h-data: Likewise.
29122         * conform/data/net/if.h-data: Likewise.
29123         * conform/data/netdb.h-data: Likewise.
29124         * conform/data/netinet/in.h-data: Likewise.
29125         * conform/data/nl_types.h-data: Likewise.
29126         * conform/data/poll.h-data: Likewise.
29127         * conform/data/pthread.h-data: Likewise.
29128         * conform/data/pwd.h-data: Likewise.
29129         * conform/data/regex.h-data: Likewise.
29130         * conform/data/sched.h-data: Likewise.
29131         * conform/data/search.h-data: Likewise.
29132         * conform/data/semaphore.h-data: Likewise.
29133         * conform/data/setjmp.h-data: Likewise.
29134         * conform/data/signal.h-data: Likewise.
29135         * conform/data/spawn.h-data: Likewise.
29136         * conform/data/stdarg.h-data: Likewise.
29137         * conform/data/stdio.h-data: Likewise.
29138         * conform/data/stdlib.h-data: Likewise.
29139         * conform/data/string.h-data: Likewise.
29140         * conform/data/strings.h-data: Likewise.
29141         * conform/data/stropts.h-data: Likewise.
29142         * conform/data/sys/ipc.h-data: Likewise.
29143         * conform/data/sys/mman.h-data: Likewise.
29144         * conform/data/sys/msg.h-data: Likewise.
29145         * conform/data/sys/resource.h-data: Likewise.
29146         * conform/data/sys/select.h-data: Likewise.
29147         * conform/data/sys/sem.h-data: Likewise.
29148         * conform/data/sys/shm.h-data: Likewise.
29149         * conform/data/sys/socket.h-data: Likewise.
29150         * conform/data/sys/stat.h-data: Likewise.
29151         * conform/data/sys/statvfs.h-data: Likewise.
29152         * conform/data/sys/time.h-data: Likewise.
29153         * conform/data/sys/timeb.h-data: Likewise.
29154         * conform/data/sys/times.h-data: Likewise.
29155         * conform/data/sys/types.h-data: Likewise.
29156         * conform/data/sys/uio.h-data: Likewise.
29157         * conform/data/sys/un.h-data: Likewise.
29158         * conform/data/sys/utsname.h-data: Likewise.
29159         * conform/data/sys/wait.h-data: Likewise.
29160         * conform/data/syslog.h-data: Likewise.
29161         * conform/data/tar.h-data: Likewise.
29162         * conform/data/termios.h-data: Likewise.
29163         * conform/data/utime.h-data: Likewise.
29164         * conform/data/utmpx.h-data: Likewise.
29165         * conform/data/varargs.h-data: Likewise.
29166         * conform/data/wchar.h-data: Likewise.
29167         * conform/data/wctype.h-data: Likewise.
29168         * conform/data/wordexp.h-data: Likewise.
29169
29170         * include/stropts.h: New file.
29171         * include/uchar.h: New file.
29172         * include/aio.h: Changes to allow conformtest.pl to use the headers.
29173         * include/assert.h: Likewise.
29174         * include/ctype.h: Likewise.
29175         * include/dirent.h: Likewise.
29176         * include/dlfcn.h: Likewise.
29177         * include/fcntl.h: Likewise.
29178         * include/fnmatch.h: Likewise.
29179         * include/glob.h: Likewise.
29180         * include/grp.h: Likewise.
29181         * include/libio.h: Likewise.
29182         * include/locale.h: Likewise.
29183         * include/math.h: Likewise.
29184         * include/net/if.h: Likewise.
29185         * include/netdb.h: Likewise.
29186         * include/netinet/in.h: Likewise.
29187         * include/pthread.h: Likewise.
29188         * include/pwd.h: Likewise.
29189         * include/regex.h: Likewise.
29190         * include/sched.h: Likewise.
29191         * include/search.h: Likewise.
29192         * include/setjmp.h: Likewise.
29193         * include/signal.h: Likewise.
29194         * include/stdio.h: Likewise.
29195         * include/stdlib.h: Likewise.
29196         * include/string.h: Likewise.
29197         * include/sys/cdefs.h: Likewise.
29198         * include/sys/mman.h: Likewise.
29199         * include/sys/msg.h: Likewise.
29200         * include/sys/resource.h: Likewise.
29201         * include/sys/select.h: Likewise.
29202         * include/sys/socket.h: Likewise.
29203         * include/sys/stat.h: Likewise.
29204         * include/sys/statvfs.h: Likewise.
29205         * include/sys/time.h: Likewise.
29206         * include/sys/times.h: Likewise.
29207         * include/sys/uio.h: Likewise.
29208         * include/sys/utsname.h: Likewise.
29209         * include/sys/wait.h: Likewise.
29210         * include/termios.h: Likewise.
29211         * include/time.h: Likewise.
29212         * include/ulimit.h: Likewise.
29213         * include/unistd.h: Likewise.
29214         * include/utime.h: Likewise.
29215         * include/wchar.h: Likewise.
29216         * include/wctype.h: Likewise.
29217         * include/wordexp.h: Likewise.
29218
29219         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
29220
29221         * time/time.h: TIME_UTC must be a macro.
29222         Make timespec_get available for ISO C11 only as well.
29223
29224 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
29225
29226         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
29227         Reported by Peng Haitao <penght@cn.fujitsu.com>.
29228
29229 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
29230
29231         * configure.in: Use -o not -a in test for unsupported multi-arch.
29232
29233 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
29234
29235         * manual/texinfo.tex: Update to version 2012-01-19.16.
29236
29237 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
29238
29239         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
29240
29241 2012-02-24  Roland McGrath  <roland@hack.frob.com>
29242
29243         [BZ #13738]
29244         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
29245         * manual/fdl-1.3.texi: New file.
29246         * manual/fdl-1.1.texi: File removed.
29247
29248         [BZ #13738]
29249         * manual/libc.texinfo (FDL_VERSION): New @set.
29250         Use it for mention of FDL in cover text.
29251         (Documentation License): Use it in @include file name.
29252
29253 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29254             Roland McGrath  <roland@hack.frob.com>
29255
29256         [BZ #5461]
29257         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
29258         not LONG_LONG_MAX and LONG_LONG_MIN.
29259         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
29260         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
29261         name.
29262         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
29263
29264 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29265
29266         [BZ #2547]
29267         [BZ #11365]
29268         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
29269         manipulate bits before adding and subtracting TWO23[sx].
29270         * math/libm-test.inc (nearbyint_test): Add more tests.
29271
29272 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29273
29274         [BZ #2548]
29275         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
29276         bits before adding and subtracting TWO23[sx].
29277         * math/libm-test.inc (rint_test): Add more tests.
29278         (rint_test_tonearest): Likewise.
29279         (rint_test_towardzero): Likewise.
29280         (rint_test_downward): Likewise.
29281         (rint_test_upward: Likewise.
29282
29283 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29284
29285         [BZ #10110]
29286         * include/stdc-predef.h: New file.  Extracted from features.h.
29287         * include/features.h: Include stdc-predef.h.
29288         * Makefile (headers): Add stdc-predef.h.
29289         * CONFORMANCE (Compiler limitations): Update.
29290
29291 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29292
29293         * manual/libc.texinfo (VERSION, UPDATED): Revert.
29294
29295 2012-02-21  David S. Miller  <davem@davemloft.net>
29296
29297         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
29298         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
29299
29300 2012-02-20  David S. Miller  <davem@davemloft.net>
29301
29302         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
29303         using a normal save/restore sequence, rather than allocating a
29304         dummy stack frame just to store a frame pointer and restore.
29305         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29306
29307 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
29308
29309         * manual/install.texi: Fix stray word in line-wrapped comment.
29310
29311 2012-02-20  David S. Miller  <davem@davemloft.net>
29312
29313         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
29314         both binutils and gcc support GOTDATA.
29315
29316         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
29317         "rd %pc" in the PIC register setup sequences.
29318
29319         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
29320         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
29321         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
29322         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
29323         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
29324         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
29325         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
29326         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29327         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
29328         (SYSCALL_ERROR_HANDLER): Likewise.
29329         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
29330         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
29331         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
29332         (SYSCALL_ERROR_HANDLER): Likewise.
29333
29334         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
29335         (HAVE_GCC_GOTDATA): New.
29336         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
29337         relocation support in both binutils and gcc.
29338         * sysdeps/sparc/elf/configure: Regenerate.
29339
29340         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
29341         * sysdeps/sparc/sparc32/elf/configure: Delete.
29342         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
29343         * sysdeps/sparc/sparc64/elf/configure: Delete.
29344         * sysdeps/sparc/elf/configure.in: New file.
29345         * sysdeps/sparc/elf/configure: Generate.
29346
29347         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
29348         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
29349         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
29350         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
29351         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
29352
29353 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
29354
29355         * manual/install.texi: Do not mention specific glibc version
29356         numbers.
29357         * manual/libc.texinfo (VERSION, UPDATED): Update.
29358         (@copying): Use @copyright{} and range of years.
29359
29360 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
29361
29362         [BZ #13695]
29363         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
29364         [crti.S not in sysdirs] (generated): Do not append.
29365         [crti.S not in sysdirs] (omit-deps): Likewise.
29366         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
29367         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
29368         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
29369         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
29370         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
29371         Likewise.
29372         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
29373         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
29374         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
29375         * csu/defs.awk: Remove file.
29376         * sysdeps/generic/initfini.c: Likewise.
29377         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
29378         variable.
29379         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
29380         Likewise.
29381
29382 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
29383
29384         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
29385         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
29386         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
29387         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
29388         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
29389         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
29390         <bits/epoll.h>.
29391         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
29392         (__EPOLL_PACKED): Define to empty if not defined by
29393         <bits/epoll.h>.
29394         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
29395         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29396         bits/epoll.h.
29397
29398 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
29399
29400         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
29401         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
29402         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
29403         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
29404         <bits/timerfd.h>.
29405         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
29406         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29407         bits/timerfd.h.
29408
29409 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
29410
29411         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
29412         in C locale.
29413         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29414         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
29415         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
29416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29417
29418 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
29419
29420         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29421         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
29422
29423 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
29424
29425         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
29426         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
29427         defined.
29428         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
29429         Likewise.
29430         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
29431         entry for 2.16.
29432
29433 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
29434
29435         * math/w_acos.c: Use non-signaling floating-point comparisons.
29436         * math/w_acosf.c: Likewise.
29437         * math/w_acosh.c: Likewise.
29438         * math/w_acoshf.c: Likewise.
29439         * math/w_acoshl.c: Likewise.
29440         * math/w_acosl.c: Likewise.
29441         * math/w_asin.c: Likewise.
29442         * math/w_asinf.c: Likewise.
29443         * math/w_asinl.c: Likewise.
29444         * math/w_atanh.c: Likewise.
29445         * math/w_atanhf.c: Likewise.
29446         * math/w_atanhl.c: Likewise.
29447         * math/w_exp2.c: Likewise.
29448         * math/w_exp2f.c: Likewise.
29449         * math/w_exp2l.c: Likewise.
29450         * math/w_j0.c: Likewise.
29451         * math/w_j0f.c: Likewise.
29452         * math/w_j0l.c: Likewise.
29453         * math/w_j1.c: Likewise.
29454         * math/w_j1f.c: Likewise.
29455         * math/w_j1l.c: Likewise.
29456         * math/w_jn.c: Likewise.
29457         * math/w_jnf.c: Likewise.
29458         * math/w_log.c: Likewise.
29459         * math/w_log10.c: Likewise.
29460         * math/w_log10f.c: Likewise.
29461         * math/w_log10l.c: Likewise.
29462         * math/w_log2.c: Likewise.
29463         * math/w_log2f.c: Likewise.
29464         * math/w_log2l.c: Likewise.
29465         * math/w_logf.c: Likewise.
29466         * math/w_logl.c: Likewise.
29467         * math/w_sqrt.c: Likewise.
29468         * math/w_sqrtf.c: Likewise.
29469         * math/w_sqrtl.c: Likewise.
29470         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29471         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
29472         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29473         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
29474         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
29475
29476 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
29477
29478         [BZ #9739]
29479         * manual/string.texi (strnlen): Use correct parameter name in
29480         equivalent expression.
29481
29482 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
29483
29484         [BZ #11174]
29485         * manual/users.texi (seteuid): Consistently use neweuid for
29486         argument name.
29487
29488 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
29489
29490         [BZ #13704]
29491         * manual/nss.texi (Services in the NSS configuration): Correct
29492         list of services in example configuration file.
29493
29494 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
29495
29496         [BZ #11322]
29497         * manual/arith.texi: Remove statements about negative zero
29498         behaving identically to zero.
29499
29500 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
29501
29502         [BZ #5993]
29503         * manual/install.texi: Do not document upgrading from libc5.
29504
29505 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
29506
29507         [BZ #4596]
29508         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
29509
29510 2012-02-18  David S. Miller  <davem@davemloft.net>
29511
29512         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
29513         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
29514         %o7 across the call.
29515         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
29516         instead.
29517         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
29518         SETUP_PIC_REG_LEAF.
29519         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29520         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
29521         * sysdeps/sparc/crtn.S: Likewise.
29522
29523 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
29524
29525         * aout/Makefile: Remove.
29526
29527 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
29528
29529         [BZ #13058]
29530         * manual/examples/argp-ex1.c (main): Format definition in GNU
29531         style.
29532         * manual/examples/argp-ex2.c (main): Likewise.
29533         * manual/examples/argp-ex3.c (main): Likewise.
29534         * manual/examples/argp-ex4.c (main): Likewise.
29535         * manual/examples/longopt.c (main): Use new-style prototype
29536         definition.
29537         * manual/examples/strncat.c (main): Specify return type and use
29538         (void) for arguments.
29539         * manual/examples/subopt.c (main): Use char **argv argument.
29540
29541 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29542
29543         [BZ #5077]
29544         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
29545         rounding modes.
29546
29547 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
29548
29549         [BZ #6907]
29550         * manual/string.texi (strchr): Change when strchrnul is
29551         recommended.
29552
29553 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
29554
29555         [BZ #174]
29556         * manual/locale.texi (setlocale): Document LOCPATH.
29557
29558 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29559
29560         [BZ #10210]
29561         * manual/process.texi (execle): Move @dots{} before last argument.
29562
29563 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
29564
29565         [BZ #12047]
29566         * manual/charset.texi (Generic Charset Conversion): Fix typo
29567         (LC_TYPE -> LC_CTYPE).
29568
29569 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
29570
29571         [BZ #5805]
29572         * manual/arith.texi (scalbn): Use @var{} on parameter names.
29573         (scalbnf): Likewise.
29574         (scalbnl): Likewise.
29575         (scalbln): Likewise.
29576         (scalblnf): Likewise.
29577         (scalblnl): Likewise.
29578         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
29579         (vwarnx): Likewise.
29580         (verr): Likewise.
29581         (verrx): Likewise.
29582         * manual/filesys.texi (telldir): Use braces around return type.
29583         * manual/llio.texi (mmap): Add space after comma.
29584         (mmap64): Likewise.
29585         * manual/math.texi (jn): Use @var{} on parameter names.
29586         (jnf): Likewise.
29587         (jnl): Likewise.
29588         (yn): Likewise.
29589         (ynf): Likewise.
29590         (ynl): Likewise.
29591         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
29592         line.
29593         * manual/resource.texi (ulimit): Use @dots{} instead of literal
29594         "...".
29595         (sched_get_priority_min): Remove semicolon on @deftypefun line.
29596         (sched_get_priority_max): Likewise.
29597         * manual/signal.texi (sigvec): Add space after comma.
29598         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
29599         names.
29600         (if_indextoname): Likewise.
29601         (if_freenameindex): Likewise.
29602         (sendto): Use ',' instead of '.' in prototype.
29603         * manual/startup.texi (syscall): Use @dots{} instead of literal
29604         "...".
29605         * manual/stdio.texi (__fpending): Separate initial words of
29606         paragraph from @deftypefun line.
29607         * manual/syslog.texi (syslog): Use @dots{} instead of literal
29608         "...".
29609         (vsyslog): Use @var{} on parameter names.
29610         * manual/terminal.texi (stty): Use @var{} on parameter names.
29611         * manual/users.texi (getutmp): Use @var{} on parameter names.
29612         (getutmpx): Likewise.
29613
29614 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29615
29616         [BZ #6884]
29617         * manual/stdio.texi (fopen): Fix typos in description of
29618         ",ccs=STRING".
29619
29620 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
29621
29622         [BZ #4026]
29623         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
29624         get clock_id definition.
29625
29626 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
29627
29628         [BZ #4822]
29629         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
29630         (madvise): Cast every argument to void on its own.
29631
29632 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29633
29634         [BZ #9902]
29635         * manual/startup.texi (Exit Status): Fix typo.
29636
29637 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29638
29639         [BZ #10140]
29640         * manual/examples/argp-ex1.c: Include <stdlib.h>.
29641         * manual/examples/argp-ex2.c: Likewise.
29642         * manual/examples/argp-ex3.c: Likewise.
29643
29644 2012-02-16  Richard Henderson  <rth@redhat.com>
29645
29646         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
29647         * sysdeps/s390/s390-32/initfini.c: Remove.
29648         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
29649         * sysdeps/s390/s390-64/initfini.c: Remove.
29650
29651 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29652
29653         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
29654         compiler output for sysdeps/generic/initfini.c.
29655         * sysdeps/sh/elf/initfini.c: Remove file.
29656
29657 2012-02-16  David S. Miller  <davem@davemloft.net>
29658
29659         [BZ #11494]
29660         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
29661
29662         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
29663         * sysdeps/sparc/crti.S: New file.
29664         * sysdeps/sparc/crtn.S: New file.
29665         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
29666         * sysdeps/sparc/sparc64/Makefile: Likewise.
29667
29668 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
29669
29670         [BZ #3335]
29671         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
29672
29673 2012-02-15  Roland McGrath  <roland@hack.frob.com>
29674
29675         [BZ #4822]
29676         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
29677
29678         * mach/devstream.c (cookie_io_functions_t): Macro removed.
29679         (write, read, close): Likewise.
29680         Patch by Aurelien Jarno <aurelien@aurel32.net>.
29681
29682 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
29683
29684         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
29685         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
29686         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
29687         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
29688         <bits/signalfd.h>.
29689         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
29690         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29691         bits/signalfd.h.
29692
29693 2012-02-14  Marek Polacek  <polacek@redhat.com>
29694
29695         * sysdeps/x86_64/crti.S: New file.
29696         * sysdeps/x86_64/crtn.S: New file.
29697         * sysdeps/x86_64/elf/initfini.c: Remove file.
29698
29699 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
29700
29701         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
29702         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
29703         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
29704         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
29705         <bits/inotify.h>.
29706         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
29707         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29708         bits/inotify.h.
29709
29710 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
29711
29712         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
29713         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
29714         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
29715         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
29716         <bits/eventfd.h>.
29717         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
29718         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29719         bits/eventfd.h.
29720
29721 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
29722
29723         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
29724         __feraiseexcept instead of feraiseexcept.
29725
29726         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
29727         nanosleep invocations.
29728         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
29729         strings, and add error checking for a nanosleep invocations.
29730
29731 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
29732
29733         Replace FSF snail mail address with URLs, as per GNU coding standards.
29734         Most of the snail mail addresses were wrong anyway, and omitting
29735         them makes the source code easier to maintain.  Almost all of the
29736         changes are to license notices and to locale LC_IDENTIFICATION
29737         addresses, except for this one:
29738         * manual/libc.texinfo: In "Published by", give the FSF's URL,
29739         not its snail mail address.
29740
29741 2012-02-09  Richard Henderson  <rth@twiddle.net>
29742
29743         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
29744         of kernel-features.h.
29745
29746         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
29747
29748 2012-02-08  Marek Polacek  <polacek@redhat.com>
29749
29750         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
29751         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
29752         * sysdeps/gnu/_G_config.h: Likewise.
29753         * sysdeps/generic/_G_config.h: Likewise.
29754
29755 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
29756
29757         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
29758         tests.
29759         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29760
29761         * sysdeps/powerpc/powerpc32/crti.S: New file.
29762         * sysdeps/powerpc/powerpc32/crtn.S: New file.
29763         * sysdeps/powerpc/powerpc64/crti.S: New file.
29764         * sysdeps/powerpc/powerpc64/crtn.S: New file.
29765
29766         * Makeconfig (have-initfini): Don't set.
29767         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
29768         * configure.in (nopic_initfini): Don't substitute.
29769         * config.h.in (HAVE_INITFINI): Don't #undef.
29770         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
29771         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
29772
29773 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
29774
29775         Support crti.S and crtn.S provided directly by architectures.
29776         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
29777         [crti.S in sysdirs] (omit-deps): Likewise.
29778         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
29779         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
29780         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
29781         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
29782         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
29783         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
29784         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
29785         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
29786         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
29787         compiler output for sysdeps/generic/initfini.c.
29788         * sysdeps/i386/elf/Makefile: Remove file.
29789         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
29790
29791 2012-02-07  Marek Polacek  <polacek@redhat.com>
29792
29793         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
29794         * sysdeps/gnu/_G_config.h: Likewise.
29795         * sysdeps/mach/hurd/_G_config.h: Likewise.
29796
29797 2012-02-07  Marek Polacek  <polacek@redhat.com>
29798
29799         * math/Makefile (tests): Add tst-CMPLX2.
29800         * math/tst-CMPLX2.c: New file.
29801
29802 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
29803
29804         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29805
29806         * math/libm-test.inc (jn_test): Add missing L suffix.
29807
29808 2012-02-06  Marek Polacek  <polacek@redhat.com>
29809
29810         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
29811         * sysdeps/i386/fpu/e_powf.S: Likewise.
29812         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29813         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
29814         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29815         * sysdeps/i386/fpu/e_pow.S: Likewise.
29816         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
29817         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29818         * sysdeps/i386/fpu/s_expm1.S: Likewise.
29819         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
29820         * sysdeps/i386/fpu/e_log2.S: Likewise.
29821         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29822         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29823         * sysdeps/i386/fpu/e_powl.S: Likewise.
29824         * sysdeps/i386/fpu/s_log1p.S: Likewise.
29825         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29826         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
29827         * sysdeps/i386/fpu/e_logl.S: Likewise.
29828         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
29829         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
29830         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
29831         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
29832         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29833         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29834         * sysdeps/i386/fpu/e_log.S: Likewise.
29835         * sysdeps/i386/fpu/s_cexp.S: Likewise.
29836         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29837         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
29838         * sysdeps/i386/fpu/e_logf.S: Likewise.
29839         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29840         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29841         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
29842         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
29843         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
29844         * sysdeps/i386/fpu/e_log10.S: Likewise.
29845         * sysdeps/i386/fpu/s_frexp.S: Likewise.
29846         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29847         * sysdeps/i386/fpu/s_asinh.S: Likewise.
29848         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
29849         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29850         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
29851         * sysdeps/i386/asm-syntax.h: Likewise.
29852         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29853         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29854         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29855         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
29856         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
29857         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29858         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
29859         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
29860         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29861         * sysdeps/powerpc/sysdep.h: Likewise.
29862         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
29863         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
29864
29865 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
29866
29867         [BZ #411]
29868         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
29869
29870 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
29871
29872         * sysdeps/i386/sysdep.h: Include <features.h>.
29873         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
29874         version.
29875
29876 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
29877
29878         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
29879         Define.
29880         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
29881         LOAD_PIC_REG_STR.
29882
29883 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
29884
29885         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
29886         (SETUP_PIC_REG): Use GET_PC_THUNK.
29887         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
29888         macro.
29889
29890 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
29891
29892         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
29893         for non-PIC compilation.
29894         (SETUP_PIC_REG): Add .p2align directive.
29895         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
29896         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
29897         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
29898         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
29899         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
29900         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
29901         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
29902         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
29903         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
29904         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
29905         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
29906         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
29907         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
29908         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
29909         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
29910         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
29911         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
29912         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
29913         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
29914         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
29915         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
29916         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
29917         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
29918         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
29919         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
29920         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
29921         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
29922         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
29923         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
29924         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
29925         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
29926         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
29927         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
29928         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
29929         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
29930         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
29931         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
29932         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
29933         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
29934         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
29935         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
29936
29937 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
29938
29939         * math/tst-CMPLX.c: Include <stdio.h>.
29940
29941 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
29942
29943         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
29944         float.
29945         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
29946         * sysdeps/sparc/bits/mathdef.h: Likewise.
29947
29948 2012-01-31  Marek Polacek  <polacek@redhat.com>
29949
29950         * libio/libio.h: Don't define _PARAMS.
29951         * locale/programs/config.h: Don't define PARAMS.
29952         * stdlib/strtol_l.c: Likewise.
29953         (__strtol_l): Remove PARAMS from the prototype.
29954
29955 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
29956
29957         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
29958         names.  Just use the correct names.  Remove unnecessary wrapper
29959         functions.
29960         * malloc/arena.c: Likewise.
29961         * malloc/hooks.c: Likewise.
29962
29963         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
29964         ARENA_TEST says not to.  Simplify test for creation of a new arena.
29965         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
29966
29967 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
29968
29969         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
29970         into tail calls.
29971         (update_get_addr): New function.
29972         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
29973         GET_ADDR_MODULE parameter.
29974
29975 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
29976
29977         * crypt/cert.c: Remove __STDC__ conditionals.
29978         * crypt/crypt-entry.c: Likewise.
29979         * crypt/crypt_util.c: Likewise.
29980         * libio/filedoalloc.c: Likewise.
29981         * libio/fileops.c: Likewise.
29982         * libio/genops.c: Likewise.
29983         * libio/iofclose.c: Likewise.
29984         * libio/iofdopen.c: Likewise.
29985         * libio/iofopen.c: Likewise.
29986         * libio/iofopen64.c: Likewise.
29987         * libio/iogetdelim.c: Likewise.
29988         * libio/iopopen.c: Likewise.
29989         * libio/obprintf.c: Likewise.
29990         * libio/oldfileops.c: Likewise.
29991         * libio/oldiofclose.c: Likewise.
29992         * libio/oldiofdopen.c: Likewise.
29993         * libio/oldiofopen.c: Likewise.
29994         * libio/oldiopopen.c: Likewise.
29995         * libio/wfiledoalloc.c: Likewise.
29996         * libio/wgenops.c: Likewise.
29997         * locale/programs/xmalloc.c: Likewise.
29998         * misc/syslog.c: Likewise.
29999         * stdio-common/xbug.c: Likewise.
30000         * string/memchr.c: Likewise.
30001         * string/memcmp.c: Likewise.
30002         * string/memrchr.c: Likewise.
30003         * string/rawmemchr.c: Likewise.
30004         * sysdeps/posix/getcwd.c: Likewise.
30005         * time/strftime_l.c: Likewise.
30006
30007 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
30008
30009         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
30010         * config.make.in (config-cflags-sse2avx): Define.
30011         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
30012         Fix typo.
30013
30014 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
30015
30016         * scripts/config.guess: Update from upstream config git repository.
30017         * scripts/config.sub: Likewise.
30018
30019 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
30020
30021         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
30022         (EM_NUM): Update.
30023         (R_TILEPRO_*, R_TILEGX_*): New macros.
30024
30025         * scripts/firstversions.awk: Fix bug in version range handling.
30026
30027         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
30028
30029         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
30030
30031         * include/sys/epoll.h: New file.
30032         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
30033         libc_hidden_def.
30034
30035 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
30036
30037         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
30038         Avoid unnecessary __WORDSIZE == 64 test.
30039         (fmaxf): Use VEX format if possible.
30040         (fmax): Likewise.
30041         (fminf): Likewise.
30042         (fmin): Likewise.
30043
30044         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
30045         * math/math_private.h: Remove libc_fegetround* and
30046         libc_fesetround*.
30047         * sysdeps/i386/configure.in: Check for -msse2avx.
30048         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
30049         also if SSE2AVX is defined.
30050         Remove libc_fegetround* and libc_fesetround*.
30051         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
30052         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
30053         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
30054         of HAS_YMM_USABLE.
30055         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
30056         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
30057         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
30058         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
30059         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
30060
30061         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
30062
30063 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30064
30065         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
30066         size is not set.
30067         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
30068
30069 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
30070
30071         [BZ #13618]
30072         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
30073         relocation.
30074         * Makeconfig (libm): Define.
30075         * elf/Makefile: Add rules to build and run tst-relsort1.
30076         * elf/tst-relsort1.c: New file.
30077         * elf/tst-relsort1mod1.c: New file.
30078         * elf/tst-relsort1mod2.c: New file.
30079
30080 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
30081
30082         * math/s_ldexp.c: Remove __STDC__ conditionals.
30083         * math/s_ldexpf.c: Likewise.
30084         * math/s_ldexpl.c: Likewise.
30085         * math/s_nextafter.c: Likewise.
30086         * math/s_nexttowardf.c: Likewise.
30087         * math/s_significand.c: Likewise.
30088         * math/s_significandf.c: Likewise.
30089         * math/s_significandl.c: Likewise.
30090         * math/w_jnl.c: Likewise.
30091         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
30092         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
30093         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
30094         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
30095         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
30096         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
30097         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
30098         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
30099         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
30100         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
30101         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
30102         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
30103         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
30104         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
30105         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
30106         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
30107         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
30108         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
30109         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
30110         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
30111         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
30112         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
30113         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
30114         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
30115         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
30116         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
30117         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
30118         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
30119         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
30120         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
30121         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
30122         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
30123         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
30124         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
30125         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
30126         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
30127         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
30128         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
30129         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
30130         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
30131         * sysdeps/ieee754/k_standard.c: Likewise.
30132         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
30133         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
30134         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
30135         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
30136         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
30137         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
30138         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
30139         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
30140         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
30141         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
30142         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
30143         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
30144         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
30145         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
30146         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
30147         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
30148         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
30149         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
30150         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
30151         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
30152         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30153         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
30154         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
30155         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
30156         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
30157         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
30158         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
30159         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
30160         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
30161         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
30162         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
30163         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
30164         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
30165         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
30166         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
30167         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
30168         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
30169         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
30170         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
30171         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
30172         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
30173         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
30174         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
30175         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
30176         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
30177         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
30178         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
30179         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
30180         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
30181         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
30182         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
30183         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
30184         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
30185         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
30186         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
30187         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
30188         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
30189         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
30190         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
30191         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
30192         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
30193         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
30194         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
30195         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
30196         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
30197         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
30198         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
30199         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
30200         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
30201         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
30202         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
30203         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
30204         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
30205         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
30206         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
30207         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
30208         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
30209         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
30210         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
30211         * sysdeps/ieee754/s_matherr.c: Likewise.
30212         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
30213         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
30214         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
30215         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
30216
30217 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
30218
30219         * crypt/md5.h: Remove __STDC__ conditionals.
30220         * libio/libioP.h: Likewise.
30221         * locale/programs/config.h: Likewise.
30222         * sysdeps/generic/sysdep.h: Likewise.
30223         * sysdeps/i386/asm-syntax.h: Likewise.
30224         * sysdeps/s390/asm-syntax.h: Likewise.
30225         * sysdeps/unix/sysdep.h: Likewise.
30226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
30227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30228
30229 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
30230
30231         * libio/libio.h: Remove __STDC__ conditionals.
30232         * malloc/obstack.h: Likewise.
30233         * math/complex.h: Likewise.
30234         * math/math.h: Likewise.
30235         * sysdeps/generic/_G_config.h: Likewise.
30236         * sysdeps/gnu/_G_config.h: Likewise.
30237         * sysdeps/mach/hurd/_G_config.h: Likewise.
30238         * sysdeps/powerpc/bits/mathdef.h: Likewise.
30239         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
30240         * sysdeps/sparc/bits/mathdef.h: Likewise.
30241
30242 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
30243
30244         [BZ #13583]
30245         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
30246         Clean up HAS_* macros.
30247         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
30248         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
30249         possible.
30250         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
30251         HAS_AVX.
30252         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
30253         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
30254         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
30255         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
30256         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
30257
30258 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
30259
30260         * elf/tst-unique3.cc (gets): Remove declaration.
30261         * elf/tst-unique3lib.cc (gets): Likewise.
30262         * elf/tst-unique3lib2.cc (gets): Likewise.
30263         * elf/tst-unique4.cc (gets): Likewise.
30264
30265 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
30266
30267         * include/stdio.h: Add C++ protection.  Add gets declarations and
30268         definitions.
30269         * debug/tst-chk1.c: Don't declare gets here.
30270         * stdio-common/tst-gets.c: Likewise.
30271
30272 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
30273
30274         * posix/glob: Remove directory.
30275
30276 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
30277
30278         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
30279
30280 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
30281
30282         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
30283         of the non-standard EPFNOSUPPORT.
30284
30285 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30286
30287         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
30288         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
30289         ANYWHERE set to 1 only on KERN_NO_SPACE error.
30290
30291 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
30292
30293         * wcsmbs/uchar.h: Test __STDC_VERSION__.
30294
30295 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
30296
30297         * nscd/aicache.c (addhstaiX): Do not cache negative results of
30298         transient errors.
30299         * nscd/grpcache.c (cache_addgr): Likewise.
30300         * nscd/hstcache.c (cache_addhst): Likewise.
30301         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30302         * nscd/pwdcache.c (cache_addpw): Likewise.
30303         * nscd/servicescache.c (cache_addserv): Likewise.
30304
30305 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
30306
30307         * malloc/malloc.c: Various cleanups.
30308         * malloc/hooks.c: Likewise.
30309
30310         * stdlib/Makefile (tests): Add bug-fmtmsg1.
30311         * stdlib/bug-fmtmsg1.c: New file.
30312
30313         * stdlib/fmtmsg.c (init): Add missing unlock.
30314         Patch by Peng Haitao <penght@cn.fujitsu.com>.
30315
30316 2012-01-12  Marek Polacek  <polacek@redhat.com>
30317
30318         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
30319         and _GNU_SOURCE.
30320
30321 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
30322
30323         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
30324         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
30325         macro to ensure uniqueness of label name.
30326         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
30327         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
30328
30329 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
30330
30331         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
30332
30333         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
30334         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
30335         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30336         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
30337
30338 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
30339
30340         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
30341
30342         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
30343         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
30344         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
30345
30346         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
30347
30348         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
30349         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
30350         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
30351         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
30352
30353         * math/bits/math-finite.h: Add ldexp support.
30354
30355 2012-01-10  Marek Polacek  <polacek@redhat.com>
30356
30357         * locale/programs/localedef.h (show_archive_content): Add noreturn
30358         attribute.
30359
30360 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
30361
30362         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
30363
30364 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
30365
30366         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
30367
30368         * io/Makefile (headers): Add bits/poll2.h.
30369
30370 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
30371
30372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
30373         typo #include statement.
30374
30375 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
30376
30377         * include/sys/cdefs.h: Define __attribute_alloc_size.
30378         * catgets/gencat.c: Add alloc_size attribute and apply consistently
30379         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
30380         * elf/pldd.c: Likewise.
30381         * iconv/iconv_charmap.c: Likewise.
30382         * iconv/iconvconfig.c: Likewise.
30383         * iconv/strtab.c: Likewise.
30384         * locale/programs/locale.c: Likewise.
30385         * locale/programs/localedef.h: Likewise.
30386         * locale/programs/simple-hash.c: Likewise.
30387         * nscd/nscd.h: Likewise.
30388         * nss/makedb.c: Likewise.
30389         * sysdeps/generic/ldconfig.h: Likewise.
30390         * locale/programs/localedef.c: Remove xmalloc prototype.
30391         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
30392
30393 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
30394
30395         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
30396         appropriate.
30397
30398 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
30399
30400         * math/Makefile (tests): Add tst-CMPLX.
30401         * math/tst-CMPLX.c: New file.
30402
30403         * math/complex.h (CMPLXL): Fix typo.
30404
30405         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
30406         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
30407         GLIBC_2.16.
30408         * debug/tst-chk1.c: Add poll and ppoll tests.
30409         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
30410         * include/sys/poll.h: Add hidden proto for ppoll.
30411         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
30412         * sysdeps/mach/hurd/ppoll.c: Likewise.
30413         * io/ppoll.c: Likewise.
30414         * debug/poll_chk.c: New file.
30415         * debug/ppoll_chk.c: New file.
30416         * include/bits/poll2.h: New file.
30417         * io/bits/poll2.h: New file.
30418
30419         [BZ #1350]
30420         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
30421
30422         * configure.in: static is always set to yes.  Remove.
30423         * config.make.in: Don't set build-static.
30424         * Makeconfig: Remove use of build-static.
30425         * dlfcn/Makefile: Likewise.
30426         * elf/Makefile: Likewise.
30427         * math/Makefile: Likewise.
30428         * misc/Makefile: Likewise.
30429         * nptl/Makefile: Likewise.
30430         * sysdeps/mach/hurd/Makefile: Likewise.
30431
30432         * configure.in: PWD_P is not used anymore.
30433         * config.make.in: Remove PWD_P entry.
30434
30435         * configure.in: Remove last remnants of RANLIB.
30436         No need to check for signed size_t anymore.
30437         Don't set libc_commonpagesize and libc_relro_required here for Alpha
30438         and IA-64.
30439         Remove __builtin_expect test because we require at least gcc 3.4.
30440         * aclocal.m4: Likewise.
30441
30442         * wcsmbs/mbrtoc16.c: Implement using towc function.
30443         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
30444         * wcsmbs/wcsmbsload.c: Likewise.
30445         * iconv/gconv_simple.c: Likewise.
30446         * iconv/gconv_int.h: Likewise.
30447         * iconv/gconv_builtin.h: Likewise.
30448         * iconv/iconv_prog.c: Remove CHAR16 handling.
30449
30450         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
30451
30452         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
30453
30454         * configure.in: Remove --with-elf and --enable-bounded options.
30455         Dont set base_machine for ia64.  More non-ELF conditions removed.
30456         Remove testing and setting of leading underscore information.
30457         * config.make.in (build-bounded): Set to no.
30458         * config.h.in: Remove NO_UNDERSCORES entry.
30459         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
30460         them.
30461         * csu/start.c: Remove !NO_UNDERSCORE code.
30462         * locale/localeinfo.h: Likewise.
30463         * sysdeps/generic/machine-gmon.h: Likewise.
30464         * sysdeps/generic/sysdep.h: Likewise.
30465         * sysdeps/i386/sysdep.h: Likewise.
30466         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
30467         * sysdeps/mach/sysdep.h: Likewise.
30468         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30469         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30470         * sysdeps/sh/sysdep.h: Likewise.
30471         * sysdeps/sparc/sparc32/alloca.S: Likewise.
30472         * sysdeps/unix/i386/sysdep.S: Likewise.
30473         * sysdeps/unix/sparc/start.c: Likewise.
30474         * sysdeps/unix/sparc/sysdep.S: Likewise.
30475         * sysdeps/unix/sparc/sysdep.h: Likewise.
30476         * sysdeps/unix/start.c: Likewise.
30477         * sysdeps/unix/x86_64/sysdep.S: Likewise.
30478         * sysdeps/x86_64/sysdep.h: Likewise.
30479
30480 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
30481
30482         [BZ #13553]
30483         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
30484         for non-gcc.
30485         * argp/argp-fmtstream.h: Use const instead __const.
30486         * argp/argp.h: Likewise.
30487         * assert/assert.h: Likewise.
30488         * bits/fenv.h: Likewise.
30489         * bits/sched.h: Likewise.
30490         * bits/sigset.h: Likewise.
30491         * bits/sigthread.h: Likewise.
30492         * catgets/nl_types.h: Likewise.
30493         * conform/data/pthread.h-data: Likewise.
30494         * crypt/crypt-private.h: Likewise.
30495         * crypt/crypt.h: Likewise.
30496         * crypt/crypt_util.c: Likewise.
30497         * ctype/ctype.h: Likewise.
30498         * debug/execinfo.h: Likewise.
30499         * debug/mbsnrtowcs_chk.c: Likewise.
30500         * debug/mbsrtowcs_chk.c: Likewise.
30501         * debug/wcsnrtombs_chk.c: Likewise.
30502         * debug/wcsrtombs_chk.c: Likewise.
30503         * debug/wcstombs_chk.c: Likewise.
30504         * dirent/dirent.h: Likewise.
30505         * dlfcn/dlfcn.h: Likewise.
30506         * elf/neededtest4.c: Likewise.
30507         * grp/grp.h: Likewise.
30508         * gshadow/gshadow.h: Likewise.
30509         * iconv/gconv.h: Likewise.
30510         * iconv/gconv_int.h: Likewise.
30511         * iconv/gconv_simple.c: Likewise.
30512         * iconv/iconv.h: Likewise.
30513         * iconv/loop.c: Likewise.
30514         * iconv/skeleton.c: Likewise.
30515         * include/aio.h: Likewise.
30516         * include/aliases.h: Likewise.
30517         * include/argz.h: Likewise.
30518         * include/arpa/inet.h: Likewise.
30519         * include/assert.h: Likewise.
30520         * include/dirent.h: Likewise.
30521         * include/dlfcn.h: Likewise.
30522         * include/execinfo.h: Likewise.
30523         * include/fcntl.h: Likewise.
30524         * include/fenv.h: Likewise.
30525         * include/glob.h: Likewise.
30526         * include/grp.h: Likewise.
30527         * include/libintl.h: Likewise.
30528         * include/mntent.h: Likewise.
30529         * include/netdb.h: Likewise.
30530         * include/pwd.h: Likewise.
30531         * include/rpc/netdb.h: Likewise.
30532         * include/sched.h: Likewise.
30533         * include/search.h: Likewise.
30534         * include/shadow.h: Likewise.
30535         * include/signal.h: Likewise.
30536         * include/stdio.h: Likewise.
30537         * include/stdlib.h: Likewise.
30538         * include/string.h: Likewise.
30539         * include/sys/socket.h: Likewise.
30540         * include/sys/stat.h: Likewise.
30541         * include/sys/statfs.h: Likewise.
30542         * include/sys/statvfs.h: Likewise.
30543         * include/sys/syslog.h: Likewise.
30544         * include/sys/time.h: Likewise.
30545         * include/sys/uio.h: Likewise.
30546         * include/time.h: Likewise.
30547         * include/unistd.h: Likewise.
30548         * include/utmp.h: Likewise.
30549         * include/wchar.h: Likewise.
30550         * include/wctype.h: Likewise.
30551         * inet/aliases.h: Likewise.
30552         * inet/arpa/inet.h: Likewise.
30553         * inet/netinet/ether.h: Likewise.
30554         * inet/netinet/in.h: Likewise.
30555         * intl/libintl.h: Likewise.
30556         * io/bits/fcntl2.h: Likewise.
30557         * io/fcntl.h: Likewise.
30558         * io/ftw.h: Likewise.
30559         * io/sys/poll.h: Likewise.
30560         * io/sys/stat.h: Likewise.
30561         * io/sys/statfs.h: Likewise.
30562         * io/sys/statvfs.h: Likewise.
30563         * io/utime.h: Likewise.
30564         * libio/bits/stdio.h: Likewise.
30565         * libio/bits/stdio2.h: Likewise.
30566         * libio/libio.h: Likewise.
30567         * libio/libioP.h: Likewise.
30568         * libio/stdio.h: Likewise.
30569         * locale/lc-ctype.c: Likewise.
30570         * locale/locale.h: Likewise.
30571         * login/utmp.h: Likewise.
30572         * malloc/arena.c: Likewise.
30573         * malloc/malloc.c: Likewise.
30574         * malloc/malloc.h: Likewise.
30575         * malloc/mcheck.c: Likewise.
30576         * malloc/mtrace.c: Likewise.
30577         * math/bits/mathcalls.h: Likewise.
30578         * math/fenv.h: Likewise.
30579         * math/math_private.h: Likewise.
30580         * misc/bits/error.h: Likewise.
30581         * misc/bits/syslog.h: Likewise.
30582         * misc/err.h: Likewise.
30583         * misc/error.h: Likewise.
30584         * misc/fstab.h: Likewise.
30585         * misc/mntent.h: Likewise.
30586         * misc/regexp.h: Likewise.
30587         * misc/search.h: Likewise.
30588         * misc/sgtty.h: Likewise.
30589         * misc/sys/mman.h: Likewise.
30590         * misc/sys/syslog.h: Likewise.
30591         * misc/sys/uio.h: Likewise.
30592         * misc/sys/xattr.h: Likewise.
30593         * misc/ttyent.h: Likewise.
30594         * nis/rpcsvc/ypclnt.h: Likewise.
30595         * nss/nss.h: Likewise.
30596         * posix/bits/unistd.h: Likewise.
30597         * posix/fnmatch.h: Likewise.
30598         * posix/glob.h: Likewise.
30599         * posix/sched.h: Likewise.
30600         * posix/spawn.h: Likewise.
30601         * posix/sys/wait.h: Likewise.
30602         * posix/unistd.h: Likewise.
30603         * posix/wordexp.h: Likewise.
30604         * pwd/pwd.h: Likewise.
30605         * resolv/netdb.h: Likewise.
30606         * resource/sys/resource.h: Likewise.
30607         * rt/aio.h: Likewise.
30608         * rt/bits/mqueue2.h: Likewise.
30609         * rt/mqueue.h: Likewise.
30610         * shadow/shadow.h: Likewise.
30611         * signal/signal.h: Likewise.
30612         * socket/send.c: Likewise.
30613         * socket/sendto.c: Likewise.
30614         * socket/sys/socket.h: Likewise.
30615         * stdio-common/printf.h: Likewise.
30616         * stdlib/bits/stdlib.h: Likewise.
30617         * stdlib/fmtmsg.h: Likewise.
30618         * stdlib/monetary.h: Likewise.
30619         * stdlib/stdlib.h: Likewise.
30620         * stdlib/ucontext.h: Likewise.
30621         * streams/stropts.h: Likewise.
30622         * string/argz.h: Likewise.
30623         * string/bits/string2.h: Likewise.
30624         * string/string.h: Likewise.
30625         * string/strings.h: Likewise.
30626         * sunrpc/rpc/auth.h: Likewise.
30627         * sunrpc/rpc/auth_des.h: Likewise.
30628         * sunrpc/rpc/clnt.h: Likewise.
30629         * sunrpc/rpc/netdb.h: Likewise.
30630         * sunrpc/rpc/pmap_clnt.h: Likewise.
30631         * sunrpc/rpc/xdr.h: Likewise.
30632         * sysdeps/generic/inttypes.h: Likewise.
30633         * sysdeps/generic/net/if.h: Likewise.
30634         * sysdeps/generic/sys/swap.h: Likewise.
30635         * sysdeps/gnu/net/if.h: Likewise.
30636         * sysdeps/gnu/utmpx.h: Likewise.
30637         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
30638         * sysdeps/i386/i486/bits/string.h: Likewise.
30639         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
30640         * sysdeps/s390/bits/string.h: Likewise.
30641         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
30642         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
30643         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
30644         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
30645         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
30646         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
30647         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
30648         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
30649         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
30650         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30651         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
30652         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
30653         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
30654         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
30655         * sysdeps/unix/sysv/linux/readv.c: Likewise.
30656         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
30657         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
30658         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30659         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
30660         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
30661         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
30662         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
30663         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
30664         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
30665         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
30666         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
30667         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
30668         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
30669         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
30670         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
30671         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
30672         * sysvipc/sys/ipc.h: Likewise.
30673         * sysvipc/sys/msg.h: Likewise.
30674         * sysvipc/sys/sem.h: Likewise.
30675         * sysvipc/sys/shm.h: Likewise.
30676         * termios/termios.h: Likewise.
30677         * time/sys/time.h: Likewise.
30678         * time/time.h: Likewise.
30679         * wcsmbs/bits/wchar2.h: Likewise.
30680         * wcsmbs/uchar.h: Likewise.
30681         * wcsmbs/wchar.h: Likewise.
30682         * wctype/wctype.h: Likewise.
30683
30684         [BZ #13551]
30685         * Makeconfig: Remove all but ELF support including AIX support.
30686         * Makerules: Likewise.
30687         * config.h.in: Likewise.
30688         * config.make.in: Likewise.
30689         * configure: Likewise.
30690         * configure.in: Likewise.
30691         * csu/Makefile: Likewise.
30692         * csu/version.c: Likewise.
30693         * debug/Makefile: Likewise.
30694         * dlfcn/Makefile: Likewise.
30695         * elf/Makefile: Likewise.
30696         * extra-lib.mk: Likewise.
30697         * iconv/Makefile: Likewise.
30698         * include/libc-symbols.h: Likewise.
30699         * include/shlib-compat.h: Likewise.
30700         * resolv/Makefile: Likewise.
30701         * resolv/res_libc.c: Likewise.
30702         * rt/Makefile: Likewise.
30703         * sysdeps/i386/asm-syntax.h: Likewise.
30704         * sysdeps/i386/sysdep.h: Likewise.
30705         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
30706         * sysdeps/mach/sysdep.h: Likewise.
30707         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
30708         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
30709         * sysdeps/s390/asm-syntax.h: Likewise.
30710         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30711         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30712         * sysdeps/sh/sysdep.h: Likewise.
30713         * sysdeps/unix/sparc/sysdep.h: Likewise.
30714         * sysdeps/wordsize-32/divdi3.c: Likewise.
30715         * sysdeps/x86_64/sysdep.h: Likewise.
30716
30717         * argp/Versions: Remove _argp_unlock_xxx.
30718
30719         [BZ #13559]
30720         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
30721         * abilist/libBrokenLocale.abilist: Likewise.
30722         * abilist/libanl.abilist: Likewise.
30723         * abilist/libc.abilist: Likewise.
30724         * abilist/libcrypt.abilist: Likewise.
30725         * abilist/libdl.abilist: Likewise.
30726         * abilist/libm.abilist: Likewise.
30727         * abilist/libnsl.abilist: Likewise.
30728         * abilist/libpthread.abilist: Likewise.
30729         * abilist/libresolv.abilist: Likewise.
30730         * abilist/librt.abilist: Likewise.
30731         * abilist/libthread_db.abilist: Likewise.
30732         * abilist/libutil.abilist: Likewise.
30733         * abilist/libnss_db.abilist: New file.
30734
30735         * scripts/abilist.awk: Add support for indirect functions.
30736
30737         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
30738
30739         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
30740
30741         * shlib-versions: Remove entries for ports architectures.
30742
30743         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
30744         files in ports.
30745         * elf/stackguard-macros.h: Remove support for IA-64.
30746         * elf/tst-auditmod1.c: Likewise.
30747         * sysdeps/generic/ldsodefs.h: Likewise.
30748
30749         * sysdeps/unix/sysv/linux/configure.in: Ports should define
30750         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
30751         configure files.
30752
30753         [BZ #13552]
30754         * configure.in: Remove --enable-omitfp support.
30755         * FAQ.in: Adjust.
30756         * config.make.in: Likewise.
30757         * Makeconfig: Likewise.
30758         * manual/install.texi: Likewise.
30759
30760         In case anyone cares, the IA-64 architecture could move to ports.
30761         * sysdeps/ia64/*: Removed.
30762         * sysdeps/unix/sysv/linux/ia64/*: Removed.
30763         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
30764
30765         [BZ #13555]
30766         * configure.in: Remove entries for unsupported architectures.
30767
30768         [BZ #13533]
30769         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
30770         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
30771         routines.
30772         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
30773         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
30774         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
30775         fall back to using wcrtomb.
30776         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
30777         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
30778         renaming.
30779         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
30780         * wcsmbs/tst-c16c32-1.c: New file.
30781
30782         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
30783         local variable.
30784
30785         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
30786
30787         * elf/tst-unique3.cc: Add explicit declaration of gets.
30788         * elf/tst-unique3lib.cc: Likewise.
30789         * elf/tst-unique3lib2.cc: Likewise.
30790         * elf/tst-unique4.cc: Likewise.
30791
30792         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
30793
30794 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
30795
30796         [BZ #13566]
30797         * assert/assert.h (static_assert): Don't define for C++.
30798         * libio/stdio.h (gets): Do declare for C++ <= C++11.
30799         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
30800
30801 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
30802
30803         * iconv/loop.c (single loop): Fix assertion in storing of
30804         remaining bytes.
30805
30806         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
30807
30808 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
30809
30810         * posix/getconf.c: Update copyright year.
30811         * nss/getent.c: Likewise.
30812         * nss/makedb.c: Likewise.
30813         * iconv/iconvconfig.c: Likewise.
30814         * iconv/iconv_prog.c: Likewise.
30815         * elf/ldconfig.c: Likewise.
30816         * elf/pldd.c: Likewise.
30817         * elf/sotruss.ksh: Likewise.
30818         * catgets/gencat.c: Likewise.
30819         * csu/version.c: Likewise.
30820         * elf/ldd.bash.in: Likewise.
30821         * elf/sprof.c (print_version): Likewise.
30822         * locale/programs/locale.c: Likewise.
30823         * locale/programs/localedef.c: Likewise.
30824         * login/programs/pt_chown.c: Likewise.
30825         * nscd/nscd.c (print_version): Likewise.
30826         * debug/xtrace.sh: Likewise.
30827         * malloc/memusage.sh: Likewise.
30828         * malloc/mtrace.pl: Likewise.
30829         * debug/catchsegv.sh: Likewise.
30830
30831 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
30832
30833         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
30834         pure attribute.
30835
30836 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
30837
30838         [BZ #13533]
30839         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
30840         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
30841         transformations.
30842         * iconv/gconv_int.h: Likewise.
30843         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
30844         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
30845         from libc for GLIBC_2.16.
30846         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
30847         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
30848         * wcsmbs/uchar.h: Really define mbstate_t.
30849         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
30850         * wcsmbs/c16rtomb.c: New file.
30851         * wcsmbs/mbrtoc16.c: New file.
30852         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
30853         for C/POSIX locale.
30854         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
30855         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
30856
30857         * wcsmbs/wchar.h: Add missing __restrict.
30858
30859 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
30860
30861         [BZ #13532]
30862         * time/Makefile (routines): Add timespec_get.
30863         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
30864         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
30865         timespec for ISO C11.
30866         * time/timespec_get.c: New file.
30867         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
30868         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
30869
30870         [BZ #13531]
30871         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
30872         * stdlib/stdlib.h: Declare aligned_alloc.
30873         * Versions.def: Add GLIBC_2.16 for libc.
30874         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
30875
30876         [BZ 13527]
30877         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
30878         ISO C11.
30879
30880         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
30881         code.
30882
30883         [BZ #13528]
30884         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
30885
30886         [BZ #13529]
30887         * assert/assert.h (static_assert): Define.
30888
30889         * version.h: Update for 2.16 development version.
30890
30891         [BZ #13526]
30892         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
30893         _ISOC11_SOURCE.
30894
30895         * version.h (RELEASE): Bump for 2.15 release.
30896         * include/features.h (__GLIBC_MINOR__): Bump to 15.
30897
30898         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
30899         Patch by Marek Polacek <mpolacek@redhat.com>.
30900
30901         * bits/byteswap.h: Protect long long constants with __extension__.
30902         * sysdeps/i386/bits/byteswap.h: Likewise.
30903         * sysdeps/ia64/bits/byteswap.h: Likewise.
30904         * sysdeps/s390/bits/byteswap.h: Likewise.
30905         * sysdeps/x86_64/bits/byteswap.h: Likewise.
30906
30907 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30908
30909         [BZ #13540]
30910         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
30911         destination buffer.
30912         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
30913
30914 2011-12-23  Marek Polacek  <polacek@redhat.com>
30915
30916         * elf/dl-addr.c (determine_info): Add inline keyword.
30917         * elf/tst-auditmod4b.c (check_avx): Likewise.
30918         * elf/tst-auditmod6b.c (check_avx): Likewise.
30919         * elf/tst-auditmod6c.c (check_avx): Likewise.
30920         * elf/tst-auditmod7b.c (check_avx): Likewise.
30921
30922 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
30923
30924         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
30925         !__SSE_MATH__.
30926
30927 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30928
30929         [BZ #13540]
30930         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
30931         processing for last bytes.
30932
30933 2011-08-06  Bruno Haible  <bruno@clisp.org>
30934
30935         [BZ #13061]
30936         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
30937         U+0385, not to U+1FEE.
30938
30939         [BZ #13062]
30940         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
30941         entry for U+00A5 U+0301.
30942
30943 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
30944
30945         [BZ #13166]
30946         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
30947         buffer for the output is too small.
30948
30949         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
30950         optimization.
30951
30952         [BZ #13185]
30953         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
30954         SSE flags if possible.
30955
30956 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30957
30958         [BZ #13540]
30959         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
30960         processing for last bytes.
30961
30962 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
30963
30964         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
30965         (syscall-list-default-options, syscall-list-default-condition)
30966         (syscall-list-includes): Define.
30967         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
30968         list of ABIs and options and #if conditions for each ABI.  Do not
30969         handle common syscalls between ABIs specially.
30970         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
30971         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/s390/Makefile (64bit-predefine): Remove.
30976         (syscall-list-variants, syscall-list-32bit-options)
30977         (syscall-list-32bit-condition, syscall-list-64bit-options)
30978         (syscall-list-64bit-condition): Define.
30979         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
30980         Remove.
30981         (syscall-list-variants, syscall-list-32bit-options)
30982         (syscall-list-32bit-condition, syscall-list-64bit-options)
30983         (syscall-list-64bit-condition): Define.
30984         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
30985         Remove.
30986         (syscall-list-variants, syscall-list-32bit-options)
30987         (syscall-list-32bit-condition, syscall-list-64bit-options)
30988         (syscall-list-64bit-condition): Define.
30989
30990 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
30991
30992         * locale/iso-639.def: Add brx entry.
30993
30994         [BZ #13328]
30995         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
30996         Proposed by Mariusz_Cukr <marcukr@op.pl>.
30997
30998         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
30999         __feraiseexcept_renamed.
31000
31001 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
31002
31003         [BZ #13538]
31004         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
31005         EPOLLET with unsigned values.
31006         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31007         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31008
31009         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
31010         to large cancellation.
31011         * math/s_cacoshf.c: Likewise.
31012         * math/s_cacoshl.c: Likewise.
31013
31014 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
31015
31016         [BZ #13305]
31017         [BZ #12786]
31018         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
31019         * math/s_cacoshf.c: Likewise.
31020         * math/s_cacoshl.c: Likewise.
31021
31022 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
31023
31024         [BZ #13439]
31025         * iconv/gconv.h: Define __GCONV_SWAP.
31026         * iconvdata/unicode.c: The swap bit must be stored in __flags.
31027         * iconvdata/utf-16.c: Likewise.
31028         * iconvdata/utf-32.c: Likewise.
31029
31030 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
31031
31032         [BZ #13524]
31033         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
31034         numerator after shifting it by one limb.
31035
31036 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
31037
31038         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
31039         under [__USE_EXTERN_INLINES].
31040
31041 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
31042
31043         [BZ #13446]
31044         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
31045
31046 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31047
31048         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
31049         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
31050         optimized code.
31051         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
31052         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
31053         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
31054         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
31055         for strncasecmp/strncasecmp_l compilation.
31056         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
31057         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
31058
31059 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
31060
31061         [BZ #13484]
31062         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
31063         of __asm__.
31064
31065 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
31066
31067         [BZ #13506]
31068         * time/tzfile.c (__tzfile_read): Check values from file header.
31069
31070 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
31071
31072         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
31073         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
31074         * powerpc/powerpc32/dl-start.S: Likewise.
31075         * powerpc/powerpc32/elf/start.S: Likewise.
31076         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
31077         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
31078         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
31079         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
31080         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
31081         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
31082         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
31083         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
31084         * powerpc/powerpc32/fpu/s_round.S: Likewise.
31085         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
31086         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
31087         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
31088         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
31089         * powerpc/powerpc32/memset.S: Likewise.
31090         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
31091         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
31092         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
31093         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
31094         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
31095         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
31096         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
31097         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
31098         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
31099         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
31100         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
31101         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
31102         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
31103
31104 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31105
31106         * math/libm-test.inc: Added more nearbyint tests.
31107         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
31108         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
31109         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
31110         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
31111
31112 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
31113
31114         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
31115         FD_CLOEXEC.
31116
31117 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31118
31119         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
31120         Add wcscpy-ssse3 wcscpy-c.
31121         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
31122         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
31123         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
31124         * sysdeps/x86_64/wcschr.S: New file.
31125         * sysdeps/x86_64/wcsrchr.S: New file.
31126         * string/test-strcmp.c: Remove checking of wcscmp function for
31127         wrong alignments.
31128         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
31129         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
31130         wcsrchr-sse2 wcsrchr-c.
31131         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
31132         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
31133         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
31134         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
31135         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
31136         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
31137         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
31138         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
31139         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
31140         * wcsmbc/wcschr.c (WCSCHR): New macro.
31141
31142 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31143
31144         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
31145         * wcsmbs/test-wcsrchr.c: New file.
31146         * string/test-strrchr.c: Add wcsrchr support.
31147         (WIDE): New macro.
31148         * wcsmbs/test-wcscpy.c: New file.
31149         * string/test-strcpy.c: Add wcscpy support.
31150         (WIDE): New macro.
31151
31152 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
31153
31154         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
31155         the inner loop.
31156
31157 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
31158
31159         [BZ #13472]
31160         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
31161
31162 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
31163
31164         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
31165         Minor optimizations.
31166
31167         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
31168         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
31169         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31170
31171 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
31172
31173         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
31174         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
31175         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
31176         for gcc to avoid warnings.
31177         * inet/Makefile (tests): Add tst-checks.
31178         * inet/tst-checks.c: New file.
31179
31180         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
31181         warning.
31182
31183         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
31184         __wmemcmp_sse2.
31185
31186         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
31187         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
31188
31189         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
31190
31191 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
31192
31193         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
31194         problem.
31195
31196         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
31197
31198 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
31199
31200         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
31201         conditional on GCC version.
31202         (__arch_compare_and_exchange_val_8_acq)
31203         (__arch_compare_and_exchange_val_16_acq)
31204         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
31205         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
31206         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
31207
31208 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
31209
31210         * sysdeps/sh/backtrace.c: New file.
31211
31212 2011-12-02  Andreas Schwab  <schwab@redhat.com>
31213
31214         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
31215         parenthesis.
31216
31217 2011-12-01  Andreas Schwab  <schwab@redhat.com>
31218
31219         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
31220         falling back to utime.
31221
31222 2011-11-30  Andreas Schwab  <schwab@redhat.com>
31223
31224         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
31225         expectations for float.
31226
31227 2011-11-29  Andreas Schwab  <schwab@redhat.com>
31228
31229         * locale/weight.h (findidx): Add parameter len.
31230         * locale/weightwc.h (findidx): Likewise.
31231         * posix/fnmatch_loop.c (FCT): Adjust caller.
31232         * posix/regcomp.c (build_equiv_class): Likewise.
31233         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
31234         * posix/regexec.c (check_node_accept_bytes): Likewise.
31235         * string/strcoll_l.c (STRCOLL): Likewise.
31236         * string/strxfrm_l.c (STRXFRM): Likewise.
31237
31238 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
31239
31240         * Makefile.in: Remove CVSOPT handling.
31241         * configure.in: Remove use of AC_REVISION.
31242         * iconvdata/Makefile (distribute): No need to filter out CVS.
31243         * scripts/list-sources.sh: Remove CVS, subversion and monotone
31244         handling.
31245
31246 2011-11-16  Andreas Schwab  <schwab@redhat.com>
31247
31248         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
31249         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
31250         [USE_AS_STRNCASECMP_L]: Likewise.
31251         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
31252         NO_TLS_DIRECT_SEG_REFS.
31253         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
31254         Fix argument offsets for non-PIC.
31255         [USE_AS_STRNCASECMP_L]: Likewise.
31256         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
31257         NO_TLS_DIRECT_SEG_REFS.
31258
31259 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
31260
31261         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
31262         O_CLOEXEC.
31263         * locale/loadlocale.c (_nl_load_locale): Likewise.
31264
31265 2011-11-15  Andreas Schwab  <schwab@redhat.com>
31266
31267         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
31268         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
31269         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
31270         (SYSCALL_GETTIME): Set errno on error.
31271
31272         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
31273         count references to noai6ai_cached.
31274
31275 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
31276
31277         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
31278
31279         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
31280         FD_CLOEXEC for /proc/self/maps.
31281
31282         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
31283         FD_CLOEXEC for /proc/meminfo.
31284
31285         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
31286         gai.conf.
31287
31288         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
31289         FD_CLOEXEC for given file.
31290
31291         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
31292
31293         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
31294         FD_CLOEXEC for /etc/hosts.
31295         (_gethtent): Likewise.
31296
31297         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
31298
31299         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
31300         cancellation and set FD_CLOEXEC for /etc/netgroup.
31301
31302         * nss/nss_files/files-key.c (search): Don't allow cancellation when
31303         reading /etc/publickey.
31304
31305         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
31306         allow cancellation when reading /etc/group.
31307
31308         * nss/nss_files/files-alias.c (internal_setent): Don't allow
31309         cancellation.
31310         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
31311
31312         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
31313         when using data file.
31314
31315         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
31316
31317         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
31318         (write_nis_obj): Use "c" and "e" in fopen.
31319
31320         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
31321
31322         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
31323
31324         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
31325
31326         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
31327
31328         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
31329         locale.alias.
31330
31331         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
31332
31333         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
31334
31335         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
31336
31337         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
31338         file parsing and set FD_CLOEXEC.
31339
31340 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
31341
31342         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
31343
31344 2011-11-14  Andreas Schwab  <schwab@redhat.com>
31345
31346         * malloc/arena.c (arena_get2): Don't call reused_arena when
31347         _int_new_arena failed.
31348
31349 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
31350
31351         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
31352         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
31353         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
31354         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31355         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31356         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
31357         to compile strcasecmp and strncasecmp.
31358         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
31359         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
31360
31361         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
31362
31363 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
31364
31365         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
31366         locale-defines.sym to gen-as-const-headers.
31367         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
31368         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
31369         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
31370         to compile strcasecmp and strncasecmp.
31371         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
31372         strcasecmp_l and strncasecmp_l.
31373         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
31374         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
31375         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
31376         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
31377         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
31378         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
31379         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
31380         * sysdeps/i386/i686/multiarch/strncase.S: New file.
31381         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
31382         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
31383         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
31384
31385 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
31386
31387         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
31388         result of SYSDEP_GETTIME_CPU to retval.
31389         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
31390         parameter list to macro.  Remove trailing semicolon.  Adjust users.
31391
31392         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
31393         variable.
31394
31395         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
31396         mantissa words.
31397         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
31398
31399         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
31400         from unused variable.
31401
31402         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
31403         DWARF definitions.
31404         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
31405         for assembling.
31406
31407         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
31408         over namespaces.
31409
31410         * sunrpc/rpc_prot.c (rejected): Fix case value.
31411
31412         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
31413         unsigned long long int to avoid warnings in shift.
31414
31415         * posix/regex_internal.c (re_string_reconstruct): Actually use result
31416         of use of trans.
31417         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
31418         variable tmp.
31419
31420         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
31421         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
31422         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
31423
31424         * nis/nis_table.c (nis_list): Use variable of correct type for
31425         result of __follow_path call.
31426
31427 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31428
31429         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
31430         of math functions ceil, trunc, floor, round, and sqrt, when
31431         avaliable on the platform.
31432         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
31433         name clash.
31434         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
31435         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
31436         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
31437
31438 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
31439
31440         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
31441         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
31442
31443 2011-11-11  Roland McGrath  <roland@hack.frob.com>
31444
31445         * include/unistd.h: Fix __readlink return type.
31446         Reported by Chris Metcalf <cmetcalf@tilera.com>.
31447
31448 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
31449
31450         * stdlib/ucontext.h: Undo last change for makecontext.
31451
31452 2011-11-11  Andreas Schwab  <schwab@redhat.com>
31453
31454         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
31455
31456         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
31457         * setjmp/setjmp.h: Mark functions as non-leaf.
31458         * setjmp/bits/setjmp2.h: Likewise.
31459         * stdlib/ucontext.h: Likewise.
31460
31461 2011-11-10  Andreas Schwab  <schwab@redhat.com>
31462
31463         * malloc/arena.c (_int_new_arena): Don't increment narenas.
31464         (reused_arena): Don't check arena limit.
31465         (arena_get2): Atomically check arena limit.
31466
31467 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
31468
31469         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
31470         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
31471
31472         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
31473         instructions.
31474
31475 2011-11-07  Andreas Schwab  <schwab@redhat.com>
31476
31477         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
31478         handler when locking.
31479
31480         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
31481         Fix size of allocated buffer.
31482
31483 2011-11-04  Andreas Schwab  <schwab@redhat.com>
31484
31485         [BZ #10103]
31486         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
31487         declarations for long double functions.
31488         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
31489
31490         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
31491
31492 2011-11-03  Andreas Schwab  <schwab@redhat.com>
31493
31494         * nscd/nscd.c (main): Don't start AVC thread until credentials are
31495         installed.
31496
31497         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
31498         is disabled.
31499
31500 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31501
31502         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
31503
31504 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
31505
31506         * include/alloca.h (stackinfo_alloca_round): Define.
31507         (extend_alloca): Use it.
31508         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
31509         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
31510         here.
31511
31512         * scripts/check-local-headers.sh: Ignore libaudit.h.
31513
31514         * nscd/Makefile (extra-objs): Make recursively expanded.
31515
31516 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
31517
31518         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
31519         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
31520
31521         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
31522         * posix/tst-rfc3484-2.c: Likewise.
31523         * posix/tst-rfc3484-3.c: Likewise.
31524
31525         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
31526         process_vm_writev.
31527         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
31528         process_vm_writev.
31529         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
31530         process_vm_writev from libc using GLIBC_2.15 version.
31531
31532         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
31533
31534 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
31535
31536         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
31537         stack usage.
31538
31539 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
31540
31541         [BZ #13367]
31542         * nss/getent.c (initgroups_keys): Show error message in case no group
31543         names are given.
31544
31545         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
31546         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
31547         __bump_nl_timestamp.
31548         * nscd/connections (nscd_init): When host database is served open
31549         netlink socket and request notification about configuration changes.
31550         (main_loop_poll): Track netlink file descriptor and bump timestamp
31551         in case data becomes available.
31552         (main_loop_epoll): Likewise.
31553         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
31554         (database_pers_head): Add extra_data fileds.
31555         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
31556         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
31557         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
31558         Adjust caller.
31559         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
31560         in6ai data, call __free_in6ai.
31561         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
31562         Add -DHAVE_NETLINK.
31563         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
31564         interface information.  Reuse previous data if netlink timestamp
31565         is not changed.
31566         (__bump_nl_timestamp): New function.
31567         (__free_in6ai): New function.
31568
31569 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
31570
31571         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
31572         close_not_cancel_no_status here.
31573         (__check_pf): Reorganize code a bit to not call close twice if OOM.
31574
31575 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
31576
31577         [BZ #13276]
31578         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
31579         return value.
31580
31581         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
31582         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
31583         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
31584
31585 2011-07-03  Andreas Jaeger  <aj@suse.de>
31586
31587         [BZ #10709]
31588         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
31589         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
31590         * math/libm-test.inc (sin_test): Add test case.
31591
31592 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
31593
31594         [BZ #13337]
31595         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
31596         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
31597
31598         * elf/chroot_canon.c (chroot_canon): Cleanups.
31599
31600         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
31601
31602         [BZ #13335]
31603         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
31604         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
31605
31606         * string/test-strchr.c: Make usable for strchrnul testing.
31607         * string/test-strchrnul.c: New file.
31608         * string/Makefile (strop-tests): Add strchrnul.
31609
31610         * po/it.po: Update from translation team.
31611         * po/es.po: Likewise.
31612
31613 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
31614
31615         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
31616         the three constants needed as parameters.  Drop the others.
31617         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
31618         __m128i_strloadu_tolower.
31619         Create and initialize variable zero and use it in all the places
31620         where _mm_setzero_si128 was used.
31621
31622         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
31623         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
31624         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
31625         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
31626         anymore.
31627         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
31628         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
31629         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
31630         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
31631         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
31632         __mpranred, __mptan.
31633         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
31634         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
31635         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
31636         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
31637         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
31638         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
31639         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
31640         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
31641         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
31642
31643 2011-10-28  Andreas Schwab  <schwab@redhat.com>
31644
31645         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
31646         redefine if SHARED.
31647         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
31648
31649         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
31650         wide char related routines to wcsmbs subdir.
31651
31652 2011-10-27  Andreas Schwab  <schwab@redhat.com>
31653
31654         [BZ #13344]
31655         * misc/sys/cdefs.h (__THROWNL): Define.
31656         * posix/unistd.h: Use __THREADNL instead of __THREAD
31657         for memory synchronization functions.
31658
31659 2011-10-26  Roland McGrath  <roland@hack.frob.com>
31660
31661         [BZ #13349]
31662         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
31663         doesn't exist.
31664         * manual/stdio.texi (Obstack Streams): Node removed.
31665
31666 2011-10-26  Andreas Schwab  <schwab@redhat.com>
31667
31668         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
31669         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
31670         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
31671
31672         * math/math_private.h (math_force_eval): Allow non-addressable
31673         arguments.
31674         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
31675
31676 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
31677
31678         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
31679         file is not needed.
31680
31681         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
31682         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31683         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31684         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31685         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31686         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31687         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31688         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
31689         Add AVX variants.
31690         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
31691         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
31692         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
31693         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
31694         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
31695         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
31696         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
31697         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
31698         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
31699         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
31700         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
31701         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
31702         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
31703         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
31704         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
31705         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
31706         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
31707         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
31708         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
31709
31710         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
31711         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
31712
31713         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
31714         place.  Use VEX encoding when compiling for AVX.
31715
31716 2011-10-25  Andreas Schwab  <schwab@redhat.com>
31717
31718         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
31719         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
31720
31721         * string/test-strchr.c (do_test): Don't generate NUL bytes.
31722
31723 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
31724
31725         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
31726         useless if() expression.
31727         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
31728         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
31729         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
31730         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
31731         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
31732         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
31733         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
31734         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
31735         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
31736         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
31737         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
31738         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
31739         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
31740         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
31741         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
31742         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
31743         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
31744         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
31745         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
31746
31747         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
31748
31749 2011-10-25  Andreas Schwab  <schwab@redhat.com>
31750
31751         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
31752         condition.
31753         * elf/dl-fini.c (_dl_sort_fini): Likewise.
31754
31755 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
31756
31757         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
31758         .text section.  Avoid duplicate constants.
31759         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
31760         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31761         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
31762         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31763         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
31764         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31765         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31766         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31767         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
31768         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
31769         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
31770         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
31771         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
31772         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
31773         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
31774         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
31775         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
31776         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
31777         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
31778         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
31779         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
31780         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
31781         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
31782         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
31783         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
31784         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
31785         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
31786         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
31787         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
31788         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
31789         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
31790         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
31791         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
31792         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
31793         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
31794         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
31795         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
31796         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
31797         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
31798         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
31799         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
31800         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
31801         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
31802         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
31803         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
31804
31805 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
31806
31807         * sysdeps/x86_64/dla.h: Move to ...
31808         * sysdeps/x86_64/fpu/dla.h: ...here.
31809         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
31810         situations.  Use __builtin_fma only for gcc 4.6 and up.
31811
31812         * config.make.in: Add have-mfma4 entry.
31813         * configure.in: Substitute libc_cv_cc_fma4.
31814         * math/Makefile (dbl-only-routines): Add sincostab.
31815         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
31816         Use __sincostab not sincos.
31817         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
31818         name is a macro.
31819         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
31820         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31821         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31822         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
31823         using __copysign.
31824         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
31825         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
31826         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
31827         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
31828         and __inv.
31829         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
31830         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
31831         __copysign.
31832         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
31833         define aliases when function name is a macro.
31834         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
31835         sysdeps/ieee754/dbl-64/sincos.tbl.
31836         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
31837         fma4-enabled routines.
31838         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
31839         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
31840         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
31841         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
31842         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
31843         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
31844         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
31845         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
31846         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
31847         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
31848         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
31849         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
31850         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
31851         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
31852         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
31853         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
31854         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
31855         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
31856         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
31857         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
31858         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
31859         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
31860         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
31861         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
31862         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
31863         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
31864         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
31865         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
31866         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
31867         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
31868
31869         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
31870         rename.
31871         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31872         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31873         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31874         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31875         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31876         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31877         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
31878         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
31879
31880 2011-10-24  Andreas Schwab  <schwab@redhat.com>
31881
31882         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
31883
31884 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
31885
31886         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
31887
31888         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
31889         prediction.
31890         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
31891
31892         * string/strnlen.c: Don't define STRNLEN, reverse logic.
31893         Remove unused variable magic_bits.
31894         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
31895
31896         * string/strnlen.c: Define and use STRNLEN macro.
31897         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
31898         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
31899         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
31900         * wcsmbs/wcslen.c: Define and use WCSLEN.
31901         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
31902         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
31903         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
31904         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
31905         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
31906         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
31907         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
31908
31909 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31910
31911         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31912         strnlen-sse2-no-bsf.
31913         Rename strlen-no-bsf to strlen-sse2-no-bsf.
31914         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
31915         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
31916         Add strnlen support.
31917         (USE_AS_STRNLEN): New macro.
31918         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
31919         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
31920         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
31921         * sysdeps/x86_64/wcslen.S: New file.
31922
31923 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
31924
31925         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
31926         XMM-moves are used for copying on small sizes.
31927
31928 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31929
31930         * wcsmbs/Makefile (strop-tests): Add wcschr.
31931         * wcsmbs/test-wcschr.c: New file.
31932         * string/test-strchr.c: Update.
31933         Add wcschr support.
31934         (WIDE): New macro.
31935
31936 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31937
31938         * wcsmbs/Makefile (strop-tests): Add wcslen.
31939         * wcsmbs/test-wcslen.c: New file.
31940         * string/test-strlen.c: Update.
31941         Add wcslen support.
31942         (WIDE): New macro.
31943
31944 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
31945
31946         * po/it.po: Update from translation team.
31947
31948 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31949
31950         * sysdeps/x86_64/wcscmp.S: Update.
31951         Fix wrong comparison semantics.
31952         wcscmp shall use signed comparison not unsigned.
31953         Don't use substraction to avoid overflow bug.
31954         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
31955         * wcsmbc/wcscmp.c: Likewise.
31956         * string/test-strcmp.c: Likewise.
31957         Add new tests to check cases with negative values.
31958
31959 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
31960
31961         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
31962         * sysdeps/x86_64/dla.h: ...here.  New file.
31963         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
31964         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31965         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31966         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31967         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31968         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
31969         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31970         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
31971         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
31972
31973 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
31974
31975         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
31976         __ynl_finite aliases.
31977
31978 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
31979
31980         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
31981
31982         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
31983         define DLA_FMA.
31984         [DLA_FMA] (EMULV): Use DLA_FMA.
31985         [DLA_FMA] (MUL12): Use EMULV.
31986         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
31987         that are not needed.
31988         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31989         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31990         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31991         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31992         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31993         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
31994         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
31995
31996 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
31997
31998         * math/s_nan.c: Undef __nan.
31999         * math/s_nanf.c: Undef __nanf.
32000         * math/s_nanl.c: Undef __nanl.
32001         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
32002         "math_private.h".
32003
32004 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
32005
32006         * math/s_catan.c: Add branch predictions.
32007         * math/s_catanf.c: Likewise.
32008         * math/s_catanh.c: Likewise.
32009         * math/s_catanhf.c: Likewise.
32010         * math/s_catanhl.c: Likewise.
32011         * math/s_catanl.c: Likewise.
32012         * math/s_cexp.c: Likewise.
32013         * math/s_cexpf.c: Likewise.
32014         * math/s_cexpl.c: Likewise.
32015         * math/s_clog.c: Likewise.
32016         * math/s_clog10.c: Likewise.
32017         * math/s_clog10f.c: Likewise.
32018         * math/s_clog10l.c: Likewise.
32019         * math/s_clogf.c: Likewise.
32020         * math/s_clogl.c: Likewise.
32021         * math/s_csqrt.c: Likewise.
32022         * math/s_csqrtf.c: Likewise.
32023         * math/s_csqrtl.c: Likewise.
32024         * math/s_ctanf.c: Likewise.
32025         * math/s_ctanh.c: Likewise.
32026         * math/s_ctanhf.c: Likewise.
32027         * math/s_ctanhl.c: Likewise.
32028         * math/s_ctanl.c: Likewise.
32029
32030         * math/math_private.h: Define __nan, __nanf, __nanl.
32031         * math/s_cacosh.c: Include <math_private.h>.
32032         * math/s_cacoshl.c: Likewise.
32033         * math/s_casinh.c: Likewise.
32034         * math/s_casinhf.c: Likewise.
32035         * math/s_casinhl.c: Likewise.
32036         * math/s_ccos.c: Rely entire on ccosh.
32037         * math/s_ccosf.c: Rely entire on ccoshf.
32038         * math/s_ccosl.c: Rely entirely on ccoshl.
32039         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
32040         Remove tests for FE_INVALID.
32041         * math/s_ccoshf.c: Likewise.
32042         * math/s_ccoshl.c: Likewise.
32043         * math/s_csin.c: Likewise.
32044         * math/s_csinf.c: Likewise.
32045         * math/s_csinh.c Likewise.
32046         * math/s_csinhf.c: Likewise.
32047         * math/s_csinhl.c: Likewise.
32048         * math/s_csinl.c: Likewise.
32049         * math/s_ctan.c: Likewise.
32050         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
32051         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
32052         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
32053
32054 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
32055
32056         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
32057         compilation problems.
32058
32059         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
32060         __builtin_expect.
32061
32062 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
32063
32064         * sysdeps/i386/configure.in: Test for -mfma4 option.
32065         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
32066         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
32067         COMMON_CPUID_INDEX_80000001.
32068         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
32069         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
32070         use it if FMA3 is not supported.
32071         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
32072
32073         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
32074         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
32075
32076 2011-10-20  Andreas Schwab  <schwab@redhat.com>
32077
32078         [BZ #12892]
32079         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
32080         it would create a cycle with a link time dependency.
32081
32082 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
32083
32084         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
32085         instruction.
32086         * string/Makefile (strop-tests): Add rawmemchr.
32087         * string/test-rawmemchr.c: New file.
32088
32089         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
32090         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
32091         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
32092         when compiling str{,n}casecmp and when AVX is available.  Hook up
32093         new optimized code in initializers.
32094
32095 2011-10-19  Andreas Schwab  <schwab@redhat.com>
32096
32097         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
32098         __feraiseexcept instead of feraiseexcept.
32099
32100 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
32101
32102         * math/math_private.h: Define defaults for libc_fetestexcept and
32103         libc_feupdateenv.
32104         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
32105         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
32106         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
32107         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
32108         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
32109         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
32110         libc_fetestexcept and libc_feupdateenv.
32111
32112         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
32113         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
32114         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
32115         * sysdeps/x86_64/fpu/math_private.h: Define special version of
32116         libc_feholdexcept_setround.
32117
32118         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
32119         Add s_nearbyint-c and s_nearbyintf-c.
32120         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
32121         nearbyintf inlines.
32122         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
32123         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
32124         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
32125         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
32126
32127         * math/math_private.h: Define defaults for libc_fegetround,
32128         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
32129         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
32130         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
32131         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
32132         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
32133         standard functions.
32134         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
32135         Remove comments and hacks for old compiler versions.
32136         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
32137         libc_fegetround, libc_fesetround, libc_feholdexcept, and
32138         libc_feholdexceptl.
32139
32140 2011-10-18  Andreas Schwab  <schwab@redhat.com>
32141
32142         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
32143         (__feraiseexcept_renamed): Add __NTH.
32144         (feraiseexcept): Add __NTH.  Rename local variables to fix
32145         namespace violations.
32146
32147 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
32148
32149         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
32150
32151         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
32152
32153         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
32154         recently added interfaces.
32155         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
32156
32157         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
32158         about macro parameter expansion.
32159
32160         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
32161         __NO_MATH_INLINES is defined.  Cleanups.
32162
32163         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
32164         and __floorf is target has SSE4.1.
32165         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
32166         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
32167         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
32168         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
32169
32170         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
32171         name.
32172         (floorf): Likewise.
32173
32174         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
32175
32176 2011-10-17  Andreas Schwab  <schwab@redhat.com>
32177
32178         * misc/sys/cdefs.h: Fix last change.
32179
32180         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
32181         database lookup.
32182
32183 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
32184
32185         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
32186
32187         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
32188         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
32189         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
32190         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
32191         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
32192         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
32193         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
32194         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
32195         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
32196         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
32197         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
32198         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
32199         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
32200         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
32201         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
32202         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
32203         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
32204         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
32205         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
32206         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
32207         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
32208         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
32209
32210         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
32211         ceil, ceilf, floor, floorf.
32212
32213         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
32214         Perform IRELATIVE relocations last.
32215
32216         * elf/do-rel.h: Add another parameter nrelative, replacing the
32217         local variable with the same name.  Change name of the function
32218         to end in Rel or Rela (uppercase).
32219         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
32220         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
32221         elf_dynamic_do_##reloc function.
32222
32223 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
32224
32225         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
32226         is sufficient, at least on modern CPUs.
32227
32228         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
32229
32230         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
32231         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
32232
32233         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
32234         __expl_finite.
32235         * math/bits/math-finite.h: Add entries for exp.
32236         * math/e_expl.c: Add __*_finite alias.
32237         * sysdeps/i386/fpu/e_exp.S: Likewise.
32238         * sysdeps/i386/fpu/e_expf.S: Likewise.
32239         * sysdeps/i386/fpu/e_expl.c: Likewise.
32240         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32241         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
32242         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
32243         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
32244         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
32245         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
32246         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
32247
32248         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
32249         is sufficient, at least on modern CPUs.
32250
32251         * ctype/ctype-info.c (__ctype_init): Define.
32252         * include/ctype.h (__ctype_init): Declare.
32253         (__ctype_b_loc): The variable is always initialized.
32254         (__ctype_toupper_loc): Likewise.
32255         (__ctype_tolower_loc): Likewise.
32256         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
32257         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
32258
32259 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
32260
32261         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
32262
32263         * configure.in: Also look in $cxxmachine/include for C++ system
32264         headers.
32265
32266 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32267
32268         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
32269         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
32270         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
32271         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
32272         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
32273         (USE_AS_WMEMCMP): New macro.
32274         Fixing indents.
32275         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
32276         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
32277         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
32278         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
32279         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32280         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
32281         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
32282         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
32283         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
32284         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
32285         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
32286         (USE_AS_WMEMCMP): New macro.
32287         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
32288         * sysdeps/string/test-memcmp.c: Update.
32289         Fix simple_wmemcmp.
32290         Add new tests.
32291         * wcsmbs/wmemcmp.c: Update.
32292         (WMEMCMP): New macro.
32293         Fix overflow bug.
32294
32295 2011-10-12  Andreas Jaeger  <aj@suse.de>
32296
32297         [BZ #13268]
32298         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
32299
32300 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
32301
32302         * libio/iofwide.c (do_length): Avoid warning.
32303
32304         * ctype/ctype.h (__isctype_f): Add missing __THROW.
32305
32306 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
32307
32308         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
32309
32310         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
32311         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
32312         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
32313         * sysdeps/i386/i686/fpu/e_log.S: New file.
32314         * sysdeps/i386/i686/fpu/e_logf.S: New file.
32315         * sysdeps/i386/i686/fpu/e_logl.S: New file.
32316
32317         * ctype/ctype.h: Add support for inlined isXXX functions when
32318         compiling C++ code.
32319
32320 2011-10-14  Andreas Schwab  <schwab@redhat.com>
32321
32322         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
32323
32324         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
32325
32326 2011-10-13  Roland McGrath  <roland@hack.frob.com>
32327
32328         [BZ #13291]
32329         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
32330
32331 2011-10-13  Andreas Schwab  <schwab@redhat.com>
32332
32333         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
32334         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
32335         feraiseexcept.
32336
32337         * sysdeps/x86_64/memrchr.S: Check for zero size.
32338
32339         * string/stratcliff.c: Add memrchr tests.
32340
32341 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32342
32343         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32344         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
32345         rawmemchr-sse2 rawmemchr-sse2-bsf.
32346         * sysdeps/i386/i686/multiarch/memchr.S: New file.
32347         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
32348         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
32349         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
32350         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
32351         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
32352         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
32353         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
32354         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
32355         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
32356         * string/memrchr.c (MEMRCHR): New macro.
32357
32358 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
32359
32360         Add integration with gcc's -ffinite-math-only and optimize wrapper
32361         functions in libm.
32362         * Versions.def: Define GLIBC_2.15 version for libm.
32363         * math/Makefile (headers): Add bits/math-finite.h.
32364         * math/bits/math-finite.h: New file.
32365         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
32366         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
32367         * math/e_acoshl.c: Add __*_finite alias.
32368         * math/e_acosl.c: Likewise.
32369         * math/e_asinl.c: Likewise.
32370         * math/e_atan2l.c: Likewise.
32371         * math/e_atanhl.c: Likewise.
32372         * math/e_coshl.c: Likewise.
32373         * math/e_exp10.c: Likewise.
32374         * math/e_exp10f.c: Likewise.
32375         * math/e_exp10l.c: Likewise.
32376         * math/e_exp2l.c: Likewise.
32377         * math/e_fmodl.c: Likewise.
32378         * math/e_gammal_r.c: Likewise.
32379         * math/e_hypotl.c: Likewise.
32380         * math/e_j0l.c: Likewise.
32381         * math/e_j1l.c: Likewise.
32382         * math/e_jnl.c: Likewise.
32383         * math/e_lgammal_r.c: Likewise.
32384         * math/e_log10l.c: Likewise.
32385         * math/e_log2l.c: Likewise.
32386         * math/e_logl.c: Likewise.
32387         * math/e_powl.c: Likewise.
32388         * math/e_sinhl.c: Likewise.
32389         * math/e_sqrtl.c: Likewise.
32390         * math/e_scalb.c: Completely rewritten and optimized.
32391         * math/e_scalbf.c: Likewise.
32392         * math/e_scalbl.c: Likewise.
32393         * math/w_acos.c: Likewise.
32394         * math/w_acosf.c: Likewise.
32395         * math/w_acosl.c: Likewise.
32396         * math/w_acosh.c: Likewise.
32397         * math/w_acoshf.c: Likewise.
32398         * math/w_acoshl.c: Likewise.
32399         * math/w_asin.c: Likewise.
32400         * math/w_asinf.c: Likewise.
32401         * math/w_asinl.c: Likewise.
32402         * math/w_atan2.c: Likewise.
32403         * math/w_atan2f.c: Likewise.
32404         * math/w_atan2l.c: Likewise.
32405         * math/w_atanh.c: Likewise.
32406         * math/w_atanhf.c: Likewise.
32407         * math/w_atanhl.c: Likewise.
32408         * math/w_exp10.c: Likewise.
32409         * math/w_exp10f.c: Likewise.
32410         * math/w_exp10l.c: Likewise.
32411         * math/w_fmod.c: Likewise.
32412         * math/w_fmodf.c: Likewise.
32413         * math/w_fmodl.c: Likewise.
32414         * math/w_j0.c: Likewise.
32415         * math/w_j0f.c: Likewise.
32416         * math/w_j0l.c: Likewise.
32417         * math/w_j1.c: Likewise.
32418         * math/w_j1f.c: Likewise.
32419         * math/w_j1l.c: Likewise.
32420         * math/w_jn.c: Likewise.
32421         * math/w_jnf.c: Likewise.
32422         * math/w_log.c: Likewise.
32423         * math/w_logf.c: Likewise.
32424         * math/w_logl.c: Likewise.
32425         * math/w_log10.c: Likewise.
32426         * math/w_log10f.c: Likewise.
32427         * math/w_log10l.c: Likewise.
32428         * math/w_log2.c: Likewise.
32429         * math/w_log2f.c: Likewise.
32430         * math/w_log2l.c: Likewise.
32431         * math/w_pow.c: Likewise.
32432         * math/w_powf.c: Likewise.
32433         * math/w_powl.c: Likewise.
32434         * math/w_remainder.c: Likewise.
32435         * math/w_remainderf.c: Likewise.
32436         * math/w_remainderl.c: Likewise.
32437         * math/w_scalb.c: Likewise.
32438         * math/w_scalbf.c: Likewise.
32439         * math/w_scalbl.c: Likewise.
32440         * math/w_sqrt.c: Likewise.
32441         * math/w_sqrtf.c: Likewise.
32442         * math/w_sqrtl.c: Likewise.
32443         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
32444         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
32445         used.
32446         * math/math_private.h: Declare __kernel_standard_f.
32447         * math/w_cosh.c: Remove cruft and optimize a bit.
32448         * math/w_coshf.c: Likewise.
32449         * math/w_coshl.c: Likewise.
32450         * math/w_exp2.c: Likewise.
32451         * math/w_exp2f.c: Likewise.
32452         * math/w_exp2l.c: Likewise.
32453         * math/w_hypot.c: Likewise.
32454         * math/w_hypotf.c: Likewise.
32455         * math/w_hypotl.c: Likewise.
32456         * math/w_lgamma.c: Likewise.
32457         * math/w_lgamma_r.c: Likewise.
32458         * math/w_lgammaf.c: Likewise.
32459         * math/w_lgammaf_r.c: Likewise.
32460         * math/w_lgammal.c: Likewise.
32461         * math/w_lgammal_r.c: Likewise.
32462         * math/w_sinh.c: Likewise.
32463         * math/w_sinhf.c: Likewise.
32464         * math/w_sinhl.c: Likewise.
32465         * math/w_tgamma.c: Likewise.
32466         * math/w_tgammaf.c: Likewise.
32467         * math/w_tgammal.c: Likewise.
32468         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
32469         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
32470         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
32471         Minor optimizations.  Pretty printing.  Remove cruft.
32472         * sysdeps/i386/fpu/e_acosf.S: Likewise.
32473         * sysdeps/i386/fpu/e_acosh.S: Likewise.
32474         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
32475         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
32476         * sysdeps/i386/fpu/e_acosl.c: Likewise.
32477         * sysdeps/i386/fpu/e_asin.S: Likewise.
32478         * sysdeps/i386/fpu/e_asinf.S: Likewise.
32479         * sysdeps/i386/fpu/e_atan2.S: Likewise.
32480         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
32481         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
32482         * sysdeps/i386/fpu/e_atanh.S: Likewise.
32483         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
32484         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
32485         * sysdeps/i386/fpu/e_exp10.S: Likewise.
32486         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
32487         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
32488         * sysdeps/i386/fpu/e_exp2.S: Likewise.
32489         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
32490         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
32491         * sysdeps/i386/fpu/e_fmod.S: Likewise.
32492         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
32493         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
32494         * sysdeps/i386/fpu/e_hypot.S: Likewise.
32495         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
32496         * sysdeps/i386/fpu/e_log.S: Likewise.
32497         * sysdeps/i386/fpu/e_log10.S: Likewise.
32498         * sysdeps/i386/fpu/e_log10f.S: Likewise.
32499         * sysdeps/i386/fpu/e_log10l.S: Likewise.
32500         * sysdeps/i386/fpu/e_log2.S: Likewise.
32501         * sysdeps/i386/fpu/e_log2f.S: Likewise.
32502         * sysdeps/i386/fpu/e_log2l.S: Likewise.
32503         * sysdeps/i386/fpu/e_logf.S: Likewise.
32504         * sysdeps/i386/fpu/e_logl.S: Likewise.
32505         * sysdeps/i386/fpu/e_pow.S: Likewise.
32506         * sysdeps/i386/fpu/e_powf.S: Likewise.
32507         * sysdeps/i386/fpu/e_powl.S: Likewise.
32508         * sysdeps/i386/fpu/e_remainder.S: Likewise.
32509         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
32510         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
32511         * sysdeps/i386/fpu/e_scalb.S: Likewise.
32512         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
32513         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
32514         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
32515         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
32516         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
32517         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
32518         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
32519         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32520         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
32521         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
32522         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
32523         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
32524         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
32525         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
32526         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
32527         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
32528         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
32529         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32530         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
32531         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
32532         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32533         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
32534         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
32535         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
32536         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32537         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
32538         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
32539         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
32540         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
32541         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
32542         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
32543         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
32544         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
32545         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
32546         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
32547         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
32548         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
32549         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
32550         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
32551         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
32552         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
32553         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
32554         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
32555         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
32556         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
32557         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
32558         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
32559         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
32560         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
32561         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
32562         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
32563         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
32564         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
32565         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
32566         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
32567         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
32568         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
32569         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
32570         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
32571         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
32572         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
32573         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
32574         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
32575         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
32576         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
32577         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
32578         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
32579         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
32580         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
32581         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
32582         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
32583         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
32584         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
32585         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
32586         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
32587         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
32588         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
32589         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
32590         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
32591         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
32592         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
32593         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
32594         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
32595         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
32596         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
32597         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
32598         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
32599         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
32600         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
32601         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
32602         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
32603         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
32604         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
32605         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
32606         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
32607         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
32608         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
32609         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
32610         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
32611         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
32612         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
32613         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
32614         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
32615         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
32616         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
32617         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
32618         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
32619         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
32620         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
32621         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
32622         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
32623         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
32624         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
32625         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
32626         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
32627         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
32628         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
32629         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
32630         (__isnanf): Likewise.
32631         (__isinf_ns): Likewise.
32632         (__isinf_nsf): Likewise.
32633         (__finite): Likewise.
32634         (__finitef): Likewise.
32635         (__ieee754_sqrt): Define as macro.
32636         (__ieee754_sqrtf): Define as macro.
32637         (__ieee754_sqrtl): Define as macro.
32638         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
32639         inlined copy.
32640         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
32641         __FINITE_MATH_ONLY__ consistent.
32642         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
32643
32644 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
32645
32646         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
32647         of rawmemchr.
32648
32649         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
32650
32651 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
32652
32653         * po/ja.po: Update from translation team.
32654
32655 2011-10-08  Roland McGrath  <roland@hack.frob.com>
32656
32657         * locale/programs/locarchive.c (prepare_address_space): New function.
32658         (create_archive, enlarge_archive, open_archive): Use it.
32659
32660         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
32661         inside [SHARED], where it is used.
32662
32663         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
32664
32665         * nss/getent.c (netgroup_keys): Remove unused variable.
32666         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
32667
32668 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
32669
32670         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
32671         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
32672         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
32673         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
32674         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
32675         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
32676         * math/Makefile (libm-calls): Add s_isinf_ns.
32677         * math/divtc3.c: Use __isinf_nsl instead of isinf.
32678         * math/multc3.c: Likewise.
32679         * math/s_casin.c: Likewise.
32680         * math/s_casinf.c: Likewise.
32681         * math/s_casinl.c: Likewise.
32682         * math/s_ccos.c: Likewise.
32683         * math/s_ccosf.c: Likewise.
32684         * math/s_ccosl.c: Likewise.
32685         * math/s_ctan.c: Likewise.
32686         * math/s_ctanf.c: Likewise.
32687         * math/s_ctanh.c: Likewise.
32688         * math/s_ctanhf.c: Likewise.
32689         * math/s_ctanhl.c: Likewise.
32690         * math/s_ctanl.c: Likewise.
32691         * math/w_fmod.c: Likewise.
32692         * math/w_fmodf.c: Likewise.
32693         * math/w_fmodl.c: Likewise.
32694         * math/w_remainder.c: Likewise.
32695         * math/w_remainderf.c: Likewise.
32696         * math/w_remainderl.c: Likewise.
32697         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
32698         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
32699         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
32700         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
32701         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
32702         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
32703         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
32704         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
32705
32706         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
32707         of the number.
32708         * stdio-common/printf_fphex.c: Likewise.
32709         * stdio-common/printf_size.c: Likewise.
32710
32711         * math/e_exp10.c: Include math_private.h using <...> not "...".
32712         * math/e_exp10f.c: Likewise.
32713         * math/e_exp10l.c: Likewise.
32714         * math/e_exp2l.c: Likewise.
32715         * math/e_j0l.c: Likewise.
32716         * math/e_j1l.c: Likewise.
32717         * math/e_jnl.c: Likewise.
32718         * math/e_lgammal_r.c: Likewise.
32719         * math/e_rem_pio2l.c: Likewise.
32720         * math/e_scalb.c: Likewise.
32721         * math/e_scalbf.c: Likewise.
32722         * math/e_scalbl.c: Likewise.
32723         * math/k_cosl.c: Likewise.
32724         * math/k_sinl.c: Likewise.
32725         * math/k_tanl.c: Likewise.
32726         * math/s_cacoshf.c: Likewise.
32727         * math/s_catan.c: Likewise.
32728         * math/s_catanf.c: Likewise.
32729         * math/s_catanh.c: Likewise.
32730         * math/s_catanhf.c: Likewise.
32731         * math/s_catanhl.c: Likewise.
32732         * math/s_catanl.c: Likewise.
32733         * math/s_ccosh.c: Likewise.
32734         * math/s_ccoshf.c: Likewise.
32735         * math/s_ccoshl.c: Likewise.
32736         * math/s_cexp.c: Likewise.
32737         * math/s_cexpf.c: Likewise.
32738         * math/s_cexpl.c: Likewise.
32739         * math/s_clog.c: Likewise.
32740         * math/s_clog10.c: Likewise.
32741         * math/s_clog10f.c: Likewise.
32742         * math/s_clog10l.c: Likewise.
32743         * math/s_clogf.c: Likewise.
32744         * math/s_clogl.c: Likewise.
32745         * math/s_csin.c: Likewise.
32746         * math/s_csinf.c: Likewise.
32747         * math/s_csinh.c: Likewise.
32748         * math/s_csinhf.c: Likewise.
32749         * math/s_csinhl.c: Likewise.
32750         * math/s_csinl.c: Likewise.
32751         * math/s_csqrt.c: Likewise.
32752         * math/s_csqrtf.c: Likewise.
32753         * math/s_csqrtl.c: Likewise.
32754         * math/s_ctan.c: Likewise.
32755         * math/s_ctanf.c: Likewise.
32756         * math/s_ctanh.c: Likewise.
32757         * math/s_ctanhf.c: Likewise.
32758         * math/s_ctanhl.c: Likewise.
32759         * math/s_ctanl.c: Likewise.
32760         * math/s_ldexp.c: Likewise.
32761         * math/s_ldexpf.c: Likewise.
32762         * math/s_ldexpl.c: Likewise.
32763         * math/s_significand.c: Likewise.
32764         * math/s_significandf.c: Likewise.
32765         * math/s_significandl.c: Likewise.
32766         * math/w_acos.c: Likewise.
32767         * math/w_acosf.c: Likewise.
32768         * math/w_acosh.c: Likewise.
32769         * math/w_acoshf.c: Likewise.
32770         * math/w_acoshl.c: Likewise.
32771         * math/w_acosl.c: Likewise.
32772         * math/w_asin.c: Likewise.
32773         * math/w_asinf.c: Likewise.
32774         * math/w_asinl.c: Likewise.
32775         * math/w_atan2.c: Likewise.
32776         * math/w_atan2f.c: Likewise.
32777         * math/w_atan2l.c: Likewise.
32778         * math/w_atanh.c: Likewise.
32779         * math/w_atanhf.c: Likewise.
32780         * math/w_atanhl.c: Likewise.
32781         * math/w_cosh.c: Likewise.
32782         * math/w_coshf.c: Likewise.
32783         * math/w_coshl.c: Likewise.
32784         * math/w_dremf.c: Likewise.
32785         * math/w_exp10.c: Likewise.
32786         * math/w_exp10f.c: Likewise.
32787         * math/w_exp10l.c: Likewise.
32788         * math/w_exp2.c: Likewise.
32789         * math/w_exp2f.c: Likewise.
32790         * math/w_fmod.c: Likewise.
32791         * math/w_fmodf.c: Likewise.
32792         * math/w_fmodl.c: Likewise.
32793         * math/w_hypot.c: Likewise.
32794         * math/w_hypotf.c: Likewise.
32795         * math/w_hypotl.c: Likewise.
32796         * math/w_j0.c: Likewise.
32797         * math/w_j0f.c: Likewise.
32798         * math/w_j0l.c: Likewise.
32799         * math/w_j1.c: Likewise.
32800         * math/w_j1f.c: Likewise.
32801         * math/w_j1l.c: Likewise.
32802         * math/w_jn.c: Likewise.
32803         * math/w_jnf.c: Likewise.
32804         * math/w_jnl.c: Likewise.
32805         * math/w_lgamma.c: Likewise.
32806         * math/w_lgamma_r.c: Likewise.
32807         * math/w_lgammaf.c: Likewise.
32808         * math/w_lgammaf_r.c: Likewise.
32809         * math/w_lgammal.c: Likewise.
32810         * math/w_lgammal_r.c: Likewise.
32811         * math/w_log.c: Likewise.
32812         * math/w_log10.c: Likewise.
32813         * math/w_log10f.c: Likewise.
32814         * math/w_log10l.c: Likewise.
32815         * math/w_log2.c: Likewise.
32816         * math/w_log2f.c: Likewise.
32817         * math/w_log2l.c: Likewise.
32818         * math/w_logf.c: Likewise.
32819         * math/w_logl.c: Likewise.
32820         * math/w_pow.c: Likewise.
32821         * math/w_powf.c: Likewise.
32822         * math/w_powl.c: Likewise.
32823         * math/w_remainder.c: Likewise.
32824         * math/w_remainderf.c: Likewise.
32825         * math/w_remainderl.c: Likewise.
32826         * math/w_scalb.c: Likewise.
32827         * math/w_scalbf.c: Likewise.
32828         * math/w_scalbl.c: Likewise.
32829         * math/w_sinh.c: Likewise.
32830         * math/w_sinhf.c: Likewise.
32831         * math/w_sinhl.c: Likewise.
32832         * math/w_sqrt.c: Likewise.
32833         * math/w_sqrtf.c: Likewise.
32834         * math/w_sqrtl.c: Likewise.
32835         * math/w_tgamma.c: Likewise.
32836         * math/w_tgammaf.c: Likewise.
32837         * math/w_tgammal.c: Likewise.
32838
32839         * po/ja.po: Update from translation team.
32840
32841 2011-09-29  Andreas Jaeger  <aj@suse.de>
32842
32843         [BZ #13179]
32844         * sunrpc/netname.c (netname2host): Fix logic.
32845
32846         [BZ #6779]
32847         [BZ #6783]
32848         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
32849         correctly.
32850         * math/w_remainder.c (__remainder): Likewise.
32851         * math/w_remainderf.c (__remainderf): Likewise.
32852         * math/libm-test.inc (remainder_test): Add test cases.
32853
32854 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32855
32856         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
32857         sdiv_qrnnd.
32858
32859 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
32860
32861         * string/test-memcmp.c: Avoid unncessary #defines.
32862         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
32863
32864 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32865
32866         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
32867         Use new sse2 version for core i3 - i7 as it's faster
32868         than sse42 version.
32869         (bit_Prefer_PMINUB_for_stringop): New.
32870         * sysdeps/x86_64/rawmemchr.S: Update.
32871         Replace with faster SSE2 version.
32872         * sysdeps/x86_64/memrchr.S: New file.
32873         * sysdeps/x86_64/memchr.S: Update.
32874         Replace with faster SSE2 version.
32875
32876 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
32877
32878         * elf/dl-load.c (lose): Add cast to avoid warning.
32879
32880 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
32881
32882         * po/ca.po: Update from translation team.
32883
32884         * inet/getnetgrent_r.c: Hook up nscd.
32885         * nscd/Makefile (routines): Add nscd_netgroup.
32886         (nscd-modules): Add netgroupcache.
32887         (CFLAGS-netgroupcache.c): Define.
32888         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
32889         (cache_search): Add const to second parameter.
32890         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
32891         INNETGR.
32892         (dbs): Add netgrdb entry.
32893         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
32894         (verify_persistent_db): Handle netgrdb.
32895         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
32896         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
32897         GETFDNETGR.
32898         (netgroup_response_header): Define.
32899         (innetgroup_response_header): Define.
32900         (datahead): Add netgroup_response_header and innetgroup_response_header
32901         elements.
32902         * nscd/nscd.conf: Add entries for netgroup cache.
32903         * nscd/nscd.h (dbtype): Add netgrdb.
32904         (_PATH_NSCD_NETGROUP_DB): Define.
32905         (netgroup_iov_disabled): Declare.
32906         (xmalloc, xcalloc, xrealloc): Move declarations here.
32907         (cache_search): Adjust prototype.
32908         Add netgroup-related prototypes.
32909         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
32910         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
32911         (__nscd_innetgr): Declare.
32912         * nscd/selinux.c (perms): Use access_vector_t as element type and
32913         add netgroup-related initializers.
32914         * nscd/netgroupcache.c: New file.
32915         * nscd/nscd_netgroup.c: New file.
32916         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
32917         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
32918         For four parameters use innetgr.
32919         * nss/nss_files/files-init.c: Add definition and callback for netgr.
32920         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
32921         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
32922         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
32923
32924         * nscd/connections.c (register_traced_file): Don't register file
32925         for disabled databases.
32926
32927 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
32928
32929         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
32930
32931         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
32932         from tree and freeing node.
32933
32934 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
32935
32936         * nss/nsswitch.c (__nss_database_lookup): Handle
32937         nss_parse_service_list out of memory case.
32938
32939 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
32940
32941         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
32942         out of memory case.
32943
32944 2011-10-04  Andreas Schwab  <schwab@redhat.com>
32945
32946         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
32947         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
32948         pass it down.
32949         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
32950         elf_machine_rela, elf_machine_lazy_rel.
32951         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
32952         (ELF_DYNAMIC_DO_REL): Likewise.
32953         (ELF_DYNAMIC_DO_RELA): Likewise.
32954         (ELF_DYNAMIC_RELOCATE): Likewise.
32955         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
32956         to ELF_DYNAMIC_DO_REL.
32957         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
32958         (dl_main): In trace mode always set __RTLD_NOIFUNC.
32959         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
32960         elf_machine_rela.
32961         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
32962         skip_ifunc, don't call ifunc function if non-zero.
32963         (elf_machine_rela): Likewise.
32964         (elf_machine_lazy_rel): Likewise.
32965         (elf_machine_lazy_rela): Likewise.
32966         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
32967         (elf_machine_lazy_rel): Likewise.
32968         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
32969         Likewise.
32970         (elf_machine_lazy_rel): Likewise.
32971         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
32972         Likewise.
32973         (elf_machine_lazy_rel): Likewise.
32974         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
32975         (elf_machine_lazy_rel): Likewise.
32976         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
32977         (elf_machine_lazy_rel): Likewise.
32978         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
32979         (elf_machine_lazy_rel): Likewise.
32980         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
32981         (elf_machine_lazy_rel): Likewise.
32982         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
32983         (elf_machine_lazy_rel): Likewise.
32984         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
32985         (elf_machine_lazy_rel): Likewise.
32986
32987 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
32988
32989         * nss/nss_files/files-init.c (_nss_files_init): Use static
32990         initialization for all the *_traced_file variables.
32991
32992 2011-09-28  Andreas Schwab  <schwab@redhat.com>
32993
32994         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
32995
32996 2011-09-27  Roland McGrath  <roland@hack.frob.com>
32997
32998         [BZ #13226]
32999         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
33000
33001 2011-09-27  Andreas Schwab  <schwab@redhat.com>
33002
33003         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
33004         Reread the line before reparsing it.
33005
33006 2011-09-26  Andreas Schwab  <schwab@redhat.com>
33007
33008         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
33009
33010 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
33011             Maxim Kuvyrkov  <maxim@codesourcery.com>
33012             Joseph Myers  <joseph@codesourcery.com>
33013
33014         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
33015         if needed for __stack_chk_guard.
33016
33017 2011-09-19  Roland McGrath  <roland@hack.frob.com>
33018
33019         * sysdeps/posix/spawni.c (script_execute): Always define it.
33020         It will be optimized away if unused.
33021         (maybe_script_execute): New function.
33022         (__spawni): Call it.
33023
33024         * Makerules: Don't include tls.make.
33025         (config-tls): Always set to thread.
33026         * tls.make.c: File removed.
33027
33028 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
33029
33030         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
33031         * config.make.in (CPPFLAGS-config): New substituted variable.
33032
33033 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
33034
33035         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
33036
33037         [BZ #13192]
33038         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
33039         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
33040
33041 2011-09-15  Roland McGrath  <roland@hack.frob.com>
33042
33043         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
33044         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
33045         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
33046         (CALL_FAIL): Likewise.
33047         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
33048         (CALL_FAIL): Macro removed.
33049         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
33050
33051 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
33052
33053         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
33054         for __FINITE_MATH_ONLY__ == 1.
33055
33056 2011-09-15  Andreas Schwab  <schwab@redhat.com>
33057
33058         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
33059         __ieee754_sqrt instead of sqrt.
33060         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
33061         __ieee754_sqrtf instead of sqrtf.
33062         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
33063         __floorf instead of floorf.
33064         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
33065         __floorf, __truncf instead of floorf, truncf.
33066
33067 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
33068
33069         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
33070
33071         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
33072         __extern_always_inline.
33073         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
33074         32-bit.
33075
33076 2011-09-14  Andreas Schwab  <schwab@redhat.com>
33077
33078         * elf/rtld.c (dl_main): Also relocate in dependency order when
33079         doing symbol dependency testing.
33080
33081 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
33082
33083         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33084         Always define `refsym'.
33085
33086 2011-09-13  Andreas Schwab  <schwab@redhat.com>
33087
33088         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
33089         (__FD_ELT): Renamed from __FDELT.
33090         * misc/bits/select2.h (__FD_ELT): Likewise.
33091         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
33092         __FD_MASK instead of __FDELT, __FDMASK.
33093         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
33094         Likewise.
33095         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
33096         Likewise.
33097
33098         * elf/Makefile (gen-ldd): Fix pattern.
33099
33100         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
33101         (init_tls): Likewise.
33102
33103 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
33104
33105         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
33106
33107 2011-09-12  Andreas Schwab  <schwab@redhat.com>
33108
33109         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
33110         `struct cmsghdr *' instead of `void *'.
33111         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
33112         Likewise.
33113
33114 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
33115
33116         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
33117         if non-absolute.
33118         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
33119         ldd_rewrite_script.
33120
33121 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
33122
33123         * configure.in: Remove --with-tls option.
33124         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
33125         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
33126         out in case it is missing.
33127         * sysdeps/ia64/elf/configure.in: Likewise.
33128         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
33129         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
33130         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
33131         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
33132         * sysdeps/sh/elf/configure.in: Likewise.
33133         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
33134         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
33135         * sysdeps/x86_64/elf/configure.in: Likewise.
33136         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
33137         * sysdeps/mach/hurd/tls.h: Likewise.
33138
33139         [BZ #13067]
33140         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
33141
33142         [BZ #13090]
33143         * configure.in: Fix use of AC_INIT.
33144
33145         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
33146
33147 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
33148
33149         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
33150         __set_errno.
33151         * malloc/hooks.c: Likewise.
33152
33153         [BZ #11929]
33154         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
33155         variables statically.
33156         (narenas): Initialize.
33157         (list_lock): Initialize.
33158         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
33159         initializtion of main_arena and list_lock.  Small cleanups.
33160         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
33161         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
33162         Add initializers to main_arena and mp_.
33163         (malloc_state): Remove pagesize member.  Change all users to use
33164         GLRO(dl_pagesize).
33165
33166         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
33167         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
33168         is always initialized.
33169
33170         * malloc/malloc.c: Removed unused configurations and dead code.
33171         * malloc/arena.c: Likewise.
33172         * malloc/hooks.c: Likewise.
33173         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
33174
33175         * include/tls.h: Removed.  USE___THREAD must always be defined.
33176         * bits/libc-tsd.h: Don't handle !USE___THREAD.
33177         * elf/dl-libc.c: Likewise.
33178         * elf/dl-tsd.c: Likewise.
33179         * include/errno.h: Likewise.
33180         * include/netdb.h: Likewise.
33181         * include/resolv.h: Likewise.
33182         * inet/herrno-loc.c: Likewise.
33183         * inet/herrno.c: Likewise.
33184         * malloc/arena.c: Likewise.
33185         * malloc/hooks.c: Likewise.
33186         * malloc/malloc.c: Likewise.
33187         * resolv/res-state.c: Likewise.
33188         * resolv/res_libc.c: Likewise.
33189         * sysdeps/i386/dl-machine.h: Likewise.
33190         * sysdeps/ia64/dl-machine.h: Likewise.
33191         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
33192         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
33193         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
33194         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
33195         * sysdeps/sh/dl-machine.h: Likewise.
33196         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
33197         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
33198         * sysdeps/unix/i386/sysdep.S: Likewise.
33199         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
33200         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
33201         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
33202         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
33203         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
33204         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
33205         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
33206         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
33207         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
33208         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
33209         * sysdeps/unix/x86_64/sysdep.S: Likewise.
33210         * sysdeps/x86_64/dl-machine.h: Likewise.
33211         * tls.make.c: Likewise.
33212
33213         * configure.in: Remove --with-__thread option.  Make tests for
33214         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
33215         tls_model attribute fail if no support is available.  Remove
33216         USE_IN_LIBIO.
33217         * Makeconfig: Adjust for dropped configure option.  All features are
33218         now mandatory.
33219         * Makerules: Likewise.
33220         * Versions.def: Likewise.
33221         * argp/argp-fmtstream.c: Likewise.
33222         * argp/argp-fmtstream.h: Likewise.
33223         * argp/argp-help.c: Likewise.
33224         * assert/assert.c: Likewise.
33225         * config.h.in: Likewise.
33226         * config.make.in: Likewise.
33227         * configure: Likewise.
33228         * configure.in: Likewise.
33229         * csu/Versions: Likewise.
33230         * csu/init.c: Likewise.
33231         * elf/tst-audit2.c: Likewise.
33232         * elf/tst-tls10.c: Likewise.
33233         * elf/tst-tls10.h: Likewise.
33234         * elf/tst-tls11.c: Likewise.
33235         * elf/tst-tls12.c: Likewise.
33236         * elf/tst-tls14.c: Likewise.
33237         * elf/tst-tlsmod11.c: Likewise.
33238         * elf/tst-tlsmod12.c: Likewise.
33239         * elf/tst-tlsmod13.c: Likewise.
33240         * elf/tst-tlsmod13a.c: Likewise.
33241         * elf/tst-tlsmod14a.c: Likewise.
33242         * elf/tst-tlsmod15b.c: Likewise.
33243         * elf/tst-tlsmod16a.c: Likewise.
33244         * elf/tst-tlsmod16b.c: Likewise.
33245         * elf/tst-tlsmod7.c: Likewise.
33246         * elf/tst-tlsmod8.c: Likewise.
33247         * elf/tst-tlsmod9.c: Likewise.
33248         * gmon/gmon.c: Likewise.
33249         * grp/fgetgrent_r.c: Likewise.
33250         * grp/putgrent.c: Likewise.
33251         * hurd/fopenport.c: Likewise.
33252         * include/libc-symbols.h: Likewise.
33253         * include/tls.h: Likewise.
33254         * intl/gettextP.h: Likewise.
33255         * intl/loadinfo.h: Likewise.
33256         * locale/global-locale.c: Likewise.
33257         * locale/localeinfo.h: Likewise.
33258         * mach/devstream.c: Likewise.
33259         * malloc/arena.c: Likewise.
33260         * malloc/set-freeres.c: Likewise.
33261         * misc/err.c: Likewise.
33262         * misc/getttyent.c: Likewise.
33263         * misc/mntent_r.c: Likewise.
33264         * posix/getopt.c: Likewise.
33265         * posix/wordexp.c: Likewise.
33266         * pwd/fgetpwent_r.c: Likewise.
33267         * resolv/Versions: Likewise.
33268         * resolv/res_hconf.c: Likewise.
33269         * shadow/fgetspent_r.c: Likewise.
33270         * shadow/putspent.c: Likewise.
33271         * stdio-common/printf_fphex.c: Likewise.
33272         * stdio-common/tmpfile.c: Likewise.
33273         * stdlib/abort.c: Likewise.
33274         * stdlib/fmtmsg.c: Likewise.
33275         * sunrpc/auth_unix.c: Likewise.
33276         * sunrpc/clnt_perr.c: Likewise.
33277         * sunrpc/clnt_tcp.c: Likewise.
33278         * sunrpc/clnt_udp.c: Likewise.
33279         * sunrpc/clnt_unix.c: Likewise.
33280         * sunrpc/openchild.c: Likewise.
33281         * sunrpc/svc_simple.c: Likewise.
33282         * sunrpc/svc_tcp.c: Likewise.
33283         * sunrpc/svc_udp.c: Likewise.
33284         * sunrpc/svc_unix.c: Likewise.
33285         * sunrpc/xdr.c: Likewise.
33286         * sunrpc/xdr_array.c: Likewise.
33287         * sunrpc/xdr_rec.c: Likewise.
33288         * sunrpc/xdr_ref.c: Likewise.
33289         * sunrpc/xdr_stdio.c: Likewise.
33290
33291 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
33292
33293         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33294
33295 2011-07-03  Andreas Jaeger  <aj@suse.de>
33296
33297         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
33298         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
33299         regenerate with gen-libm-tests.pl.
33300
33301 2010-05-12  Petr Baudis  <pasky@suse.cz>
33302
33303         [BZ #11589]
33304         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
33305         around j0() zero points by switching to j1().
33306         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33307         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33308         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
33309         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33310
33311 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
33312
33313         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
33314         instead of 0.
33315         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
33316         instead of 0.
33317         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
33318         Patch in part by Pavel Roskin <proski@gnu.org>.
33319
33320         [BZ #13138]
33321         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
33322         realloc.
33323         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
33324         Free memory block if necessary.
33325
33326         [BZ #12847]
33327         * libio/genops.c (INTDEF): For string streams the _lock pointer can
33328         be NULL.  Don't lock in this case.
33329
33330 2011-09-09  Roland McGrath  <roland@hack.frob.com>
33331
33332         * elf/elf.h (ELFOSABI_GNU): New macro.
33333         (ELFOSABI_LINUX): Define to that.
33334
33335 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
33336
33337         * string/strncat.c (strncat): Undef the symbol in case it has been
33338         defined in bits/string.h.
33339
33340 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
33341
33342         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
33343
33344         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
33345         link map.
33346
33347 2011-08-17  Andreas Jaeger  <aj@suse.de>
33348
33349         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
33350
33351 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
33352             Ian Lance Taylor  <iant@google.com>
33353
33354         * math/libm-test.inc (lround_test): New testcase.
33355         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
33356
33357 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
33358
33359         * Makefile: Remove support for automatic cvs check-ins.
33360         * Makerules: Likewise.
33361         * config.make.in: Likewise.
33362         * configure.in: Likewise.
33363         * intl/Makefile: Likewise.
33364         * locale/Makefile: Likewise.
33365         * po/Makefile: Likewise.
33366         * posix/Makefile: Likewise.
33367         * sysdeps/gnu/Makefile: Likewise.
33368         * sysdeps/mach/hurd/Makefile: Likewise.
33369         * sysdeps/sparc/sparc32/Makefile: Likewise.
33370
33371         [BZ #13118]
33372         * posix/Makefile (bug-regex32-ENV): Define.
33373         Patch by John Stanley <jpsinthemix@verizon.net>.
33374
33375         * misc/Makefile (headers): Add bits/select2.h.
33376         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
33377         * misc/bits/select2.h: New file.
33378         * include/bits/select2.h: New file.
33379         * debug/Makefile (routines): Add fdelt_chk.
33380         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
33381         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
33382         FD_ISSET.
33383         * debug/fdelt_chk.c: New file.
33384
33385         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
33386         * wcsmbs/test-wmemcmp.c: Likewise.
33387         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
33388         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
33389
33390 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33391
33392         * string/Makefile (strop-tests): Add memcmp.
33393         * string/test-wmemcmp.c: New file.
33394         * string/test-memcmp.c: Add wmemcmp support.
33395
33396 2011-09-08  Roland McGrath  <roland@hack.frob.com>
33397
33398         [BZ #13153]
33399         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
33400         2011-07-19 change.
33401
33402         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
33403         garbage value in a __mach_port_mod_refs call in the cases of the
33404         task-self and thread-self ports.
33405
33406 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33407
33408         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
33409
33410 2011-09-08  Andreas Schwab  <schwab@redhat.com>
33411
33412         * elf/dl-load.c (lose): Check for non-null L.
33413
33414 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
33415
33416         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
33417
33418         * elf/dl-libc.c (dlerror_run): Pass back error code from
33419         dl_catch_error.
33420
33421         [BZ #13123]
33422         * elf/dl-load.c (lose): Free l_origin if it is valid.
33423
33424         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
33425         names.
33426         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
33427         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
33428         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
33429         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
33430         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
33431         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
33432
33433 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33434
33435         * sysdeps/powerpc/fpu/e_hypot.c: New file.
33436         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
33437         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
33438         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
33439         * sysdeps/powerpc/fpu/k_cosf.c: New file.
33440         * sysdeps/powerpc/fpu/k_sinf.c: New file.
33441         * sysdeps/powerpc/fpu/s_cosf.c: New file.
33442         * sysdeps/powerpc/fpu/s_sinf.c: New file.
33443         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
33444         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
33445
33446 2011-08-15  Alan Modra  <amodra@gmail.com>
33447
33448         [BZ #13092]
33449         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
33450         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
33451         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
33452         ppc_mcount to static-only-routines.
33453         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
33454         __mcount_internal.
33455         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
33456         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
33457
33458 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
33459
33460         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
33461         for finite and infinity parameters.
33462
33463 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
33464
33465         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
33466         and add nop instructions for throughput optimization.
33467         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
33468
33469 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
33470
33471         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
33472         aligned copy for power7 with vector-scalar instructions.
33473         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
33474
33475 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
33476
33477         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
33478         AVX check.
33479
33480 2011-09-07  Andreas Schwab  <schwab@redhat.com>
33481
33482         [BZ #13144]
33483         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
33484         last change.
33485
33486 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
33487
33488         * sysdeps/unix/sysv/linux/x86_64/init-first.c
33489         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
33490         syscall wrapper around clock_gettime in __vdso_clock_gettime.
33491         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
33492         clock_gettime.
33493
33494 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
33495
33496         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
33497         Forgot to demangle the pointer.
33498
33499         * sysdeps/i386/sysdep.h: Define atom_text_section.
33500         * sysdeps/x86_64/sysdep.h: Likewise.
33501         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
33502         section with atom_text_section.
33503         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
33504         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
33505         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
33506         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
33507         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
33508
33509         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
33510         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
33511         already be defined.  Change to take two parameters and don't assign
33512         result to variable.  Adjust all users.
33513         Define INTERNAL_GETTIME if not already defined.
33514         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
33515         call.
33516         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
33517         HAVE_CLOCK_GETTIME_VSYSCALL.
33518         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
33519
33520         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
33521         gettimeofday vsyscall, just use time.
33522
33523 2011-09-06  Andreas Schwab  <schwab@redhat.com>
33524
33525         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
33526         <errno.h>.
33527
33528 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
33529
33530         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
33531         syscall on x86-64.
33532         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
33533         syscall.
33534         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
33535         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
33536         syscall if possible.
33537
33538 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
33539
33540         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
33541         e_ident.  Don't pass to find_mapsXX.
33542         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
33543
33544 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33545
33546         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33547         strchr-sse2-no-bsf strrchr-sse2-no-bsf
33548         * sysdeps/x86_64/multiarch/strchr.S: Update.
33549         Check bit_slow_BSF bit.
33550         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
33551         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
33552         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
33553
33554 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
33555
33556         [BZ #13134]
33557         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
33558         before glibc 2.15.
33559         (tryshell): Define.
33560         (__spawni): Change last parameter to be flag.  Test
33561         SPAWN_XFLAGS_USE_PATH flag to use path or not.
33562         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
33563         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
33564         * posix/spawni.c: Likewise.
33565         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
33566         * posix/spawnp.c: Likewise.  Change normal version to use
33567         SPAWN_XFLAGS_USE_PATH.
33568         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
33569         SPAWN_XFLAGS_TRY_SHELL.
33570
33571         [BZ #13150]
33572         * posix/glob.h: Remove gcc 1.x support.
33573
33574         [BZ #13068]
33575         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
33576
33577 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33578
33579         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33580         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
33581         strrchr-sse2-bsf
33582         * sysdeps/i386/i686/multiarch/strchr.S: New file.
33583         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
33584         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
33585         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
33586         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
33587         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
33588
33589 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33590
33591         * sysdeps/x86_64/wcscmp.S: New file.
33592
33593         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
33594         wcscmp-c wcscmp-sse2
33595         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
33596         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
33597         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
33598         * wcsmbs/wcscmp.c: Allow renaming.
33599
33600 2011-09-05  David S. Miller  <davem@davemloft.net>
33601
33602         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
33603         stack slot, rather than the struct return pointer slot.
33604         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
33605         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
33606         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
33607         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
33608
33609 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
33610
33611         * po/ja.po: Update from translation team.
33612
33613         [BZ #13144]
33614         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
33615         kernel in 64-bit binaries.
33616
33617 2011-09-01  David S. Miller  <davem@davemloft.net>
33618
33619         * elf/elf.h (HWCAP_SPARC_*): Move to..
33620         * sysdeps/sparc/sysdep.h: this new file and add new values.
33621         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
33622         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
33623         _DL_HWCAP_COUNT to 24.
33624         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
33625         entries.
33626         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
33627         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
33628         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
33629         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
33630         instead of magic constants.
33631         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
33632
33633 2011-08-31  David S. Miller  <davem@davemloft.net>
33634
33635         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
33636         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
33637         Reimplement to do errno handling inline.
33638         (SYSCALL_ERROR_HANDLER): New macro.
33639         (__SYSCALL_STRING): Do not do errno handling in asm.
33640         (__CLONE_SYSCALL_STRING): Delete.
33641         (__INTERNAL_SYSCALL_STRING): Delete.
33642         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
33643         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
33644         (PSEUDO): Reimplement to do errno handling inline.
33645         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
33646         (SYSCALL_ERROR_HANDLER): New macro.
33647         (__SYSCALL_STRING): Do not do errno handling in asm.
33648         (__CLONE_SYSCALL_STRING): Delete.
33649         (__INTERNAL_SYSCALL_STRING): Delete.
33650         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
33651         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
33652         i386.
33653         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
33654         (inline_syscall*): Add 'err' argument.
33655         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
33656         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
33657         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
33658         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
33659
33660         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
33661         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
33662
33663 2011-08-30  Andreas Schwab  <schwab@redhat.com>
33664
33665         * elf/rtld.c (dl_main): Relocate objects in dependency order.
33666
33667 2011-08-29  Jiri Olsa <jolsa@redhat.com>
33668
33669         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
33670         directive.
33671
33672 2011-08-24  David S. Miller  <davem@davemloft.net>
33673
33674         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
33675
33676 2011-08-24  Andreas Schwab  <schwab@redhat.com>
33677
33678         * elf/Makefile: Add rules to build and run unload8 test.
33679         * elf/unload8.c: New file.
33680         * elf/unload8mod1.c: New file.
33681         * elf/unload8mod1x.c: New file.
33682         * elf/unload8mod2.c: New file.
33683         * elf/unload8mod3.c: New file.
33684
33685         * elf/dl-close.c (_dl_close_worker): Reset private search list if
33686         it wasn't used.
33687
33688 2011-08-23  David S. Miller  <davem@davemloft.net>
33689
33690         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
33691         subtract stack bias.
33692         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
33693         %sp not %fp in calculations.
33694         (_JMPBUF_UNWINDS_ADJ): Likewise.
33695
33696         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
33697         (aio_suspend): Call it to force an exception region around the
33698         AIO_MISC_WAIT() invocation.
33699
33700 2011-08-23  Andreas Schwab  <schwab@redhat.com>
33701
33702         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
33703         backslash.
33704
33705 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
33706
33707         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
33708         protection macro.
33709         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
33710         and <dl-machine.h>.
33711         (Elf64_FuncDesc): Remove.
33712
33713 2011-08-22  David S. Miller  <davem@davemloft.net>
33714
33715         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
33716         sigaltstack check, add missing cfi directives.
33717         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
33718         missing cfi directives, and sigaltstack handling.
33719
33720 2011-08-16  Andreas Schwab  <schwab@redhat.com>
33721
33722         [BZ #11724]
33723         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
33724         object is seen twice.
33725         * elf/dl-fini.c (_dl_sort_fini): Likewise.
33726
33727         * elf/Makefile (distribute): Add tst-initorder2.c.
33728         (tests): Add tst-initorder2.
33729         (modules-names): Add tst-initorder2a tst-initorder2b
33730         tst-initorder2c tst-initorder2d.  Add rules to build them.
33731         ($(objpfx)tst-initorder2.out): New rule.
33732         * elf/tst-initorder2.c: New file.
33733         * elf/tst-initorder2.exp: New file.
33734
33735 2011-08-22  Andreas Schwab  <schwab@redhat.com>
33736
33737         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
33738
33739         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
33740         dependencies back to end of function.
33741
33742         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
33743         $(elfobjdir)/ld.so.
33744
33745 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
33746
33747         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
33748         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
33749         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
33750         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
33751         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
33752         of __vdso_gettimeofday.
33753         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
33754         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
33755         attribute_hidden.
33756         (_libc_vdso_platform_setup): Remove initialization of
33757         __vdso_gettimeofday and __vdso_time.
33758
33759 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
33760
33761         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
33762         and fgetc_unlocked.
33763         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
33764         getc_unlocked.
33765
33766         * elf/dl-open.c (add_to_global): Report additions to the global scope
33767         for LD_DEBUG=scopes.
33768         (dl_open_worker): Also print scope of newly loaded dependencies.
33769         (_dl_show_scope): Indicate if there is no scope.
33770
33771         [BZ #13114]
33772         * stdio-common/Makefile (tests): Add bug24.
33773         * stdio-common/bug24.c: New file.
33774
33775 2011-08-19  Andreas Jaeger  <aj@suse.de>
33776
33777         [BZ #13114]
33778         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
33779         non-existant file when using close-on-exec mode.
33780
33781 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
33782
33783         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
33784         the very first instruction.
33785
33786         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
33787         the CFI state in the end.
33788         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
33789         inclusion of dl-trampoline.h.
33790         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
33791
33792 2011-08-19  Andreas Schwab  <schwab@redhat.com>
33793
33794         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
33795         expectations for long double.
33796
33797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
33798         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
33799
33800 2011-08-14  David S. Miller  <davem@davemloft.net>
33801
33802         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
33803         artificual limit depends upon the system page size.
33804
33805 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
33806
33807         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
33808         * resolv/Makefile: Define CFLAGS-libresolv.
33809
33810 2011-08-17  Andreas Schwab  <schwab@redhat.com>
33811
33812         * nss/makedb.c (compute_tables): Make variables used in nested
33813         function static.
33814
33815 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
33816
33817         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
33818         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
33819         if buffer was too small.
33820
33821         * elf/pldd.c (main): Attach to all threads in the process.
33822         Rewrite /proc handling to use *at functions.
33823
33824 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
33825
33826         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
33827         specifies first scope to show.
33828         (dl_open_worker): Update callers.  Move printing scope of new
33829         object to before the relocation.
33830         * elf/rtld.c (dl_main): Update _dl_show_scope call.
33831         * sysdeps/generic/ldsodefs.h: Update declaration.
33832
33833         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
33834         string for the scope number.
33835
33836 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
33837
33838         * nscd/servicescache.c (cache_addserv): Make sure written is always
33839         initialized.
33840
33841 2011-08-14  Roland McGrath  <roland@hack.frob.com>
33842
33843         * sysdeps/i386/i486/bits/atomic.h
33844         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
33845         statement expression, so as to suppress "set but not used" warning.
33846         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
33847
33848         * string/strncat.c (STRNCAT): Use prototype definition.
33849
33850         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
33851         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
33852         -Iprograms here.
33853         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
33854         (localedef-modules): Add localedef.
33855         (locale-modules): Add locale.
33856
33857         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
33858         * elf/rtld.c (dl_main): Invert order of assignment in last change,
33859         to avoid a warning.
33860
33861 2011-08-14  David S. Miller  <davem@davemloft.net>
33862
33863         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
33864         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
33865
33866 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
33867
33868         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
33869         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
33870         * elf/rtld.c (dl_main): Set l_name of vDSO.
33871         Call _dl_show_scope when DL_DEBUG_SCOPES.
33872         (process_dl_debug): Recognize scopes flag and also set it for all.
33873         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
33874         Declare _dl_show_scope.
33875
33876         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
33877         (do_dlopen): Pass caller_dlopen to dl_open.
33878         (__libc_dlopen_mode): Initialize caller_dlopen.
33879
33880         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
33881         of libc.  Make tolower call locale-independent.  Optimize a bit by
33882         using isdigit instead of isalnum.
33883         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
33884
33885 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
33886
33887         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
33888         was a dependency or dynamically loaded.
33889
33890 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
33891
33892         * intl/l10nflist.c: Allow architecture-specific pop function.
33893         * sysdeps/x86_64/l10nflist.c: New file.
33894
33895         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
33896         classification.
33897
33898 2011-08-10  Andreas Schwab  <schwab@redhat.com>
33899
33900         * include/dirent.h: Add libc_hidden_proto for scandirat and
33901         scandirat64.  Don't declare __scandirat64.
33902         * dirent/scandirat.c: Add libc_hidden_def.
33903         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
33904         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
33905
33906 2011-08-10  David S. Miller  <davem@davemloft.net>
33907
33908         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
33909         enum.
33910         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33911         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33912         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33913
33914 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
33915
33916         * Versions.def [libc]: Add GLIBC_2.15.
33917         * dirent/Makefile (routines): Add scandirat and scandirat64.
33918         * dirent/Versions [libc]: Export scandirat and scandirat64 for
33919         GLIBC_2.15.
33920         * dirent/dirent.h: Declare scandirat and scandirat64.
33921         * dirent/scandirat.c: New file.
33922         * dirent/scandirat64.c: New file.
33923         * sysdeps/wordsize-64/scandirat.c: New file.
33924         * sysdeps/wordsize-64/scandirat64.c: New file.
33925         * dirent/opendir.c: Define opendirat.
33926         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
33927         using scandirat.
33928         * dirent/scandir64.c: Adjust for scandir.c change.
33929         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
33930         __scandirat64, and __scandir_cancel_handler.
33931         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
33932         additional parameter and use openat instead of open (outside of ld.so).
33933         Add new __opendir as wrapper around __opendirat.
33934         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
33935         here without requiring old scandirat implementation.
33936
33937 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
33938
33939         * dirent/scandir.c (cancel_handler): Renamed to
33940         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
33941         defined.  Adjust users.
33942         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
33943         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
33944
33945 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
33946
33947         * string/test-string.h (IMPL): Use __STRING to expand name and then
33948         stringify it.
33949
33950         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
33951         of cleanups.
33952
33953 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33954
33955         * string/Makefile: Update.
33956         (strop-tests): Append strncat.
33957         * string/test-wcscmp.c: New file.
33958         New comprehensive test for wcscmp.
33959         * string/test-strcmp.c: Update.
33960         (WIDE): New define.
33961
33962 2011-07-22  Andreas Schwab  <schwab@redhat.com>
33963
33964         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
33965         line.
33966
33967 2011-07-26  Andreas Schwab  <schwab@redhat.com>
33968
33969         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
33970         encoding to ACE if AI_IDN.
33971
33972 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
33973
33974         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
33975         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
33976
33977 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33978
33979         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
33980         Fix overflow bug in strncat.
33981         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
33982
33983         * string/test-strncat.c: Update.
33984         Add new tests for checking overflow bugs.
33985
33986 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33987
33988         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33989         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
33990         * sysdeps/i386/i686/multiarch/strcat.S: New file.
33991         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
33992         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
33993         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
33994         * sysdeps/i386/i686/multiarch/strncat.S: New file.
33995         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
33996         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
33997
33998         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
33999         (USE_AS_STRCAT): Define.
34000         Add strcat and strncat support.
34001         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34002
34003 2011-07-25  Andreas Schwab  <schwab@redhat.com>
34004
34005         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
34006         __n bigger than INT_MAX+1.
34007         (__strncmp_g): Likewise.
34008
34009 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
34010
34011         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
34012         * libio/stido.h: Likewise.
34013
34014         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
34015         (AF_NFC): Define.
34016         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
34017         (AF_NFC): Define.
34018
34019         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
34020         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34021         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34022         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34023         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34024
34025         [BZ #13021]
34026         * scripts/test-installation.pl: Don't expect libnss_test1 to be
34027         installed.
34028
34029         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
34030         typo.
34031         (_dl_x86_64_save_sse): Likewise.
34032
34033 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
34034
34035         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
34036         OSXSAVE.
34037         (_dl_x86_64_save_sse): Likewise.
34038
34039         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
34040
34041         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
34042
34043 2011-07-21  Andreas Schwab  <schwab@redhat.com>
34044
34045         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
34046         change.
34047         (_dl_x86_64_save_sse): Use correct AVX check.
34048
34049 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34050
34051         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
34052         bug in strncpy/strncat.
34053         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
34054
34055 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
34056
34057         * string/tester.c (test_strcat): Add tests for different alignments
34058         of source and destination.
34059         (test_strncat): Likewise.
34060
34061 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
34062
34063         [BZ #12852]
34064         * posix/glob.c (glob): Check passed in values before using them in
34065         expressions to avoid some overflows.
34066         (glob_in_dir): Likewise.
34067
34068         [BZ #13007]
34069         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
34070         check for AVX enablement so that we don't crash with old kernels and
34071         new hardware.
34072         * elf/tst-audit4.c: Add same checks here.
34073         * elf/tst-audit6.c: Likewise.
34074
34075         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
34076
34077 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
34078
34079         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
34080
34081 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
34082
34083         * po/cs.po: Update from translation team.
34084         * po/bg.po: Likewise.
34085
34086 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
34087
34088         * misc/sys/cdefs.h: Add support for const attribute.
34089         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
34090         to gnu_dev_{major,minor,makedev} functions.
34091
34092 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
34093
34094         * intl/dcigettext.c (get_output_charset): Add missing bracket.
34095
34096 2011-07-20  Andreas Schwab  <schwab@redhat.com>
34097
34098         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
34099         strlen results.
34100
34101 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34102
34103         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
34104         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
34105         register in order to avoid conflicts with the soft frame pointer
34106         being held in r11 when necessary.
34107         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
34108         (INTERNAL_VSYSCALL_NCS): Likewise.
34109
34110 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
34111
34112         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
34113         * elf/dl-fini.c (_dl_fini): Adjust caller.
34114         * elf/dl-close.c (_dl_close_worker): Likewise.
34115         * sysdeps/generic/ldsodefs.h: Adjust declaration.
34116
34117 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
34118
34119         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
34120         "aux_cache->nlibs < 0".
34121
34122         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
34123         in the reload-count case.
34124
34125 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34126
34127         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34128         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
34129         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
34130         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
34131         * sysdeps/x86_64/multiarch/strcat.S: New file.
34132         * sysdeps/x86_64/multiarch/strncat.S: New file.
34133         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
34134         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
34135         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
34136         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
34137         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
34138         (USE_AS_STRCAT): Define.
34139         Add strcat and strncat support.
34140         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34141         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
34142         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
34143         * string/strncat.c: Update.
34144         (USE_AS_STRNCAT): Define.
34145         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34146         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
34147         and i7.
34148         * sysdeps/x86_64/multiarch/init-arch.h
34149         (bit_Prefer_PMINUB_for_stringop): New.
34150         (index_Prefer_PMINUB_for_stringop): Likewise.
34151         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
34152         bit_Prefer_PMINUB_for_stringop.
34153
34154 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
34155
34156         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
34157         buffer64.
34158         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
34159         of casting of buffer.
34160         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
34161         buffer32 and buffer64.
34162         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
34163         writes instead of casting of buffer.
34164         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
34165         buffer32.
34166         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
34167         casting of buffer.
34168
34169 2011-07-19  Andreas Schwab  <schwab@redhat.com>
34170
34171         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
34172
34173 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
34174
34175         * nscd/nscd.c (termination_handler): Don't do anything for a database
34176         if it has not yet been initialized.
34177
34178 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
34179
34180         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
34181
34182 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
34183
34184         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
34185
34186 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
34187
34188         * po/nl.po: Update from translation team.
34189         * po/sv.po: Likewise.
34190
34191 2011-07-16  Roland McGrath  <roland@hack.frob.com>
34192
34193         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
34194         now disallowed by GCC.
34195
34196         * configure.in (use-default-link): Default to yes if a test -shared
34197         link meets our qualifications.
34198         * configure: Regenerated.
34199
34200         * config.make.in (output-format): New variable.
34201         * configure.in: Check for ld --print-output-format support.
34202         * configure: Regenerated.
34203         * Makerules ($(common-objpfx)format.lds)
34204         [$(output-format) != unknown]: Just use $(output-format),
34205         instead of the linker-script munging.
34206
34207 2011-07-14  Roland McGrath  <roland@hack.frob.com>
34208
34209         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
34210         of $(common-objpfx)shlib.lds.
34211         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
34212
34213         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
34214         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
34215
34216         * configure.in (-z relro check): Adjust test code to add a large
34217         writable data section after it.
34218         * configure: Regenerated.
34219
34220 2011-07-11  Roland McGrath  <roland@hack.frob.com>
34221
34222         * configure.in (-z relro check): Fix test code to make the variable
34223         truly const.
34224         * configure: Regenerated.
34225
34226 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
34227
34228         * nscd/nscd.h (struct traced_file): Define.
34229         (struct database_dyn): Remove inotify_descr, reset_res, and filename
34230         elements.  Add traced_files.
34231         (inotify_fd): Declare.
34232         (register_traced_file): Declare.
34233         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
34234         (inotify_fd): Export.
34235         (resolv_conf_descr): Remove.
34236         (nscd_init): Move inotify descriptor creation to main.
34237         Don't register files for notification here.
34238         (register_traced_file): New function.
34239         (invalidate_cache): Don't use reset_res to determine whether to call
34240         res_init, go through the list of registered files.
34241         (main_loop_poll): The inotify descriptors are now stored in the
34242         structures for the traced files.
34243         (main_loop_epoll): Likewise
34244         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
34245         to __nss_disable_nscd.
34246         * nscd/cache.c (prune_cache): There is no single inotify descriptor
34247         for a database anymore.  Check the records for all the registered
34248         files instead.
34249         * nss/Makefile (libnss_files-routines): Add files-init.
34250         (libnss_db-routines): Add db-init.
34251         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
34252         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
34253         * nss/nss_db/db-init.c: New file.
34254         * nss/nss_files/files-init.c: New file.
34255         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
34256         __nss_lookup_function.
34257         (__nss_lookup_function): Call nss_load_library.
34258         (nss_load_all_libraries): New function.
34259         (__nss_disable_nscd): Take parameter with callback function for files
34260         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
34261         used for the cached services.
34262         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
34263         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
34264         options for features to all the files in nscd.
34265
34266         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
34267
34268 2011-07-10  Roland McGrath  <roland@hack.frob.com>
34269
34270         * csu/elf-init.c (__libc_csu_init): Comment typo.
34271
34272 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
34273
34274         * po/pl.po: Update from translation team.
34275         * po/ja.po: Likewise.
34276         * po/ru.po: Likewise.
34277         * po/ko.po: Likewise.
34278         * po/fr.po: Likewise.
34279
34280 2011-07-09  Roland McGrath  <roland@hack.frob.com>
34281
34282         * configure.in (.ctors/.dtors header and trailer check):
34283         Use an empirical test on a built program.
34284         * configure: Regenerated.
34285
34286         * configure.in (-z relro check): Use an empirical test on a built DSO.
34287         Detect, but do not require, on ia64.
34288         * configure: Regenerated.
34289
34290         * configure.in (READELF): Find it with AC_CHECK_TOOL.
34291         Update tests that use readelf to use $READELF instead.
34292         * configure: Regenerated.
34293
34294 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
34295
34296         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
34297         if the result is not used.
34298
34299 2011-07-05  Andreas Jaeger  <aj@suse.de>
34300
34301         [BZ#9696]
34302         * stdlib/tst-strtod.c: Add testcase.
34303
34304 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
34305
34306         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
34307         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
34308         The latter has a higher limit.  Take additional parameter to pass to
34309         the new function.
34310         (__pathconf): Pass file to __statfs_link_max.
34311         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
34312         __statfs_link_max.
34313         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
34314         __statfs_link_max.
34315
34316         [BZ #12868]
34317         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
34318         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
34319         Handle Lustre.
34320         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
34321         (__statfs_filesize_max): Likewise.
34322         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
34323
34324 2011-07-05  Andreas Jaeger  <aj@suse.de>
34325
34326         * resolv/res_comp.c (dn_skipname): Remove unused variable.
34327
34328 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
34329
34330         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
34331         `status' variable.
34332         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
34333         Likewise.
34334
34335 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
34336
34337         * Makefile (strop-tests): Add strncat.
34338         * string/test-strncat.c: New file.
34339
34340 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
34341
34342         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
34343
34344 2011-06-21  Andreas Jaeger  <aj@suse.de>
34345
34346         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
34347         Copy rule from iconvdata/Makefile.
34348
34349 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
34350
34351         [BZ #12922]
34352         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
34353         but no long options are defined, just return 'W'.
34354
34355 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
34356
34357         [BZ #9696]
34358         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
34359
34360 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
34361
34362         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
34363         netgroups to read.
34364         (innetgr): Likewise.
34365
34366 2011-07-05  Roland McGrath  <roland@hack.frob.com>
34367
34368         * config.make.in (install_root): Default to $(DESTDIR).
34369
34370 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
34371
34372         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
34373
34374 2011-07-02  Roland McGrath  <roland@hack.frob.com>
34375
34376         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
34377
34378         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
34379         containing directory rather than embedding absolute directory names.
34380
34381         * scripts/check-local-headers.sh: Rewritten using awk.
34382         Match by word, not by line.  Print error messages for matches.
34383         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
34384
34385         * Makerules [shlib-lds-flags empty]:
34386         ($(common-objpfx)libc_pic.opts): New target.
34387         ($(common-objpfx)libc_pic.os.clean): New target.
34388         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
34389
34390         * config.make.in (OBJCOPY): New variable.
34391         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
34392         * configure: Regenerated.
34393
34394         * config.make.in (use-default-link): New variable.
34395         * configure.in (use_default_link): Grok --with-default-link to set it.
34396         * configure: Regenerated.
34397         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
34398         (shlib-lds, shlib-lds-flags): Define to empty.
34399
34400         * Makerules (shlib-lds): New variable.
34401         (shlib-lds-flags): New variable.
34402         (build-shlib, build-moduile, build-module-asneeded): Use it.
34403         ($(common-objpfx)libc.so): Use $(shlib-lds).
34404         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
34405         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
34406
34407         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
34408         DT_FLAGS/DT_FLAGS_1 with zero flags.
34409
34410         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
34411         linker script munging.
34412
34413 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
34414
34415         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
34416         as 128-bit value.
34417         * crypt/sha512.c (sha512_process_block): Perform total addition using
34418         128-bit if possible.
34419         (__sha512_finish_ctx): Likewise.
34420         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
34421         as 64-bit value.
34422         * crypt/sha256.c (SWAP64): Define.
34423         (sha256_process_block): Perform total addition using 64-bit if
34424         possible.
34425         (__sha256_finish_ctx): Likewise.
34426
34427 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
34428
34429         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
34430         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34431         * nscd/hstcache.c (cache_addhst): Likewise.
34432         * nscd/grpcache.c (cache_addgr): Likewise.
34433         * nscd/aicache.c (addhstaiX): Likewise
34434         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
34435
34436 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
34437
34438         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
34439         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34440         * nscd/hstcache.c (cache_addhst): Likewise.
34441         * nscd/grpcache.c (cache_addgr): Likewise.
34442         * nscd/aicache.c (addhstaiX): Likewise
34443
34444 2011-07-01  Andreas Schwab  <schwab@redhat.com>
34445
34446         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
34447         domain only when needed.
34448
34449 2011-06-30  Andreas Schwab  <schwab@redhat.com>
34450
34451         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
34452         is always restored.
34453
34454 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
34455
34456         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
34457         are re-adding the entry.
34458         * nscd/servicescache.c (cache_addserv): Likewise.
34459
34460 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
34461
34462         * sysdeps/generic/dl-irel.h: fix protection against multiple
34463         inclusions.
34464         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
34465
34466 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
34467
34468         [BZ #12935]
34469         * malloc/memusage.sh: Fix quoting in message.
34470         * debug/xtrace.sh: Likewise.
34471
34472         * configure.in: Remove support for --experimental-malloc option, make
34473         it the default.
34474         * config.make.in: Likewise.
34475         * malloc/Makefile: Likewise.
34476
34477 2011-06-27  Andreas Schwab  <schwab@redhat.com>
34478
34479         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
34480         two-byte characters.
34481
34482 2011-06-27  Roland McGrath  <roland@hack.frob.com>
34483
34484         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
34485         AC_CACHE_CHECK invocation.
34486         * configure: Regenerated.
34487
34488         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
34489
34490 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
34491
34492         [BZ #12350]
34493         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
34494         bit from old_res_options.
34495
34496         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
34497
34498         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
34499         value type for setfct.
34500
34501 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
34502
34503         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
34504         __gettimeofday instead of gettimeofday.
34505
34506 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
34507
34508         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
34509
34510 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
34511
34512         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
34513
34514         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
34515         info.
34516
34517 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
34518
34519         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34520         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
34521         strcpy-sse2-unaligned strncpy-sse2-unaligned
34522         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
34523         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
34524         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
34525         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
34526         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
34527         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
34528         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
34529         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
34530         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
34531         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
34532         (STRCPY): Support SSE2 and SSSE3 versions.
34533
34534 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
34535
34536         [BZ #12874]
34537         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
34538         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
34539         kernels which artificially limit size of requests.
34540
34541 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
34542
34543         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34544         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
34545         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
34546         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
34547         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
34548         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
34549         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
34550         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
34551         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
34552         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
34553         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
34554         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
34555         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
34556         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
34557         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
34558         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34559         Enable unaligned load optimization for Intel Core i3, i5 and i7
34560         processors.
34561         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
34562         Define.
34563         (index_Fast_Unaligned_Load): Define.
34564         (HAS_FAST_UNALIGNED_LOAD): Define.
34565
34566 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
34567
34568         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
34569
34570 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
34571
34572         [BZ #12907]
34573         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
34574         until it is clear that the information is realy needed.
34575         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
34576
34577 2011-06-22  Andreas Schwab  <schwab@redhat.com>
34578
34579         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
34580
34581 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
34582
34583         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
34584         /sys/devices/system/cpu/online if it is usable.
34585
34586         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
34587         reading the information from the /proc filesystem to once a second.
34588
34589 2011-06-21  Andreas Jaeger  <aj@suse.de>
34590
34591         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
34592         NULL after inclusion of kernel headers.
34593
34594 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
34595
34596         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
34597         calls to internal_setent.
34598
34599         [BZ #12885]
34600         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
34601         addresses using gethostbyname4_r ignore IPv4 addresses.
34602
34603         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
34604         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
34605
34606         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
34607
34608 2011-06-20  David S. Miller  <davem@davemloft.net>
34609
34610         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
34611         inclusions.
34612         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
34613
34614         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
34615         (elf_irel): Use it.
34616         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
34617         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
34618         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
34619         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
34620         * sysdeps/x86_64/dl-irel.h: Likewise.
34621
34622         * elf/dl-runtime.c: Use elf_ifunc_invoke.
34623         * elf/dl-sym.c: Likewise.
34624
34625 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
34626
34627         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
34628         need to dereference resplen2.
34629
34630 2011-06-14  Andreas Schwab  <schwab@redhat.com>
34631
34632         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
34633
34634 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
34635
34636         * Makeconfig: Define vardbdir and inst_vardbdir.
34637         * nss/Makefile: Add rules to install db-Makefile.
34638
34639         * nss/nss_db/db-XXX.c: Cleanup.
34640
34641         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
34642         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
34643         GLIBC_PRIVATE.
34644         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
34645         * nss/makedb.c: Implement -g option to specify that value strings
34646         are generated and should not be added to table iterated over for
34647         get*ent calls.
34648         * nss/nss_db/db-initgroups.c: New file.
34649
34650         * nss/getent.c: Add support for initgroups lookups through getgrouplist
34651         interface.
34652
34653         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
34654         (internal_getgrouplist): Adjust to name change.
34655         Update use_initgroups_entry if this is not the first call.
34656         * nss/databases.def: Add initgroups entry.
34657
34658         * nss/makedb.c (compute_tables): Check result of multiple hash table
34659         sizes to minimize maximum chain length.
34660
34661 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
34662
34663         * Versions.def: Add entry for libnss_db.
34664         * shlib-versions: Likewise.
34665         * nss/Makefile: Add rules to build libnss_db.
34666         * nss/Versions: Add libnss_db information.  Organize libnss_files
34667         entries better.
34668         * nss/db-Makefile: Add gshadow support.  Change rules for the new
34669         makedb progra.  Some minor improvements to generate smaller files.
34670         * nss/nss_db/nss_db.h: Move NSS database header data structures to
34671         here from...
34672         * nss/makedb.c: ...here.
34673         Improve database format to be smaller and require less memory at
34674         runtime.
34675         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
34676         db anymore.
34677         * nss/nss_db/db-netgrp.c: Likewise.
34678         * nss/nss_db/db-open.c: Likewise.
34679         * nss/nss_files/flies-XXX.x: Adjust comments.
34680         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
34681         * nss/nss_files/files-grp.c: Likewise.
34682         * nss/nss_files/files-hosts.c: Likewise.
34683         * nss/nss_files/files-network.c: Likewise.
34684         * nss/nss_files/files-proto.c: Likewise.
34685         * nss/nss_files/files-pwd.c: Likewise.
34686         * nss/nss_files/files-rpc.c: Likewise.
34687         * nss/nss_files/files-service.c: Likewise.
34688         * nss/nss_files/files-sgrp.c: Likewise.
34689         * nss/nss_files/files-spwd.c: Likewise.
34690         * nss/nss_db/db-alias.c: Removed.
34691         * nss/nss_db/dummy-db.h: Removed.
34692
34693 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
34694
34695         * nss/makedb.c: Rewritten to not use database library.
34696         * nss/Makefile: Update to build new makedb program.
34697
34698 2011-06-14  Andreas Jaeger  <aj@suse.de>
34699
34700         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
34701         memset declaration.
34702
34703 2011-06-10  Andreas Schwab  <schwab@redhat.com>
34704
34705         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
34706         tmpbuf.
34707
34708 2011-06-10  Roland McGrath  <roland@hack.frob.com>
34709
34710         * Makerules (shlib.lds): Fail if the linker script comes out empty.
34711         * elf/Makefile ($(objpfx)ld.so): Likewise.
34712
34713         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
34714         Don't list ld.so twice in dependencies.
34715
34716         * posix/bug-regex31.c: Include <stdlib.h>.
34717
34718         * nscd/hstcache.c (cache_addhst): Remove unused variable.
34719
34720         * nis/nss_compat/compat-spwd.c
34721         (getspent_next_nss_netgr): Remove unused variable.
34722         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
34723
34724         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
34725         nonmembers" output to use the right array.
34726
34727         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
34728
34729         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
34730
34731         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
34732         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
34733         * catgets/gencat.c (read_input_file): Likewise.
34734         * locale/programs/locarchive.c (enlarge_archive): Likewise.
34735
34736         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
34737         variable definition inside #if's controlling its use.
34738
34739         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
34740
34741         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
34742
34743         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
34744
34745         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
34746         unreachable code.
34747
34748         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
34749
34750         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
34751         * configure: Regenerated.
34752
34753         * Makerules: Revert last change.
34754         * elf/Makefile: Likewise.
34755
34756 2011-06-09  Roland McGrath  <roland@hack.frob.com>
34757
34758         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
34759         * elf/Makefile ($(objpfx)librtld.os): Likewise.
34760         (reloc-link): Likewise.
34761
34762 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
34763
34764         * elf/Makefile: Add rules to build pldd.
34765         * elf/pldd.c: New file.
34766         * elf/pldd-xx.c: New file.
34767
34768 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
34769
34770         * version.h: Update for 2.15 development version.
34771
34772 2011-06-07  David S. Miller  <davem@davemloft.net>
34773
34774         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
34775         ifuncs.
34776         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
34777         elf_machine_lazy_rel): Likewise.
34778         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
34779         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
34780         elf_machine_lazy_rel): Likewise.
34781         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
34782         dl_hwcap via passed in argument.
34783         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
34784         Likewise.
34785
34786 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34787
34788         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
34789
34790 2011-06-06  Roland McGrath  <roland@hack.frob.com>
34791
34792         [BZ #12849]
34793         * manual/fdl-1.1.texi: New file, verbatim from:
34794         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
34795         * manual/lgpl-2.1.texi: New file, verbatim from:
34796         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
34797         * manual/Makefile (licenses): New variable, list those new file names.
34798         (texis): Use it.
34799         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
34800
34801         * manual/fdl.texi: File removed.
34802         * manual/lesser.texi: File removed.
34803         * manual/libc.texinfo (Copying, Documentation License):
34804         Use new @include file names, put @appendix directive before @include.
34805
34806 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
34807
34808         [BZ #12841]
34809         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
34810         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
34811         (mq_open): Add __NTH.
34812
34813 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
34814
34815         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34816         Assume Intel Core i3/i5/i7 processor if AVX is available.
34817
34818 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
34819
34820         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
34821         typo.
34822
34823 2011-05-31  Andreas Schwab  <schwab@redhat.com>
34824
34825         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
34826         memory.  Use alloca_account.  Fix memory leak when retrying.
34827
34828 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
34829
34830         * version.h (RELEASE): Bump for 2.14 release.
34831         * include/features.h (__GLIBC_MINOR__): Bump to 14.
34832
34833         * config.make.in (RANLIB): Remove entry.
34834
34835 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
34836
34837         * po/Makefile (po-sed-cmd): Add ksh to extensions.
34838         (libc.pot): Work around missing support for .ksh extension in xgettext.
34839
34840         [BZ #12684]
34841         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
34842         if both request failed.
34843         (send_dg): In case of server errors clear resplen or *resplen2.
34844
34845         [BZ #12454]
34846         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
34847         when there are multiple maps.
34848         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
34849         (_dl_fini): Remove test here.
34850
34851         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
34852
34853 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
34854
34855         [BZ #12350]
34856         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
34857         bit from old_res_options.
34858         (gaih_inet): Likewise.
34859
34860         [BZ #11099]
34861         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
34862         as signed.
34863
34864         * resolv/res_init.c (res_setoptions): Make the code more compact.
34865
34866         [BZ #11558]
34867         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
34868         set RES_USEVC.
34869
34870         [BZ #11634]
34871         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
34872
34873         * malloc/malloc.h: Mark malloc hook variables as deprecated.
34874
34875         [BZ #11781]
34876         * malloc/malloc.h: Declare malloc hook variables as volatile.
34877
34878         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
34879         in last patch.
34880
34881         [BZ #11799]
34882         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
34883         raise in the comment.
34884         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
34885         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
34886         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
34887
34888 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
34889
34890         [BZ #12811]
34891         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
34892         grow the buffers more if it already has to be sufficient.
34893         (build_wcs_upper_buffer): Likewise.
34894         * posix/regexec.c (check_matching): Likewise.
34895         (clean_state_log_if_needed): Likewise.
34896         (extend_buffers): Don't enlarge buffers beyond size of the input
34897         buffer.
34898         Patches mostly by Emil Wojak <emil@wojak.eu>.
34899         * posix/bug-regex32.c: New file.
34900         * posix/Makefile (tests): Add bug-regex32.
34901
34902         * locale/findlocale.c (_nl_find_locale): Return right away if
34903         _nl_explode_name failed.
34904         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
34905
34906         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
34907
34908         * debug/xtrace.sh: Unify messages.
34909         * malloc/memusage.sh: Likewise.
34910
34911         [BZ #12813]
34912         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
34913         time symbol from vDSO.  Substitute with vsyscall if not available.
34914         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
34915         __vdso_time.
34916
34917         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
34918         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
34919         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
34920         Add sendmmsg and internal_sendmmsg.
34921         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
34922         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
34923         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
34924
34925         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
34926         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
34927         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
34928
34929 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
34930
34931         [BZ #12813]
34932         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
34933         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
34934         available.
34935         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
34936         __vdso_getcpu.
34937
34938         [BZ #12814]
34939         * iconvdata/Makefile (tests): Add bug-iconv9.
34940         * iconvdata/bug-iconv9.c: New file.
34941
34942 2011-05-27  Andreas Schwab  <schwab@redhat.com>
34943
34944         [BZ #12814]
34945         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
34946
34947 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
34948
34949         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
34950         (struct user_regs_struct): Change intcs field back to cs.
34951
34952 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
34953
34954         * po/ja.po: Update from translation team.
34955
34956 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
34957
34958         [BZ #12795]
34959         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
34960         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
34961
34962 2011-05-20  Andreas Schwab  <schwab@redhat.com>
34963
34964         * stdlib/longlong.h: Update from GCC.
34965
34966 2011-05-23  Andreas Schwab  <schwab@redhat.com>
34967
34968         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
34969         parameter name.
34970         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
34971         Add parameter name.
34972         (__sysconf): Pass it down.
34973
34974 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
34975
34976         [BZ #12671]
34977         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
34978         some situations.
34979         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
34980         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
34981         add in in __libc_use_alloca calls.  Adjust callers.
34982         (glob): Use malloc in some situations.
34983
34984         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
34985         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
34986         pltexit.
34987
34988 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
34989
34990         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
34991         and CLOCK_BOOTTIME_ALARM.
34992
34993         [BZ #12782]
34994         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
34995         is returned.
34996
34997         * string/_strerror.c (__strerror_r): Print negative errors as signed
34998         numbers.
34999
35000         [BZ #12777]
35001         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
35002         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
35003         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
35004
35005         * configure.in: Fix typo in redirection and correct removal of test
35006         files in two cases.
35007
35008         [BZ #12788]
35009         * locale/setlocale.c (new_composite_name): Fix test to check for
35010         identical name of all categories.
35011
35012         [BZ #12792]
35013         * libio/filedoalloc.c (local_isatty): New function.
35014         (_IO_file_doallocate): Use local_isatty.
35015         * stdio-common/perror.c (perror): In case a new stream is used
35016         forward the stream error.
35017         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
35018         error flag.
35019
35020 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
35021
35022         [BZ #11869]
35023         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
35024         alloca.
35025         * include/alloca.h (extend_alloca_account): Define.
35026
35027         [BZ #11857]
35028         * posix/regex.h: Fix comments with documentation of user-accessible
35029         fields after compilation and describe correct free'ing of pattern
35030         after re_compile_pattern.
35031         Patch by Reuben Thomas <rrt@sc3d.org>.
35032
35033 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
35034
35035         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
35036         and -mno-altivec to prevent the compiler from using Altivec and/or
35037         VSX instructions when the corresponding registers are not available.
35038
35039 2011-05-19  Andreas Schwab  <schwab@redhat.com>
35040
35041         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
35042
35043 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
35044
35045         * libio/freopen.c (freopen): Use __dup2, not dup2.
35046         * libio/freopen64.c (freopen64): Likewise.
35047
35048 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
35049
35050         [BZ #12775]
35051         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
35052         * math/Makefile (tests): Add test-powl.
35053         (CFLAGS-test-powl.c): Define.
35054         * math/test-powl.c: New file.
35055
35056 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
35057
35058         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
35059
35060 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
35061
35062         [BZ #11837]
35063         * iconvdata/gb18030.c: Update to GB18020-2005.
35064
35065 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
35066
35067         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
35068         RE_SYNTAX_POSIX_AWK): Update to match recent development.
35069         Patch by Aharon Robbins <arnold@skeeve.com>.
35070
35071         [BZ #11892]
35072         * stdlib/putenv.c (putenv): Don't always create copy of the variable
35073         on the stack.
35074
35075         [BZ #11895]
35076         * misc/pselect.c (__pselect): Handle timeout value errors hidden
35077         through underflows.
35078
35079         [BZ #12766]
35080         * misc/error.c (error_at_line): Ensure file_name and old_file_name
35081         point to strings before performing equality test for error_one_per_line
35082         mode.
35083
35084         [BZ #11697]
35085         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
35086
35087         [BZ #11820]
35088         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
35089         (struct user_fpregs_struct): Avoid __uint*_t types.
35090
35091         [BZ #6420]
35092         * malloc/mtrace.c (tr_where): Add additional parameter to point to
35093         symbol info.  Use it instead of calling _dl_addr locally.
35094         (lock_and_info): New function.
35095         (tr_freehook): Call lock_and_info and pass symbol info as additional
35096         parameter to tr_where.
35097         (tr_mallochook): Likewise.
35098         (tr_reallochook): Likewise.
35099         (tr_memalignhook): Likewise.
35100
35101         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
35102         used and couldn't be at all thread-safe.
35103
35104 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
35105
35106         * libio/freopen.c (freopen): Don't close old file descriptor
35107         before the new one is opened.  Instead dup the new file descriptor
35108         to the old one after the new stream is created.
35109         * libio/freopen64.c (freopen64): Likewise.
35110         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
35111         * libio/fileops.c (_IO_new_file_close_it): Handle new
35112         _IO_FLAGS2_NOCLOSE flag.
35113         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
35114         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
35115         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
35116         _IO_FLAGS2_NOCLOSE flag.
35117         * include/unistd.h: Add hidden_proto for dup3.
35118         Define __have_dup3.
35119         * io/dup3.c: Define hidden symbol.
35120         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
35121
35122         [BZ #7101]
35123         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
35124         when an incomplete long option is used.
35125         * posix/tst-getopt_long1.c: New file.
35126         * posix/Makefile (tests): Add tst-getopt_long1.
35127
35128         [BZ #10138]
35129         * scripts/config.guess: Update from autoconf-2.68.
35130         * scripts/config.sub: Likewise.
35131
35132         [BZ #10157]
35133         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
35134         tests into ...
35135         (has_cpuclock): ...this.  New function.
35136         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
35137         macro here based on has_cpuclock code.
35138
35139         [BZ #10149]
35140         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
35141         First byte (not low byte) is now always NUL.
35142         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
35143
35144         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
35145         Use non-cancelable interfaces.
35146
35147         [BZ #9809]
35148         * locale/iso-639.def: Add entry for Sorani.
35149
35150         [BZ #11901]
35151         * include/stdlib.h: Move include protection to the right place.
35152         Define abort_msg_s.  Declare __abort_msg with it.
35153         * stdlib/abort.c (__abort_msg): Adjust type.
35154         * assert/assert.c (__assert_fail_base): New function.  Majority
35155         of code from __assert_fail.  Allocate memory for __abort_msg with
35156         mmap.
35157         (__assert_fail): Now call __assert_fail_base.
35158         * assert/assert-perr.c: Remove bulk of implementation.  Use
35159         __assert_fail_base.
35160         * include/assert.hL Declare __assert_fail_base.
35161         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
35162         mmap.
35163         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
35164
35165 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
35166
35167         [BZ #11952]
35168         [BZ #12453]
35169         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
35170         until all modules are registered in the DTV.
35171         * elf/Makefile: Add rules to build and run tst-tls19.
35172         * elf/tst-tls19.c: New file.
35173         * elf/tst-tls19mod1.c: New file.
35174         * elf/tst-tls19mod2.c: New file.
35175         * elf/tst-tls19mod3.c: New file.
35176         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
35177
35178         [BZ #12083]
35179         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
35180         correctly.
35181
35182         [BZ #12601]
35183         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
35184         two-byte sequence errors.
35185         * iconvdata/Makefile (tests): Add bug-iconv8.
35186         * iconvdata/bug-iconv8.c: New file.
35187
35188         [BZ #12626]
35189         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
35190         buf2 definition.
35191
35192         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
35193
35194         [BZ #12432]
35195         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
35196         (dummy_getcfa): New function.
35197         (init): Get _Unwind_GetCFA address, use dummy if not found.
35198         (backtrace_helper): In recursion check, also check whether CFA changes.
35199         (__backtrace): Completely initialize arg.
35200
35201         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
35202         storing incomplete byte sequence in state object.  Avoid testing for
35203         guaranteed too small input if we know there is enough data available.
35204
35205 2011-05-11  Andreas Schwab  <schwab@redhat.com>
35206
35207         * Makeconfig (+link-pie): Indent.
35208         * Rules (binaries-pie): Define if $(have-fpie) and
35209         $(build-shared).
35210         (binaries-shared): Also filter out $(binaries-pie).
35211         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
35212         * nscd/Makefile (others-pie): Add nscd.
35213         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
35214         ($(objpfx)nscd): Remove command override.
35215         * login/Makefile (others-pie): Add pt_chown.
35216         ($(objpfx)pt_chown): Remove command override.
35217         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
35218         remove command overrides.
35219
35220 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
35221
35222         * libio/tst_putwc.c: Fix error messages.
35223
35224         [BZ #12724]
35225         * libio/fileops.c (_IO_new_file_close_it): Always flush when
35226         currently writing and seek to current position when not.
35227         * libio/Makefile (tests): Add bug-fclose1.
35228         * libio/bug-fclose1.c: New file.
35229
35230 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
35231
35232         [BZ #12511]
35233         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
35234         don't set DF_1_NODELETE here.
35235         (do_lookup_x): When entering new entry test for copy relocation
35236         and if necessary set DF_1_NODELETE flag.
35237         * elf/tst-unique4.cc: New file.
35238         * elf/tst-unique4.h: New file.
35239         * elf/tst-unique4lib.cc: New file.
35240         * elf/Makefile: Add rules to build and run tst-unique4.
35241         Patch by Piotr Bury <pbury@goahead.com>.
35242
35243 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
35244
35245         [BZ #12052]
35246         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
35247
35248         [BZ #12625]
35249         * misc/mntent_r.c (addmntent): Flush the stream after the output
35250
35251         [BZ #12393]
35252         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
35253         (is_trusted_path_normalize): Skip initial colon.  Append slash
35254         to empty buffer.  Duplicate is_trusted_path code but allow
35255         constructed patch to be prefix.
35256         (is_dst): Allow $ORIGIN followed by /.
35257         (_dl_dst_substitute): Correct clearing of check_for_trusted.
35258         Correct testing of result of is_trusted_path_normalize
35259         (decompose_rpath): Fix warning.
35260
35261 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
35262
35263         [BZ #11257]
35264         * grp/initgroups.c (internal_getgrouplist): When we found the service
35265         list through the initgroups entry in nsswitch.conf do not always
35266         continue on a successful lookup.  Don't always use the
35267         __nss_group_database value if it is set.
35268         * nss/nsswitch.conf (initgroups): Change action for successful db
35269         lookup to continue for compatibility.
35270
35271 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
35272
35273         [BZ #11532]
35274         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
35275         and CP774 modules.
35276         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
35277         and CP774 modules.
35278         * iconvdata/tst-tables.sh: Likewise.
35279         * iconvdata/cp770.c: New file.
35280         * iconvdata/cp771.c: New file.
35281         * iconvdata/cp772.c: New file.
35282         * iconvdata/cp773.c: New file.
35283         * iconvdata/cp774.c: New file.
35284         * iconvdata/testdata/CP770: New file.
35285         * iconvdata/testdata/CP770..UTF8: New file.
35286         * iconvdata/testdata/CP771: New file.
35287         * iconvdata/testdata/CP771..UTF8: New file.
35288         * iconvdata/testdata/CP772: New file.
35289         * iconvdata/testdata/CP772..UTF8: New file.
35290         * iconvdata/testdata/CP773: New file.
35291         * iconvdata/testdata/CP773..UTF8: New file.
35292         * iconvdata/testdata/CP774: New file.
35293         * iconvdata/testdata/CP774..UTF8: New file.
35294
35295         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
35296         END CHARMAP line.
35297         * iconvdata/gen-8bit-gap.sh: Likewise.
35298         * iconvdata/gen-8bit.sh: Likewise.
35299
35300         * locale/iso-639.def: Add ary entry.
35301
35302         [BZ #11258]
35303         * locale/C-translit.h.in: Add U20A1 transliteration.
35304
35305         [BZ #12178]
35306         * locale/iso-639.def: Add wae entry.
35307         Patch by Kevin Bortis <bortis@translate-wae.ch>.
35308
35309         [BZ #12545]
35310         * locale/programs/localedef.c (construct_output_path): Use ssize_t
35311         for n.
35312
35313         [BZ #12711]
35314         * locale/C-translit.h.in: Add entry for U20B9.
35315         Patch by pravin.d.s@gmail.com.
35316
35317 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
35318
35319         [BZ #12713]
35320         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
35321         ENAMETOOLONG use generic getcwd.
35322         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
35323         in rtld.  Use *stat64.
35324         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
35325         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
35326         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
35327         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
35328         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
35329         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
35330         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
35331         __fstatat64 macros.
35332         * include/dirent.h: Add libc_hidden_proto for rewinddir.
35333         * dirent/rewinddir.c: Add libc_hidden_def.
35334         * sysdeps/mach/hurd/rewinddir.c: Likewise.
35335         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
35336
35337         * include/dirent.h (__alloc_dir): Add flags parameter.
35338         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
35339         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
35340         __alloc_dir.
35341         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
35342         from fdopendir if O_CLOEXEC is already set.
35343
35344 2011-03-15  Alan Modra  <amodra@gmail.com>
35345
35346         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
35347         l_tls_firstbyte_offset non-zero.  Save padding offset in
35348         l_tls_firstbyte_offset for later use.
35349         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
35350         freeing static tls block.
35351
35352 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
35353
35354         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
35355         where #ifdef was intended.  The intent is to prevent ARG_MAX from
35356         being defined by the kernel headers.
35357
35358 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
35359
35360         [BZ #12734]
35361         * resolv/resolv.h: Define RES_NOTLDQUERY.
35362         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
35363         no-tld-query and set RES_NOTLDQUERY.
35364         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
35365         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
35366         modern BIND to search name as TLD unless forbidden.
35367
35368 2011-05-07  Petr Baudis  <pasky@suse.cz>
35369             Ulrich Drepper  <drepper@gmail.com>
35370
35371         [BZ #12393]
35372         * elf/dl-load.c (fillin_rpath): Move trusted path check...
35373         (is_trusted_path): ...to here.
35374         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
35375         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
35376         using is_trusted_path_normalize() in setuid scripts.
35377
35378 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35379
35380         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
35381         __BEGIN/__END_DECLS.
35382
35383 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
35384
35385         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
35386         NSS_STATUS_NOTFOUND if no record was found.
35387
35388 2011-05-05  Andreas Schwab  <schwab@redhat.com>
35389
35390         * sunrpc/Makefile (headers): Add rpc/netdb.h.
35391         (headers-not-in-tirpc): Remove rpc/netdb.h
35392         * resolv/netdb.h: Revert last change.
35393
35394 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
35395
35396         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
35397         circular dependency between libgcc.a and libc.a.
35398
35399 2011-05-05  Andreas Schwab  <schwab@redhat.com>
35400
35401         * resolv/netdb.h: Don't include <rpc/netdb.h>.
35402         * nis/Makefile: Don't install rpcsvc/*.
35403         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
35404         instead of <rpc/types.h>.
35405         (MAXHOSTNAMELEN): Define.
35406
35407 2011-05-03  Andreas Schwab  <schwab@redhat.com>
35408
35409         * elf/ldconfig.c (add_dir): Don't crash on empty path.
35410
35411 2011-04-28  Maciej Babinski  <mbabinski@google.com>
35412
35413         [BZ #12714]
35414         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
35415         gethostbyname4_r when IPv6 results are possible.
35416
35417 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
35418
35419         [BZ #12723]
35420         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
35421         _PC_PIPE_BUF handling.
35422
35423 2011-04-30  Bruno Haible  <bruno@clisp.org>
35424
35425         [BZ #12717]
35426         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
35427         * resolv/netdb.h (getnameinfo): Change type of flags parameter
35428         to 'int'.
35429         * inet/getnameinfo.c (getnameinfo): Likewise.
35430
35431 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
35432
35433         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
35434         to groups setting in database lookup.
35435         * nss/nsswitch.conf: Add initgroups entry.
35436
35437 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
35438
35439         [BZ #12685]
35440         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
35441         mode string.
35442         Patch by Eric Blake <eblake@redhat.com>.
35443
35444 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
35445
35446         * sunrpc/Makefile (need-export-routines): Add svc_run.
35447         (routines): Remove svc_run.
35448         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
35449         * sunrpc/clnt_perr.c (clnt_perrno): Export.
35450         * sunrpc/svc_run.c (svc_run): Likewise.
35451         * sunrpc/svc_udp.c (svcudp_create): Likewise.
35452
35453 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
35454
35455         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
35456         problem in reallocation in last patch.
35457
35458 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
35459
35460         * sunrpc/Makefile: Move inclusion of Rules.
35461
35462 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
35463
35464         * nss/nss_files/files-initgroups.c: New file.
35465         * nss/Makefile (libnss_files-routines): Add files-initgroups.
35466         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
35467         _nss_files_initgroups_dyn.
35468
35469 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
35470
35471         * elf/elf.h (R_ARM_IRELATIVE): Define.
35472
35473 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
35474
35475         * po/ru.po: Update from translation team.
35476
35477 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
35478
35479         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
35480         dependencies.
35481
35482 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
35483
35484         [BZ #12653]
35485         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
35486         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
35487         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35488         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
35489         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
35490
35491 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
35492
35493         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
35494         differing bytes.
35495         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
35496         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
35497         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
35498
35499 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
35500
35501         [BZ #12420]
35502         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
35503         storing it.
35504         * stdlib/bug-getcontext.c: New file.
35505         * stdlib/Makefile: Add rules to build and run bug-getcontext.
35506
35507 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35508
35509         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
35510         instructions into .machine "z9-109".
35511         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
35512         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
35513
35514 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35515
35516         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
35517         between environment variables and auxiliary vector.
35518
35519 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
35520
35521         * Makefile: Add rules to build linkobj/libc.so.
35522         * include/libc-symbols.h: Define libc_hidden_nolink.
35523         * include/rpc/auth.h: Mark functions which are to be hidden.
35524         * include/rpc/auth_des.h: Likewise.
35525         * include/rpc/auth_unix.h: Likewise.
35526         * include/rpc/clnt.h: Likewise.
35527         * include/rpc/des_crypt.h: Likewise.
35528         * include/rpc/key_prot.h: Likewise.
35529         * include/rpc/pmap_clnt.h: Likewise.
35530         * include/rpc/pmap_prot.h: Likewise.
35531         * include/rpc/pmap_rmt.h: Likewise.
35532         * include/rpc/rpc_msg.h: Likewise.
35533         * include/rpc/svc.h: Likewise.
35534         * include/rpc/svc_auth.h: Likewise.
35535         * include/rpc/xdr.h: Likewise.
35536         * nis/Makefile: Link all DSOs against linkobj/libc.so.
35537         * nss/Makefile: Likewise.
35538         * sunrpc/Makefile: Don't install headers.  Build library with normal
35539         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
35540         * sunrpc/auth_des.c: Hide exported symbols by default, export some
35541         for the compat linking library.  Remove use of INTDEF/INTUSE.
35542         * sunrpc/auth_none.c: Likewise.
35543         * sunrpc/auth_unix.c: Likewise.
35544         * sunrpc/authdes_prot.c: Likewise.
35545         * sunrpc/authuxprot.c: Likewise.
35546         * sunrpc/clnt_gen.c: Likewise.
35547         * sunrpc/clnt_perr.c: Likewise.
35548         * sunrpc/clnt_raw.c: Likewise.
35549         * sunrpc/clnt_simp.c: Likewise.
35550         * sunrpc/clnt_tcp.c: Likewise.
35551         * sunrpc/clnt_udp.c: Likewise.
35552         * sunrpc/clnt_unix.c: Likewise.
35553         * sunrpc/des_crypt.c: Likewise.
35554         * sunrpc/des_soft.c: Likewise.
35555         * sunrpc/get_myaddr.c: Likewise.
35556         * sunrpc/key_call.c: Likewise.
35557         * sunrpc/key_prot.c: Likewise.
35558         * sunrpc/netname.c: Likewise.
35559         * sunrpc/pm_getmaps.c: Likewise.
35560         * sunrpc/pm_getport.c: Likewise.
35561         * sunrpc/pmap_clnt.c: Likewise.
35562         * sunrpc/pmap_prot.c: Likewise.
35563         * sunrpc/pmap_prot2.c: Likewise.
35564         * sunrpc/pmap_rmt.c: Likewise.
35565         * sunrpc/publickey.c: Likewise.
35566         * sunrpc/rpc_cmsg.c: Likewise.
35567         * sunrpc/rpc_common.c: Likewise.
35568         * sunrpc/rpc_dtable.c: Likewise.
35569         * sunrpc/rpc_prot.c: Likewise.
35570         * sunrpc/rpc_thread.c: Likewise.
35571         * sunrpc/rtime.c: Likewise.
35572         * sunrpc/svc.c: Likewise.
35573         * sunrpc/svc_auth.c: Likewise.
35574         * sunrpc/svc_authux.c: Likewise.
35575         * sunrpc/svc_raw.c: Likewise.
35576         * sunrpc/svc_run.c: Likewise.
35577         * sunrpc/svc_simple.c: Likewise.
35578         * sunrpc/svc_tcp.c: Likewise.
35579         * sunrpc/svc_udp.c: Likewise.
35580         * sunrpc/svc_unix.c: Likewise.
35581         * sunrpc/svcauth_des.c: Likewise.
35582         * sunrpc/xcrypt.c: Likewise.
35583         * sunrpc/xdr.c: Likewise.
35584         * sunrpc/xdr_array.c: Likewise.
35585         * sunrpc/xdr_float.c: Likewise.
35586         * sunrpc/xdr_intXX_t.c: Likewise.
35587         * sunrpc/xdr_mem.c: Likewise.
35588         * sunrpc/xdr_rec.c: Likewise.
35589         * sunrpc/xdr_ref.c: Likewise.
35590         * sunrpc/xdr_sizeof.c: Likewise.
35591         * sunrpc/xdr_stdio.c: Likewise.
35592
35593 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
35594
35595         [BZ #12650]
35596         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
35597         * sysdeps/ia64/dl-tls.h: Likewise.
35598         * sysdeps/powerpc/dl-tls.h: Likewise.
35599         * sysdeps/s390/dl-tls.h: Likewise.
35600         * sysdeps/sh/dl-tls.h: Likewise.
35601         * sysdeps/sparc/dl-tls.h: Likewise.
35602         * sysdeps/x86_64/dl-tls.h: Likewise.
35603         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
35604
35605 2011-03-14  Andreas Schwab  <schwab@redhat.com>
35606
35607         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
35608         rpath element also skip the following colon.
35609         (expand_dynamic_string_token): Add is_path parameter and pass
35610         down to DL_DST_REQUIRED and _dl_dst_substitute.
35611         (decompose_rpath): Call expand_dynamic_string_token with
35612         non-zero is_path.  Ignore empty rpaths.
35613         (_dl_map_object_from_fd): Call expand_dynamic_string_token
35614         with zero is_path.
35615
35616 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
35617
35618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
35619         Make cancelable.
35620
35621 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
35622
35623         [BZ #12655]
35624         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
35625         Patch by Filipe David Manana <fdmanana@apache.org>.
35626
35627 2011-04-07  Andreas Schwab  <schwab@redhat.com>
35628
35629         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
35630         Maintain aligned stack.
35631         (CHECK_RSP): Remove unused macro.
35632
35633 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
35634
35635         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
35636         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
35637
35638 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
35639
35640         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
35641
35642         * include/features.h: Mention __USE_XOPEN2K8 in comment.
35643
35644 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
35645
35646         [BZ #12518]
35647         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
35648         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
35649         * sysdeps/x86_64/memmove.c: New file.
35650         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
35651         (memcpy): Renamed to ...
35652         (__new_memcpy): This.
35653         (memcpy): Provide GLIBC_2_14 memcpy.
35654         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
35655         (memcpy): Provide GLIBC_2_2_5 memcpy.
35656
35657 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
35658
35659         [BZ #12631]
35660         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
35661
35662 2011-03-30  Andreas Schwab  <schwab@redhat.com>
35663
35664         * misc/syncfs.c: New file.
35665         * misc/Makefile (routines): Add syncfs.
35666         * posix/unistd.h: Declare syncfs.
35667         * sysdeps/unix/syscalls.list: Add syncfs.
35668
35669 2011-04-01  Andreas Schwab  <schwab@redhat.com>
35670
35671         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
35672         open_by_handle_at.
35673         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
35674         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
35675         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
35676         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
35677         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
35678         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
35679         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
35680
35681 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
35682
35683         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
35684         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
35685         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
35686         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
35687         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
35688         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
35689         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
35690
35691         * io/Makefile: Compile fallocate.c, fallocate64.c, and
35692         sync_file_range.c with -fexceptions.
35693         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
35694         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
35695         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
35696         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
35697         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
35698         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
35699         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
35700         sync_file_range as cancellation point
35701         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
35702         now a wrapper around __call_sync_file_range with cancellation handling.
35703         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
35704         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
35705         function name to __call_sync_file_range.
35706         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
35707         Add call_sync_file_range.
35708
35709 2011-04-01  Andreas Schwab  <schwab@redhat.com>
35710
35711         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
35712         bits/timex.h.
35713
35714 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
35715
35716         * iconv/iconv.h: Fix typo in comment.
35717         * io/fcntl.h: Likewise.
35718         * libio/stdio.h: Likewise.
35719         * posix/spawn.h: Likewise.
35720         * posix/unistd.h: Likewise.
35721         * stdlib/stdlib.h: Likewise.
35722         * time/time.h: Likewise.
35723         * wcsmbs/wchar.h: Likewise.
35724
35725         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
35726         open_by_handle): Add.
35727         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
35728         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
35729         Augment a few comments.
35730         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
35731         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
35732         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
35733         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
35734         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
35735         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
35736         open_by_handle.
35737
35738         * io/fcntl.h (AT_EMPTY_PATH): Define.
35739
35740 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
35741
35742         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
35743         * sysdeps/unix/sysv/linux/bits/time.h: New file.
35744         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
35745         to...
35746         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
35747         * Versions.def: Add GLIBC_2.14.
35748         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
35749         Export.
35750
35751 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
35752
35753         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
35754         round counter.
35755         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
35756
35757 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
35758
35759         [BZ #12597]
35760         * string/test-strncmp.c (do_page_test): New function.
35761         (check2): Likewise.
35762         (test_main): Call check2.
35763         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
35764
35765 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
35766
35767         [BZ #12587]
35768         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
35769         Handle cache information in CPU leaf 4.
35770         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
35771
35772 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
35773
35774         [BZ #12583]
35775         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
35776         character representation.
35777         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
35778
35779 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
35780
35781         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
35782         END(__isnan) to END(__isnanf) to match function entry point/label
35783         EALIGN(__isnanf,...).
35784
35785 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
35786
35787         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
35788
35789 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
35790
35791         [BZ #12510]
35792         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
35793         copy from the symbol referenced in the relocation to initialize the
35794         used variable.
35795         Patch by Piotr Bury <pbury@goahead.com>.
35796         * elf/Makefile: Add rules to build and tst-unique3.
35797         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
35798         * elf/tst-unique3.cc: New file.
35799         * elf/tst-unique3.h: New file.
35800         * elf/tst-unique3lib.cc: New file.
35801         * elf/tst-unique3lib2.cc: New file.
35802
35803         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
35804
35805 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
35806
35807         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
35808         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
35809         to _start.
35810
35811 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
35812
35813         * elf/dl-load.c (_dl_map_object): If we are looking for the first
35814         to-be-loaded object along a path to loader is ld.so.
35815
35816 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
35817             Ulrich Drepper  <drepper@gmail.com>
35818
35819         * sysdeps/x86_64/memset.S: After aligning destination, code
35820         branches to different locations depending on the value of
35821         misalignment, when multiarch is enabled. Fix this.
35822
35823 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
35824
35825         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
35826         Set _x86_64_preferred_memory_instruction for AMD processsors.
35827         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35828         Set bit_Prefer_SSE_for_memop for AMD processors.
35829
35830 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
35831
35832         * libio/fmemopen.c (fmemopen): Optimize a bit.
35833
35834 2011-03-03  Andreas Schwab  <schwab@redhat.com>
35835
35836         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
35837
35838 2011-03-03  Roland McGrath  <roland@redhat.com>
35839
35840         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
35841
35842 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
35843
35844         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
35845         __bzero_ultra1 instead of __memset_ultra1.
35846
35847 2011-02-23  Andreas Schwab  <schwab@redhat.com>
35848             Ulrich Drepper  <drepper@gmail.com>
35849
35850         [BZ #12509]
35851         * include/link.h (struct link_map): Add l_orig_initfini.
35852         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
35853         returning unsuccessfully.
35854         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
35855         close of a file loaded at startup, restore the original l_initfini
35856         list.
35857         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
35858         list, store the pointer.
35859         * elf/Makefile ($(objpfx)noload-mem): New rule.
35860         (noload-ENV): Define.
35861         (tests): Add $(objpfx)noload-mem.
35862         * elf/noload.c: Include <memcheck.h>.
35863         (main): Call mtrace.  Close all opened handles.
35864
35865 2011-02-17  Andreas Schwab  <schwab@redhat.com>
35866
35867         [BZ #12454]
35868         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
35869         dependencies are missing.
35870
35871 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35872
35873         Fix __if_freereq crash: Unlike the generic version which uses free,
35874         Hurd needs munmap.
35875         * sysdeps/mach/hurd/ifreq.h: New file.
35876
35877 2011-01-27  Petr Baudis  <pasky@suse.cz>
35878             Ulrich Drepper  <drepper@gmail.com>
35879
35880         [BZ 12445]#
35881         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
35882         to extend_alloca().
35883         * stdio-common/bug23.c: New file.
35884         * stdio-common/Makefile (tests): Add bug23.
35885
35886 2010-09-28  Andreas Schwab  <schwab@redhat.com>
35887             Ulrich Drepper  <drepper@gmail.com>
35888
35889         [BZ #12489]
35890         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
35891         before performing relro protection.  At old place add assertion
35892         to make sure nothing changed.
35893
35894 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
35895             Glauber de Oliveira Costa  <glommer@gmail.com>
35896
35897         * elf/elf.h: Add new ARM TLS relocs.
35898
35899 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
35900
35901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
35902         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
35903         cast from r3.
35904         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
35905         'tests' variable.
35906         * sysdeps/wordsize-64/tst-writev.c: New file.
35907
35908 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
35909
35910         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
35911         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
35912         insns in _dl_start to prevent a TOC reference before relocs are
35913         resolved.
35914
35915 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
35916
35917         [BZ #12469]
35918         * Makeconfig: Remove RANLIB definition.
35919         * Makerules: Don't use RANLIB.
35920         * aclocal.m4: Remove ranlib test.
35921         * configure.in: No need to check for ranlib.
35922         * elf/rtld-Rules: Don't use RANLIB.
35923
35924 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35925
35926         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
35927         protection macro.
35928         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
35929         inclusion protection macro.
35930
35931         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
35932         SIGRTMIN and SIGRTMAX and print information in that case only when
35933         SIGRTMIN is defined.
35934
35935 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
35936
35937         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
35938         arginfo fn returning -1.
35939
35940         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
35941         and thousands string is zero terminated.
35942
35943 2011-02-03  Andreas Schwab  <schwab@redhat.com>
35944
35945         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
35946         sysdeps/unix/sysv/linux/bits/socket.h.
35947
35948 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35949
35950         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
35951         (__CPU_COUNT): Remove old macros.
35952         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
35953         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
35954         (__CPU_ALLOC, __CPU_FREE): Add macros.
35955         (__sched_cpualloc, __sched_cpufree): Add declarations.
35956
35957 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
35958
35959         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
35960         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
35961         * nscd/aicache.c (addhstaiX): Return timeout of added value.
35962         (readdhstai): Return value of addhstaiX call.
35963         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
35964         (addgrbyX): Return value returned by cache_addgr.
35965         (readdgrbyname): Return value returned by addgrbyX.
35966         (readdgrbygid): Likewise.
35967         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
35968         (addpwbyX): Return value returned by cache_addpw.
35969         (readdpwbyname): Return value returned by addhstbyX.
35970         (readdpwbyuid): Likewise.
35971         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
35972         (addservbyX): Return value returned by cache_addserv.
35973         (readdservbyname): Return value returned by addservbyX:
35974         (readdservbyport): Likewise.
35975         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
35976         (addhstbyX): Return value returned by cache_addhst.
35977         (readdhstbyname): Return value returned by addhstbyX.
35978         (readdhstbyaddr): Likewise.
35979         (readdhstbynamev6): Likewise.
35980         (readdhstbyaddrv6): Likewise.
35981         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
35982         (readdinitgroups): Return value returned by addinitgroupsX.
35983         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
35984         (prune_cache): Keep track of timeout value of re-added entries.
35985         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
35986         * nscd/nscd.h: Adjust prototypes of readd* functions.
35987
35988 2011-02-04  Roland McGrath  <roland@redhat.com>
35989
35990         * nis/nis_server.c (nis_servstate): Use the right name for 0.
35991         (nis_stats): Likewise.
35992         * nis/nis_modify.c (nis_modify): Likewise.
35993         * nis/nis_remove.c (nis_remove): Likewise.
35994         * nis/nis_add.c (nis_add): Likewise.
35995
35996         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
35997
35998         * posix/fnmatch_loop.c: Add some consts.
35999
36000         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
36001
36002 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
36003
36004         [BZ #12460]
36005         * config.make.in (config-cflags-novzeroupper): Define.
36006         * configure.in: Substitute libc_cv_cc_novzeroupper.
36007         * elf/Makefile (AVX-CFLAGS): Define.
36008         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
36009         (CFLAGS-tst-auditmod4a.c): Likewise.
36010         (CFLAGS-tst-auditmod4b.c): Likewise.
36011         (CFLAGS-tst-auditmod6b.c): Likewise.
36012         (CFLAGS-tst-auditmod6c.c): Likewise.
36013         (CFLAGS-tst-auditmod7b.c): Likewise.
36014         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
36015
36016 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
36017
36018         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
36019         function to the callback.
36020         Patch partly by Jiri Olsa <jolsa@redhat.com>.
36021
36022 2011-02-02  Andreas Schwab  <schwab@redhat.com>
36023
36024         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
36025         of errno.
36026
36027 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
36028
36029         [BZ #11724]
36030         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
36031         of constructors.
36032         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
36033         of destructors.
36034         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
36035
36036         [BZ #11724]
36037         * elf/Makefile: Add rules to build and run new test.
36038         * elf/tst-initorder.c: New file.
36039         * elf/tst-initorder.exp: New file.
36040         * elf/tst-initordera1.c: New file.
36041         * elf/tst-initordera2.c: New file.
36042         * elf/tst-initordera3.c: New file.
36043         * elf/tst-initordera4.c: New file.
36044         * elf/tst-initorderb1.c: New file.
36045         * elf/tst-initorderb2.c: New file.
36046         * elf/tst-order-a1.c: New file.
36047         * elf/tst-order-a2.c: New file.
36048         * elf/tst-order-a3.c: New file.
36049         * elf/tst-order-a4.c: New file.
36050         * elf/tst-order-b1.c: New file.
36051         * elf/tst-order-b2.c: New file.
36052         * elf/tst-order-main.c: New file.
36053         New test case by George Gensure <werkt0@gmail.com>.
36054
36055 2010-10-01  Andreas Schwab  <schwab@redhat.com>
36056
36057         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
36058         decoding ACE if AI_CANONIDN.
36059
36060 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
36061
36062         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
36063
36064 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
36065
36066         * version.h (RELEASE): Bump for 2.13 release.
36067         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
36068
36069         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
36070
36071         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
36072         MADV_NOHUGEPAGE.
36073         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
36074         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
36075         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36076         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36077         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36078         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
36079
36080         * posix/getconf.c: Update copyright year.
36081         * catgets/gencat.c: Likewise.
36082         * csu/version.c: Likewise.
36083         * debug/catchsegv.sh: Likewise.
36084         * debug/xtrace.sh: Likewise.
36085         * elf/ldconfig.c: Likewise.
36086         * elf/ldd.bash.in: Likewise.
36087         * elf/sprof.c (print_version): Likewise.
36088         * iconv/iconv_prog.c: Likewise.
36089         * iconv/iconvconfig.c: Likewise.
36090         * locale/programs/locale.c: Likewise.
36091         * locale/programs/localedef.c: Likewise.
36092         * malloc/memusage.sh: Likewise.
36093         * malloc/mtrace.pl: Likewise.
36094         * nscd/nscd.c (print_version): Likewise.
36095         * nss/getent.c: Likewise.
36096
36097         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
36098         PF_CAIF, and PF_ALG.
36099         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
36100
36101 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
36102
36103         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
36104         (modules-names): Use them.
36105         (ifunc-test-modules, ifunc-pie-tests): Define.
36106         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
36107         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
36108         (test-extras): Likewise.
36109         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
36110         $(compile-command.c).
36111         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
36112         (all-built-dso): Define.
36113         (check-textrel.out, check-execstack.out): Depend on it.
36114
36115         * configure.in: Don't override --enable-multi-arch.
36116
36117 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
36118
36119         [BZ #6812]
36120         * nscd/hstcache.c (tryagain): Define.
36121         (cache_addhst): Return tryagain not notfound for temporary errors.
36122         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
36123         failed.
36124
36125 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
36126
36127         [BZ #10563]
36128         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
36129         to make the syscall.
36130         * sysdeps/unix/sysv/linux/setgroups.c: New file.
36131
36132         [BZ #12378]
36133         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
36134         and fall back to matching as normal character if the string ends before
36135         the matching ']' is found.  This is what POSIX requires.
36136         * posix/testfnm.c: Adjust test result.
36137         * posix/globtest.sh: Adjust test result.  Add new test.
36138         * posix/tst-fnmatch.input: Likewise.
36139         * posix/tst-fnmatch2.c: Add new test.
36140
36141 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
36142
36143         * elf/Makefile (check-execstack): Revert last change.  Depend on
36144         check-execstack.h.
36145         (check-execstack.h): New target.
36146         (generated): Add check-execstack.h.
36147         * elf/check-execstack.c: Include "check-execstack.h".
36148         (main): Revert last change.
36149         (handle_file): Return zero if GNU_STACK is absent and
36150         DEFAULT_STACK_PERMS doesn't include PF_X.
36151
36152 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
36153
36154         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
36155         in child fails because the descriptor is already closed.
36156         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
36157         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
36158         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
36159
36160         [BZ #12397]
36161         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
36162         syscall.
36163
36164         [BZ #10484]
36165         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
36166         temporary buffer used to handle multi lookups locally.
36167         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
36168
36169 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
36170
36171         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
36172         loader is ld.so.
36173
36174 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
36175
36176         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
36177         alignment for SSE2.
36178
36179 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
36180
36181         [BZ #12394]
36182         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
36183         characters.  When rounding increased number of integer digits recompute
36184         number of groups.
36185         * stdio-common/tst-grouping.c: New file.
36186         * stdio-common/Makefile: Add rules to build and run tst-grouping.
36187
36188 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
36189
36190         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
36191         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
36192
36193         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
36194         void.
36195         * bits/select.h: Likewise.
36196
36197 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
36198
36199         * po/ja.po: Update from translation team.
36200
36201 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
36202
36203         [BZ #11155]
36204         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
36205         implementation just like for lxstat, fxstatat, et al.
36206
36207 2010-12-27  Jim Meyering  <meyering@redhat.com>
36208
36209         [BZ #12348]
36210         * posix/regexec.c (build_trtable): Return failure indication upon
36211         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
36212
36213 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
36214
36215         [BZ #12201]
36216         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
36217         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
36218         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
36219         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
36220
36221         [BZ #12207]
36222         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
36223
36224         [BZ #12204]
36225         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
36226         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
36227
36228 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
36229
36230         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
36231         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
36232         script has SORT_BY_INIT_PRIORITY.
36233         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
36234         NO_CTORS_DTORS_SECTIONS is defined.
36235         * elf/soinit.c: Likewise.
36236         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
36237         NO_CTORS_DTORS_SECTIONS is defined.
36238         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
36239         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
36240         * sysdeps/sh/init-first.c: Likewise.
36241         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
36242
36243 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
36244
36245         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
36246         always use the slow path.
36247
36248 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
36249
36250         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
36251         similar rule which adds the sysdep directories to the header search in
36252         order to pick up the correct platform stackinfo.h.
36253         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
36254         perform test if it is, otherwise return successfully without testing.
36255         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
36256         DEFAULT_STACK_PERMS define in stackinfo.h.
36257         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
36258         defined in stackinfo.h.
36259         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
36260         DEFAULT_STACK_PERMS defined in stackinfo.h.
36261         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
36262         * sysdeps/ia64/stackinfo.h: Likewise.
36263         * sysdeps/s390/stackinfo.h: Likewise.
36264         * sysdeps/sh/stackinfo.h: Likewise.
36265         * sysdeps/sparc/stackinfo.h: Likewise.
36266         * sysdeps/x86_64/stackinfo.h: Likewise.
36267         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
36268         PF_X for powerpc64.  Retain PF_X for powerpc32.
36269
36270 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
36271
36272         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
36273         accurately.
36274         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
36275         GETDENTS_64BIT_ALIGNED.
36276
36277 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
36278
36279         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
36280
36281 2010-12-10  Andreas Schwab  <schwab@redhat.com>
36282
36283         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
36284         _GNU_SOURCE.
36285
36286         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
36287         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
36288         Remove __restrict.
36289         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
36290         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
36291
36292 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
36293
36294         [BZ #11655]
36295         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
36296         are initialized.
36297
36298 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
36299
36300         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
36301
36302 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
36303
36304         * po/it.po: Update from translation team.
36305
36306 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
36307
36308         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
36309         unused codes.
36310
36311 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
36312
36313         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
36314
36315 2010-11-24  Andreas Schwab  <schwab@redhat.com>
36316
36317         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
36318         specially.
36319         (gaih_getanswer_slice): Likewise.
36320
36321 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
36322
36323         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
36324
36325 2010-05-31  Petr Baudis  <pasky@suse.cz>
36326
36327         [BZ #11149]
36328         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
36329         silently even in the chroot mode.
36330
36331 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
36332
36333         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
36334         last patch a bit.  Pretty printing
36335
36336 2010-05-31  Petr Baudis <pasky@suse.cz>
36337
36338         [BZ #10085]
36339         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
36340         initialization of skip_initgroups_dyn.
36341
36342 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
36343
36344         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
36345         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
36346
36347 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
36348
36349         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
36350
36351 2010-11-11  Andreas Schwab  <schwab@redhat.com>
36352
36353         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
36354         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
36355         (tst-fnmatch-ENV): Set MALLOC_TRACE.
36356         ($(objpfx)tst-fnmatch-mem): New rule.
36357         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
36358         * posix/tst-fnmatch.c (main): Call mtrace.
36359
36360 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
36361
36362         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36363         Support Intel processor model 6 and model 0x2c.
36364
36365 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
36366
36367         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
36368           signed comparison.
36369
36370 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
36371
36372         [BZ #12205]
36373         * string/test-strncasecmp.c (check_result): New function.
36374         (do_one_test): Use it.
36375         (check1): New function.
36376         (test_main): Use it.
36377         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
36378         Support strcasecmp and strncasecmp.
36379
36380 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
36381
36382         [BZ #12194]
36383         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
36384         * sysdeps/x86_64/bits/byteswap.h: Likewise.
36385
36386 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
36387
36388         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
36389         IFUNC support.
36390         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
36391         memset-x86-64.
36392         * sysdeps/x86_64/multiarch/bzero.S: New file.
36393         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
36394         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
36395         * sysdeps/x86_64/multiarch/memset.S: New file.
36396         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
36397         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36398         Set bit_Prefer_SSE_for_memop for Intel processors.
36399         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
36400         Define.
36401         (index_Prefer_SSE_for_memop): Define.
36402         (HAS_PREFER_SSE_FOR_MEMOP): Define.
36403
36404 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
36405
36406         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
36407         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
36408
36409 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
36410
36411         [BZ #12191]
36412         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
36413         (__x86_64_raw_data_cache_size_half): Likewise.
36414         (__x86_64_raw_shared_cache_size): Likewise.
36415         (__x86_64_raw_shared_cache_size_half): Likewise.
36416
36417         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
36418         (__x86_64_raw_data_cache_size_half): Likewise.
36419         (__x86_64_raw_shared_cache_size): Likewise.
36420         (__x86_64_raw_shared_cache_size_half): Likewise.
36421         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
36422         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
36423         and __x86_64_raw_shared_cache_size_half.  Round
36424         __x86_64_data_cache_size_half, __x86_64_data_cache_size
36425         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
36426         to multiple of 256 bytes.
36427
36428 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
36429
36430         [BZ #12167]
36431         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
36432         of inacessible symlinks.  Verify result of symlink before returning it.
36433         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
36434         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
36435
36436 2010-10-28  Erich Ritz  <erichritz@gmail.com>
36437
36438         * math/math.h (isinf): Fix typo in comment.
36439
36440 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
36441
36442         * po/da.po: Update from translation team.
36443
36444 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
36445
36446         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
36447         is added to the list.
36448
36449 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36450             Ulrich Drepper  <drepper@gmail.com>
36451
36452         * elf/dl-object.c (_dl_new_object): Don't append the new object to
36453         the global list here.  Move code to...
36454         (_dl_add_to_namespace_list): ...here.  New function.
36455         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
36456         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
36457         * elf/dl-load.c (lose): Don't remove the element from the list.
36458         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
36459         (_dl_map_object): Likewise.
36460
36461 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
36462
36463         [BZ #12159]
36464         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
36465         into all bytes of SSE register.
36466         Patch by Richard Li <richardpku@gmail.com>.
36467
36468 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
36469
36470         [BZ #12140]
36471         * malloc/malloc.c (_int_free): Fill correct number of bytes when
36472         perturbing.
36473
36474 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
36475
36476         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
36477         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
36478         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
36479         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
36480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
36481         submachine.
36482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
36483
36484 2010-10-22  Andreas Schwab  <schwab@redhat.com>
36485
36486         * include/dlfcn.h (__RTLD_SECURE): Define.
36487         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
36488         mode & __RTLD_SECURE instead.
36489         (open_path): Rename preloaded parameter to secure.
36490         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
36491         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
36492         * elf/dl-deps.c (openaux): Likewise.
36493         * elf/rtld.c (struct map_args): Remove is_preloaded.
36494         (map_doit): Don't use it.
36495         (dl_main): Likewise.
36496         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
36497         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
36498
36499 2010-09-09  Andreas Schwab  <schwab@redhat.com>
36500
36501         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
36502         (sysd-rules-targets): Remove duplicates.
36503         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
36504         rtld-%.$o dependency.
36505
36506 2010-10-18  Andreas Schwab  <schwab@redhat.com>
36507
36508         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
36509         _dl_map_object do it.
36510
36511 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
36512
36513         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
36514         fast fma builtins, define the macros in the C99 standard.
36515         (FP_FAST_FMAF): Likewise.
36516         (FP_FAST_FMAL): Likewise.
36517         * sysdeps/x86_64/bits/mathdef.h: Likewise.
36518
36519         * bits/mathdef.h: Update copyright year.
36520         * sysdeps/powerpc/bits/mathdef.h: Likewise.
36521
36522 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
36523
36524         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
36525         builtins, define the macros in the C99 standard.
36526         (FP_FAST_FMAF): Likewise.
36527         (FP_FAST_FMAL): Likewise.
36528         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
36529         multiply/add.
36530         (FP_FAST_FMAF): Likewise.
36531
36532 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
36533
36534         [BZ #3268]
36535         * math/libm-test.inc (fma_test): Some new testcases.
36536         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
36537         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
36538         y and infinite z.  Do multiplication by C already in long double.
36539         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
36540         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
36541         y and infinite z.  Do bitwise or of inexact bit into u.d.
36542         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
36543         * sysdeps/i386/fpu/s_fmaf.S: Removed.
36544         * sysdeps/i386/fpu/s_fma.S: Removed.
36545         * sysdeps/i386/fpu/s_fmal.S: Removed.
36546
36547 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
36548
36549         [BZ #3268]
36550         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
36551         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
36552         computation is not scheduled after fetestexcept.  Fix value
36553         of minimum denormal long double.
36554
36555 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
36556
36557         [BZ #3268]
36558         * math/libm-test.inc (fma_test): Add some more tests.
36559         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
36560         correctly.
36561
36562 2010-10-15  Andreas Schwab  <schwab@redhat.com>
36563
36564         * scripts/data/localplt-s390-linux-gnu.data: New file.
36565         * scripts/data/localplt-s390x-linux-gnu.data: New file.
36566
36567 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
36568
36569         [BZ #3268]
36570         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
36571         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
36572         instead of dbl-64.
36573         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
36574         inlines.
36575         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
36576         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
36577         if one of x and y is very large and the other is subnormal.
36578         * sysdeps/s390/fpu/s_fmaf.c: New file.
36579         * sysdeps/s390/fpu/s_fma.c: New file.
36580         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
36581         * sysdeps/powerpc/fpu/s_fma.S: New file.
36582         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
36583         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
36584         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
36585
36586 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
36587
36588         [BZ #3268]
36589         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
36590         fma tests.
36591         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
36592         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
36593         * sysdeps/i386/i686/multiarch/s_fma.c: Include
36594         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
36595         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
36596         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
36597         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
36598
36599 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
36600
36601         [BZ #12078]
36602         * posix/regcomp.c (parse_branch): One more memory leak plugged.
36603         * posix/bug-regex31.input: Add test case.
36604
36605 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
36606
36607         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
36608         * posix/bug-regex31.input: New file.
36609
36610         [BZ #12078]
36611         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
36612         (parse_sub_exp): Fix last change, use postorder.
36613
36614         * posix/bug-regex31.c: New file.
36615         * posix/Makefile: Add rules to build and run bug-regex31.
36616
36617         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
36618
36619         [BZ #12078]
36620         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
36621
36622         [BZ #12108]
36623         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
36624         to have entries in sys_siglist.
36625
36626         [BZ #12093]
36627         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
36628         be NULL.
36629
36630 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
36631
36632         [BZ #3268]
36633         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
36634         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
36635         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
36636         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
36637         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
36638         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
36639         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
36640         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
36641         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
36642         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
36643         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
36644         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
36645         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
36646         * math/ftestexcept.c (fetestexcept): Likewise.
36647         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
36648         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
36649         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
36650         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
36651         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
36652         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
36653         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
36654
36655 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
36656
36657         [BZ #12107]
36658         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
36659         newline.
36660
36661 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
36662
36663         * string/bug-strstr1.c: New file.
36664         * string/Makefile: Add rules to build and run bug-strstr1.
36665
36666 2010-10-05  Eric Blake  <eblake@redhat.com>
36667
36668         [BZ #12092]
36669         * string/str-two-way.h (two_way_long_needle): Always clear memory
36670         when skipping input due to the shift table.
36671
36672 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
36673
36674         [BZ #12005]
36675         * malloc/mcheck.c: Handle large requests.
36676
36677         [BZ #12077]
36678         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
36679         for strncmp and strncasecmp.
36680         * string/stratcliff.c: Add tests for strcmp and strncmp.
36681         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
36682
36683 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36684
36685         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
36686         __set_fpscr.
36687
36688 2010-09-30  Andreas Jaeger  <aj@suse.de>
36689
36690         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
36691         (CGROUP_SUPER_MAGIC): Define.
36692         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
36693         Handle btrfs and cgroup file systems.
36694         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
36695         Likewise.
36696
36697 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
36698
36699         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
36700         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
36701
36702 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36703
36704         [BZ #12067]
36705         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
36706         trying to locate the ELF header.
36707
36708 2010-09-27  Andreas Schwab  <schwab@redhat.com>
36709
36710         [BZ #11611]
36711         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
36712         Mask out sign-bit copies when constructing f_fsid.
36713
36714 2010-09-24  Petr Baudis <pasky@suse.cz>
36715
36716         * debug/stack_chk_fail_local.c: Add missing licence exception.
36717         * debug/warning-nop.c: Likewise.
36718
36719 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
36720
36721         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
36722         implementing getdents64 using getdents syscall, set d_type if
36723         __ASSUME_GETDENTS32_D_TYPE.
36724
36725 2010-09-16  Andreas Schwab  <schwab@redhat.com>
36726
36727         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
36728         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
36729
36730 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
36731
36732         [BZ #12037]
36733         * posix/unistd.h: Undo change of feature selection for ftruncate from
36734         2010-01-11.
36735
36736 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
36737
36738         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
36739         detection.
36740
36741 2010-09-20  Andreas Schwab  <schwab@redhat.com>
36742
36743         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
36744         fanotify_mark.
36745         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
36746
36747 2010-09-14  Andreas Schwab  <schwab@redhat.com>
36748
36749         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
36750         variables after CHECK_SP call.
36751         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
36752
36753 2010-09-13  Andreas Schwab  <schwab@redhat.com>
36754             Ulrich Drepper  <drepper@redhat.com>
36755
36756         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
36757         re-relocationg ld.so.
36758         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
36759         _dl_init_paths call.
36760         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
36761         here anymore.
36762
36763 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
36764
36765         * resolv/res_init.c (__res_vinit): Count the default server we added.
36766
36767 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
36768             Ulrich Drepper  <drepper@redhat.com>
36769
36770         [BZ #11968]
36771         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
36772         (____longjmp_chk): Use %ebx for saving value across system call.
36773         Add unwind info.
36774
36775 2010-09-06  Andreas Schwab  <schwab@redhat.com>
36776
36777         * manual/Makefile: Don't mix pattern rules with normal rules.
36778
36779 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
36780
36781         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
36782         operation.
36783         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
36784         * libio/iofopncook.c (_IO_cookie_init): Likewise.
36785         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
36786         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
36787         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
36788         Likewise.
36789
36790 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
36791
36792         [BZ #11979]
36793         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
36794         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
36795
36796 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
36797
36798         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
36799         * sysdeps/x86_64/addmul_1.S: Likewise.
36800         * sysdeps/x86_64/lshift.S: Likewise.
36801         * sysdeps/x86_64/mul_1.S: Likewise.
36802         * sysdeps/x86_64/rshift.S: Likewise.
36803         * sysdeps/x86_64/sub_n.S: Likewise.
36804         * sysdeps/x86_64/submul_1.S: Likewise.
36805
36806 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36807
36808         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
36809         Define __sched_param instead of SCHED_* and sched_param when
36810         <bits/sched.h> is included with __need_schedparam defined.
36811         * bits/sched.h [__need_schedparam]
36812         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
36813         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
36814         (__defined_schedparam): Define to 1.
36815         (__sched_param): New structure, identical to sched_param.
36816         (__need_schedparam): Undefine.
36817
36818 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
36819
36820         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
36821         (epoll_create1): Declare.
36822
36823         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
36824
36825 2010-08-31  Andreas Schwab  <schwab@redhat.com>
36826
36827         [BZ #7066]
36828         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
36829         shifting retval into place.
36830
36831 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
36832
36833         * nis/rpcsvc/nis.h: Update copyright notice.
36834         * nis/rpcsvc/nis.x: Likewise.
36835         * nis/rpcsvc/nis_callback.h: Likewise.
36836         * nis/rpcsvc/nis_callback.x: Likewise.
36837         * nis/rpcsvc/nis_object.x: Likewise.
36838         * nis/rpcsvc/nis_tags.h: Likewise.
36839         * nis/rpcsvc/yp.h: Likewise.
36840         * nis/rpcsvc/yp.x: Likewise.
36841         * nis/rpcsvc/ypupd.h: Likewise.
36842         * nis/yp_xdr.c: Likewise.
36843         * nis/ypupdate_xdr.c: Likewise.
36844
36845         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
36846         mainly the body of pmap_getport.  Add parameters to specify timeouts.
36847         (pmap_getport): Use __libc_rpc_getport.
36848         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
36849         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
36850         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
36851
36852 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
36853
36854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
36855         fanotify_mark.
36856
36857 2010-08-27  Roland McGrath  <roland@redhat.com>
36858
36859         * sysdeps/i386/i686/multiarch/Makefile
36860         (CFLAGS-varshift.c): New variable.
36861
36862 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
36863
36864         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
36865         * sysdeps/i386/i686/multiarch/varshift.c: New file.
36866
36867         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
36868
36869         * sysdeps/x86_64/strlen.S: Minimal code improvement.
36870
36871 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
36872
36873         * sysdeps/x86_64/strlen.S: Unroll the loop.
36874         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
36875         strlen-sse2 strlen-sse2-bsf.
36876         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
36877         __strlen_no_bsf if bit_Slow_BSF is set.
36878         (__strlen_sse42): Removed.
36879         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
36880         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
36881
36882 2010-08-25  Roland McGrath  <roland@redhat.com>
36883
36884         * sysdeps/x86_64/multiarch/varshift.S: File removed.
36885         * sysdeps/x86_64/multiarch/varshift.c: New file.
36886         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
36887         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
36888         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
36889         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
36890
36891 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
36892
36893         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
36894         strlen-sse2 strlen-sse2-bsf.
36895         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
36896         __strlen_sse2_bsf if bit_Slow_BSF is unset.
36897         (__strlen_sse2): Removed.
36898         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
36899         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
36900         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
36901         bit_Slow_BSF for Atom.
36902         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
36903         (index_Slow_BSF): Define.
36904         (HAS_SLOW_BSF): Define.
36905
36906 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
36907
36908         [BZ #10851]
36909         * resolv/res_init.c (__res_vinit): When no server address at all
36910         is given default to loopback.
36911
36912 2010-08-24  Roland McGrath  <roland@redhat.com>
36913
36914         * configure.in: Remove config-name.h generation.
36915         * configure: Regenerated.
36916         * config-name.in: File removed.
36917         * scripts/config-uname.sh: New file.
36918         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
36919         ($(objdir)config-name.h): New target.
36920
36921         * sunrpc/rpc_parse.h: Avoid nested comment.
36922
36923 2010-08-24  Richard Henderson  <rth@redhat.com>
36924             Ulrich Drepper  <drepper@redhat.com>
36925             H.J. Lu  <hongjiu.lu@intel.com>
36926
36927         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
36928         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
36929         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
36930         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
36931         _mm_alignr_epi8 with _mm_loadu_si128.
36932         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
36933         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
36934         (__m128i_shift_right): Removed.
36935         * sysdeps/i386/i686/multiarch/varshift.h: New file.
36936         * sysdeps/i386/i686/multiarch/varshift.S: New file.
36937         * sysdeps/x86_64/multiarch/varshift.h: New file.
36938         * sysdeps/x86_64/multiarch/varshift.S: New file.
36939
36940 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
36941
36942         * configure.in: Move assembler checks to before sysdep dir checking.
36943
36944 2010-08-20  Petr Baudis  <pasky@suse.cz>
36945
36946         * LICENSES: Sync the sunrpc license.
36947
36948 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
36949
36950         * sunrpc/auth_des.c: Update copyright notice once again.
36951         * sunrpc/auth_none.c: Likewise.
36952         * sunrpc/auth_unix.c: Likewise.
36953         * sunrpc/authdes_prot.c: Likewise.
36954         * sunrpc/authuxprot.c: Likewise.
36955         * sunrpc/bindrsvprt.c: Likewise.
36956         * sunrpc/clnt_gen.c: Likewise.
36957         * sunrpc/clnt_perr.c: Likewise.
36958         * sunrpc/clnt_raw.c: Likewise.
36959         * sunrpc/clnt_simp.c: Likewise.
36960         * sunrpc/clnt_tcp.c: Likewise.
36961         * sunrpc/clnt_udp.c: Likewise.
36962         * sunrpc/clnt_unix.c: Likewise.
36963         * sunrpc/des_crypt.c: Likewise.
36964         * sunrpc/des_soft.c: Likewise.
36965         * sunrpc/get_myaddr.c: Likewise.
36966         * sunrpc/getrpcport.c: Likewise.
36967         * sunrpc/key_call.c: Likewise.
36968         * sunrpc/key_prot.c: Likewise.
36969         * sunrpc/openchild.c: Likewise.
36970         * sunrpc/pm_getmaps.c: Likewise.
36971         * sunrpc/pm_getport.c: Likewise.
36972         * sunrpc/pmap_clnt.c: Likewise.
36973         * sunrpc/pmap_prot.c: Likewise.
36974         * sunrpc/pmap_prot2.c: Likewise.
36975         * sunrpc/pmap_rmt.c: Likewise.
36976         * sunrpc/rpc/auth.h: Likewise.
36977         * sunrpc/rpc/auth_unix.h: Likewise.
36978         * sunrpc/rpc/clnt.h: Likewise.
36979         * sunrpc/rpc/des_crypt.h: Likewise.
36980         * sunrpc/rpc/key_prot.h: Likewise.
36981         * sunrpc/rpc/netdb.h: Likewise.
36982         * sunrpc/rpc/pmap_clnt.h: Likewise.
36983         * sunrpc/rpc/pmap_prot.h: Likewise.
36984         * sunrpc/rpc/pmap_rmt.h: Likewise.
36985         * sunrpc/rpc/rpc.h: Likewise.
36986         * sunrpc/rpc/rpc_des.h: Likewise.
36987         * sunrpc/rpc/rpc_msg.h: Likewise.
36988         * sunrpc/rpc/svc.h: Likewise.
36989         * sunrpc/rpc/svc_auth.h: Likewise.
36990         * sunrpc/rpc/types.h: Likewise.
36991         * sunrpc/rpc/xdr.h: Likewise.
36992         * sunrpc/rpc_clntout.c: Likewise.
36993         * sunrpc/rpc_cmsg.c: Likewise.
36994         * sunrpc/rpc_common.c: Likewise.
36995         * sunrpc/rpc_cout.c: Likewise.
36996         * sunrpc/rpc_dtable.c: Likewise.
36997         * sunrpc/rpc_hout.c: Likewise.
36998         * sunrpc/rpc_main.c: Likewise.
36999         * sunrpc/rpc_parse.c: Likewise.
37000         * sunrpc/rpc_parse.h: Likewise.
37001         * sunrpc/rpc_prot.c: Likewise.
37002         * sunrpc/rpc_sample.c: Likewise.
37003         * sunrpc/rpc_scan.c: Likewise.
37004         * sunrpc/rpc_scan.h: Likewise.
37005         * sunrpc/rpc_svcout.c: Likewise.
37006         * sunrpc/rpc_tblout.c: Likewise.
37007         * sunrpc/rpc_util.c: Likewise.
37008         * sunrpc/rpc_util.h: Likewise.
37009         * sunrpc/rpcinfo.c: Likewise.
37010         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
37011         * sunrpc/rpcsvc/key_prot.x: Likewise.
37012         * sunrpc/rpcsvc/klm_prot.x: Likewise.
37013         * sunrpc/rpcsvc/mount.x: Likewise.
37014         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
37015         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
37016         * sunrpc/rpcsvc/rex.x: Likewise.
37017         * sunrpc/rpcsvc/rstat.x: Likewise.
37018         * sunrpc/rpcsvc/rusers.x: Likewise.
37019         * sunrpc/rpcsvc/sm_inter.x: Likewise.
37020         * sunrpc/rpcsvc/spray.x: Likewise.
37021         * sunrpc/rpcsvc/yppasswd.x: Likewise.
37022         * sunrpc/rtime.c: Likewise.
37023         * sunrpc/svc.c: Likewise.
37024         * sunrpc/svc_auth.c: Likewise.
37025         * sunrpc/svc_authux.c: Likewise.
37026         * sunrpc/svc_raw.c: Likewise.
37027         * sunrpc/svc_run.c: Likewise.
37028         * sunrpc/svc_simple.c: Likewise.
37029         * sunrpc/svc_tcp.c: Likewise.
37030         * sunrpc/svc_udp.c: Likewise.
37031         * sunrpc/svc_unix.c: Likewise.
37032         * sunrpc/svcauth_des.c: Likewise.
37033         * sunrpc/xcrypt.c: Likewise.
37034         * sunrpc/xdr.c: Likewise.
37035         * sunrpc/xdr_array.c: Likewise.
37036         * sunrpc/xdr_float.c: Likewise.
37037         * sunrpc/xdr_mem.c: Likewise.
37038         * sunrpc/xdr_rec.c: Likewise.
37039         * sunrpc/xdr_ref.c: Likewise.
37040         * sunrpc/xdr_sizeof.c: Likewise.
37041         * sunrpc/xdr_stdio.c: Likewise.
37042
37043         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
37044         handling.
37045
37046 2010-08-19  Andreas Schwab  <schwab@redhat.com>
37047
37048         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
37049
37050 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
37051
37052         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
37053         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
37054         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
37055         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
37056         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
37057         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
37058         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
37059         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
37060         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
37061         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
37062         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
37063         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
37064         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
37065         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
37066
37067 2010-07-26  Anton Blanchard  <anton@samba.org>
37068
37069         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
37070         * malloc/arena.c (heap_trim): Likewise.
37071
37072 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
37073
37074         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
37075         here.  Not...
37076         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
37077         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
37078
37079 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
37080
37081         * sysdeps/i386/elf/Makefile: New file.
37082
37083 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
37084
37085         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
37086         from fanotify_init.
37087         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
37088         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
37089
37090 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
37091
37092         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
37093         of strncasecmp_l.
37094         * sysdeps/multiarch/strcmp.S: Likewise.
37095
37096 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
37097
37098         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
37099         strncase_l-nonascii.
37100         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
37101         Add strncase_l-ssse3.
37102         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
37103         * sysdeps/x86_64/strcmp.S: Likewise.
37104         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
37105         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
37106         * sysdeps/x86_64/strncase.S: New file.
37107         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
37108         * sysdeps/x86_64/strncase_l.S: New file.
37109         * string/Makefile (strop-tests): Add strncasecmp.
37110         * string/test-strncasecmp.c: New file.
37111
37112         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
37113         warning.
37114
37115         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
37116         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
37117
37118 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
37119
37120         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
37121
37122 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
37123
37124         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
37125         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
37126         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
37127
37128 2010-05-01  Alan Modra  <amodra@gmail.com>
37129
37130         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
37131         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
37132         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
37133         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
37134         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
37135         tidying.  Don't tail-call __sigjmp_save for static lib.
37136         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
37137         save location.
37138         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
37139         (CALL_MCOUNT): Add eh info, and nop after bl.
37140         (TAIL_CALL_SYSCALL_ERROR): New macro.
37141         (PSEUDO_RET): Use it.
37142         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
37143         Correct save location of integer regs and cr.
37144         (_dl_profile_resolve): Correct cr save location.  Delete nops
37145         after bl when SHARED.  Reduce cfi size a little by better
37146         placement of cfi directives.
37147         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
37148         make a stack frame.  Instead use parm save area as a temp.
37149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
37150         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
37151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
37152         Don't make a stack frame for parent, use parm save area.
37153         Increase child stack frame to 112 bytes.  Don't save unused reg,
37154         and adjust reg usage.  Set up cfi on error recovery and
37155         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
37156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
37157         (__makecontext): Add dummy nop after jump to exit.
37158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
37159         Use correct parm save area and cr save, reduce stack frame.
37160         Correct cfi for possible PSEUDO_RET frame setup.
37161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
37162         Branch to local label emitted by PSEUDO_RET rather than
37163         __syscall_error.
37164
37165 2010-08-12  Andreas Schwab  <schwab@redhat.com>
37166
37167         [BZ #11904]
37168         * locale/programs/locale.c (print_assignment): New function.
37169         (show_locale_vars): Use it.
37170
37171 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
37172
37173         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
37174         field.
37175         (struct statfs64): Likewise.
37176         (_STATFS_F_FLAGS): Define.
37177         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
37178         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37179         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
37180         (ST_VALID): Define locally.
37181         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
37182         __statvfs_getflags, use the provided value.
37183         * sysdeps/unix/sysv/linux/kernel-features.h: Define
37184         __ASSUME_STATFS_F_FLAGS.
37185
37186         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
37187
37188         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
37189         Add sys/fanotify.h.
37190         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
37191         fanotify_mask for GLIBC_2.13.
37192         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
37193         fanotify_init and fanotify_mark.
37194         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
37195         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
37196
37197         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
37198         Add prlimit.
37199         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
37200         prlimit64 for GLIBC_2.13.
37201         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
37202         prlimit64.
37203         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
37204         syscall.
37205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
37206         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
37207         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
37208         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
37209         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
37210         add prlimit alias.
37211         * sysdeps/unix/sysv/linux/prlimit.c: New file.
37212
37213         [BZ #11903]
37214         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
37215         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
37216
37217         * nss/Makefile: Add rules to build and run tst-nss-test1.
37218         * shlib-versions: Add entry for libnss_test1.
37219         * nss/nss_test1.c: New file.
37220         * nss/tst-nss-test1.c: New file.
37221
37222         * nss/nsswitch.c (__nss_database_custom): Define new variable.
37223         (__nss_configure_lookup): Set appropriate entry in
37224         __nss_configure_lookup to true.
37225         * nss/nsswitch.h: Define enum with indeces of databases in
37226         databases and __nss_database_custom arrays.  Declare
37227         __nss_database_custom.
37228         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
37229         to avoid using nscd when custom rules are installed.
37230         * nss/getXXbyYY_r.c: Likewise.
37231         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
37232
37233         * nss/nss_files/files-parse.c: Whitespace fixes.
37234
37235 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
37236
37237         [BZ #11883]
37238         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
37239         * posix/fnmatch_loop.c: Likewise.
37240
37241 2010-07-17  Andi Kleen  <ak@linux.intel.com>
37242
37243         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
37244         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
37245         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
37246         * Versions.def [GLIBC_2.13]: Add.
37247
37248 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
37249
37250         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37251         Also fail if tpwd after pwuid call is NULL.
37252
37253 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37254
37255         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
37256         when converting to ms.
37257
37258 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37259
37260         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
37261         EOPNOTSUPP errors with ENOTTY.
37262         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
37263         EOPNOTSUPP errors with ENOTTY.
37264
37265 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
37266
37267         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
37268         Add strcasecmp_l-ssse3.
37269         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
37270         strcasecmp.
37271         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
37272         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
37273         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
37274
37275 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
37276
37277         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
37278
37279         * string/Makefile (strop-tests): Add strcasecmp.
37280         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
37281         strcasecmp_l-nonascii.
37282         (gen-as-const-headers): Add locale-defines.sym.
37283         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
37284         * sysdeps/x86_64/strcasecmp.S: New file.
37285         * sysdeps/x86_64/strcasecmp_l.S: New file.
37286         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
37287         * sysdeps/x86_64/locale-defines.sym: New file.
37288         * string/test-strcasecmp.c: New file.
37289
37290         * string/test-strcasestr.c: Test both ends of the range of characters.
37291         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
37292
37293 2010-07-29  Roland McGrath  <roland@redhat.com>
37294
37295         [BZ #11856]
37296         * manual/locale.texi (Yes-or-No Questions): Fix example code.
37297
37298 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
37299
37300         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
37301         for ld.so.
37302
37303 2010-07-27  Andreas Schwab  <schwab@redhat.com>
37304
37305         * manual/memory.texi (Malloc Tunable Parameters): Document
37306         M_PERTURB.
37307
37308 2010-07-26  Roland McGrath  <roland@redhat.com>
37309
37310         [BZ #11840]
37311         * configure.in (-fgnu89-inline check): Set and substitute
37312         gnu89_inline, not libc_cv_gnu89_inline.
37313         * configure: Regenerated.
37314         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
37315
37316 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
37317
37318         * string/test-strnlen.c: New file.
37319         * string/Makefile (strop-tests): Add strnlen.
37320         * string/tester.c (test_strnlen): Add a few more test cases.
37321         * string/tst-strlen.c: Better error reporting.
37322
37323         * sysdeps/x86_64/strnlen.S: New file.
37324
37325 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
37326
37327         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
37328         lower-latency instructions.
37329
37330 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
37331
37332         * string/test-strcasestr.c: New file.
37333         * string/test-strstr.c: New file.
37334         * string/Makefile (strop-tests): Add strstr and strcasestr.
37335         * string/str-two-way.h: Don't undefine MAX.
37336         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
37337
37338 2010-07-21  Andreas Schwab  <schwab@redhat.com>
37339
37340         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37341         strcasestr-nonascii.
37342         (CFLAGS-strcasestr-nonascii.c): Define.
37343         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
37344         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
37345         Remove unused attribute.
37346
37347 2010-07-20  Roland McGrath  <roland@redhat.com>
37348
37349         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
37350         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
37351         ld.so.cache was broken.  With it, there is no way to disable dsocaps
37352         like LD_HWCAP_MASK can disable hwcaps.
37353
37354 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
37355
37356         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
37357
37358 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
37359
37360         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
37361         call in strcasestr.
37362         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
37363         __strcasestr_sse42_nonascii.
37364         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
37365         strcasestr-nonascii.c.
37366         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
37367
37368 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
37369
37370         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
37371         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
37372         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
37373         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
37374
37375 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
37376
37377         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
37378         fcntl.
37379
37380 2010-07-06  Andreas Schwab  <schwab@redhat.com>
37381
37382         [BZ #11577]
37383         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
37384         dl_signal_cerror.
37385
37386 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
37387
37388         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
37389         _PC_PIPE_BUF using F_GETPIPE_SZ.
37390
37391 2010-07-05  Roland McGrath  <roland@redhat.com>
37392
37393         * manual/arith.texi (Rounding Functions): Fix rint description
37394         implicit in round description.
37395
37396 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
37397
37398         * elf/Makefile: Fix linking for a few tests to make recent linker
37399         happy.
37400
37401 2010-06-30  Andreas Schwab  <schwab@redhat.com>
37402
37403         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
37404         $(common-objpfx)libc_nonshared.a.
37405
37406 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
37407
37408         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
37409         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
37410         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
37411         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
37412         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
37413         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
37414         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
37415         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
37416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
37417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
37418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
37419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
37420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
37421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
37422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
37423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
37424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
37425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
37426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
37427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
37428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
37429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
37430         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
37431         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
37432         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
37433         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
37434         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
37435         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
37436         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
37437         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
37438         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
37439         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
37440         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
37441         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
37442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
37443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
37444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
37445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
37446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
37447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
37448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
37449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
37450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
37451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
37452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
37453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
37454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
37455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
37456
37457 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
37458
37459         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
37460         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
37461         * string/memmove.c (memmove): Renamed to ...
37462         (MEMMOVE): ...this.  Default to memmove.
37463         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
37464         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
37465         (END_CHK): Define.
37466         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37467         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
37468         mempcpy-ssse3-back memmove-ssse3-back.
37469         * sysdeps/x86_64/multiarch/bcopy.S: New file .
37470         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
37471         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
37472         * sysdeps/x86_64/multiarch/memcpy.S: New file.
37473         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
37474         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
37475         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
37476         * sysdeps/x86_64/multiarch/memmove.c: New file.
37477         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
37478         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
37479         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
37480         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
37481         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
37482         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
37483         Define.
37484         (index_Fast_Copy_Backward): Define.
37485         (HAS_ARCH_FEATURE): Define.
37486         (HAS_FAST_REP_STRING): Define.
37487         (HAS_FAST_COPY_BACKWARD): Define.
37488
37489 2010-06-21  Andreas Schwab  <schwab@redhat.com>
37490
37491         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37492         Restore proper fallback handling.
37493
37494 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
37495
37496         [BZ #11701]
37497         * posix/group_member.c (__group_member): Correct checking loop.
37498
37499         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
37500         OOM in getpwuid_r correctly.  Return error number when the caller
37501         should return, otherwise -1.
37502         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
37503         call returning > 0 value.
37504         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
37505
37506 2010-06-07  Andreas Schwab  <schwab@redhat.com>
37507
37508         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
37509         libc_nonshared.a from targets in modules-names.
37510
37511 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
37512
37513         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
37514         requires it.
37515
37516 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
37517
37518         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
37519         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
37520         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
37521         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
37522
37523 2010-06-02  Andreas Schwab  <schwab@redhat.com>
37524
37525         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
37526
37527 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
37528
37529         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
37530         and F_GETPIPE_SZ.
37531         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
37532         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
37533         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
37534         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
37535         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
37536         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
37537
37538 2010-06-14  Roland McGrath  <roland@redhat.com>
37539
37540         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
37541
37542 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
37543
37544         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
37545         __REDIRECT followed by __THROW.
37546         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
37547         * posix/getopt.h (getopt): Likewise.
37548
37549 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
37550
37551         * hurd/lookup-at.c (__file_name_lookup_at): Accept
37552         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
37553         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
37554         in AT_FLAGS.
37555         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
37556         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
37557
37558 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
37559
37560         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
37561
37562 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
37563
37564         [BZ #11640]
37565         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37566         Properly check family and model.
37567
37568 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
37569
37570         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
37571
37572 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
37573
37574         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
37575
37576 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
37577
37578         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
37579         symbol reference.
37580
37581 2010-05-19  Andreas Schwab  <schwab@redhat.com>
37582
37583         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
37584         symbol reference.
37585
37586 2010-05-21  Andreas Schwab  <schwab@redhat.com>
37587
37588         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
37589         and internal_recvmmsg.
37590         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
37591         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
37592         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
37593         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
37594
37595         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
37596         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
37597         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
37598
37599 2010-05-20  Andreas Schwab  <schwab@redhat.com>
37600
37601         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
37602
37603 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
37604
37605         POWER7 optimizations.
37606         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
37607         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
37608
37609 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
37610
37611         * version.h: Update for 2.13 development version.
37612
37613 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
37614
37615         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
37616         exceptions.  Return 0.
37617
37618 2010-05-07  Roland McGrath  <roland@redhat.com>
37619
37620         * elf/ldconfig.c (main): Add a const.
37621
37622 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
37623
37624         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
37625         (args_options): Add no-idn option.
37626         (ahosts_keys_int): Add idn_flags to ai_flags.
37627         (parse_option): Handle 'i' option to clear idn_flags.
37628
37629         * malloc/malloc.c (_int_free): Possible race in the most recently
37630         added check.  Only act on the data if no current modification
37631         happened.
37632
37633 See ChangeLog.17 for earlier changes.