62c010fd2c20d7ac3ffc8f77a6eedfb1f1aa2773
[platform/upstream/glibc.git] / ChangeLog
1 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2
3         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4
5 2013-12-19  Paul Pluzhnikov  <ppluzhnikov@google.com>
6
7         * elf/dl-misc.c (ptr_to_signal_safe_allocator_header): New function.
8         (__signal_safe_memalign, __signal_safe_free): Use it.
9         (__signal_safe_realloc): Likewise.
10
11 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
12
13         * manual/texinfo.tex: Update to version 2013-11-26.10 with
14         trailing whitespace removed.
15         * scripts/config.guess: Update to version 2013-11-29.
16         * scripts/config.sub: Update to version 2013-10-01.
17
18         * math/auto-libm-test-in: Add tests of sincos.
19         * math/auto-libm-test-out: Regenerated.
20         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
21         * math/gen-auto-libm-tests.c (func_calc_method): Add value
22         mpfr_f_11.
23         (func_calc_desc): Add mpfr_f_11 union field.
24         (test_functions): Add sincos.
25         (calc_generic_results): Handle mpfr_f_11.
26         * sysdeps/i386/fpu/libm-test-ulps: Update.
27         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28
29 2013-12-19  Andreas Schwab  <schwab@suse.de>
30
31         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
32         CALL_MCOUNT.
33         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
34         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
35         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
36
37 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
38
39         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
40         * sysdeps/i386/fpu/libm-test-ulps: Update.
41         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42
43         [BZ #16293]
44         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
45         round-to-nearest mode when using frndint.
46         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
47         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
48         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
49         Likewise.
50         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
51         sinh test to fail.
52         * math/auto-libm-test-out: Regenerated.
53         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
54         (TEST_COND_x86): Likewise.
55         (expm1_tonearest_test_data): New array.
56         (expm1_test_tonearest): New function.
57         (expm1_towardzero_test_data): New array.
58         (expm1_test_towardzero): New function.
59         (expm1_downward_test_data): New array.
60         (expm1_test_downward): New function.
61         (expm1_upward_test_data): New array.
62         (expm1_test_upward): New function.
63         (main): Run the new test functions.
64         * sysdeps/i386/fpu/libm-test-ulps: Update.
65         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66
67         * include/features.h: Update comment documenting feature test
68         macros.  Mention _DEFAULT_SOURCE in comment.
69         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
70         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
71         _BSD_SOURCE and _SVID_SOURCE.
72         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
73         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
74         !_SVID_SOURCE]: Likewise.
75         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
76         (__USE_POSIX_IMPLICITLY): Define.
77         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
78         (_POSIX_SOURCE): Undefine and redefine.
79         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
80         (_POSIX_C_SOURCE): Likewise.
81         * manual/creature.texi (_DEFAULT_SOURCE): Document.
82         (Feature Test Macros): Update documentation of default features.
83
84 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
85
86         * benchtests/Makefile: Add bench-strtok.
87         * benchtests/bench-strtok.c: New file: strtok benchtest.
88
89 2013-12-19  Allan McRae  <allan@archlinux.org>
90
91         * manual/install.texi: Suppress menu for plain text output.
92         * INSTALL: Regenerated.
93
94 2013-12-18  Andrew Hunter  <ahh@google.com>
95
96         * sysdeps/generic/ldsodefs.h (__signal_safe_memalign): New prototype.
97         (__signal_safe_malloc, __signal_safe_free): Likewise.
98         (__signal_safe_realloc, __signal_safe_calloc): Likewise.
99         * elf/dl-misc.c (__signal_safe_allocator_header): New struct.
100         (__signal_safe_memalign, __signal_safe_malloc): New function.
101         (__signal_safe_free, __signal_safe_realloc): Likewise.
102         (__signal_safe_calloc): Likewise.
103         * elf/dl-tls.c (allocate_dtv, _dl_clear_dtv): Call signal-safe
104         functions.
105         (_dl_deallocate_tls, _dl_update_slotinfo): Likewise.
106
107 2013-12-18  Andrew Hunter  <ahh@google.com>
108
109         * elf/Versions (ld): Add _dl_clear_dtv.
110         * sysdeps/generic/ldsodefs.h (_dl_clear_dtv): New prototype.
111         * elf/dl-tls.c (_dl_clear_dtv): New function.
112         * nptl/allocatestack.c (get_cached_stack): Call _dl_clear_dtv.
113
114 2013-12-18  Andrew Hunter  <ahh@google.com>
115
116         * sysdeps/generic/ldsodefs.h (_dl_mask_all_signals): New prototype.
117         (_dl_unmask_signals): Likewise.
118         * sysdeps/mach/hurd/dl-sysdep.h (_dl_mask_all_signals): New stub.
119         (_dl_unmask_all_signals): Likewise.
120         * sysdeps/unix/sysv/linux/dl-sysdep.h (_dl_mask_all_signals): New prototype.
121         (_dl_unmask_all_signals): Likewise.
122         * sysdeps/unix/sysv/linux/dl-sysdep.c (_dl_mask_all_signals): New function.
123         (_dl_unmask_signals): Likewise.
124
125 2013-12-18  Brooks Moses  <bmoses@google.com>
126
127         [BZ #15846]
128         * misc/getauxval.c: Include errno.h.
129         (__getauxval): Set errno to ENOENT if the requested type is not
130         found.
131         * misc/sys/auxv.h (getauxval): Document that it may set errno;
132         don't declare with __attribute_const__.
133         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
134         * manual/startup.texi: Document that getauxval sets errno.
135
136 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
137
138         * math/auto-libm-test-in: Add tests of jn and yn.
139         * math/auto-libm-test-out: Regenerated.
140         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
141         (yn_test_data): Likewise.
142         * math/gen-auto-libm-tests.c (func_calc_method): Add value
143         mpfr_if_f.
144         (func_calc_desc): Add mpfr_if_f union field.
145         (FUNC_mpfr_if_f): New macro.
146         (test_functions): Add jn and yn.
147         (calc_generic_results): Assert type of second input for
148         mpfr_ff_f.  Handle mpfr_if_f.
149         (output_for_one_input_case): Disable all checking for arguments
150         fitting floating-point types in case of an integer argument.
151         * sysdeps/i386/fpu/libm-test-ulps: Update.
152         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
153
154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
155         Don't expect fegetround reference in libm.so.
156
157 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
158
159         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
160         $(config-cflags-nofma).
161
162 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
163
164         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
165         * math/auto-libm-test-out: Regenerated.
166
167         [BZ #16338]
168         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
169         to determine exponent and adjust argument to have exponent of -1.
170         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
171         log2.
172         * math/auto-libm-test-out: Regenerated.
173         * sysdeps/i386/fpu/libm-test-ulps: Update.
174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
175
176 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
177
178         * manual/probes.texi: Remove cases when per-thread arenas are
179         disabled.
180
181 2013-12-18  Andreas Schwab  <schwab@suse.de>
182
183         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
184         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
185         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
186         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
187         * sysdeps/i386/i686/multiarch/Makefile: Update.
188         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
189
190 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
191
192         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
193         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
194
195 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
196
197         Support TZ transition times < 00:00:00.
198         This is needed for version-3 tz-format files; it supports time
199         stamps past 2037 for America/Godthab (the only entry in the tz
200         database for which this change is relevant).
201         * manual/time.texi (TZ Variable): Document transition times
202         from -167:59:59 through -00:00:01.
203         * time/tzset.c (tz_rule): Time of day is now signed.
204         (__tzset_parse_tz): Parse negative time of day.
205
206         Document TZ transition times >= 25:00:00.
207         * manual/time.texi (TZ Variable): Document transition times from
208         25:00:00 through 167:59:59.  These are already supported, and this
209         support will help with version-3 tz-format files.
210
211         * manual/time.texi (TZ Variable): Modernize North America example
212         to reflect current (i.e., 2007-and-later) daylight saving rules.
213
214         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
215
216 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
217
218         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
219         * sysdeps/unix/bsd/bits/stat.h: Likewise.
220         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
221         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
222         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
223         * sysdeps/unix/bsd/bsdstat.h: Likewise.
224         * sysdeps/unix/bsd/clock.c: Likewise.
225         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
226         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
227         * sysdeps/unix/bsd/init-posix.c: Likewise.
228         * sysdeps/unix/bsd/poll.c: Likewise.
229         * sysdeps/unix/bsd/ptsname.c: Likewise.
230         * sysdeps/unix/bsd/seekdir.c: Likewise.
231         * sysdeps/unix/bsd/setegid.c: Likewise.
232         * sysdeps/unix/bsd/seteuid.c: Likewise.
233         * sysdeps/unix/bsd/setgid.c: Likewise.
234         * sysdeps/unix/bsd/setrgid.c: Likewise.
235         * sysdeps/unix/bsd/setruid.c: Likewise.
236         * sysdeps/unix/bsd/setsid.c: Likewise.
237         * sysdeps/unix/bsd/setuid.c: Likewise.
238         * sysdeps/unix/bsd/sigaction.c: Likewise.
239         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
240         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
241         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
242         * sysdeps/unix/bsd/telldir.c: Likewise.
243         * sysdeps/unix/bsd/times.c: Likewise.
244         * sysdeps/unix/bsd/usleep.c: Likewise.
245
246         * misc/Makefile (install-lib): Remove libbsd-compat.a.
247         ($(objpfx)libbsd-compat.a): Remove rule.
248
249         * include/features.h (__FAVOR_BSD): Do not define.
250         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
251         features conflicting with POSIX.
252         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
253         (_BSD_SOURCE): Remove description of not being a subset of other
254         feature test macros.
255         * manual/job.texi (getpgrp): Do not document BSD version.
256         (getpgid): Do not document by reference to BSD getpgrp.
257         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
258         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
259         * signal/signal.h [__FAVOR_BSD]: Likewise.
260         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
261         instead of making contents conditional on [__FAVOR_BSD].
262         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
263
264 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
265
266         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
267
268 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
269
270         [BZ #16314]
271         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
272         values below 2**-450, not 2**-500.
273         * math/auto-libm-test-in: Don't allow spurious underflow from
274         hypot.
275         * math/auto-libm-test-out: Regenerated.
276
277         [BZ #16316]
278         [BZ #16330]
279         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
280         values of ha and hb and sort them after adjusting subnormal
281         arguments.
282         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
283         Likewise.
284         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
285         values of ea and eb and sort them after adjusting subnormal
286         arguments.
287         * math/auto-libm-test-in: Do not expect some hypot tests of
288         subnormals to fail.  Add more hypot tests.
289         * math/auto-libm-test-out: Regenerated.
290
291 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
292
293         [BZ #13304]
294         * sysdeps/sh/s_fma.c: New file.
295         * sysdeps/sh/s_fmaf.c: New file.
296         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
297         version.
298         * sysdeps/sh/Implies: Add sh/soft-fp.
299
300 2013-12-16  Roland McGrath  <roland@hack.frob.com>
301
302         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
303         level of indirection to members `objname', `errstring', `malloced'.
304         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
305         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
306         it as the __longjmp argument (just pass 1 instead).
307         (_dl_catch_error): Initialize C with argument pointers and address of
308         volatile local ERRCODE rather than copying values out of C at return.
309
310 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
311
312         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
313         * math/auto-libm-test-out: Regenerated.
314         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
315         (hypot_test_data): Likewise.
316         (pow_test_data): Likewise.
317         (pow_tonearest_test_data): Likewise.
318         * math/gen-auto-libm-tests.c (func_calc_method): Add value
319         mpfr_ff_f.
320         (func_calc_desc): Add mpfr_ff_f union field.
321         (FUNC_mpfr_ff_f): New macro.
322         (test_functions): Add atan2, hypot and pow.
323         (special_fill_min): New function.
324         (special_fill_minus_min): Likewise.
325         (special_fill_min_subnorm): Likewise.
326         (special_fill_minus_min_subnorm): Likewise.
327         (special_real_inputs): Add min, -min, min_subnorm and
328         -min_subnorm.
329         (calc_generic_results): Handle mpfr_ff_f.
330         * sysdeps/i386/fpu/libm-test-ulps: Update.
331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
332
333 2013-12-16  Will Newton  <will.newton@linaro.org>
334
335         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
336         (Aligned Memory Blocks): Add documentation for aligned_alloc
337         and suggest it as an alternative to posix_memalign.
338         (Hooks for Malloc): Document __memalign_hook is also called
339         for aligned_alloc.  (Summary of Malloc): Add summary for
340         aligned alloc.  Document __memalign_hook is also called
341         for aligned_alloc.
342
343 2013-12-16  Will Newton  <will.newton@linaro.org>
344
345         * manual/memory.texi (Malloc Examples): Clarify default
346         alignment documentation.  Suggest posix_memalign rather
347         than memalign or valloc.
348         (Aligned Memory Blocks): Remove suggestion to use memalign
349         or valloc.  Remove obsolete comment about BSD.
350         Document memalign errno values and mark the function obsolete.
351         Document posix_memalign returned error codes.  Mark valloc
352         as obsolete.  (Hooks for Malloc): __memalign_hook is also
353         called for posix_memalign and valloc.
354         (Summary of Malloc): Add posix_memalign to function summary.
355         __memalign_hook is also called for posix_memalign and valloc.
356
357 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
358
359         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
360         TAYLOR_SIN.
361         (__sin): Adjust.
362         (__cos): Likewise.
363         (sloww): Use mynumber union.  Expand ternary operator into
364         if-else statements.
365         (cslow): use mynumber union.
366
367 2013-12-16  Allan McRae  <allan@archlinux.org>
368
369         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
370         * configure: Regenerated.
371
372         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
373
374         [BZ #14120]
375         * configure.ac: Added --enable-maintainer-mode. Check for
376         autoconf when enabled.
377         * configure: Regenerated.
378
379         * nscd/nscd.service: New file.
380         * nscd/nscd.tmpfiles: New file.
381
382 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
383
384         [BZ #12100]
385         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
386         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
387         * sysdeps/x86_64/multiarch/strstr.c: ... here.
388         (strstr): Add __strstr_sse2_unaligned ifunc.
389         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
390         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
391         (strcasestr): Remove __strcasestr_sse42 ifunc.
392         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
393         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
394         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
395
396 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
397
398         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
399         * sysdeps/sh/bits/fenv.h: ... here.
400         * sysdeps/sh/sh4/fpu/bits: Remove directory.
401
402 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
403
404         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
405
406 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
407
408         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
409         hypotf multiarch implementations.
410         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
411         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
412         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
413         multiarch hypot for PPC64.
414         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
415         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
416         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
417         multiarch hypotf for PPC64.
418
419 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
420
421         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
422         modff multiarch implementations.
423         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
424         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
425         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
426         multiarch modf for PPC64.
427         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
429         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
430         multiarch modff for PPC64.
431
432 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
433
434         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
435         and logl multiarch implementations.
436         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
437         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
438         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
439         multiarch logb for PPC64.
440         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
441         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
443         multiarch logb for PPC64.
444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
445         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
446         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
447         multiarch logb for PPC64.
448
449 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
450
451         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
452         isinff multiarch implementation.
453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
454         file.
455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
456         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
457         multiarch isinf for PPC64.
458         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
459         file.
460         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
461         multiarch isinff for PPC64.
462
463 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
464
465         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
466         finitef multiarch implementation.
467         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
468         file.
469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
470         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
471         multiarch finite for PPC64.
472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
473         file.
474         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
475         multiarch finitef for PPC64.
476
477 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
478
479         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
480         lrint multiarch implementation.
481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
482         file.
483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
485         multiarch llrint for PPC64.
486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
487         multiarch lrint for PPC64.
488
489 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
490
491         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
492         copysignf multiarch implementation.
493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
494         file.
495         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
496         file.
497         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
498         multiarch copysign for PPC64.
499         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
500         multiarch copysignf for PPC64.
501
502 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
503
504         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
505         multiarch implementation.
506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
507         file.
508         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
509         file.
510         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
511         file.
512         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
513         file.
514         multiarch llround for PPC64.
515         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
516         multiarch trunc for PPC64.
517         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
518         multiarch truncf for PPC64.
519
520 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
521
522         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
523         multiarch implementation.
524         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
525         file.
526         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
527         file.
528         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
529         file.
530         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
531         file.
532         multiarch llround for PPC64.
533         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
534         multiarch round for PPC64.
535         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
536         multiarch roundf for PPC64.
537
538 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
539
540         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
541         multiarch implementation.
542         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
543         file.
544         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
545         file.
546         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
547         file.
548         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
549         file.
550         multiarch llround for PPC64.
551         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
552         multiarch floor for PPC64.
553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
554         multiarch floorf for PPC64.
555
556 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
557
558         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
559         multiarch implementation.
560         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
561         file.
562         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
563         file.
564         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
565         file.
566         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
567         file.
568         multiarch llround for PPC64.
569         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
570         multiarch ceil for PPC64.
571         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
572         multiarch ceilf for PPC64.
573
574 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
575
576         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
577         multiarch implementation.
578         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
579         file.
580         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
581         file.
582         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
583         file.
584         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
585         multiarch llround for PPC64.
586         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
587         multiarch lround for PPC64.
588
589 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
590
591         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
592         multiarch implementation.
593         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
594         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
595         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
596         file.
597         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
598         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
599         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
600         multiarch isnan for PPC64.
601         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
602         multiarch isnanf for PPC64.
603
604 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
605
606         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
607         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
608         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
609         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
610         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
612
613 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
614
615         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
616         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
617         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
618         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
619
620 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
621
622         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
623         multiarch implementations.
624         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
625         (__libc_ifunc_impl_list): Likewise.
626         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
627         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
628         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
629         multiarch stpcpy for PPC64.
630
631 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
632
633         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
634         multiarch implementations.
635         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
636         (__libc_ifunc_impl_list): Likewise.
637         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
638         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
639         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
640         multiarch strcpy for PPC64.
641
642 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
643
644         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
645         redefine function name.
646         (_wordcopy_fwd_dest_aligned): Likewise.
647         (_wordcopy_bwd_aligned): Likewise.
648         (_wordcopy_bwd_dest_aligned): Likewise.
649         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
650         multiarch implementations.
651         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
652         (__libc_ifunc_impl_list): Likewise.
653         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
654         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
655         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
656         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
657         multiarch wcscpy for PPC64.
658
659 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
660
661         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
662         multiarch implementations.
663         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
664         (__libc_ifunc_impl_list): Likewise.
665         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
666         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
667         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
668         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
669         multiarch wcscpy for PPC64.
670
671 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
672
673         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
674         multiarch implementations.
675         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
676         (__libc_ifunc_impl_list): Likewise.
677         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
678         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
679         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
680         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
681         multiarch wcsrchr for PPC64.
682
683 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
684
685         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
686         multiarch implementations.
687         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
688         (__libc_ifunc_impl_list): Likewise.
689         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
690         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
691         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
692         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
693         multiarch wcschr for PPC64.
694
695 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
696
697         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
698         multiarch implementations.
699         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
700         (__libc_ifunc_impl_list): Likewise.
701         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
702         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
703         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
704         multiarch strchrnul for PPC64.
705
706 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
707
708         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
709         implementations.
710         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
711         (__libc_ifunc_impl_list): Likewise.
712         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
713         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
714         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
715         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
716         strchr for PPC64.
717
718 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
719
720         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
721         implementations.
722         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
723         (__libc_ifunc_impl_list): Likewise.
724         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
725         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
726         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
727         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
728         strncmp for PPC64.
729
730 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
731
732         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
733         multiarch implementations.
734         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
735         (__libc_ifunc_impl_list): Likewise.
736         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
737         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
738         strncasecmp for PPC64.
739         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
740         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
741         multiarch strncasecmp_l for PPC64.
742
743 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
744
745         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
746         multiarch implementations.
747         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
748         (__libc_ifunc_impl_list): Likewise.
749         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
750         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
751         multiarch strcasecmp for PPC64.
752         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
753         file.
754         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
755         multiarch strcasecmp_l for PPC64.
756
757 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
758
759         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
760         implementations.
761         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
762         (__libc_ifunc_impl_list): Likewise.
763         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
764         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
765         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
766         strnlen for PPC64.
767
768 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
769
770         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
771         implementations.
772         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
773         (__libc_ifunc_impl_list): Likewise.
774         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
775         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
776         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
777         strlen for PPC64.
778
779 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
780
781         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
782         implementations.
783         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
784         (__libc_ifunc_impl_list): Likewise.
785         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
786         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
787         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
788         rawmemrchr for PPC64.
789
790 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
791
792         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
793         implementation.
794         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
795         (__libc_ifunc_impl_list): Likewise.
796         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
797         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
798         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
799         memrchr for PPC64.
800
801 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
802
803         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
804         implementation.
805         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
806         (__libc_ifunc_impl_list): Likewise.
807         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
808         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
809         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
810         memchr for PPC64.
811
812 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
813
814         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
815         implementation.
816         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
817         (__libc_ifunc_impl_list): Likewise.
818         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
819         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
820         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
821         mempcpy for PPC64.
822
823 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
824
825         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
826         avoid cretion of __bzero symbol.
827         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
828         Likewise.
829         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
830         Likewise.
831         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
832         Likewise.
833         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
834         multiarch implementations.
835         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
836         (__libc_ifunc_impl_list): Likewise.
837         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
838         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
839         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
840         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
841         bzero for PPC32.
842         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
843         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
844         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
845         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
846         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
847         memset for PPC64.
848         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
849
850 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
851
852         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
853         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
854         implementations.
855         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
856         (__libc_ifunc_impl_list): Likewise.
857         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
858         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
859         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
860         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
861         memcmp for PPC64.
862
863 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
864
865         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
866         multiarch for POWER/PPC64.
867         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
868         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
869         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
870         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
871         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
872         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
873         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
874         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
875         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
876         memcpy for PPC64.
877
878 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
879
880         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
881         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
882         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
883         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
884         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
885         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
886         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
887         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
888         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
889         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
890         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
891         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
892         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
893         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
894         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
902
903 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
904
905         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
906
907 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
908
909         * benchtests/Makefile (bench): Add exp2 and log2.
910         (LDLIBS-bench-exp2): Add -lm.
911         (LDLIBS-bench-log2): Likewise.
912         * benchtests/exp2-inputs: New inputs file.
913         * benchtests/log2-inputs: New inputs file.
914         * benchtests/log-inputs: Add new inputs.
915         * benchtests/tan-inputs: Likewise.
916
917 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
918
919         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
920         definition...
921         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2,
922         csloww1, csloww2): ... from here.
923
924         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
925         instead of structures.
926         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
927         (POLYNOMIAL): Likewise.
928         (TAYLOR_SLOW): Likewise.
929         (__sin): Likewise.
930         (__cos): Likewise.
931         (slow1): Likewise.
932         (slow2): Likewise.
933         (sloww): Likewise.
934         (sloww1); Likewise.
935         (sloww2): Likewise.
936         (bsloww1): Likewise.
937         (bsloww2): Likewise.
938         (cslow2): Likewise.
939         (csloww): Likewise.
940         (csloww1): Likewise.
941         (csloww2): Likewise.
942
943 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
944
945         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
946         (__malloc_assert, __libc_realloc, __libc_calloc,
947         _int_realloc): Expand MALLOC_COPY and MALLOC_ZERO to
948         memcpy and memset.
949         * malloc/hooks.c (realloc_check): Likewise.
950
951 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
952
953         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
954         * malloc/arena.c: Remove PER_THREAD conditional.
955         [!PER_THREAD]: Remove code.
956         (ptmalloc_unlock_all2): Likewise.
957         (ptmalloc_init): Likewise.
958         (_int_new_arena): Likewise.
959         (arena_get2): Likewise.
960         * malloc/hooks.c (__malloc_get_state): Likewise.
961         (__malloc_set_state): Likewise.
962         * malloc/malloc.c: Likewise.
963         (struct malloc_state): Likewise.
964         (struct malloc_par): Likewise.
965         (__libc_realloc): Likewise.
966         (__libc_mallopt): Likewise.
967
968 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
969
970         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
971
972 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
973
974         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
975         macro to a function.  Check for zero perturb_byte.
976         (_int_malloc, _int_free): Remove zero perturb_byte checks.
977
978 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
979
980         * malloc/malloc.c: (force_reg): Remove.
981         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
982         _mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
983         force_reg by atomic_forced_read.
984         * malloc/arena.c (ptmalloc_init): Likewise.
985         * malloc/hooks.c (top_check): Likewise.
986
987 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
988
989         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
990
991 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
992
993         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
994
995 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
996
997         * math/auto-libm-test-in: Add tests of lgamma.
998         * math/auto-libm-test-out: Regenerated.
999         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
1000         (M_LOG_2_SQRT_PIl): Likewise.
1001         (lgamma_test_data): Use AUTO_TESTS_f_f1.
1002         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1003         mpfr_f_f1.
1004         (func_calc_desc): Add mpfr_f_f1 union field.
1005         (ARGS1): New macro.
1006         (ARGS2): Likewise.
1007         (ARGS3): Likewise.
1008         (ARGS4): Likewise.
1009         (RET1): Likewise.
1010         (RET2): Likewise.
1011         (CALC): Likewise.
1012         (FUNC): Likewise.
1013         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
1014         (test_functions): Add lgamma.
1015         (calc_generic_results): Handle mpfr_f_f1.
1016         * sysdeps/i386/fpu/libm-test-ulps: Update.
1017         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1018
1019 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1020
1021         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
1022         __mpn_add_n for PowerPC64/POWER7.
1023         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
1024         __mpn_sub_n for PowerPC64/POWER7.
1025
1026 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1027
1028         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
1029         __mpn_addmul_1 for PowerPC64.
1030         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
1031         __mpn_submul_1 for PowerPC64.
1032         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
1033         for PowerPC64.
1034         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
1035         for PowerPC64.
1036
1037 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
1038
1039         [BZ #15089]
1040         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
1041
1042 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1043
1044         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
1045
1046 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1047
1048         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
1049         add multiarch folders.
1050         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
1051         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
1052         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
1053         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
1054         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
1055         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
1056         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
1057         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
1058         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
1059         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
1060         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
1061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
1062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
1063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
1064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
1065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
1066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
1067
1068 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1069
1070         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
1071         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
1072         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
1073         New file.
1074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
1075         New file.
1076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
1077         multiarch __ieee754_hypot for PowerPC32.
1078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
1079         New file.
1080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
1081         New file.
1082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
1083         multiarch __ieee754_hypotf for PowerPC32.
1084
1085 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1086
1087         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
1088         long_double_symbol only if __logbl is defined.
1089         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
1090         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
1091         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
1092         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
1093         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
1094         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
1095         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
1096         path for implementation.
1097         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
1098         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
1099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
1100         logb, and logbl multiarch implementations for PowerPC32.
1101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
1102         file.
1103         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
1104         file.
1105         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
1106         multiarch logb for PowerPC32.
1107         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
1108         file.
1109         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
1110         file.
1111         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
1112         multiarch logbf for PowerPC32.
1113         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
1114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
1115         file.
1116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
1117         multiarch logbl implementation for PowerPC32.
1118
1119 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1120
1121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
1122         and modff multiarch implementations.
1123         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
1124         New file.
1125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
1126         New file.
1127         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
1128         multiarch modf for PowerPC32.
1129         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
1130         New file.
1131         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
1132         New file.
1133         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
1134         multiarch modff for PowerPC32.
1135
1136 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1137
1138         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
1139         and lrintf multiarch implementations.
1140         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
1141         New file.
1142         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
1143         New file.
1144         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
1145         multiarch lrint for PowerPC32.
1146         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
1147         file: multiarch lrintf for PowerPC32.
1148
1149 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1150
1151         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
1152         and lroundf multiarch implementations.
1153         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
1154         New file.
1155         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
1156         New file.
1157         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
1158         New file.
1159         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
1160         multiarch lround for PowerPC32.
1161         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
1162         file: multiarch lroundf for PowerPC32.
1163
1164 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1165
1166         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
1167         copysign and copysignf multiarch implementations.
1168         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
1169         New file.
1170         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
1171         New file.
1172         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
1173         file: multiarch copysign for PowerPC32.
1174         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
1175         file: multiarch copysignf for PowerPC32.
1176
1177 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1178
1179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
1180         and truncf multiarch implementations.
1181         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
1182         New file.
1183         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
1184         file.
1185         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
1186         multiarch trunc for PowerPC32.
1187         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
1188         New file.
1189         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
1190         New file.
1191         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
1192         multiarch truncf for PowerPC32.
1193
1194 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1195
1196         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
1197         and roundf multiarch implementations.
1198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
1199         New file.
1200         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
1201         file.
1202         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
1203         multiarch round for PowerPC32.
1204         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
1205         New file.
1206         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
1207         New file.
1208         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
1209         multiarch roundf for PowerPC32.
1210
1211 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1212
1213         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
1214         and floorf multiarch implementations.
1215         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1216         New file.
1217         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
1218         file.
1219         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
1220         multiarch floor for PowerPC32.
1221         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1222         New file.
1223         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1224         New file.
1225         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
1226         multiarch floorf for PowerPC32.
1227
1228 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1229
1230         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
1231         and ceilf multiarch implementations.
1232         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1233         New file.
1234         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
1235         file.
1236         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
1237         multiarch ceil for PowerPC32.
1238         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1239         New file.
1240         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
1241         file.
1242         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
1243         multiarch ceilf for PowerPC32.
1244
1245 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1246
1247         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
1248         is defined.
1249         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
1250         FINITEF is defined.
1251         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
1252         and finitef multiarch implementations.
1253         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
1254         New file.
1255         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
1256         file.
1257         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
1258         multiarch finite for PowerPC32.
1259         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
1260         New file.
1261         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
1262         file: multiarch finitef for PowerPC32.
1263
1264 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1265
1266         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
1267         and isinff multiarch implementations.
1268         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
1269         file.
1270         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
1271         file.
1272         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
1273         multiarch isinf for PowerPC32.
1274         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
1275         New file.
1276         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
1277         multiarch isinff for PowerPC32.
1278
1279 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1280
1281         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
1282         alias when __isnan is defined.
1283         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
1284         and isnanf multiarch implementations.
1285         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
1286         file.
1287         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
1288         file.
1289         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
1290         file.
1291         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
1292         file.
1293         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
1294         multiarch isnan for PowerPC32.
1295         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
1296         New file.
1297         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
1298         New file.
1299         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
1300         multiarch isnanf for PowerPC32.
1301
1302 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1303
1304         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
1305         and sqrtf multiarch implementations.
1306         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
1307         file.
1308         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
1309         file.
1310         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
1311         multiarch sqrt for PowerPC32.
1312         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
1313         file.
1314         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
1315         file.
1316         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
1317         multiarch sqrtf for PowerPC32.
1318
1319 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1320
1321         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
1322         and llroundf multiarch implementations.
1323         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
1324         New file.
1325         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
1326         New file.
1327         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
1328         New file.
1329         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
1330         file: multiarch llround for PowerPC32.
1331         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
1332         file: multiarch llroundf for PowerPC32.
1333
1334 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1335
1336         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
1337         multiarch PowerPC32 fpu implementations.
1338         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
1339         New file.
1340         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
1341         New file.
1342         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
1343         multiarch llrint for PowerPC32.
1344         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
1345         New file.
1346         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
1347         New file.
1348         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
1349         file.
1350
1351 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1352
1353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
1354
1355 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1356
1357         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
1358         file.
1359         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
1360         file.
1361         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
1362         file.
1363         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
1364         multiarch wordcopy for PPC32.
1365         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
1366         wordcopy objects.
1367         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1368         (__libc_ifunc_impl_list): Likewise.
1369         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
1370         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
1371         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
1372         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
1373         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
1374         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
1375
1376 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1377
1378         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
1379         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
1380         file.
1381         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
1382         file.
1383         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
1384         file.
1385         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
1386         multiarch wcscpy for PPC32.
1387         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
1388         multiarch objects.
1389         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1390         (__libc_ifunc_impl_list): Likewise.
1391         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
1392         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
1393         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
1394         sysdeps/powerpc/power6/wcscpy.c.
1395
1396 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1397
1398         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
1399         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
1400         file.
1401         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
1402         file.
1403         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
1404         file.
1405         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
1406         multiarch wcsrchr for PPC32.
1407         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
1408         multiarch objects.
1409         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1410         (__libc_ifunc_impl_list): Likewise.
1411         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
1412         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
1413         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
1414         sysdeps/powerpc/power6/wcsrchr.c.
1415
1416 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1417
1418         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
1419         file.
1420         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
1421         file.
1422         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
1423         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
1424         multiarch wcschr for PPc32.
1425         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
1426         multiarch objects.
1427         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1428         (__libc_ifunc_impl_list): Likewise.
1429         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
1430         * sysdeps/powerpc/power6/wcschr.c: ... to here.
1431         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
1432         sysdeps/powerpc/power6/wcschr.c.
1433
1434 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1435
1436         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
1437         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
1438         file.
1439         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
1440         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
1441         file: multiarch strchr for PPC32.
1442         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
1443         multiarch objects.
1444         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1445         (__libc_ifunc_impl_list): Likewise.
1446
1447 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1448
1449         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
1450         name.
1451         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
1452         file.
1453         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
1454         file.
1455         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
1456         multiarch strchrnul for PPC32.
1457         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
1458         multiarch objects.
1459         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1460         (__libc_ifunc_impl_list): Likewise.
1461
1462 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1463
1464         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
1465         file.
1466         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
1467         multiarch strncasecmp for PPC32.
1468         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
1469         file.
1470         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
1471         multiarch strncasecmp_l for PPC32.
1472         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
1473         strncasecmp multiarch objects.
1474         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1475         (__libc_ifunc_impl_list): Likewise.
1476
1477 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1478
1479         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
1480         file.
1481         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
1482         multiarch strncasecmp for PPC32.
1483         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
1484         New file.
1485         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
1486         multiarch strcasecmp_l for PPC32.
1487         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
1488         multiarch objects.
1489         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1490         (__libc_ifunc_impl_list): Likewise.
1491
1492 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1493
1494         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
1495         file.
1496         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
1497         file.
1498         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
1499         multiarch strncmp for PPC32.
1500         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
1501         multiarch objects.
1502         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1503         (__libc_ifunc_impl_list): Likewise.
1504
1505 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1506
1507         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
1508         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
1509         file.
1510         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
1511         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
1512         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
1513         multiarch objects.
1514         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1515         (__libc_ifunc_impl_list): Likewise.
1516
1517 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1518
1519         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
1520         file.
1521         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
1522         file.
1523         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
1524         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
1525         multiarch objects.
1526         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1527         (__libc_ifunc_impl_list): Likewise.
1528
1529 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1530
1531         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
1532         file.
1533         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
1534         file.
1535         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
1536         multiarch rawmemchr for PPC32.
1537         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
1538         multiarch objects.
1539         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1540         (__libc_ifunc_impl_list): Likewise.
1541
1542 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1543
1544         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
1545         file.
1546         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
1547         file.
1548         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
1549         file: memrchr multiarch for PPC32.
1550         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
1551         multiarch objects.
1552         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1553         (__libc_ifunc_impl_list): Likewise.
1554
1555 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1556
1557         * string/memchr.c (__memchr): Using macro to redefine symbol name.
1558         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
1559         file.
1560         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
1561         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
1562         multiarch memchr for PPC32.
1563         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
1564         multiarch objects.
1565         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1566         (__libc_ifunc_impl_list): Likewise.
1567
1568 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1569
1570         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
1571         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
1572         file.
1573         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
1574         file.
1575         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
1576         file: multiarch mempcpy for PPC32.
1577         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
1578         multiarch objects.
1579         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1580         (__libc_ifunc_impl_list): Likewise.
1581
1582 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1583
1584         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
1585         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
1586         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
1587         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
1588         multiarch bzero for PPC32.
1589         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
1590         file.
1591         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
1592         file.
1593         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
1594         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
1595         file: multiarch memset for PPC32.
1596         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
1597         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
1598         memset multiarch objects.
1599         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1600         (__libc_ifunc_impl_list): Likewise.
1601
1602 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1603
1604         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
1605         file.
1606         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
1607         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
1608         memcmp for PPC32.
1609         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
1610         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
1611         multiarch objects.
1612         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1613         (__libc_ifunc_impl_list): Likewise.
1614
1615 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1616
1617         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
1618         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
1619         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
1620         file.
1621         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
1622         file.
1623         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
1624         file.
1625         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
1626         multiarch memcpy for PPC32.
1627         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
1628         multiarch objects.
1629         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1630         (__libc_ifunc_impl_list): Likewise.
1631
1632 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1633
1634         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
1635         support multiarch for POWER/PPC32.
1636         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1637         Likewise.
1638         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
1639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
1640         Implies file to make multiarch folder appers before the fpu and
1641         default folder for power4 configuration.
1642
1643 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
1644
1645         * scripts/bench.pl: Append volatile keyword to type.
1646
1647 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1648
1649         * sysdeps/sh/sotruss-lib.c: New file.
1650         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
1651
1652 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1653
1654         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1655
1656 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
1657
1658         [BZ #6810]
1659         * math/w_tgamma.c: Include <errno.h>.
1660         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
1661         * math/w_tgammaf.c: Include <errno.h>.
1662         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
1663         * math/w_tgammal.c: Include <errno.h>.
1664         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
1665         * math/auto-libm-test-in: Do not allow missing errno on tgamma
1666         underflow.  Add more tgamma tests.
1667         * math/auto-libm-test-out: Regenerated.
1668         * sysdeps/i386/fpu/libm-test-ulps: Update.
1669         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1670
1671         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
1672         sin, sinh, tan, tanh, tgamma, y0 and y1.
1673         * math/auto-libm-test-out: Regenerated.
1674         * math/libm-test.inc (TEST_COND_x86_64): New macro.
1675         (TEST_COND_x86): Likewise.
1676         (M_E2l): Remove macro.
1677         (M_E3l): Likewise.
1678         (M_2_SQRT_PIl): Likewise.
1679         (M_SQRT_PIl): Likewise.
1680         (M_1_DIV_El): Likewise.
1681         (log_test_data): Use AUTO_TESTS_f_f.
1682         (log10_test_data): Likewise.
1683         (log1p_test_data): Likewise.
1684         (log2_test_data): Likewise.
1685         (sin_test_data): Likewise.
1686         (sin_tonearest_test_data): Likewise.
1687         (sin_towardzero_test_data): Likewise.
1688         (sin_downward_test_data): Likewise.
1689         (sin_upward_test_data): Likewise.
1690         (sinh_test_data): Likewise.
1691         (sinh_tonearest_test_data): Likewise.
1692         (sinh_towardzero_test_data): Likewise.
1693         (sinh_downward_test_data): Likewise.
1694         (sinh_upward_test_data): Likewise.
1695         (tan_test_data): Likewise.
1696         (tan_tonearest_test_data): Likewise.
1697         (tan_towardzero_test_data): Likewise.
1698         (tan_downward_test_data): Likewise.
1699         (tan_upward_test_data): Likewise.
1700         (tanh_test_data): Likewise.
1701         (tgamma_test_data): Likewise.
1702         (y0_test_data): Likewise.
1703         (y1_test_data): Likewise.
1704         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
1705         (special_real_inputs): Add pi/4.
1706         * sysdeps/i386/fpu/libm-test-ulps: Update.
1707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1708
1709 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1710
1711         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
1712         "longjmp_target" static probes.
1713         (__longjmp): Rename to __longjmp_symbol.
1714         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1715         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
1716         on which longjmp to generate.
1717         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
1718         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
1719         probe.
1720         (__sigsetjmp): Rename to __sigsetjmp_symbol.
1721         (__sigjmp_save): Rename to __sigjmp_save_symbol.
1722         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
1723         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
1724         and __sigjmp_save_symbol based on which sigsetjmp to generated.
1725         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
1726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
1727         __longjmp_symbol based on which __longjmp to generate.
1728         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
1729         probe.
1730         (setjmp): Rename to setjmp_symbol.
1731         (__sigsetjmp): Rename to __sigsetjmp_symbol.
1732         (_setjmp): Rename to _setjmp_symbol.
1733         (__sigsetjmp): Rename to __sigsetjmp_symbol.
1734         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
1735         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
1736         which setjmp to generate.
1737         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
1738         "longjmp_target" static probes.
1739
1740 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1741
1742         * benchtests/README: Add note about output arguments.
1743         * benchtests/bench-sincos.c: Remove file.
1744         * benchtests/sincos-inputs: New file.
1745         * scripts/bench.pl: Identify output arguments and define
1746         static variables for them.
1747
1748         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
1749
1750         [BZ #15941]
1751         * Makefile (INSTALL): Add install-plain.texi as the primary
1752         dependency.
1753         * manual/install-plain.texi: New file.
1754         * manual/install.texi: Include node directive only for
1755         non-plaintext output.
1756
1757 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1758
1759         * stdlib/longlong.h: Update from GCC.
1760
1761         [BZ #6807]
1762         [BZ #15901]
1763         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
1764         * math/w_j0f.c (y0f): Likewise.
1765         * math/w_j0l.c (__y0l): Likewise.
1766         * math/w_j1.c (y1): Likewise.
1767         * math/w_j1f.c (y1f): Likewise.
1768         * math/w_j1l.c (__y1l): Likewise
1769         * math/w_jn.c (yn): Likewise.
1770         * math/w_jnf.c (ynf): Likewise.
1771         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
1772         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
1773         value for Bessel function domain errors outside _SVID_ mode.
1774         Adjust sign of return value for yn (negative integer, 0).
1775         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
1776         by zero in return for negative x and set sign appropriately for
1777         negative n.
1778         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
1779         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
1780         * math/libm-test.inc (y0_test_data): Add more tests and adjust
1781         expectations in error cases.
1782         (y1_test_data): Likewise.
1783         (yn_test_data): Likewise.
1784         * sysdeps/i386/fpu/libm-test-ulps: Update.
1785         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1786
1787 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1788
1789         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
1790         "64" to "64-v1".  Add "64-v2".
1791         (abi-64-options): Rename to ...
1792         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
1793         (abi-64-condition): Rename to ...
1794         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
1795         (abi-64-ld-soname): Rename to ...
1796         (abi-64-v1-ld-soname): ... this.
1797         (abi-64-v2-options): Define.
1798         (abi-64-v2-condition): Likewise.
1799         (abi-64-v2-ld-soname): Likewise.
1800         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
1801         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
1802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
1803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
1804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
1805
1806 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1807             Alan Modra  <amodra@gmail.com>
1808
1809         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
1810         New versions for use with the ELFv2 ABI.
1811         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
1812         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
1813         declaration.
1814         (struct La_ppc64v2_retval): Likewise.
1815         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
1816         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
1817         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
1818         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
1819         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
1820         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
1821         Do not save or restore CR.
1822         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
1823         (_dl_profile_resolve): Do no save or restore CR.  Support extended
1824         return values for ELFv2 ABI.  Fix location of FPR return registers.
1825         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
1826         updated values for _CALL_ELF == 2.
1827         (La_regs, La_retval, int_retval): Likewise.
1828
1829 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1830
1831         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
1832         (FRAME_MIN_SIZE_PARM): Likewise.
1833         (FRAME_BACKCHAIN): Likewise.
1834         (FRAME_CR_SAVE): Likewise.
1835         (FRAME_LR_SAVE): Likewise.
1836         (FRAME_TOC_SAVE): Likewise.
1837         (FRAME_PARM_SAVE): Likewise.
1838         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
1839         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
1840         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
1841         (call_mcount_parm_offset): New macro.
1842         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
1843         (PROF): Use symbolic stack frame offsets.
1844         (TAIL_CALL_SYSCALL_ERROR): Likewise.
1845         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
1846         Redefine in terms of FRAME_MIN_SIZE.
1847         (_dl_runtime_resolve): Use symbolic stack frame offsets.
1848         (_dl_profile_resolve): Likewise.  Update comment.
1849         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
1850         symbols stack frame offsets.
1851         (__sigsetjmp): Likewise.
1852         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
1853         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
1854         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
1855         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
1856
1857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
1858         (FRAME_BACKCHAIN): Remove.
1859         (FRAME_CR_SAVE): Likewise.
1860         (FRAME_LR_SAVE): Likewise.
1861         (FRAME_COMPILER_DW): Likewise.
1862         (FRAME_LINKER_DW): Likewise.
1863         (FRAME_TOC_SAVE): Likewise.
1864         (FRAME_PARM_SAVE): Likewise.
1865         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
1866         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
1867         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
1868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
1869         (CHECK_SP): Use symbolic stack frame offsets.
1870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
1871         zone" instead of caller's parameter save area for temp storage.
1872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
1873         Likewise.  Also, use symbolic stack frame offsets.
1874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
1875         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
1876         our own stack frame instead of the caller's.
1877         (__socket): Use symbolic stack frame offsets.
1878
1879 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1880             Alan Modra  <amodra@gmail.com>
1881
1882         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
1883         Define.
1884         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
1885         PPC64_LOCAL_ENTRY_OFFSET): Define.
1886         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
1887         New function.
1888         (elf_machine_fixup_plt): Call it.
1889         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
1890         reloc arguments.
1891         (elf_machine_rela): Update call to elf_machine_plt_conflict.
1892         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
1893         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
1894         r2 before calling target.
1895
1896 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1897             Alan Modra  <amodra@gmail.com>
1898
1899         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
1900         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
1901         versions of macros to support ELFv2 ABI.
1902         (LOCALENTRY): New macro.
1903         (ENTRY, EALIGN): Use it.
1904         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
1905         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
1906         fall through into ENTRY entry point.
1907         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
1908         Only define if _CALL_ELF != 2.
1909
1910         (elf_machine_matches_host): Verify ABI version matches.
1911         (RTLD_START): Use LOCALENTRY.
1912         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
1913         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
1914         (PLT_ENTRY_WORDS): New macro.
1915         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
1916         (elf_machine_runtime_setup): Support ELFv2 ABI.
1917         (elf_machine_fixup_plt): Likewise.
1918         (elf_machine_plt_conflict): Likewise.
1919         (resolve_ifunc): Likewise.
1920         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
1921         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
1922         Likewise.
1923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
1924         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
1925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1926         (makecontext): Support ELFv2 ABI.
1927         * elf/elf.h (EF_PPC64_ABI): Define.
1928
1929 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1930
1931         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
1932         New assembler macro.
1933         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
1934         [ASSEMBLER] (ENTRY): ... but instead here ...
1935         [ASSEMBLER] (EALIGN): ... and here.
1936         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
1937         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
1938         [!ASSEMBLER] (ENTRY_2): Use it.
1939         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
1940         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
1941         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
1942         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
1943         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
1944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
1945         Use PPC64_LOAD_FUNCPTR.
1946
1947 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1948
1949         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
1950
1951 2013-12-04  Alan Modra  <amodra@gmail.com>
1952
1953         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
1954         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
1955         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
1956         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
1957
1958         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
1959         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
1960         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
1961         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
1962         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
1963         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
1964
1965 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1966
1967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1968         (__makecontext): Fix incorrect CFI when backtracing out of
1969         context created via makecontext.
1970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
1971         (__setcontext): Fix incorrect CFI during switch to new context.
1972         (__novec_setcontext): Likewise.
1973
1974 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
1975
1976         [BZ #4772]
1977         * time/strptime_l.c (__strptime_internal): Allow modifiers
1978         in strptime.
1979         * time/tst-strptime.c (day_tests): Add testcase.
1980
1981
1982 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1983
1984         * scripts/bench.pl: Skip over blank lines.
1985
1986 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1987
1988         [BZ #926]
1989         * manual/time.texi (Calendar Time): Clarify what timezone functions
1990         use.
1991
1992 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1993
1994         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1995
1996 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
1997
1998         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
1999         implementation.
2000         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
2001         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
2002         * debug/memset_chk.c (__memset_chk): Likewise.
2003         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
2004         * debug/strncpy_chk.c: Likewise.
2005
2006 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2007
2008         [BZ #15268]
2009         [BZ #15425]
2010         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
2011         (__ieee754_exp): For possibly underflowing results, check size of
2012         result and force underflow exception if required.
2013         * math/auto-libm-test-in: Add more tests of exp.
2014         * math/auto-libm-test-out: Regenerated.
2015         * sysdeps/i386/fpu/libm-test-ulps: Update.
2016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2017
2018         [BZ #16283]
2019         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
2020         * math/w_exp2f.c (__exp2f): Likewise.
2021         * math/w_exp2l.c (__exp2l): Likewise.
2022         * math/auto-libm-test-in: Do not allow missing errno on exp2
2023         underflow.
2024         * math/auto-libm-test-out: Regenerated.
2025
2026 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
2027
2028         [BZ #16274]
2029         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
2030         handle filename validation.
2031         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
2032         (do_open): Delete.
2033
2034 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2035
2036         [BZ #6786]
2037         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
2038         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
2039         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
2040         <float.h>.
2041         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
2042         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
2043         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2044         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
2045         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2046         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
2047         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2048         * math/auto-libm-test-in: Don't allow missing errno from erfc.
2049         Add more erfc tests.
2050         * math/auto-libm-test-out: Regenerated.
2051         * sysdeps/i386/fpu/libm-test-ulps: Update.
2052         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2053
2054         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
2055         exp2, expm1, j0 and j1.
2056         * math/auto-libm-test-out: Regenerated.
2057         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
2058         (erfc_test_data): Likewise.
2059         (exp_test_data): Likewise.
2060         (exp_tonearest_test_data): Likewise.
2061         (exp_towardzero_test_data): Likewise.
2062         (exp_downward_test_data): Likewise.
2063         (exp_upward_test_data): Likewise.
2064         (exp10_test_data): Likewise.
2065         (exp2_test_data): Likewise.
2066         (expm1_test_data): Likewise.
2067         (j0_test_data): Likewise.
2068         (j1_test_data): Likewise.
2069         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
2070         (input_flag_type): Add flag_xfail_rounding.
2071         (input_flags): Add xfail-rounding.
2072         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
2073         (output_for_one_input_case): Handle flag_xfail_rounding.
2074         * sysdeps/i386/fpu/libm-test-ulps: Update.
2075         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2076
2077 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
2078
2079         [BZ #16289]
2080         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
2081         division by 0.
2082
2083 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2084
2085         [BZ #16195]
2086         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2087         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
2088         (STAP_PROBE0): New macro.
2089         (STAP_PROBE1): Likewise.
2090         (STAP_PROBE2): Likewise.
2091         (STAP_PROBE3): Likewise.
2092         (STAP_PROBE4): Likewise.
2093
2094 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
2095
2096         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
2097
2098 2013-12-02  Steve Ellcey  <sellcey@mips.com>
2099
2100         * benchtests/Makefile (bench): Add sqrt.
2101         (LDLIBS-bench-sqrt): New.
2102         * benchtests/sqrt-input: New.
2103
2104 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
2105
2106         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
2107         (GAIH_EAI): Likewise.
2108         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
2109         (gaih_inet): Likewise.
2110         (getaddrinfo): Don't use GAIH_EAI.
2111
2112         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
2113         (struct gaih): Remove definition.
2114
2115 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2116
2117         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
2118         Use HERRNOP directly.
2119
2120 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2121
2122         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2123
2124 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
2125
2126         * math/gen-auto-libm-tests.c (test_functions): Add more
2127         single-argument functions.
2128         (special_fill_pi_2): New function.
2129         (special_fill_minus_pi_2): Likewise.
2130         (special_fill_pi_6): Likewise.
2131         (special_fill_minus_pi_6): Likewise.
2132         (special_fill_pi_3): Likewise.
2133         (special_fill_2pi_3): Likewise.
2134         (special_fill_e): Likewise.
2135         (special_fill_1_e): Likewise.
2136         (special_fill_e_minus_1): Likewise.
2137         (special_real_inputs): Add more special inputs.
2138         (output_for_one_input_case): Do not require ERANGE on underflow to
2139         zero if round-to-nearest result does not underflow to zero, unless
2140         exact results required.
2141         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
2142         atan, atanh, cbrt, cos and cosh.
2143         * math/auto-libm-test-out: Regenerated.
2144         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
2145         (acos_tonearest_test_data): Likewise.
2146         (acos_towardzero_test_data): Likewise.
2147         (acos_downward_test_data): Likewise.
2148         (acos_upward_test_data): Likewise.
2149         (acosh_test_data): Likewise.
2150         (asin_test_data): Likewise.
2151         (asin_tonearest_test_data): Likewise.
2152         (asin_towardzero_test_data): Likewise.
2153         (asin_upward_test_data): Likewise.
2154         (asinh_test_data): Likewise.
2155         (atan_test_data): Likewise.
2156         (atanh_test_data): Likewise.
2157         (cbrt_test_data): Likewise.
2158         (cos_test_data): Likewise.
2159         (cos_tonearest_test_data): Likewise.
2160         (cos_towardzero_test_data): Likewise.
2161         (cos_downward_test_data): Likewise.
2162         (cos_upward_test_data): Likewise.
2163         (cosh_test_data): Likewise.
2164         (cosh_tonearest_test_data): Likewise.
2165         (cosh_towardzero_test_data): Likewise.
2166         (cosh_downward_test_data): Likewise.
2167         (cosh_upward_test_data): Likewise.
2168         * sysdeps/i386/fpu/libm-test-ulps: Update.
2169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2170
2171 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
2172
2173         [BZ #6787]
2174         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
2175         * math/w_exp10f.c (__exp10f): Likewise.
2176         * math/w_exp10l.c (__exp10l): Likewise.
2177         * math/libm-test.inc (exp10_test_data): Add more tests and expect
2178         errno settings in existing tests.
2179
2180         [BZ #14032]
2181         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
2182         precision control set to double precision.
2183         * sysdeps/i386/fpu/w_sqrt.c: New file.
2184         * math/auto-libm-test-in: Add more tests.
2185         * math/auto-libm-test-out: Update.
2186
2187         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
2188         (sqrt_test_tonearest): New function.
2189         (sqrt_towardzero_test_data): New variable.
2190         (sqrt_test_towardzero): New function.
2191         (sqrt_downward_test_data): New variable.
2192         (sqrt_test_downward): New function.
2193         (sqrt_upward_test_data): New variable.
2194         (sqrt_test_upward): New function.
2195         (main): Call the new functions.
2196
2197         * math/gen-auto-libm-tests.c: New file.
2198         * math/auto-libm-test-in: Likewise.
2199         * math/auto-libm-test-out: New generated file.
2200         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
2201         variables.
2202         (%beautify): Add generated representations of zero.
2203         (top level): Set $auto_input and call parse_auto_input.
2204         (beautify): Remove trailing "f" from hex float constants.
2205         (parse_args): Handle XFAIL_TEST.
2206         (convert_condition): New function.
2207         (or_value): Likewise.
2208         (or_cond_value): Likewise.
2209         (generate_testfile): Handle AUTO_TESTS_* lines.
2210         (parse_auto_input): New function.
2211         * math/libm-test.inc (XFAIL_TEST): New macro.
2212         (ERRNO_UNCHANGED): Update value.
2213         (ERRNO_EDOM): Likewise.
2214         (ERRNO_ERANGE): Likewise.
2215         (IGNORE_RESULT): Likewise.
2216         (TEST_COND_flt_32): New macro.
2217         (TEST_COND_dbl_64): Likewise.
2218         (TEST_COND_ldbl_96_intel): Likewise.
2219         (TEST_COND_ldbl_96_m68k): Likewise.
2220         (TEST_COND_ldbl_128): Likewise.
2221         (TEST_COND_ldbl_128ibm): Likewise.
2222         (TEST_COND_long32): Likewise.
2223         (TEST_COND_long64): Likewise.
2224         (TEST_COND_before_rounding): Likewise.
2225         (TEST_COND_after_rounding): Likewise.
2226         (enable_test): Handle XFAIL_TEST flag.
2227         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
2228         with finite results.
2229         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
2230         auto-libm-test-out.
2231
2232 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2233             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2234
2235         [BZ #16214]
2236         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
2237         __tls_get_addr_internal instead of __tls_get_offset in order to
2238         avoid GOT pointer dependency.  Make rtld export
2239         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
2240         __tls_get_addr since we are a __tls_get_offset platform.
2241         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
2242         GOT pointer being set up before.
2243         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
2244
2245 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
2246
2247         * manual/math.texi (Errors in Math Functions): Document accuracy
2248         goals.
2249
2250         [BZ #15004]
2251         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
2252         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
2253         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2254         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2255         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2256         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2257         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2258         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2259         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2260         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2261         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2262         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2263         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2264         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2265         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2266         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2267
2268         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
2269         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
2270         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
2271         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
2272         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
2273         Likewise.
2274         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
2275         Likewise.
2276         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
2277         Likewise.
2278         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
2279         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
2280         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
2281         atomic-feupdateenv and flt-rounds.
2282         * sysdeps/powerpc/nofpu/Versions (libc): Add
2283         __atomic_feholdexcept, __atomic_feclearexcept,
2284         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
2285         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
2286         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
2287         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
2288         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
2289         here.
2290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
2291         Update.
2292
2293         * manual/arith.texi (FP Exceptions): Document that exceptions may
2294         not be raised when matherr is used.
2295         (Math Error Reporting): Document overflow in directed rounding
2296         modes.  Document that errno may not be set when finite values are
2297         returned on overflow.  Document intent to set errno on underflow
2298         only for underflow to zero.
2299
2300         [BZ #16271]
2301         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
2302         round-to-nearest then adjust result for other rounding modes.
2303         * include/fenv.h (fegetround): Use libm_hidden_proto.
2304         * math/fegetround.c (fegetround): Use libm_hidden_def.
2305         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
2306         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
2307         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
2308         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
2309         Likewise.
2310         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
2311         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
2312         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
2313         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
2314
2315 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2316
2317         [BZ #16077]
2318         * nss/Versions (libnss_files): Add
2319         _nss_files_gethostbyname3_r.
2320         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
2321         New function.
2322         (HOST_DB_LOOKUP): Remove macro.
2323         (_nss_files_gethostbyname_r): Implement function without the
2324         HOST_DB_LOOKUP macro.
2325         (_nss_files_gethostbyname2_r): Likewise.
2326
2327 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
2328
2329         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
2330
2331 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
2332
2333         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
2334         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
2335         warning.
2336
2337 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2338
2339         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
2340         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
2341         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
2342         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
2343         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
2344         __fe_nomask_env_priv and attribute_hidden.
2345         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
2346         (libc_feupdateenv_test_ppc): Likewise.
2347         (libc_feresetround_ppc): Likewise.
2348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2349         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
2350         compat_symbol macro.
2351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2352         (__fe_nomask_env): Likewise.
2353         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
2354
2355 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2356
2357         * string/Makefile: Remove ifunc tests.
2358         * string/test-string.h: Define TEST_IFUNC.
2359         * string/test-bcopy-ifunc.c: Remove.
2360         * string/test-bzero-ifunc.c: Likewise.
2361         * string/test-memccpy-ifunc.c: Likewise.
2362         * string/test-memchr-ifunc.c: Likewise.
2363         * string/test-memcmp-ifunc.c: Likewise.
2364         * string/test-memcpy-ifunc.c: Likewise.
2365         * string/test-memmem-ifunc.c: Likewise.
2366         * string/test-memmove-ifunc.c: Likewise.
2367         * string/test-mempcpy-ifunc.c: Likewise.
2368         * string/test-memrchr-ifunc.c: Likewise.
2369         * string/test-memset-ifunc.c: Likewise.
2370         * string/test-rawmemchr-ifunc.c: Likewise.
2371         * string/test-stpcpy-ifunc.c: Likewise.
2372         * string/test-stpncpy-ifunc.c: Likewise.
2373         * string/test-strcasecmp-ifunc.c: Likewise.
2374         * string/test-strcasestr-ifunc.c: Likewise.
2375         * string/test-strcat-ifunc.c: Likewise.
2376         * string/test-strchr-ifunc.c: Likewise.
2377         * string/test-strchrnul-ifunc.c: Likewise.
2378         * string/test-strcmp-ifunc.c: Likewise.
2379         * string/test-strcpy-ifunc.c: Likewise.
2380         * string/test-strcspn-ifunc.c: Likewise.
2381         * string/test-strlen-ifunc.c: Likewise.
2382         * string/test-strncasecmp-ifunc.c: Likewise.
2383         * string/test-strncat-ifunc.c: Likewise.
2384         * string/test-strncmp-ifunc.c: Likewise.
2385         * string/test-strncpy-ifunc.c: Likewise.
2386         * string/test-strnlen-ifunc.c: Likewise.
2387         * string/test-strpbrk-ifunc.c: Likewise.
2388         * string/test-strrchr-ifunc.c: Likewise.
2389         * string/test-strspn-ifunc.c: Likewise.
2390         * string/test-strstr-ifunc.c: Likewise.
2391
2392 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2393
2394         * benchtests/Makefile: Remove ifunc tests.
2395         * benchtests/bench-string.h: Define TEST_IFUNC.
2396         * benchtests/bench-bcopy-ifunc.c: Remove.
2397         * benchtests/bench-bzero-ifunc.c: Likewise.
2398         * benchtests/bench-memccpy-ifunc.c: Likewise.
2399         * benchtests/bench-memchr-ifunc.c: Likewise.
2400         * benchtests/bench-memcmp-ifunc.c: Likewise.
2401         * benchtests/bench-memcpy-ifunc.c: Likewise.
2402         * benchtests/bench-memmem-ifunc.c: Likewise.
2403         * benchtests/bench-memmove-ifunc.c: Likewise.
2404         * benchtests/bench-mempcpy-ifunc.c: Likewise.
2405         * benchtests/bench-memrchr-ifunc.c: Likewise.
2406         * benchtests/bench-memset-ifunc.c: Likewise.
2407         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
2408         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
2409         * benchtests/bench-stpcpy-ifunc.c: Likewise.
2410         * benchtests/bench-stpncpy-ifunc.c: Likewise.
2411         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
2412         * benchtests/bench-strcasestr-ifunc.c: Likewise.
2413         * benchtests/bench-strcat-ifunc.c: Likewise.
2414         * benchtests/bench-strchr-ifunc.c: Likewise.
2415         * benchtests/bench-strchrnul-ifunc.c: Likewise.
2416         * benchtests/bench-strcmp-ifunc.c: Likewise.
2417         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
2418         * benchtests/bench-strcpy-ifunc.c: Likewise.
2419         * benchtests/bench-strcspn-ifunc.c: Likewise.
2420         * benchtests/bench-strlen-ifunc.c: Likewise.
2421         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
2422         * benchtests/bench-strncat-ifunc.c: Likewise.
2423         * benchtests/bench-strncmp-ifunc.c: Likewise.
2424         * benchtests/bench-strncpy-ifunc.c: Likewise.
2425         * benchtests/bench-strnlen-ifunc.c: Likewise.
2426         * benchtests/bench-strpbrk-ifunc.c: Likewise.
2427         * benchtests/bench-strrchr-ifunc.c: Likewise.
2428         * benchtests/bench-strsep-ifunc.c: Likewise.
2429         * benchtests/bench-strspn-ifunc.c: Likewise.
2430         * benchtests/bench-strstr-ifunc.c: Likewise.
2431
2432 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2433
2434         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
2435
2436 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2437
2438         * resolv/netdb.h: Use __glibc_reserved instead __unused.
2439         * rt/aio.h: Likewise.
2440         * sysdeps/gnu/bits/utmp.h: Likewise.
2441         * sysdeps/gnu/bits/utmpx.h: Likewise.
2442         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
2443         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
2444         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
2445         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
2446         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2447         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2448         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
2449         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
2450         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
2451         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
2452         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
2453         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2454         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
2456         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
2457         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
2458         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
2459         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
2460         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2461         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2462         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
2463         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
2464         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
2465         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
2466         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2467         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2468         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
2469         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
2470         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
2471         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2472         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2473         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
2474         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
2475         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
2476         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
2477         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
2478         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
2479         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
2480         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
2481         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
2482         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
2483         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
2484
2485 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
2486
2487         [BZ #16245]
2488         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
2489         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
2490
2491 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
2492
2493         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
2494         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
2495         Likewise.
2496
2497 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2498
2499         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2500         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
2501         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
2502         (__fesetround): Remove define.
2503         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
2504         rounding and exceptions handling.
2505         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
2506         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
2507         (__fe_nomask_env): Likewise.
2508         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
2509         __fegetround instead of fegetround.
2510         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
2511         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
2512
2513 2013-11-21  Roland McGrath  <roland@hack.frob.com>
2514
2515         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
2516         it's there.
2517
2518         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
2519
2520 2013-11-21  Meador Inge  <meadori@codesourcery.com>
2521
2522         [BZ #11157]
2523         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
2524         (encrypt_r): Likewise.
2525         * malloc/obstack.h (obstack_free): Likewise.
2526         * posix/unistd.h (encrypt): Likewise.
2527
2528 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
2529
2530         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
2531         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
2532         DL_CALL_DT_FINI() that call the functions directly.
2533         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
2534         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
2535         * elf/dl-fini.c: Likewise.
2536
2537 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
2538
2539         * malloc/hooks.c (memalign_check): Add alignment rounding.
2540         * malloc/malloc.c (_mid_memalign): New function.
2541         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
2542         Implement by calling _mid_memalign.
2543         * manual/probes.texi (Memory Allocation Probes): Remove
2544         memory_valloc_retry and memory_pvalloc_retry.
2545
2546 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2547
2548         * locale/programs/locarchive.c (open_archive): Add const
2549         qualifier to ARCHIVEFNAME and copy default fname to
2550         DEFAULT_FNAME.
2551
2552         [BZ #15601]
2553         * libio/tst-widetext.input: Rename Oriya to Odia.
2554         * locale/iso-639.def: Likewise.
2555
2556         * manual/probes.texi (Mathematical Function Probes): Add
2557         documentation for sin, cos, asin and acos probes.
2558         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
2559         (__sin32): Add slowasin probe.
2560         (__cos32): Add slowacos probe.
2561         (__mpsin): Add slowsin probe.
2562         (__mpcos): Add slowcos probe.
2563
2564 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
2565
2566         [BZ #15483]
2567         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
2568         thread-local __sim_exceptions_thread and global
2569         __sim_exceptions_global.
2570         (__sim_disabled_exceptions): Change to thread-local
2571         __sim_disabled_exceptions_thread and global
2572         __sim_disabled_exceptions_global.
2573         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
2574         and global __sim_round_mode_global.
2575         (__simulate_exceptions): Use thread-local floating-point state and
2576         set global state from it as needed.
2577         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
2578         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
2579         __sim_round_mode_thread.
2580         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
2581         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
2582         and global __sim_exceptions_global.
2583         (__sim_disabled_exceptions): Change to thread-local
2584         __sim_disabled_exceptions_thread and global
2585         __sim_disabled_exceptions_global.
2586         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
2587         and global __sim_round_mode_global.
2588         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
2589         (SIM_SET_GLOBAL): Likewise.
2590         * sysdeps/powerpc/soft-fp/sfp-machine.h
2591         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
2592         __sim_round_mode_thread.
2593         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
2594         __sim_disabled_exceptions_thread.
2595         (__sim_exceptions): Change to __sim_exceptions_thread.
2596         (__sim_disabled_exceptions): Change to
2597         __sim_disabled_exceptions_thread.
2598         (__sim_round_mode): Change to __sim_round_mode_thread.
2599         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
2600         thread-local floating-point state and set global state from it as
2601         needed.
2602         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
2603         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
2604         (__sim_disabled_exceptions): Remove extern declaration.
2605         (feenableexcept): Use thread-local floating-point state and set
2606         global state from it as needed.
2607         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
2608         extern declaration.
2609         (__sim_disabled_exceptions): Likewise.
2610         (__sim_round_mode): Likewise.
2611         (__fegetenv): Use thread-local floating-point state.
2612         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
2613         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
2614         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
2615         floating-point state and set global state from it as needed.
2616         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
2617         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
2618         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
2619         Likewise.
2620         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
2621         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
2622         Likewise.
2623         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
2624         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
2625         Use __sim_round_mode_thread.
2626         * math/test-fenv-tls.c: New file.
2627         * math/Makefile (tests): Add test-fenv-tls.
2628         ($(objpfx)test-fenv-tls): Depend on
2629         $(common-objpfx)nptl/libpthread.so.
2630
2631 2013-11-19  Andreas Schwab  <schwab@suse.de>
2632
2633         * locale/programs/locale.c (show_info): Decode wordarray elements.
2634         * locale/categories.def (LC_MONETARY): Add element for
2635         _NL_MONETARY_CRNCYSTR.
2636         * locale/C-monetary.c (conversion_rate): New variable.
2637         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
2638         element.
2639
2640 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
2641
2642         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
2643         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
2644
2645 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
2646
2647         * elf/Makefile (tst-auxv): New test.
2648         * elf/tst-auxv.c: New
2649         * elf/rtld.c (dl_main): Adjust AT_EXECFN
2650
2651 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
2652
2653         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
2654         (hidden_proto): Caller changed.
2655         (hidden_tls_proto): New macro.
2656         (libc_hidden_tls_proto): Likewise.
2657         (rtld_hidden_tls_proto): Likewise.
2658         (libm_hidden_tls_proto): Likewise.
2659         (libresolv_hidden_tls_proto): Likewise.
2660         (librt_hidden_tls_proto): Likewise.
2661         (libdl_hidden_tls_proto): Likewise.
2662         (libnss_files_hidden_tls_proto): Likewise.
2663         (libnsl_hidden_tls_proto): Likewise.
2664         (libnss_nisplus_hidden_tls_proto): Likewise.
2665         (libutil_hidden_tls_proto): Likewise.
2666
2667 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
2668
2669         [BZ #10253]
2670         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
2671         (decompose_rpath): Defer expansion to fillin_rpath.
2672         (_dl_init_paths): Pass linkmap to fillin_rpath.
2673
2674 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2675
2676         * benchtests/Makefile: Add strsep.
2677         * benchtests/bench-strsep.c: New file: strsep benchtest.
2678         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
2679
2680 2013-11-18  Andreas Schwab  <schwab@suse.de>
2681
2682         * locale/programs/locale.c (show_info) [case byte]: Check for
2683         '\377' instead of '\177'.
2684         * locale/C-monetary.c (not_available): Always use "\377".
2685         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
2686         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
2687         detect unavailable sign_posn locale elements.
2688         * locale/localeconv.c (__localeconv): For grouping and
2689         mon_grouping handle "\177" and "\377" like no grouping.
2690         (INT_ELEM): New macro.  Use it to set all numeric members.
2691         * locale/programs/ld-monetary.c (monetary_read)
2692         <tok_mon_grouping>: Normalize single -1 to the empty string.
2693         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
2694         Likewise.
2695
2696 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
2697
2698         [BZ #16055]
2699         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
2700         when we match (nil).
2701         * stdio-common/tst-sscanf.c (struct test): Add testcase.
2702
2703 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
2704
2705         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
2706         (NO_TEST_INLINE): Update value.
2707         (ERRNO_UNCHANGED): Likewise.
2708         (ERRNO_EDOM): Likewise.
2709         (ERRNO_ERANGE): Likewise.
2710         (IGNORE_RESULT): Likewise.
2711         (check_float_internal): Check signs of NaN results if
2712         TEST_NAN_SIGN used.
2713         (check_complex): Pass TEST_NAN_SIGN flag through to second
2714         check_float_internal call.
2715         (copysign_test_data): Add tests with quiet NaNs as second
2716         argument.  Use TEST_NAN_SIGN.
2717         (fabs_test_data): Add test of negative quiet NaN argument.  Use
2718         TEST_NAN_SIGN.
2719         (signbit_test_data): Add tests of quiet NaN argument.
2720         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
2721
2722         * math/gen-libm-test.pl (show_exceptions): Take extra argument
2723         $ignore_result.
2724         (parse_args): Handle function results specified as IGNORE.
2725         * math/libm-test.inc (IGNORE_RESULT): New macro.
2726         (check_float_internal): Do not check numerical result if flag
2727         IGNORE_RESULT set.
2728         (check_complex): Pass through IGNORE_RESULT to second
2729         check_float_internal call.
2730         (check_int): Do not check numerical result if flag IGNORE_RESULT
2731         set.
2732         (check_long): Likewise.
2733         (check_bool): Likewise.
2734         (check_longlong): Likewise.
2735         (lrint_test_data): Add tests of infinite and NaN arguments.
2736         (lrint_tonearest_test_data): Likewise.
2737         (lrint_towardzero_test_data): Likewise.
2738         (lrint_downward_test_data): Likewise.
2739         (lrint_upward_test_data): Likewise.
2740         (llrint_test_data): Likewise.
2741         (llrint_tonearest_test_data): Likewise.
2742         (llrint_towardzero_test_data): Likewise.
2743         (llrint_downward_test_data): Likewise.
2744         (llrint_upward_test_data): Likewise.
2745         (lround_test_data): Likewise.
2746         (llround_test_data): Likewise.
2747
2748         * math/libm-test.inc (NO_TEST_INLINE): New macro.
2749         (ERRNO_UNCHANGED): Update value.
2750         (ERRNO_EDOM): Likewise.
2751         (ERRNO_ERANGE): Likewise.
2752         (NO_TEST_INLINE_FLOAT): New macro.
2753         (NO_TEST_INLINE_DOUBLE): Likewise.
2754         (enable_test): New function.
2755         (RUN_TEST_f_f): Check enable_test before running test.
2756         (RUN_TEST_2_f): Likewise.
2757         (RUN_TEST_fff_f): Likewise.
2758         (RUN_TEST_c_f): Likewise.
2759         (RUN_TEST_f_f1): Likewise.
2760         (RUN_TEST_fF_f1): Likewise.
2761         (RUN_TEST_fI_f1): Likewise.
2762         (RUN_TEST_ffI_f1): Likewise.
2763         (RUN_TEST_c_c): Likewise.
2764         (RUN_TEST_cc_c): Likewise.
2765         (RUN_TEST_f_i): Likewise.
2766         (RUN_TEST_f_i_tg): Likewise.
2767         (RUN_TEST_ff_i_tg): Likewise.
2768         (RUN_TEST_f_b): Likewise.
2769         (RUN_TEST_f_b_tg): Likewise.
2770         (RUN_TEST_f_l): Likewise.
2771         (RUN_TEST_f_L): Likewise.
2772         (RUN_TEST_fFF_11): Likewise.
2773         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
2774         conditionals.
2775         (cosh_test_data): Likewise.
2776         (exp_test_data): Likewise.
2777         (expm1_test_data): Likewise.
2778         (hypot_test_data): Likewise.
2779         (pow_test_data): Likewise.
2780         (sinh_test_data): Likewise.
2781         (tanh_test_data): Likewise.
2782         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
2783         flags argument.
2784
2785         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
2786         tests with quiet NaN input and output.
2787         (acosh_test_data): Likewise.
2788         (asin_test_data): Likewise.
2789         (asinh_test_data): Likewise.
2790         (atan_test_data): Likewise.
2791         (atanh_test_data): Likewise.
2792         (atan2_test_data): Likewise.
2793         (cbrt_test_data): Likewise.
2794         (cos_test_data): Likewise.
2795         (cosh_test_data): Likewise.
2796         (erf_test_data): Likewise.
2797         (erfc_test_data): Likewise.
2798         (exp_test_data): Likewise.
2799         (exp10_test_data): Likewise.
2800         (exp2_test_data): Likewise.
2801         (expm1_test_data): Likewise.
2802         (hypot_test_data): Likewise.
2803         (j0_test_data): Likewise.
2804         (j1_test_data): Likewise.
2805         (jn_test_data): Likewise.
2806         (lgamma_test_data): Likewise.
2807         (log_test_data): Likewise.
2808         (log10_test_data): Likewise.
2809         (log1p_test_data): Likewise.
2810         (log2_test_data): Likewise.
2811         (pow_test_data): Likewise.
2812         (scalb_test_data): Likewise.
2813         (sin_test_data): Likewise.
2814         (sincos_test_data): Likewise.
2815         (sinh_test_data): Likewise.
2816         (tan_test_data): Likewise.
2817         (tanh_test_data): Likewise.
2818         (tgamma_test_data): Likewise.
2819         (y0_test_data): Likewise.
2820         (y1_test_data): Likewise.
2821         (yn_test_data): Likewise.
2822
2823         [BZ #16167]
2824         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
2825         argument being NaN and avoid computations with second argument in
2826         that case.
2827         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
2828         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
2829         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2830
2831 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
2832
2833         * locale/iso-639.def: Add Chitwani Tharu (the).
2834
2835 2013-11-14  Andreas Schwab  <schwab@suse.de>
2836
2837         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
2838         word instead of empty string.
2839
2840 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2841
2842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2843         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
2844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2845         (__fe_nomask_env): Likewise.
2846
2847 2013-11-13  Steve Ellcey  <sellcey@mips.com>
2848
2849         * benchtests/bench-timing.h: Include time.h.
2850
2851 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
2852
2853         [BZ #15997]
2854         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
2855         to 3.4.0 for x32.
2856         * sysdeps/unix/sysv/linux/configure: Regenerated.
2857
2858 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
2859
2860         [BZ #16151]
2861         * stdlib/strtod_l.c (round_and_return): Do not consider
2862         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
2863         exponent one less than half the least subnormal exponent.
2864         * stdlib/test-strtod-round-data: Add more tests.
2865         * stdlib/tst-strtod-round.c (tests): Regenerated.
2866
2867 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2868
2869         [BZ #14143]
2870         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
2871         (__fe_mask_env): Likewise.
2872         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
2873         libm_hidden_proto and add function prototype.
2874         (__fe_mask_env): Add function prototype.
2875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2876         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
2877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2878         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
2879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2880         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
2881
2882 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2883
2884         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
2885         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
2886
2887 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2888
2889         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
2890         of htab_find_slot().
2891
2892 2013-11-11  David S. Miller  <davem@davemloft.net>
2893
2894         [BZ #16150]
2895         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
2896         symbol in the non-vis3 case in static builds.
2897         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
2898         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
2899         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
2900         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
2901
2902 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2903
2904         [BZ #387]
2905         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
2906         it is empty.
2907
2908 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2909
2910         * benchtests/Makefile: Add bench-strtod.
2911         * benchtests/bench-strtod.c: New file: strtod benchtest
2912
2913 2013-11-11  Andreas Schwab  <schwab@suse.de>
2914
2915         [BZ #16153]
2916         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
2917         terminating NUL in key length.
2918
2919 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2920
2921         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
2922         Add artificial ODP entry for vDSO symbol for PPC64.
2923         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
2924         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
2925
2926 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
2927
2928         [BZ #15374]
2929         * nss/getent.c (services_keys): Recognize services starting with digit.
2930
2931 2013-11-06  David S. Miller  <davem@davemloft.net>
2932
2933         [BZ #15985]
2934         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
2935         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
2936
2937 2013-11-06  Will Newton  <will.newton@linaro.org>
2938
2939         * manual/memory.texi (Malloc Examples): Remove register
2940         keyword from examples.
2941
2942 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
2943
2944         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
2945
2946 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
2947
2948         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
2949         depending on [__GCC_IEC_559 > 0].
2950         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
2951         depending on [__GCC_IEC_559_COMPLEX > 0].
2952
2953 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
2954
2955         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
2956         to iso-639.def.
2957
2958 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
2959
2960         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
2961
2962 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
2963
2964         [BZ #16112]
2965         * malloc/malloc (malloc_info): Do not handle first bin as
2966         special case.
2967
2968 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
2969
2970         * locale/iso-639.def: Add Central Nahuatl (nhn).
2971
2972 2013-11-01  Bruno Haible  <bruno@clisp.org>
2973
2974         [BZ #7003]
2975         * manual/math.texi (BSD Random): Specify range upper bound as
2976         in POSIX.
2977
2978 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
2979
2980         * locale/iso-639.def: Add Meadow Mari (mhr).
2981
2982 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
2983
2984         [BZ #14752], [BZ #15763]
2985         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
2986         Validate name.
2987         * rt/tst_shm.c: Add test for escaping directory.
2988
2989 2013-10-31  Andreas Schwab  <schwab@suse.de>
2990
2991         [BZ #15917]
2992         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
2993         followed by 'x' as part of digit sequence.
2994         * stdio-common/tst-sscanf.c (double_tests2): New tests.
2995
2996 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2997
2998         [BZ #16037]
2999         * configure.ac: allow GNU Make 4.0 and greater.
3000         * configure: Regenerated.
3001
3002 2013-10-30  Will Newton  <will.newton@linaro.org>
3003
3004         [BZ #16038]
3005         * malloc/hooks.c (memalign_check): Limit alignment to the
3006         maximum representable power of two.
3007         * malloc/malloc.c (__libc_memalign): Likewise.
3008         * malloc/tst-memalign.c (do_test): Add test for very
3009         large alignment values.
3010         * malloc/tst-posix_memalign.c (do_test): Likewise.
3011
3012 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3013
3014         [BZ #11087]
3015         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
3016         (munmap_chunk): Likewise.
3017         (mremap_chunk): Likewise.
3018
3019 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3020
3021         [BZ #15799]
3022         * stdlib/div.c (div): Remove obsolete code.
3023         * stdlib/ldiv.c (ldiv): Likewise.
3024         * stdlib/lldiv.c (lldiv): Likewise.
3025
3026 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3027
3028         [BZ #16071]
3029         * nss/nss_files/files-XXX.c (get_contents_ret): New
3030         enumerator.
3031         (get_contents): New function.
3032         (internal_getent): Use it.  Expand size of LINEBUFLEN.
3033
3034 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
3035
3036         * configure.in: Moved to ...
3037         * configure.ac: ... here. Change reference to configure.in
3038         to configure.ac.
3039         * sysdeps/arm/preconfigure.ac: ... here.
3040         configure.in to configure.ac.
3041         * sysdeps/gnu/configure.in: Moved to ...
3042         * sysdeps/gnu/configure.ac: ... here.
3043         * sysdeps/i386/configure.in: Moved to ...
3044         * sysdeps/i386/configure.ac: ... here.
3045         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
3046         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
3047         * sysdeps/mach/configure.in: Moved to ...
3048         * sysdeps/mach/configure.ac: ... here.
3049         * sysdeps/mach/hurd/configure.in: Moved to ...
3050         * sysdeps/mach/hurd/configure.ac: ... here.
3051         * sysdeps/powerpc/configure.in: Moved to ...
3052         * sysdeps/powerpc/configure.ac: ... here.
3053         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
3054         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
3055         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
3056         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
3057         * sysdeps/s390/s390-32/configure.in: Moved to ...
3058         * sysdeps/s390/s390-32/configure.ac: ... here.
3059         * sysdeps/s390/s390-64/configure.in: Moved to ...
3060         * sysdeps/s390/s390-64/configure.ac: ... here.
3061         * sysdeps/sh/configure.in: Moved to ...
3062         * sysdeps/sh/configure.ac: ... here.
3063         * sysdeps/sparc/configure.in: Moved to ...
3064         * sysdeps/sparc/configure.ac: ... here.
3065         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
3066         * sysdeps/unix/sysv/linux/configure.ac: ... here.
3067         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
3068         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
3069         * sysdeps/x86_64/configure.in: Moved to ...
3070         * sysdeps/x86_64/configure.ac: ... here.
3071         * sysdeps/x86_64/preconfigure.in: Moved to ...
3072         * sysdeps/x86_64/preconfigure.ac: ... here.
3073         * aclocal.m4: Change reference to configure.in to configure.ac.
3074         * config.h.in: Likewise.
3075         * manual/install.texi: Likewise.
3076         * manual/maint.texi: Likewise.
3077         * Makefile: Likewise.
3078         * malloc/Makefile: Likewise.
3079         * nscd/Makefile: Likewise.
3080         * Makeconfig: Change reference to configure.in and
3081         preconfigure.in to configure.ac and preconfigure.ac
3082         respectively.
3083         * INSTALL: Regenerated.
3084         * configure: Likewise.
3085         * sysdeps/gnu/configure: Likewise.
3086         * sysdeps/i386/configure: Likewise.
3087         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
3088         * sysdeps/mach/configure: Likewise.
3089         * sysdeps/mach/hurd/configure: Likewise.
3090         * sysdeps/powerpc/configure: Likewise.
3091         * sysdeps/powerpc/powerpc32/configure: Likewise.
3092         * sysdeps/powerpc/powerpc64/configure: Likewise.
3093         * sysdeps/s390/s390-32/configure: Likewise.
3094         * sysdeps/s390/s390-64/configure: Likewise.
3095         * sysdeps/sh/configure: Likewise.
3096         * sysdeps/sparc/configure: Likewise.
3097         * sysdeps/unix/sysv/linux/configure: Likewise.
3098         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
3099         * sysdeps/x86_64/configure: Likewise.
3100         * sysdeps/x86_64/preconfigure: Likewise.
3101
3102 2013-10-29  Andreas Schwab  <schwab@suse.de>
3103
3104         * stdio-common/Makefile (tst-swscanf-ENV): Define.
3105
3106 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3107
3108         * benchtests/pow-inputs: Add new inputs.
3109
3110         * benchtests/exp-inputs: Add new inputs.
3111
3112         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
3113         conditional check for return value.
3114         (__cos32): Likewise.
3115
3116 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3117
3118         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
3119         to provide a boost for large inputs with word alignment.
3120         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
3121         implementation based on optimized PPC64 strcpy.
3122         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
3123         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
3124         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
3125         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
3126
3127 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3128
3129         [BZ #2801]
3130         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
3131
3132 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3133
3134         [BZ #14876]
3135         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
3136         * time/tst-strptime.c (day_tests): Add testcase.
3137
3138 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
3139
3140         [BZ #14029]
3141         * manual/pattern.texi: Acknowledge that fnmatch can fail.
3142
3143 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
3144
3145         [BZ #16074]
3146         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
3147         MAP_FAILED on error.
3148
3149 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3150
3151         [BZ #16072]
3152         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
3153         heap for large requests.
3154
3155 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
3156
3157         [BZ #9954]
3158         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
3159         result if the result has no associated interface.
3160         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
3161         interface for all 127.X.Y.Z addresses.
3162
3163 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
3164
3165         * locale/iso-639.def: Add Ligurian (lij)
3166
3167 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
3168
3169         [BZ #15825]
3170         * sunrpc/rpc_main.c: Document rpcgen -5.
3171
3172 2013-10-19  Michael Stahl  <mstahl@redhat.com>
3173
3174         * elf/rtld.c (do_preload): Print the reason why preloading failed.
3175
3176 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
3177
3178         [BZ #10278]
3179         * posix/glob.c: Match only directories when trailing slash is present.
3180         * posix/tst-gnuglob.c (my_opendir): Do not open files.
3181         (main): Add testcase.
3182
3183 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
3184
3185         [BZ #15670]
3186         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
3187
3188 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
3189
3190         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
3191         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
3192         AUTH_DES and cindex for FIPS 140-2.
3193         (DES Encryption): Add cindex FIPS 46-3.
3194
3195         * locale/locarchive.h (struct locarhandle): Add fname.
3196         * locale/programs/localedef.c (main): Pass ARGV[remaining]
3197         if an optional argument was specified to --list-archive,
3198         otherwise NULL.
3199         * locale/programs/locarchive.c (show_archive_content): Take new
3200         argument fname and pass it via ah.fname to open_archive.
3201         * locale/programs/localedef.h: Update decl.
3202         (open_archive): If AH->fname is non-null, open that file
3203         rather than the default file name, and don't ignore ENOENT.
3204         (create_archive): Set AH.fname to NULL.
3205         (delete_locales_from_archive): Likewise.
3206         (add_locales_to_archive): Likewise.
3207         * locale/programs/locfile.c (write_all_categories): Likewise.
3208
3209 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
3210             Aldy Hernandez  <aldyh@redhat.com>
3211
3212         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
3213         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
3214         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
3215         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
3216         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
3217         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
3218         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
3219         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
3220         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
3221         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
3222         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
3223         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
3224         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
3225         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
3226         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
3227         Likewise.
3228         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
3229         Likewise.
3230         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
3231         Likewise.
3232         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
3233         Likewise.
3234         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
3235         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
3236         Likewise.
3237         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
3238         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
3239         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
3240         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
3241         Likewise.
3242         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
3243         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
3244         * sysdeps/powerpc/preconfigure: Likewise.
3245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
3246         Likewise.
3247         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
3248         Replace contents of file by #include of <fenv_libc.h>.
3249         * sysdeps/powerpc/soft-fp/sfp-machine.h
3250         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
3251         and <sys/prctl.h>.
3252         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
3253         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
3254         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
3255         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
3256         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
3257         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
3258         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
3259         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
3260         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
3261         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
3262         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
3263         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
3264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
3265         Allow copysignl PLT reference to be missing.
3266
3267 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
3268             Joseph Myers  <joseph@codesourcery.com
3269
3270         [BZ #15948]
3271         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
3272         single character.
3273         (add_to_tablewc): Assert sequence of wide characters is nonempty.
3274
3275 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3276
3277         * elf/tst-tls-dlinfo.c: Don't include tls.h.
3278         * elf/tst-tls1.c: Likewise.
3279         * elf/tst-tls10.h: Likewise.
3280         * elf/tst-tls14.c: Likewise.
3281         * elf/tst-tls2.c: Likewise.
3282         * elf/tst-tls3.c: Likewise.
3283         * elf/tst-tls4.c: Likewise.
3284         * elf/tst-tls5.c: Likewise.
3285         * elf/tst-tls6.c: Likewise.
3286         * elf/tst-tls7.c: Likewise.
3287         * elf/tst-tls8.c: Likewise.
3288         * elf/tst-tls9.c: Likewise.
3289         * elf/tst-tlsmod1.c: Likewise.
3290         * elf/tst-tlsmod13.c: Likewise.
3291         * elf/tst-tlsmod13a.c: Likewise.
3292         * elf/tst-tlsmod14a.c: Likewise.
3293         * elf/tst-tlsmod16a.c: Likewise.
3294         * elf/tst-tlsmod16b.c: Likewise.
3295         * elf/tst-tlsmod2.c: Likewise.
3296         * elf/tst-tlsmod3.c: Likewise.
3297         * elf/tst-tlsmod4.c: Likewise.
3298         * elf/tst-tlsmod5.c: Likewise.
3299         * elf/tst-tlsmod6.c: Likewise.
3300
3301 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
3302
3303         [BZ #12486]
3304         * malloc/malloc.c: remove checks for statistics.
3305
3306 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
3307
3308         [BZ #15277]
3309         * inet/inet_net.c (inet_network): Detect additional invalid strings.
3310         * inet/tst-network.c: Add testcase.
3311
3312 2013-10-17  Andreas Schwab  <schwab@suse.de>
3313
3314         [BZ #15218]
3315         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
3316         to determine canonical name.
3317
3318 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
3319
3320         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
3321         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3322         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3323         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
3324         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3325         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
3326         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
3327         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
3328         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
3329         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
3330         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3331         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
3332         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
3333         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3334         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
3335         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
3336         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3337         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3338         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
3339         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
3340         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3341         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3342         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3343         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
3344         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
3345         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3346         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3347         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
3348         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3349         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3350         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
3351         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3352         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
3353         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3354         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
3355         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
3356         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
3357         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
3358         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3359         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3360         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
3361         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3362         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
3363         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3364         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3365         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
3366         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
3367         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3368         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
3369         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3370         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
3371         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3372         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
3373         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
3374         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3375         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
3376         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3377         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
3378
3379 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
3380
3381         [BZ #16041]
3382         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
3383         make result into a quiet NaN.
3384
3385 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
3386
3387         * soft-fp/adddf3.c: Fix horizontal whitespace.
3388         * soft-fp/addsf3.c: Likewise.
3389         * soft-fp/addtf3.c: Likewise.
3390         * soft-fp/divdf3.c: Likewise.
3391         * soft-fp/divsf3.c: Likewise.
3392         * soft-fp/divtf3.c: Likewise.
3393         * soft-fp/double.h: Likewise.
3394         * soft-fp/eqdf2.c: Likewise.
3395         * soft-fp/eqsf2.c: Likewise.
3396         * soft-fp/eqtf2.c: Likewise.
3397         * soft-fp/extenddftf2.c: Likewise.
3398         * soft-fp/extended.h: Likewise.
3399         * soft-fp/extendsfdf2.c: Likewise.
3400         * soft-fp/extendsftf2.c: Likewise.
3401         * soft-fp/extendxftf2.c: Likewise.
3402         * soft-fp/fixdfdi.c: Likewise.
3403         * soft-fp/fixdfsi.c: Likewise.
3404         * soft-fp/fixdfti.c: Likewise.
3405         * soft-fp/fixsfdi.c: Likewise.
3406         * soft-fp/fixsfsi.c: Likewise.
3407         * soft-fp/fixsfti.c: Likewise.
3408         * soft-fp/fixtfdi.c: Likewise.
3409         * soft-fp/fixtfsi.c: Likewise.
3410         * soft-fp/fixtfti.c: Likewise.
3411         * soft-fp/fixunsdfdi.c: Likewise.
3412         * soft-fp/fixunsdfsi.c: Likewise.
3413         * soft-fp/fixunsdfti.c: Likewise.
3414         * soft-fp/fixunssfdi.c: Likewise.
3415         * soft-fp/fixunssfsi.c: Likewise.
3416         * soft-fp/fixunssfti.c: Likewise.
3417         * soft-fp/fixunstfdi.c: Likewise.
3418         * soft-fp/fixunstfsi.c: Likewise.
3419         * soft-fp/fixunstfti.c: Likewise.
3420         * soft-fp/floatdidf.c: Likewise.
3421         * soft-fp/floatdisf.c: Likewise.
3422         * soft-fp/floatditf.c: Likewise.
3423         * soft-fp/floatsidf.c: Likewise.
3424         * soft-fp/floatsisf.c: Likewise.
3425         * soft-fp/floatsitf.c: Likewise.
3426         * soft-fp/floattidf.c: Likewise.
3427         * soft-fp/floattisf.c: Likewise.
3428         * soft-fp/floattitf.c: Likewise.
3429         * soft-fp/floatundidf.c: Likewise.
3430         * soft-fp/floatundisf.c: Likewise.
3431         * soft-fp/floatunditf.c: Likewise.
3432         * soft-fp/floatunsidf.c: Likewise.
3433         * soft-fp/floatunsisf.c: Likewise.
3434         * soft-fp/floatunsitf.c: Likewise.
3435         * soft-fp/floatuntidf.c: Likewise.
3436         * soft-fp/floatuntisf.c: Likewise.
3437         * soft-fp/floatuntitf.c: Likewise.
3438         * soft-fp/fmadf4.c: Likewise.
3439         * soft-fp/fmasf4.c: Likewise.
3440         * soft-fp/fmatf4.c: Likewise.
3441         * soft-fp/gedf2.c: Likewise.
3442         * soft-fp/gesf2.c: Likewise.
3443         * soft-fp/getf2.c: Likewise.
3444         * soft-fp/ledf2.c: Likewise.
3445         * soft-fp/lesf2.c: Likewise.
3446         * soft-fp/letf2.c: Likewise.
3447         * soft-fp/muldf3.c: Likewise.
3448         * soft-fp/mulsf3.c: Likewise.
3449         * soft-fp/multf3.c: Likewise.
3450         * soft-fp/negdf2.c: Likewise.
3451         * soft-fp/negsf2.c: Likewise.
3452         * soft-fp/negtf2.c: Likewise.
3453         * soft-fp/op-1.h: Likewise.
3454         * soft-fp/op-2.h: Likewise.
3455         * soft-fp/op-4.h: Likewise.
3456         * soft-fp/op-8.h: Likewise.
3457         * soft-fp/op-common.h: Likewise.
3458         * soft-fp/quad.h: Likewise.
3459         * soft-fp/single.h: Likewise.
3460         * soft-fp/soft-fp.h: Likewise.
3461         * soft-fp/sqrtdf2.c: Likewise.
3462         * soft-fp/sqrtsf2.c: Likewise.
3463         * soft-fp/sqrttf2.c: Likewise.
3464         * soft-fp/subdf3.c: Likewise.
3465         * soft-fp/subsf3.c: Likewise.
3466         * soft-fp/subtf3.c: Likewise.
3467         * soft-fp/truncdfsf2.c: Likewise.
3468         * soft-fp/trunctfdf2.c: Likewise.
3469         * soft-fp/trunctfsf2.c: Likewise.
3470         * soft-fp/trunctfxf2.c: Likewise.
3471         * soft-fp/unorddf2.c: Likewise.
3472         * soft-fp/unordsf2.c: Likewise.
3473         * soft-fp/unordtf2.c: Likewise.
3474
3475 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
3476
3477         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
3478         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
3479
3480 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
3481
3482         * elf/dl-libc.c: Clear initfini list after freeing.
3483
3484 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
3485
3486         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
3487         * soft-fp/addsf3.c: Likewise.
3488         * soft-fp/addtf3.c: Likewise.
3489         * soft-fp/divdf3.c: Likewise.
3490         * soft-fp/divsf3.c: Likewise.
3491         * soft-fp/divtf3.c: Likewise.
3492         * soft-fp/double.h: Likewise.
3493         * soft-fp/eqdf2.c: Likewise.
3494         * soft-fp/eqsf2.c: Likewise.
3495         * soft-fp/eqtf2.c: Likewise.
3496         * soft-fp/extenddftf2.c: Likewise.
3497         * soft-fp/extended.h: Likewise.
3498         * soft-fp/extendsfdf2.c: Likewise.
3499         * soft-fp/extendsftf2.c: Likewise.
3500         * soft-fp/extendxftf2.c: Likewise.
3501         * soft-fp/fixdfdi.c: Likewise.
3502         * soft-fp/fixdfsi.c: Likewise.
3503         * soft-fp/fixdfti.c: Likewise.
3504         * soft-fp/fixsfdi.c: Likewise.
3505         * soft-fp/fixsfsi.c: Likewise.
3506         * soft-fp/fixsfti.c: Likewise.
3507         * soft-fp/fixtfdi.c: Likewise.
3508         * soft-fp/fixtfsi.c: Likewise.
3509         * soft-fp/fixtfti.c: Likewise.
3510         * soft-fp/fixunsdfdi.c: Likewise.
3511         * soft-fp/fixunsdfsi.c: Likewise.
3512         * soft-fp/fixunsdfti.c: Likewise.
3513         * soft-fp/fixunssfdi.c: Likewise.
3514         * soft-fp/fixunssfsi.c: Likewise.
3515         * soft-fp/fixunssfti.c: Likewise.
3516         * soft-fp/fixunstfdi.c: Likewise.
3517         * soft-fp/fixunstfsi.c: Likewise.
3518         * soft-fp/fixunstfti.c: Likewise.
3519         * soft-fp/floatdidf.c: Likewise.
3520         * soft-fp/floatdisf.c: Likewise.
3521         * soft-fp/floatditf.c: Likewise.
3522         * soft-fp/floatsidf.c: Likewise.
3523         * soft-fp/floatsisf.c: Likewise.
3524         * soft-fp/floatsitf.c: Likewise.
3525         * soft-fp/floattidf.c: Likewise.
3526         * soft-fp/floattisf.c: Likewise.
3527         * soft-fp/floattitf.c: Likewise.
3528         * soft-fp/floatundidf.c: Likewise.
3529         * soft-fp/floatundisf.c: Likewise.
3530         * soft-fp/floatunsidf.c: Likewise.
3531         * soft-fp/floatunsisf.c: Likewise.
3532         * soft-fp/floatuntidf.c: Likewise.
3533         * soft-fp/floatuntisf.c: Likewise.
3534         * soft-fp/floatuntitf.c: Likewise.
3535         * soft-fp/fmadf4.c: Likewise.
3536         * soft-fp/fmasf4.c: Likewise.
3537         * soft-fp/fmatf4.c: Likewise.
3538         * soft-fp/gedf2.c: Likewise.
3539         * soft-fp/gesf2.c: Likewise.
3540         * soft-fp/getf2.c: Likewise.
3541         * soft-fp/ledf2.c: Likewise.
3542         * soft-fp/lesf2.c: Likewise.
3543         * soft-fp/letf2.c: Likewise.
3544         * soft-fp/muldf3.c: Likewise.
3545         * soft-fp/mulsf3.c: Likewise.
3546         * soft-fp/multf3.c: Likewise.
3547         * soft-fp/negdf2.c: Likewise.
3548         * soft-fp/negsf2.c: Likewise.
3549         * soft-fp/negtf2.c: Likewise.
3550         * soft-fp/op-1.h: Likewise.
3551         * soft-fp/op-2.h: Likewise.
3552         * soft-fp/op-4.h: Likewise.
3553         * soft-fp/op-8.h: Likewise.
3554         * soft-fp/op-common.h: Likewise.
3555         * soft-fp/quad.h: Likewise.
3556         * soft-fp/single.h: Likewise.
3557         * soft-fp/soft-fp.h: Likewise.
3558         * soft-fp/sqrtdf2.c: Likewise.
3559         * soft-fp/sqrtsf2.c: Likewise.
3560         * soft-fp/sqrttf2.c: Likewise.
3561         * soft-fp/subdf3.c: Likewise.
3562         * soft-fp/subsf3.c: Likewise.
3563         * soft-fp/subtf3.c: Likewise.
3564         * soft-fp/truncdfsf2.c: Likewise.
3565         * soft-fp/trunctfdf2.c: Likewise.
3566         * soft-fp/trunctfsf2.c: Likewise.
3567         * soft-fp/trunctfxf2.c: Likewise.
3568         * soft-fp/unorddf2.c: Likewise.
3569         * soft-fp/unordsf2.c: Likewise.
3570         * soft-fp/unordtf2.c: Likewise.
3571
3572 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
3573
3574         [BZ #15672]
3575         * misc/error.c (error_tail): Fix possible buffer overflow.
3576
3577 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
3578
3579         [BZ #13028]
3580         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
3581         address.
3582
3583 2013-10-14  P. J. McDermott  <pj@pehjota.net>
3584
3585         [BZ #832]
3586         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
3587         testing pipefail option.
3588
3589 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
3590
3591         * soft-fp/double.h: Indent preprocessor directives inside #if.
3592         * soft-fp/extended.h: Likewise.
3593         * soft-fp/op-2.h: Likewise.
3594         * soft-fp/op-4.h: Likewise.
3595         * soft-fp/op-common.h: Likewise.
3596         * soft-fp/quad.h: Likewise.
3597         * soft-fp/single.h: Likewise.
3598         * soft-fp/soft-fp.h: Likewise.
3599
3600 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
3601
3602         * iconv/iconv_prog.c: Fix typos.
3603         * stdio-common/psiginfo-data.h: Likewise.
3604
3605 2013-10-12   Reuben Thomas <rrt@sc3d.org>
3606
3607         [BZ #15764]
3608         * locale/setlocale.c: Fix typo.
3609
3610 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
3611
3612         [BZ #16036]
3613         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
3614         signaling NaN arguments.
3615         * soft-fp/unordsf2.c (__unordsf2): Likewise.
3616         * soft-fp/unordtf2.c (__unordtf2): Likewise.
3617
3618         [BZ #14910]
3619         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
3620         unordered operands.
3621         * soft-fp/gesf2.c (__gesf2): Likewise.
3622         * soft-fp/getf2.c (__getf2): Likewise.
3623         * soft-fp/ledf2.c (__ledf2): Likewise.
3624         * soft-fp/lesf2.c (__lesf2): Likewise.
3625         * soft-fp/letf2.c (__letf2): Likewise.
3626
3627         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
3628         * soft-fp/eqsf2.c (__eqsf2): Likewise.
3629         * soft-fp/eqtf2.c (__eqtf2): Likewise.
3630         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
3631         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
3632         * soft-fp/fixdfti.c (__fixdfti): Likewise.
3633         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
3634         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
3635         * soft-fp/fixsfti.c (__fixsfti): Likewise.
3636         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
3637         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
3638         * soft-fp/fixtfti.c (__fixtfti): Likewise.
3639         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
3640         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
3641         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
3642         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
3643         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
3644         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
3645         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
3646         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
3647         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
3648         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
3649         * soft-fp/floatdisf.c (__floatdisf): Likewise.
3650         * soft-fp/floatsisf.c (__floatsisf): Likewise.
3651         * soft-fp/floattidf.c (__floattidf): Likewise.
3652         * soft-fp/floattisf.c (__floattisf): Likewise.
3653         * soft-fp/floattitf.c (__floattitf): Likewise.
3654         * soft-fp/floatundidf.c (__floatundidf): Likewise.
3655         * soft-fp/floatundisf.c (__floatundisf): Likewise.
3656         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
3657         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
3658         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
3659         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
3660         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
3661         * soft-fp/gesf2.c (__gesf2): Likewise.
3662         * soft-fp/getf2.c (__getf2): Likewise.
3663         * soft-fp/ledf2.c (__ledf2): Likewise.
3664         * soft-fp/lesf2.c (__lesf2): Likewise.
3665         * soft-fp/letf2.c (__letf2): Likewise.
3666
3667         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
3668         Undefine and redefine.
3669         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
3670         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
3671         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
3672         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
3673         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3674         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
3675         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3676         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
3677         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3678         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
3679         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3680         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
3681         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3682         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
3683         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3684
3685         [BZ #16032]
3686         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
3687         without decrementing exponent if mantissa >= that for the
3688         denominator, not >.
3689         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
3690         denominator, not >.  Decrement exponent in < case instead of
3691         incrementing in >= case.
3692         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
3693         without decrementing exponent if mantissa >= that for the
3694         denominator, not >.
3695
3696         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
3697         computing saturated result for unsigned overflow.
3698
3699 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3700             Jeff Law  <law@redhat.com>
3701
3702         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
3703         (atan2Mp): Add systemtap probe marker.
3704         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
3705         (__ieee754_log): Add systemtap probe marker.
3706         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
3707         (atanMp): Add systemtap probe marker.
3708         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
3709         (tanMp): Add systemtap probe marker.
3710         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
3711         (__slowexp): Add systemtap probe marker.
3712         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
3713         (__slowpow): Add systemtap probe marker.
3714         * manual/probes.texi: Document probes.
3715
3716 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
3717
3718         [BZ #15362]
3719         * libio/fileops.c (_IO_new_file_write): Return count of bytes
3720         written.
3721         (_IO_new_file_xsputn): Don't return EOF if nothing has been
3722         written.
3723         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
3724         written to buffer but not flushed.
3725         * libio/iofwrite_u.c:  Likewise.
3726         * libio/iopadn.c:  Return bytes returned even if EOF was
3727         encountered.
3728         * libio/iowpadn.c:  Likewise.
3729         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
3730         if _IO_padn does not write the whole buffer.
3731         [!COMPILE_WPRINTF] (PAD): Likewise.
3732
3733 2013-10-10  David S. Miller  <davem@davemloft.net>
3734
3735         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
3736         directory block.
3737
3738 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
3739
3740         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
3741         instead of FSF address.
3742         * soft-fp/fixdfti.c: Likewise.
3743         * soft-fp/fixsfti.c: Likewise.
3744         * soft-fp/fixtfti.c: Likewise.
3745         * soft-fp/fixunsdfti.c: Likewise.
3746         * soft-fp/fixunssfti.c: Likewise.
3747         * soft-fp/fixunstfti.c: Likewise.
3748         * soft-fp/floattidf.c: Likewise.
3749         * soft-fp/floattisf.c: Likewise.
3750         * soft-fp/floattitf.c: Likewise.
3751         * soft-fp/floatuntidf.c: Likewise.
3752         * soft-fp/floatuntisf.c: Likewise.
3753         * soft-fp/floatuntitf.c: Likewise.
3754         * soft-fp/trunctfxf2.c: Likewise.
3755
3756         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
3757         * soft-fp/fixdfti.c: Likewise.
3758         * soft-fp/fixsfti.c: Likewise.
3759         * soft-fp/fixtfti.c: Likewise.
3760         * soft-fp/fixunsdfti.c: Likewise.
3761         * soft-fp/fixunssfti.c: Likewise.
3762         * soft-fp/fixunstfti.c: Likewise.
3763         * soft-fp/floattidf.c: Likewise.
3764         * soft-fp/floattisf.c: Likewise.
3765         * soft-fp/floattitf.c: Likewise.
3766         * soft-fp/floatuntidf.c: Likewise.
3767         * soft-fp/floatuntisf.c: Likewise.
3768         * soft-fp/floatuntitf.c: Likewise.
3769         * soft-fp/trunctfxf2.c: Likewise.
3770
3771 2013-10-10  David S. Miller  <davem@davemloft.net>
3772
3773         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3774
3775 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
3776
3777         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
3778         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
3779         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
3780         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
3781         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
3782         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
3783         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
3784
3785         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
3786         for NaNs before doing comparisons on argument.
3787         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
3788         Likewise.
3789
3790 2013-10-10  Will Newton  <will.newton@linaro.org>
3791
3792         * malloc/hooks.c (memalign_check): Ensure the value of bytes
3793         passed to _int_memalign does not overflow.
3794
3795 2013-10-10  Torvald Riegel  <triegel@redhat.com>
3796
3797         * scripts/bench.pl: Add include-sources directive.
3798         * benchtests/README: Update documentation.
3799
3800 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
3801
3802         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
3803         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
3804         instead of FP_INIT_ROUNDMODE.
3805         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
3806         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
3807
3808         [BZ #16034]
3809         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
3810         copy class of input value.
3811         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
3812         not handle exceptions.
3813         * soft-fp/negsf2.c (__negsf2): Likewise.
3814         * soft-fp/negtf2.c (__negtf2): Likewise.
3815         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
3816
3817 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
3818
3819         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
3820         semicolon.  From Linux kernel.
3821
3822 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
3823
3824         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
3825
3826 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
3827
3828         [BZ #156]
3829         * manual/socket.texi: Added statement about buffer
3830         for gethostbyname2_r.
3831
3832 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
3833
3834         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
3835         Use .p2align directive instead, throughout.
3836         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3837         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3838         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
3839         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
3840         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3841         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
3842         * sysdeps/x86_64/strchr.S: Likewise.
3843         * sysdeps/x86_64/strrchr.S: Likewise.
3844
3845 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
3846
3847         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
3848
3849         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
3850
3851         * sysdeps/generic/math_private.h (__mpsin1): Remove
3852         declaration.
3853         (__mpcos1): Likewise.
3854         (__mpsin): New argument __range_reduce.
3855         (__mpcos): Likewise.
3856         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3857         (slow): Use __mpsin and __mpcos.
3858         (slow1): Likewise.
3859         (slow2): Likewise.
3860         (sloww): Likewise.
3861         (sloww1): Likewise.
3862         (sloww2): Likewise.
3863         (bsloww): Likewise.
3864         (bsloww1): Likewise.
3865         (bsloww2): Likewise.
3866         (cslow2): Likewise.
3867         (csloww): Likewise.
3868         (csloww1): Likewise.
3869         (csloww2): Likewise.
3870         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
3871         range_reduce.  Merge in __mpsin1.
3872         (__mpcos): Likewise.
3873         (__mpsin1): Remove.
3874         (__mpcos1): Likewise.
3875
3876 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
3877
3878         * locale/loadlocale.c (_nl_intern_locale_data): Use
3879         LOCFILE_ALIGNED_P.
3880         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
3881         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
3882         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
3883         obstack data is appropriately aligned.
3884         (obstack_int32_grow_fast): Likewise.
3885         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
3886         * locale/programs/locfile.c (add_locale_uint32): Likewise.
3887         (add_locale_uint32_array): Likewise.
3888
3889 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3890
3891         * benchtests/Makefile: Remove ARGLIST and RET variables.
3892         ($(objpfx)bench-%.c): Pass only function name to the script.
3893         * benchtests/README: Update documentation.
3894         * benchtests/acos-inputs: Add new directives.
3895         * benchtests/acosh-inputs: Likewise.
3896         * benchtests/asin-inputs: Likewise.
3897         * benchtests/asinh-inputs: Likewise.
3898         * benchtests/atan-inputs: Likewise.
3899         * benchtests/atanh-inputs: Likewise.
3900         * benchtests/cos-inputs: Likewise.
3901         * benchtests/cosh-inputs: Likewise.
3902         * benchtests/exp-inputs: Likewise.
3903         * benchtests/log-inputs: Likewise.
3904         * benchtests/pow-inputs: Likewise.
3905         * benchtests/rint-inputs: Likewise.
3906         * benchtests/sin-inputs: Likewise.
3907         * benchtests/sinh-inputs: Likewise.
3908         * benchtests/tan-inputs: Likewise.
3909         * benchtests/tanh-inputs: Likewise.
3910         * scripts/bench.pl: Add support for new directives.
3911
3912 2013-10-07  Alan Modra  <amodra@gmail.com>
3913
3914         * README: Fix careless merge.
3915
3916 2013-10-05  Alan Modra  <amodra@gmail.com>
3917
3918         * NEWS: Mention powerpc64le support and bugs fixed.
3919         * README: Both big-endian and little-endian powerpc64 supported.
3920
3921 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3922
3923         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
3924         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
3925         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
3926         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
3927
3928 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
3929
3930         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
3931         match prototype.
3932
3933 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
3934
3935         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
3936         Move -mhard-float appending from
3937         ports/sysdeps/powerpc/powerpc32/Makefile.
3938         [$(with-fp) = yes] (ASFLAGS): Likewise.
3939         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
3940         * sysdeps/powerpc/nofpu: Move directory from
3941         ports/sysdeps/powerpc/nofpu.
3942         * sysdeps/powerpc/soft-fp: Move directory from
3943         ports/sysdeps/powerpc/soft-fp.
3944         * sysdeps/powerpc/powerpc32/405: Move directory from
3945         ports/sysdeps/powerpc/powerpc32/405.
3946         * sysdeps/powerpc/powerpc32/440: Move directory from
3947         ports/sysdeps/powerpc/powerpc32/440.
3948         * sysdeps/powerpc/powerpc32/464: Move directory from
3949         ports/sysdeps/powerpc/powerpc32/464.
3950         * sysdeps/powerpc/powerpc32/476: Move directory from
3951         ports/sysdeps/powerpc/powerpc32/476.
3952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
3953         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
3954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
3955         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
3956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
3957         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
3958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
3959         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
3960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
3961         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
3962         * README: Update for powerpc-*-linux-gnu software floating point
3963         support in libc.
3964
3965         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
3966         case to powerpc/powerpc32*.
3967         * sysdeps/unix/sysv/linux/configure: Regenerated.
3968
3969         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
3970         (_FPU_MASK_OM): Define as 0x04.
3971         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
3972         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
3973         0x00c10080.
3974         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
3975         0x0000003c.
3976         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
3977
3978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3979         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
3980         getcontext_e500.
3981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3982         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
3983         setcontext_e500.
3984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3985         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
3986         and setcontext_e500.
3987
3988 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
3989
3990         * locale/iso-3166.def: Update iso-1366.def and related occurrences
3991
3992 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3993
3994         * manual/threads.texi (Default Thread Attributes): Fix typo.
3995
3996 2013-10-04  Will Newton  <will.newton@linaro.org>
3997
3998         * malloc/Makefile: Add tst-memalign.
3999         * malloc/tst-memalign.c: New file.
4000
4001         * malloc/tst-posix_memalign.c: Add comments.
4002         (do_test): Add comments and call free on all potentially
4003         allocated pointers. Add space after cast.
4004
4005         * malloc/tst-pvalloc.c: Add comments.
4006         (do_test): Add comments and call free on all potentially
4007         allocated pointers. Remove duplicate check for NULL pointer.
4008         Add space after cast.
4009
4010         * malloc/tst-valloc.c: Add comments.
4011         (do_test): Add comments and call free on all potentially
4012         allocated pointers. Remove duplicate check for NULL pointer.
4013         Add space after cast.
4014
4015 2013-10-04  Alan Modra  <amodra@gmail.com>
4016
4017         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4018         Use stdint types in rather than __attribute__((mode())).
4019         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4020
4021 2013-10-04  Alan Modra  <amodra@gmail.com>
4022
4023         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4024         Correct handling of unaligned relocs for little-endian.
4025         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4026
4027 2013-10-04  Alan Modra  <amodra@gmail.com>
4028
4029         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
4030         * configure: Regenerate.
4031         * nptl/shlib-versions: Powerpc*le starts at 2.18.
4032         * shlib-versions: Likewise.
4033
4034 2013-10-04  Alan Modra  <amodra@gmail.com>
4035
4036         * string/tester.c (test_memrchr): Increment reported test cycle.
4037
4038 2013-10-04  Alan Modra  <amodra@gmail.com>
4039
4040         * string/test-memcpy.c (do_one_test): When reporting errors, print
4041         string address and don't overrun end of string.
4042
4043 2013-10-04  Alan Modra  <amodra@gmail.com>
4044
4045         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
4046         insrdi.  Make better use of reg selection to speed exit slightly.
4047         Schedule entry path a little better.  Remove useless "are we done"
4048         checks on entry to main loop.  Handle wrapping around zero address.
4049         Correct main loop count.  Handle single left-over word from main
4050         loop inline rather than by using loop_small.  Remove extra word
4051         case in loop_small caused by wrong loop count.  Add little-endian
4052         support.
4053         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
4054         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
4055         cache hint.
4056         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
4057         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
4058         support.  Avoid rlwimi.
4059         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
4060
4061 2013-10-04  Alan Modra  <amodra@gmail.com>
4062
4063         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
4064         insrdi.  Formatting.
4065         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
4066         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
4067         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
4068         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
4069         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
4070         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
4071
4072 2013-10-04  Alan Modra  <amodra@gmail.com>
4073
4074         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
4075         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4076         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
4077         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
4078         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
4079         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4080         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4081         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
4082         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
4083         use of regs.  Use power7 mtocrf.  Tidy function tails.
4084
4085 2013-10-04  Alan Modra  <amodra@gmail.com>
4086
4087         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
4088         Formatting.  Consistently use rXXX register defines or rN defines.
4089         Use early exit labels that avoid restoring unused non-volatile regs.
4090         Make cr field use more consistent with rWORDn compares.  Rename
4091         regs used as shift registers for unaligned loop, using rN defines
4092         for short lifetime/multiple use regs.
4093         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4094         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
4095         addi 1,1,64 to pop stack frame.  Simplify return value code.
4096         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4097
4098 2013-10-04  Alan Modra  <amodra@gmail.com>
4099
4100         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
4101         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
4102         rather than rlwimi.
4103         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
4104         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
4105         little-endian support.  Correct typos.
4106         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
4107         rather than rlwimi.
4108         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
4109         in loop and entry code to keep "and." results.
4110         (strchr): Add little-endian support.  Comment.  Move cntlzd
4111         earlier in tail.
4112         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
4113
4114 2013-10-04  Alan Modra  <amodra@gmail.com>
4115
4116         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
4117         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
4118         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
4119         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
4120
4121 2013-10-04  Alan Modra  <amodra@gmail.com>
4122
4123         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
4124         (rTMP): Define as r11.
4125         (strcmp): Add little-endian support.  Optimise tail.
4126         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
4127         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4128         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
4129         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
4130         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
4131         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4132         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
4133
4134 2013-10-04  Alan Modra  <amodra@gmail.com>
4135
4136         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
4137         little-endian support.  Remove unnecessary "are we done" tests.
4138         Handle "s" wrapping around zero and extremely large "size".
4139         Correct main loop count.  Handle single left-over word from main
4140         loop inline rather than by using small_loop.  Correct comments.
4141         Delete "zero" tail, use "end_max" instead.
4142         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
4143
4144 2013-10-04  Alan Modra  <amodra@gmail.com>
4145
4146         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
4147         support.  Don't branch over align.
4148         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
4149         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
4150         support.  Rearrange tmp reg use to suit.  Comment.
4151         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
4152
4153 2013-10-04  Alan Modra  <amodra@gmail.com>
4154
4155         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
4156
4157 2013-10-04  Alan Modra  <amodra@gmail.com>
4158
4159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
4160         conditional form of branch and link when obtaining pc.
4161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
4162
4163 2013-10-04  Alan Modra  <amodra@gmail.com>
4164
4165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
4166         HIWORD/LOWORD.
4167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
4168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
4169
4170 2013-10-04  Alan Modra  <amodra@gmail.com>
4171
4172         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
4173         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
4174         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
4175         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
4176         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
4177         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
4178         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
4179         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
4180         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
4181         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
4182
4183 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4184             Alistair Popple <alistair@ozlabs.au.ibm.com>
4185             Alan Modra <amodra@gmail.com>
4186
4187         [BZ #15723]
4188         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
4189         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
4190         _dl_hwcap access for little-endian.
4191         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
4192         destroy vmx regs when saving unaligned.
4193         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
4194         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
4195         destroy vmx regs when saving unaligned.
4196
4197 2013-10-04  Alan Modra  <amodra@gmail.com>
4198
4199         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
4200         Don't use a union to pack hi/low value.
4201
4202 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4203
4204         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
4205         for little-endian.
4206         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4207         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
4208         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
4209         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4210         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4211
4212 2013-10-04  Alan Modra  <amodra@gmail.com>
4213
4214         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
4215         constants to usual value for .cst8 section, and remove redundant
4216         high address load.
4217         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
4218         constant for 0x1p52.  Load little-endian words of double from
4219         correct stack offsets.
4220
4221 2013-10-04  Alan Modra  <amodra@gmail.com>
4222
4223         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
4224         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
4225         words of double from correct stack offsets.
4226         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
4227         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
4228         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
4229         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
4230         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
4231         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
4232         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
4233         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
4234         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
4235         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
4236         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
4237         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
4238         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
4239         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
4240         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
4241         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
4242         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
4243
4244 2013-10-04  Alan Modra  <amodra@gmail.com>
4245
4246         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
4247         64-bit int/double union.
4248         (_FPU_SETCW): Likewise.
4249         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
4250         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
4251
4252 2013-10-04  Alan Modra  <amodra@gmail.com>
4253
4254         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
4255         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
4256
4257 2013-10-04  Alan Modra  <amodra@gmail.com>
4258
4259         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
4260         use vector int constants.
4261         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
4262
4263 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4264
4265         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
4266         array with long long.
4267         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
4268         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
4269         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
4270         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
4271         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
4272         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
4273         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
4274         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
4275         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
4276         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
4277         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
4278         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
4279         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
4280
4281 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4282
4283         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
4284         (__signbit): Likewise.  Correct for little-endian.
4285         (__signbitl): Call __signbit.
4286         (lrint): Correct for little-endian.
4287         (lrintf): Call lrint.
4288
4289 2013-10-04  Alan Modra  <amodra@gmail.com>
4290
4291         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
4292         union 32-bit int array member with 64-bit int array.
4293         (t515, tm256): Double rather than long double.
4294         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
4295
4296 2013-10-04  Alan Modra  <amodra@gmail.com>
4297
4298         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
4299         Delete.
4300         (IEEE854_LONG_DOUBLE_BIAS): Delete.
4301         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
4302         version of math_ldbl.h.
4303
4304 2013-10-04  Alan Modra  <amodra@gmail.com>
4305
4306         [BZ #15734], [BZ #15735]
4307         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
4308         all uses of ieee875 long double macros and unions.  Simplify test
4309         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
4310         ldbl_extract_mantissa value for ix,iy exponents.  Properly
4311         normalize after ldbl_extract_mantissa, and don't add hidden bit
4312         already handled.  Don't treat low word of ieee854 mantissa like
4313         low word of IBM long double and mask off bit when testing for
4314         zero.
4315         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
4316         all uses of ieee875 long double macros and unions.  Simplify tests
4317         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
4318         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
4319         two1022, instead use their values.  Recognise that tests for large
4320         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
4321         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
4322         Rewrite all uses of ieee875 long double macros and unions.  Simplify
4323         test for 0.0L and nan.  Correct negation.
4324         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
4325         ieee875 long double macros and unions.  Correct output for large
4326         magnitude x.  Correct absolute value calculation.
4327         (__erfcl): Likewise.
4328         * math/libm-test.inc: Add tests for errors discovered in IBM long
4329         double versions of fmodl, remainderl, erfl and erfcl.
4330
4331 2013-10-04  Alan Modra  <amodra@gmail.com>
4332
4333         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
4334         all uses of ieee854 long double macros and unions.  Simplify tests
4335         for long doubles that are fully specified by the high double.
4336         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
4337         Likewise.
4338         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
4339         Remove dead code too.
4340         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4341         (__ieee754_ynl): Likewise.
4342         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4343         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
4344         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
4345         Remove dead code too.
4346         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
4347         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
4348         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
4349         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
4350         Simplify.
4351         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
4352         Simplify.
4353         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
4354         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
4355         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
4356         Comment on variable precision.
4357         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
4358         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
4359         Likewise.
4360         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4361         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
4362         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
4363         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
4364         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
4365
4366 2013-10-04  Alan Modra  <amodra@gmail.com>
4367
4368         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
4369         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
4370         all uses of ieee854 long double macros and unions.
4371         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
4372         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
4373         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
4374         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
4375         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4376         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
4377         Likewise.
4378         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
4379         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4380         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
4381         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4382         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
4383         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
4384         Simplify sign and nan test too.
4385         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
4386         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
4387         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
4388         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
4389         Likewise.
4390         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
4391         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
4392         Likewise.
4393         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4394         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
4395         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
4396         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
4397         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
4398         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
4399
4400 2013-10-04  Alan Modra  <amodra@gmail.com>
4401
4402         * stdio-common/printf_size.c (__printf_size): Don't use
4403         union ieee854_long_double in fpnum union.
4404         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
4405         signbit macro to retrieve sign from long double.
4406         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
4407         retrieve sign from long double.
4408         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
4409         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
4410         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
4411         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
4412         * math/test-misc.c (main): Don't use union ieee854_long_double.
4413
4414 2013-10-04  Alan Modra  <amodra@gmail.com>
4415
4416         [BZ #15680]
4417         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
4418         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
4419         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
4420         calculation.  Remove unnecessary test for denormal exponent.
4421         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
4422         Correct handling of denormals.  Avoid undefined shift behaviour.
4423         Correct normalisation of low mantissa when low double is denormal.
4424         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
4425         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
4426         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
4427         Correct normalisation of low mantissa.  Test for overflow of high
4428         mantissa and normalise.
4429         (ldbl_nearbyint): Use more readable constant for two52.
4430         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
4431         (__mpn_construct_long_double): Fix test for overflow of high
4432         mantissa and correct normalisation.  Avoid undefined shift.
4433
4434 2013-10-04  Alan Modra  <amodra@gmail.com>
4435
4436         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
4437         (union ibm_extended_long_double): Define as an array of ieee754_double.
4438         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
4439         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
4440         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
4441         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
4442         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
4443         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
4444         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
4445         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
4446         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4447         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
4448         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
4449
4450 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
4451
4452         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
4453         page size instead of calling getpagesize.
4454
4455         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
4456         (LOCFILE_ALIGN_MASK): Likewise.
4457         (LOCFILE_ALIGN_UP): Likewise.
4458         (LOCFILE_ALIGNED_P): Likewise.
4459         * locale/programs/ld-collate.c (collate_output): Use the new
4460         macros instead of __alignof__ (int32_t).
4461         * locale/weight.h (findidx): Likewise.
4462
4463 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
4464
4465         [BZ #431]
4466         * manual/string.texi: Fix strncat and wcsncat.
4467
4468 2013-10-03  Brooks Moses  <bmoses@google.com>
4469
4470         [BZ #15915]
4471         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
4472         * Makerules: ...here, and adjust associated comments.
4473
4474 2013-10-02  Will Newton  <will.newton@linaro.org>
4475
4476         * malloc/Makefile: Add tst-pvalloc.
4477         * malloc/tst-pvalloc.c: New file.
4478
4479 2013-10-02  Will Newton  <will.newton@linaro.org>
4480
4481         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
4482         improve test coverage.
4483
4484 2013-10-02  Will Newton  <will.newton@linaro.org>
4485
4486         * malloc/Makefile: Add tst-posix_memalign.
4487         * malloc/tst-posix_memalign.c: New file.
4488
4489 2013-10-01  Eric Blake  <eblake@redhat.com>
4490
4491         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
4492         Use __THROWNL rather than __THROW on static functions.
4493
4494 2013-09-30  Petr Machata  <pmachata@redhat.com>
4495
4496         * elf/elf.h (R_AARCH64_ABS16): New macro.
4497         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
4498         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
4499         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
4500         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
4501         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
4502         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
4503         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
4504         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
4505         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
4506         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
4507         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
4508         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
4509         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
4510         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
4511         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
4512         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
4513         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
4514         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
4515         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
4516         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
4517         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
4518         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
4519         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
4520         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
4521         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
4522         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
4523         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
4524         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
4525         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
4526         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
4527         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
4528         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
4529         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
4530         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
4531         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
4532         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
4533         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
4534         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
4535         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
4536         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
4537         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
4538         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
4539         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
4540         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
4541         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
4542         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
4543         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
4544         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
4545         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
4546         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
4547         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
4548         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
4549         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
4550         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
4551         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
4552         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
4553         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
4554         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
4555         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
4556         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
4557         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
4558         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
4559         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
4560         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
4561         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
4562         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
4563         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
4564         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
4565         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
4566         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
4567         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
4568         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
4569         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
4570         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
4571         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
4572         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
4573         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
4574         (R_AARCH64_TLSDESC_LDR): Likewise.
4575         (R_AARCH64_TLSDESC_ADD): Likewise.
4576         (R_AARCH64_TLSDESC_CALL): Likewise.
4577
4578 2013-09-30  Andreas Schwab  <schwab@suse.de>
4579
4580         [BZ #15048]
4581         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
4582         the nss database lookup.
4583         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4584         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4585
4586 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
4587
4588         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
4589
4590 2013-09-28  P. J. McDermott  <pj@pehjota.net>
4591
4592         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
4593         ${Bash-specific parameter/pattern/string} parameter expansion.
4594         * sysdeps/unix/make-syscalls.sh: Likewise.
4595
4596 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4597
4598         * sysdeps/sh/stackguard-macros.h: New file.
4599
4600 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
4601
4602         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
4603         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
4604         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
4605         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
4606         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
4607         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
4608
4609 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4610
4611         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
4612         Fix thread ID register.
4613
4614 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
4615
4616         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
4617         [POSIX || UNIX98]: Require rather than permitting all symbols from
4618         <time.h>.
4619         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
4620         element of struct sched_param.
4621         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
4622         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
4623         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
4624         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
4625         constant.
4626
4627 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
4628
4629         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
4630         argument calculation.
4631
4632 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
4633
4634         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
4635         Expect macro.
4636         [POSIX] (pthread_attr_t): Do not require type.
4637         [POSIX] (pthread_cond_t): Likewise.
4638         [POSIX] (pthread_condattr_t): Likewise.
4639         [POSIX] (pthread_key_t): Likewise.
4640         [POSIX] (pthread_mutex_t): Likewise.
4641         [POSIX] (pthread_mutexattr_t): Likewise.
4642         [POSIX] (pthread_once_t): Likewise.
4643         [POSIX] (pthread_t): Likewise.
4644         [POSIX-based standards] (pthread_atfork): Expect function.
4645
4646 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
4647             Richard Sandiford  <richard@codesourcery.com>
4648
4649         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
4650         (swap_endianness_p): New extern variable.
4651         (set_big_endian): New inline function.
4652         (maybe_swap_uint32): Likewise.
4653         (maybe_swap_uint32_array): Likewise.
4654         (maybe_swap_uint32_obstack): Likewise.
4655         * locale/programs/locfile.c: Include <stdbool.h>.
4656         (swap_endianness_p): New variable.
4657         (add_locale_uint32): Call maybe_swap_uint32.
4658         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
4659         (write_locale_data): Call maybe_swap_uint32_array.
4660         * locale/programs/ld-collate.c (obstack_int32_grow): Call
4661         maybe_swap_uint32.
4662         (obstack_int32_grow_fast): Likewise.
4663         (output_weightwc): Call maybe_swap_uint32_obstack.
4664         (collate_output): Likewise.
4665         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
4666         (OPT_LITTLE_ENDIAN): Likewise.
4667         (options): Add --little-endian and --big-endian options.
4668         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
4669         * locale/programs/locarchive.c: Include "locfile.h".
4670         (GET): New macro.
4671         (SET): Likewise.
4672         (INC): Likewise.
4673         (create_archive): Use the new macros to access fields of
4674         structures directly mapped from or written to locale archives.
4675         (oldlocrecentcmp): Likewise.
4676         (enlarge_archive): Likewise.
4677         (insert_name): Likewise.
4678         (add_alias): Likewise.
4679         (add_locale): Likewise.
4680         (delete_locales_from_archive): Likewise.
4681         (show_archive_content): Likewise.
4682         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
4683         locale data.
4684
4685 2013-09-24  Roland McGrath  <roland@hack.frob.com>
4686
4687         * manual/freemanuals.texi: Updated from (newly) canonical copy at
4688         http://www.gnu.org/doc/freemanuals.texi.
4689         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
4690
4691 2013-09-24  Will Newton  <will.newton@linaro.org>
4692
4693         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
4694         macro.
4695
4696 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
4697
4698         * locale/hashval.h (compute_hashval): Interpret bytes of key as
4699         unsigned char.
4700
4701 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
4702
4703         * manual/threads.texi (POSIX Threads): Fix a typo.
4704
4705 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4706
4707         [BZ #14547]
4708         * string/tst-strcoll-overflow.c: New test case.
4709         * string/Makefile (xtests): Add tst-strcoll-overflow.
4710         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
4711         cache if string sizes may cause integer overflow.
4712
4713         [BZ #14547]
4714         * string/strcoll_l.c (coll_seq): New members rule, idx,
4715         save_idx and back_us.
4716         (get_next_seq_nocache): New function.
4717         (do_compare_nocache): New function.
4718         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
4719         when malloc fails.
4720
4721 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
4722
4723         [BZ #15754]
4724         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
4725         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
4726         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
4727
4728         [BZ #15754]
4729         * elf/Makefile (tests): Add tst-ptrguard1.
4730         (tests-static): Add tst-ptrguard1-static.
4731         (tst-ptrguard1-ARGS): Define.
4732         (tst-ptrguard1-static-ARGS): Define.
4733         * elf/tst-ptrguard1.c: New file.
4734         * elf/tst-ptrguard1-static.c: New file.
4735         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
4736         * sysdeps/i386/stackguard-macros.h: Likewise.
4737         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4738         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4739         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4740         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4741         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4742         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4743
4744 2013-09-23  Hector Marco  <hecmargi@upv.es>
4745             Ismael Ripoll  <iripoll@disca.upv.es>
4746             Carlos O'Donell  <carlos@redhat.com>
4747
4748         [BZ #15754]
4749         * sysdeps/generic/stackguard-macros.h: Define
4750         __pointer_chk_guard_local and POINTER_CHK_GUARD.
4751         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
4752         Define __pointer_chk_guard_local.
4753         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
4754         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
4755
4756 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
4757
4758         [BZ #15859]
4759         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
4760
4761 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
4762
4763         * include/string.h (__ffs): Declare as hidden.
4764         * string/ffs.c (__ffs): Define as hidden.
4765         * sysdeps/i386/ffs.c (__ffs): Likewise.
4766         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
4767         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
4768         * sysdeps/s390/ffs.c (__ffs): Likewise.
4769         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
4770
4771 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
4772
4773         * NEWS: Mention malloc probes.
4774
4775         * malloc/arena.c (new_heap): New memory_heap_new probe.
4776         (grow_heap): New memory_heap_more probe.
4777         (shrink_heap): New memory_heap_less probe.
4778         (heap_trim): New memory_heap_free probe.
4779         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
4780         (systrim): New memory_sbrk_less probe.
4781         * manual/probes.texi: Document them.
4782
4783         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
4784         * manual/probes.texi: Document it.
4785
4786         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
4787         (__libc_realloc): Add memory_realloc_retry probe.
4788         (__libc_memalign): Add memory_memalign_retry probe.
4789         (__libc_valloc): Add memory_valloc_retry probe.
4790         (__libc_pvalloc): Add memory_pvalloc_retry probe.
4791         (__libc_calloc): Add memory_calloc_retry probe.
4792         * manual/probes.texi: Document them.
4793
4794         * malloc/arena.c (get_free_list): Add probe
4795         memory_arena_reuse_free_list.
4796         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
4797         and memory_arena_reuse.
4798         (arena_get2) [!PER_THREAD]: Likewise.
4799         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
4800         memory_arena_reuse_realloc.
4801         * manual/probes.texi: Document them.
4802
4803         * malloc/malloc.c (__libc_free): Add
4804         memory_mallopt_free_dyn_thresholds probe.
4805         (__libc_mallopt): Add multiple memory_mallopt probes.
4806         * manual/probes.texi: Document them.
4807
4808         * malloc/malloc.c: Include stap-probe.h.
4809         (__libc_mallopt): Add memory_mallopt probe.
4810         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
4811         * manual/probes.texi: New.
4812         * manual/Makefile (chapters): Add probes.
4813         * manual/threads.texi: Set next node.
4814
4815 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
4816
4817         [BZ #15963, #13985]
4818         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
4819         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
4820         Add `Chinese' to `nan' entry name.
4821
4822 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4823
4824         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
4825         (POLYNOMIAL): Likewise.
4826         (TAYLOR_SINCOS): Likewise.
4827         (TAYLOR_SLOW): Likewise.
4828         (__sin): Use TAYLOR_SINCOS.
4829         (__cos): Likewise.
4830         (slow): Use TAYLOR_SLOW.
4831         (sloww): Likewise.
4832         (bsloww): Likewise.
4833         (csloww): Likewise.
4834
4835 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
4836
4837         * stdlib/strtod_l.c: Fix buffer overrun.
4838
4839 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4840
4841         * benchtests/Makefile (bench): Add sincos.
4842         * benchtests/bench-sincos.c: New file.
4843
4844         * math/libm-test.inc (cos_test_data): New test inputs.
4845         (sin_test_data): Likewise.
4846
4847         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
4848         macro.
4849         (__sin): Use it.
4850         (__cos): Likewise.
4851         (slow1): Likewise.
4852         (slow2): Likewise.
4853         (sloww1): Likewise.
4854         (sloww2): Likewise.
4855         (bsloww1): Likewise.
4856         (bsloww2): Likewise.
4857         (cslow2): Likewise.
4858         (csloww1): Likewise.
4859         (csloww2): Likewise.
4860
4861         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
4862         function.
4863         (__sin): Use it.
4864         (__cos): Likewise.
4865
4866         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
4867         gotos.
4868         (__cos): Likewise.
4869
4870 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
4871
4872         * config.h.in (HAVE_MIPS_NAN2008): New macro.
4873         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
4874         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
4875         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
4876         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
4877         * elf/cache.c (print_entry): Handle the new cache flags.
4878
4879 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
4880             Aldy Hernandez  <aldyh@redhat.com>
4881
4882         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
4883         Change condition to [_SOFT_FLOAT].
4884         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
4885         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
4886         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
4887         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
4888         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
4889         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
4890         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
4891         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
4892         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
4893         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
4894         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
4895         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
4896         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
4897         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
4898         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
4899         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
4900         declaration.
4901
4902 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
4903
4904         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
4905         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
4906         (__longjmp): Use LOAD_GP to load saved GPRs.
4907         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
4908         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
4909         (__sigsetjmp): Use SAVE_GP to save GPRs.
4910
4911         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
4912         Do not append -msoft-float.
4913         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
4914
4915 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4916
4917         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
4918
4919 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
4920
4921         [BZ #15966]
4922         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
4923         (_FPU_GETCW): Use initial "__" on variable and field names but not
4924         on macro parameter name.
4925         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
4926         parentheses around reference to macro parameter.
4927
4928 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
4929
4930         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
4931         prototype.
4932         (ctype_startup): Use uint32_t in cast and sizeof for
4933         ctype->charnames.
4934
4935 2013-09-11  Jia Liu  <proljc@gmail.com>
4936
4937         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
4938         __daddr_t_defined.
4939         [__FreeBSD__]: Likewise.
4940
4941 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
4942
4943         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4944         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
4945         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
4946         (strchr): Remove __strchr_sse42 ifunc selection.
4947         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
4948         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
4949
4950 2013-09-11  Will Newton  <will.newton@linaro.org>
4951
4952         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
4953         parameter to RES. Remove hardcoded 1000 value.
4954         * benchtests/bench-skeleton.c (main): Pass RES parameter
4955         to TIMING_INIT and multiply result by 1000.
4956
4957 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4958
4959         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4960
4961 2013-09-11  Andreas Schwab  <schwab@suse.de>
4962
4963         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
4964         if not defined.
4965         (O_TMPFILE) [__USE_GNU]: Define.
4966         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
4967         Define.
4968
4969 2013-09-11  Will Newton  <will.newton@linaro.org>
4970
4971         [BZ #15857]
4972         * malloc/malloc.c (__libc_memalign): Check the value of bytes
4973         does not overflow.
4974
4975 2013-09-11  Will Newton  <will.newton@linaro.org>
4976
4977         [BZ #15856]
4978         * malloc/malloc.c (__libc_valloc): Check the value of bytes
4979         does not overflow.
4980
4981 2013-09-11  Will Newton  <will.newton@linaro.org>
4982
4983         [BZ #15855]
4984         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
4985         does not overflow.
4986
4987 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
4988
4989         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
4990         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4991         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4992         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4993         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4994
4995 2013-09-10  Allan McRae  <allan@archlinux.org>
4996
4997         [BZ #15748]
4998         * manual/arith.texi (Parsing of Floats): Clarify
4999         cross-reference.
5000
5001         [BZ #15849]
5002         * manual/install.texi (Running make install): Mention
5003         --enable-pt-chown.
5004         * INSTALL: Regenerated.
5005
5006 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
5007
5008         * csu/init-first.c (_init): Remove the !SHARED condition around
5009         FPU control word initialization.
5010         * elf/dl-support.c (_dl_fpu_control): New variable.
5011         (_dl_aux_init) <AT_FPUCW>: Initialize it.
5012         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
5013         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
5014         * math/test-fpucw-static.c: New file.
5015         * math/test-fpucw-ieee.c: New file.
5016         * math/test-fpucw-ieee-static.c: New file.
5017         * math/Makefile (tests): Add `test-fpucw-ieee' and
5018         `$(tests-static)'.
5019         (tests-static): New variable.
5020         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
5021         dependency to...
5022         [($(build-shared),yes)]
5023         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
5024         ... this.
5025         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
5026         New dependency.
5027
5028 2013-09-09  Allan McRae  <allan@archlinux.org>
5029
5030         [BZ #15939]
5031         * manual/string.texi (Collation Functions): Fix typo in
5032         strcoll example.
5033         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
5034
5035         [BZ #15893]
5036         * stdlib/isomac.c (get_null_defines): Fix memory leak.
5037
5038         [BZ #15892]
5039         * libio/memstream.c (open_memstream): Fix memory leak.
5040         * libio/wmemstream.c (open_wmemstream): Likewise.
5041
5042         [BZ #15895]
5043         * nscd/netgroupcache.c: Fix nesting of ifdefs.
5044
5045 2013-09-09  Will Newton  <will.newton@linaro.org>
5046
5047         * malloc/Makefile: Add tst-realloc to tests.
5048         * malloc/tst-realloc.c: New file.
5049
5050 2013-09-09  Allan McRae  <allan@archlinux.org>
5051
5052         [BZ #15844]
5053         * COPYING: Update from GNU website to fix FSF address.
5054         * COPYING.LIB: Likewise.
5055
5056 2013-09-06  David S. Miller  <davem@davemloft.net>
5057
5058         * po/zh_TW.po: Update Chinese (traditional) translation from
5059         translation project.
5060
5061 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
5062             Joseph Myers  <joseph@codesourcery.com>
5063
5064         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
5065         "localeinfo.h".
5066         (obstack_chunk_alloc): New macro.
5067         (obstack_chunk_free): Likewise.
5068         (record_offset): New function.
5069         (init_locale_data): Likewise.
5070         (align_locale_data): Likewise.
5071         (add_locale_empty): Likewise.
5072         (add_locale_raw_data): Likewise.
5073         (add_locale_raw_obstack): Likewise.
5074         (add_locale_string): Likewise.
5075         (add_locale_wstring): Likewise.
5076         (add_locale_uint32): Likewise.
5077         (add_locale_uint32_array): Likewise.
5078         (add_locale_char): Likewise.
5079         (start_locale_structure): Likewise.
5080         (end_locale_structure): Likewise.
5081         (start_locale_prelude): Likewise.
5082         (end_locale_prelude): Likewise.
5083         (write_locale_data): Take locale_file structure rather than an
5084         iovec.
5085         * locale/programs/locfile.h: Include "obstack.h".
5086         (struct locale_file): Change to store locale file contents instead
5087         of header.
5088         (init_locale_data): New prototype.
5089         (align_locale_data): Likewise.
5090         (add_locale_empty): Likewise.
5091         (add_locale_raw_data): Likewise.
5092         (add_locale_raw_obstack): Likewise.
5093         (add_locale_string): Likewise.
5094         (add_locale_wstring): Likewise.
5095         (add_locale_uint32): Likewise.
5096         (add_locale_uint32_array): Likewise.
5097         (add_locale_char): Likewise.
5098         (start_locale_structure): Likewise.
5099         (end_locale_structure): Likewise.
5100         (start_locale_prelude): Likewise.
5101         (end_locale_prelude): Likewise.
5102         (write_locale_data): Update prototype.
5103         * locale/programs/3level.h (struct TABLE): Remove result field.
5104         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
5105         Use new locale_file interface.
5106         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
5107         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
5108         * locale/programs/ld-address.c (address_output): Use new
5109         locale_file interface.
5110         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
5111         NO_ADD_LOCALE.
5112         (collate_finish): Don't call collseq_table_finalize.
5113         (collate_output): Use new locale_file interface.
5114         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
5115         in file.
5116         (NO_FINALIZE): Change to NO_ADD_LOCALE.
5117         (TABLE): Move defines earlier in file.
5118         (ELEMENT): Likewise.
5119         (DEFAULT): Likewise.
5120         (wctrans_table_add): Move macro and inline function earlier in
5121         file.
5122         (struct wctype_table): Move type earlier in file.
5123         (add_locale_wctype_table): New static prototype.
5124         (struct locale_ctype_t): Use logical types instead of struct iovec
5125         pointers for members.
5126         (ctype_output): Use new locale_file interface.
5127         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
5128         new locale_file interface.
5129         (allocate_arrays): Update for use of new locale_file interface.
5130         * locale/programs/ld-identification.c (identification_output): Use
5131         new locale_file interface.
5132         * locale/programs/ld-measurement.c (measurement_output): Likewise.
5133         * locale/programs/ld-messages.c (messages_output): Likewise.
5134         * locale/programs/ld-monetary.c (monetary_output): Likewise.
5135         * locale/programs/ld-name.c (name_output): Likewise.
5136         * locale/programs/ld-numeric.c (numeric_output): Likewise.
5137         * locale/programs/ld-paper.c (paper_output): Likewise.
5138         * locale/programs/ld-telephone.c (telephone_output): Likewise.
5139         * locale/programs/ld-time.c (time_output): Likewise.
5140
5141 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5142
5143         * benchtests/Makefile: Add memrchr benchmark.
5144         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
5145         benchmark as memrchr.
5146         * benchtests/bench-memrchr-ifunc.c: New file.
5147         * benchtests/bench-memrchr.c: New file.
5148
5149 2013-09-06   Will Newton  <will.newton@linaro.org>
5150
5151         * benchtests/Makefile (string-bench): Add memcpy.
5152
5153 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
5154             Cong Wang  <amwang@redhat.com>
5155
5156         * sysdeps/unix/sysv/linux/bits/in.h
5157         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
5158         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
5159         before __USE_KERNEL_IPV6_DEFS uses.
5160         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
5161         IPPROTO_BEETPH.
5162         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
5163         sockaddr_in6, or ipv6_mreq.
5164
5165 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5166
5167         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
5168         memory access for final bytes in some large inputs.
5169         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
5170
5171 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5172
5173         * string/test-memrchr.c: New file.
5174         * string/test-memrchr-ifunc.c: New file.
5175         * string/Makefile: Add new memrchr testcase.
5176
5177 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
5178
5179         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
5180         fanotify_init returns EPERM.
5181
5182 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
5183
5184         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
5185         errors.
5186         (top level): Treat second token from macro or constant entries for
5187         allowed headers as allowed.
5188         * include/complex.h: Condition internal declarations on
5189         [!_ISOMAC].
5190         * include/fenv.h: Condition include of <stdbool.h> and internal
5191         declarations on [!_ISOMAC].
5192
5193 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
5194
5195         [BZ #15923]
5196         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
5197
5198 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
5199
5200         * configure.in (--enable-versioning): Remove configure option.
5201         (libc_cv_asm_symver_directive): Remove configure test.
5202         (libc_cv_ld_version_script_option): Likewise.
5203         (VERSIONING): Remove variable and AC_SUBST.
5204         (DO_VERSIONING): Remove AC_DEFINE.
5205         * configure: Regenerated.
5206         * config.h.in (DO_VERSIONING): Remove macro.
5207         * Makerules [$(versioning) = yes]: Change conditionals to
5208         [$(build-shared) = yes].
5209         * config.make.in (versioning): Remove variable.
5210         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
5211         [$(build-shared) = yes].
5212         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
5213         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
5214         * elf/Makefile [$(versioning) = yes]: Change conditionals to
5215         [$(build-shared) = yes].
5216         * extra-lib.mk [$(versioning) = yes]: Likewise.
5217         * hurd/Makefile [$(versioning) = yes]: Likewise.
5218         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
5219         [SHARED].
5220         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
5221         [SHARED].
5222         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
5223         [SHARED && !NO_HIDDEN].
5224         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
5225         [SHARED].
5226         [SHARED && DO_VERSIONING]: Likewise..
5227         * libio/Makefile [$(versioning) = yes]: Change conditionals to
5228         [$(build-shared) = yes].
5229         * manual/install.texi (--disable-versioning): Remove
5230         documentation.
5231         * INSTALL: Regenerated.
5232         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
5233         to [SHARED].
5234         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
5235         [$(build-shared) = yes].
5236         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
5237         * sysdeps/i386/i686/multiarch/strstr-c.c
5238         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
5239         [SHARED && !NO_HIDDEN].
5240         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
5241         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
5242         * sysdeps/powerpc/powerpc32/dl-machine.c
5243         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
5244         * sysdeps/powerpc/powerpc32/sysdep.h
5245         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
5246         to [SHARED && PIC && !NO_HIDDEN].
5247         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
5248         conditional to [SHARED].
5249
5250 2013-09-04   Will Newton  <will.newton@linaro.org>
5251
5252         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
5253         * benchtests/bench-string.h: Include bench-timing.h instead
5254         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
5255         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
5256         call to HP_TIMING_DIFF_INIT.
5257         * benchtests/bench-memccpy.c: Use bench-timing.h macros
5258         instead of hp-timing.h macros.
5259         * benchtests/bench-memchr.c: Likewise.
5260         * benchtests/bench-memcmp.c: Likewise.
5261         * benchtests/bench-memcpy.c: Likewise.
5262         * benchtests/bench-memmem.c: Likewise.
5263         * benchtests/bench-memmove.c: Likewise.
5264         * benchtests/bench-memset.c: Likewise.
5265         * benchtests/bench-rawmemchr.c: Likewise.
5266         * benchtests/bench-strcasecmp.c: Likewise.
5267         * benchtests/bench-strcasestr.c: Likewise.
5268         * benchtests/bench-strcat.c: Likewise.
5269         * benchtests/bench-strchr.c: Likewise.
5270         * benchtests/bench-strcmp.c: Likewise.
5271         * benchtests/bench-strcpy.c: Likewise.
5272         * benchtests/bench-strcpy_chk.c: Likewise.
5273         * benchtests/bench-strlen.c: Likewise.
5274         * benchtests/bench-strncasecmp.c: Likewise.
5275         * benchtests/bench-strncat.c: Likewise.
5276         * benchtests/bench-strncmp.c: Likewise.
5277         * benchtests/bench-strncpy.c: Likewise.
5278         * benchtests/bench-strnlen.c: Likewise.
5279         * benchtests/bench-strpbrk.c: Likewise.
5280         * benchtests/bench-strrchr.c: Likewise.
5281         * benchtests/bench-strspn.c: Likewise.
5282         * benchtests/bench-strstr.c: Likewise.
5283
5284 2013-09-04  Will Newton  <will.newton@linaro.org>
5285
5286         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
5287
5288 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
5289
5290         [BZ #15427]
5291         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
5292         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
5293         * math/libm-test.inc (lgamma_test_data): Add more tests.
5294         * sysdeps/i386/fpu/libm-test-ulps: Update.
5295         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5296
5297 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
5298
5299         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
5300         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
5301         Add ifunc.
5302         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
5303         Add strcmp-sse2-unaligned
5304         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
5305
5306 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
5307
5308         * Versions.def (libc): Add GLIBC_2.19.
5309
5310 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
5311
5312         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
5313         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
5314
5315 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
5316
5317         [BZ #14155]
5318         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
5319         intermediate calculations in recurrence.
5320         (__ieee754_ynf): Likewise.
5321         * math/libm-test.inc (jn_test_data): Do not allow spurious
5322         underflow exception.  Add more tests.
5323         (yn_test_data): Add more tests.
5324         * sysdeps/i386/fpu/libm-test-ulps: Update.
5325         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5326
5327 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
5328
5329         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
5330
5331 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
5332
5333         * csu/init-first.c: Fix then/than typos.
5334         * locale/programs/ld-collate.c: Likewise.
5335         * locale/programs/linereader.h: Likewise.
5336         * manual/charset.texi: Likewise.
5337         * manual/filesys.texi: Likewise.
5338         * manual/stdio.texi: Likewise.
5339         * manual/string.texi: Likewise.
5340         * stdlib/fmtmsg.c: Likewise.
5341         * sysdeps/i386/stpncpy.S: Likewise.
5342         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5343         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
5344         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5345         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5346
5347 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
5348
5349         * elf/dl-open.c: Fix typos.
5350         * iconvdata/gbbig5.c: Likewise.
5351         * iconvdata/iso-2022-jp.c: Likewise.
5352         * iconv/gconv_int.h: Likewise.
5353         * iconv/loop.c: Likewise.
5354         * nis/rpcsvc/nis.h: Likewise.
5355         * resolv/ns_name.c: Likewise.
5356         * stdio-common/vfscanf.c: Likewise.
5357         * streams/stropts.h: Likewise.
5358         * sunrpc/rpc_thread.c: Likewise.
5359         * sysdeps/i386/strpbrk.S: Likewise.
5360         * sysdeps/ieee754/k_standard.c: Likewise.
5361         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
5362         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5363         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5364         * sysdeps/mach/hurd/profil.c: Likewise.
5365         * sysdeps/s390/dl-procinfo.h: Likewise.
5366         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5367         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
5368         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5369         * sysdeps/x86_64/dl-trampoline.S: Likewise.
5370         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5371
5372 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
5373
5374         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
5375         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
5376
5377 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
5378
5379         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
5380         aix specific files.
5381         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
5382         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
5383         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
5384         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
5385         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
5386         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
5387         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
5388         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
5389
5390 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
5391             Roland McGrath  <roland@hack.frob.com>
5392
5393         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
5394         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5395
5396 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5397
5398         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
5399         __executable_start symbol instead of _start.
5400
5401 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
5402
5403         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
5404         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
5405         Move macros to...
5406         * sysdeps/gnu/ldsodefs.h: ... this new file.
5407
5408         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
5409         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
5410         instead of ELFOSABI_LINUX.
5411
5412         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
5413         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
5414         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
5415         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
5416         Likewise.
5417         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
5418         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
5419         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
5420         Likewise.
5421         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
5422         (ibm_extended_long_double): Add ieee_nan member.
5423         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
5424         (do_test): New function.
5425
5426         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
5427         TEST_TRUNC.
5428         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
5429         functions, renamed from truncdfsf_test, trunctfsf_test,
5430         trunctfdf_test.
5431         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
5432         functions.
5433         (do_test): Run all these.
5434
5435 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
5436
5437         * argp/argp-help.c: Fix typos.
5438         * argp/argp-parse.c: Likewise.
5439         * debug/backtracesyms.c: Likewise.
5440         * elf/elf.h: Likewise.
5441         * malloc/malloc.c: Likewise.
5442         * nis/nis_print.c: Likewise.
5443         * resolv/res_comp.c: Likewise.
5444         * stdlib/stdlib.h: Likewise.
5445         * sunrpc/clnt_tcp.c: Likewise.
5446         * sunrpc/clnt_udp.c: Likewise.
5447         * sunrpc/clnt_unix.c: Likewise.
5448         * sysdeps/unix/bsd/ptsname.c: Likewise.
5449         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5450         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
5451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
5452         Likewise.
5453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
5454         Likewise.
5455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
5456         Likewise.
5457         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
5458
5459 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5460
5461         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
5462         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5463
5464 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
5465
5466         [BZ #15897]
5467         * dlfcn/Makefile (tests): Add bug-dl-leaf.
5468         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
5469         ($(objpfx)bug-dl-leaf): New rule.
5470         ($(objpfx)bug-dl-leaf.so): Likewise.
5471         ($(objpfx)bug-dl-leaf.out): Likewise.
5472         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
5473         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
5474         * dlfcn/bug-dl-leaf.c: New test.
5475         * dlfcn/bug-dl-leaf-lib.c: Likewise.
5476         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
5477         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
5478         (dlclose): Likewise.
5479         (dlmopen): Likewise.
5480
5481 2013-08-27  Roland McGrath  <roland@hack.frob.com>
5482
5483         * include/netdb.h [!_ISOMAC]:
5484         Don't include <tls.h>.
5485         (h_errno, __libc_h_errno): Move declaration and macros out of
5486         [_LIBC_REENTRANT].
5487
5488         * include/resolv.h [_RESOLV_H_]:
5489         Don't include <tls.h>.
5490         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
5491         * resolv/res_libc.c: Don't include <tls.h>.
5492         (_res): Use __attribute__ ((nocommon)) in place of
5493         __attribute__ ((section (".bss"))).
5494
5495         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
5496         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
5497
5498         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
5499
5500         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
5501         only under [SIOCGIFCONF && SIOCGIFNETMASK].
5502
5503         * resolv/res_mkquery.c: Include <sys/time.h>.
5504
5505         * inet/ifreq.c: Moved to ...
5506         * sysdeps/unix/ifreq.c: ... here.
5507         * inet/ifreq.c: New file, true stub version.
5508
5509         * socket/sa_len.c: New file.
5510         * socket/Makefile (aux): Add it.
5511         * sysdeps/unix/sysv/linux/Makefile
5512         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
5513         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
5514         and #include <socket/sa_len.c>.
5515         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
5516         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
5517
5518         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
5519         * bits/socket.h: ... here.
5520
5521         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
5522         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
5523         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
5524
5525 2013-08-27  Andreas Schwab  <schwab@suse.de>
5526
5527         [BZ #15736]
5528         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
5529         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
5530         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
5531         * string/test-strcasecmp.c (test_main): Run tests in several
5532         locales.
5533         * string/test-strncasecmp.c (test_main): Likewise.
5534
5535         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
5536         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
5537         to __strcasecmp_nonascii and __strncasecmp_nonascii.
5538         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
5539         (__strncasecmp_ssse3) [PIC]: Likewise.
5540
5541 2013-08-26  Roland McGrath  <roland@hack.frob.com>
5542
5543         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
5544
5545         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
5546         instead of explicitly declaring xdecrypt.
5547         * nis/nss_nis/nis-publickey.c: Likewise.
5548
5549 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5550
5551         [BZ #15890]
5552         * nscd/aicache.c: Include res_hconf.h.
5553         (addhstaiX): Initialize res_hconf.
5554
5555 2013-08-26  Andreas Schwab  <schwab@suse.de>
5556
5557         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
5558         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
5559
5560 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5561
5562         * nscd/aicache.c (addhstaiX): Fix indentation.
5563
5564 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
5565
5566         * configure.ac: Quote $build_pt_chown test.
5567         * configure: Regenerated.
5568
5569 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
5570
5571         [BZ #15532]
5572         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
5573         * math/s_cexpf.c (__cexpf): Likewise.
5574         * math/s_cexpl.c (__cexpl): Likewise.
5575         * math/libm-test.inc (cexp_test_data): Correct expected return
5576         value for NaN + i0.  Add another test.
5577
5578 2013-08-22  David S. Miller  <davem@davemloft.net>
5579
5580         * po/ca.po: Update Catalan translation from translation project.
5581         * po/uk.po: Add Ukrainian translations from translation project.
5582
5583 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
5584
5585         [BZ #15797]
5586         * math/s_fdim.c (__fdim): Check for infinite arguments if result
5587         is infinite, not alongside NaN test.
5588         * math/s_fdimf.c (__fdimf): Likewise.
5589         * math/s_fdiml.c (__fdiml): Likewise.
5590         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
5591         errno is unchanged.
5592
5593 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
5594
5595         * argp/argp-help.c: Fix typos.
5596         * crypt/speeds.c: Likewise.
5597         * csu/check_fds.c: Likewise.
5598         * elf/dl-load.c: Likewise.
5599         * elf/dl-open.c: Likewise.
5600         * elf/reldep3.c: Likewise.
5601         * elf/reldep.c: Likewise.
5602         * elf/sprof.c: Likewise.
5603         * iconv/iconv_charmap.c: Likewise.
5604         * iconv/skeleton.c: Likewise.
5605         * iconv/strtab.c: Likewise.
5606         * io/lockf64.c: Likewise.
5607         * libio/libioP.h: Likewise.
5608         * resolv/gai_notify.c: Likewise.
5609         * resolv/ns_name.c: Likewise.
5610         * resolv/ns_samedomain.c: Likewise.
5611         * resolv/res_send.c: Likewise.
5612         * stdlib/random.c: Likewise.
5613         * sunrpc/rpc/xdr.h: Likewise.
5614         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
5615         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
5616         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
5617         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
5618         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
5619         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
5620         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
5621         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
5622         * sysdeps/mach/hurd/check_fds.c: Likewise.
5623         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
5624         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5625         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5626         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
5627         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5628         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
5629         * sysdeps/pthread/aio_notify.c: Likewise.
5630         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5631         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
5632         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
5633         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
5634         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
5635
5636 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5637
5638         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
5639         version if bit_Slow_SSE4_2 is set.
5640         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5641         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
5642
5643 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5644
5645         [BZ #15867]
5646         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
5647         trampoline stack frame information.
5648         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
5649         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
5650         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
5651         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
5652         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
5653         * sysdeps/unix/sysv/linux/powerpc/init-first.c
5654         (_libc_vdso_platform_setup): Initialize the signal trampolines.
5655         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
5656         sa_flags value.
5657         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
5658         interrupting a syscall and set with option SA_SIGINFO.
5659
5660 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
5661
5662         [BZ #15531]
5663         * math/s_cproj.c (__cproj): Only return an infinity if one part of
5664         argument is infinite.
5665         * math/s_cprojf.c (__cprojf): Likewise.
5666         * math/s_cprojl.c (__cprojl): Likewise.
5667         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
5668         * math/libm-test.inc (cproj_test_data): Add more tests.
5669
5670         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
5671
5672         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
5673         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
5674         size.  Use __ffs to determine corresponding shift.
5675
5676 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
5677             Roland McGrath  <roland@hack.frob.com>
5678
5679         * Makefile (INSTALL): Remove trailing blank lines from output of
5680         makeinfo.
5681
5682 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5683
5684         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
5685         Align 32 bit compat elf_greg to 8 bytes.
5686
5687 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5688
5689         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
5690
5691 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
5692
5693         * string/strcoll_l.c (coll_seq): New structure.
5694         (get_next_seq_cached): New function.
5695         (get_next_seq): New function.
5696         (do_compare): New function.
5697         (STRCOLL): Use GNU style definition.  Simplify implementation
5698         by using get_next_seq, get_next_seq_cached and do_compare.
5699
5700 2013-08-16  Florian Weimer  <fweimer@redhat.com>
5701
5702         [BZ #14699]
5703         CVE-2013-4237
5704         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
5705         member.
5706         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
5707         member.
5708         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
5709         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
5710         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
5711         conditional.
5712         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
5713         GETDENTS_64BIT_ALIGNED.
5714         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5715         * manual/filesys.texi (Reading/Closing Directory): Document
5716         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
5717         strongly.
5718         * manual/conf.texi (Limits for Files): Add portability note to
5719         NAME_MAX, PATH_MAX.
5720         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
5721
5722 2013-08-13  Andreas Schwab  <schwab@suse.de>
5723
5724         [BZ #15749]
5725         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
5726         of fabs.
5727         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
5728         LDBL_MAX_EXP >= 16384]: Add tests for it.
5729
5730 2013-08-12  David S. Miller  <davem@davemloft.net>
5731
5732         * version.h (RELEASE): Set to "development".
5733         (VERSION): Set to "2.18.90".
5734         * NEWS: Add 2.19 section.
5735
5736 2013-08-03  David S. Miller  <davem@davemloft.net>
5737
5738         * po/ko.po: Update Korean translation from translation project.
5739
5740 2013-08-01  David S. Miller  <davem@davemloft.net>
5741
5742         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
5743         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
5744         Bilka.
5745
5746 2013-07-30  David S. Miller  <davem@davemloft.net>
5747
5748         * po/fr.po: Update French translation from translation project.
5749
5750 2013-07-28  David S. Miller  <davem@davemloft.net>
5751
5752         * po/cs.po: Update Czech translation from translation project.
5753
5754         * po/sv.po: Update Swedish translation from translation project.
5755
5756 2013-07-27  David S. Miller  <davem@davemloft.net>
5757
5758         * po/eo.po: Update Esperanto translation from translation project.
5759
5760         * po/vi.po: Update Vietnamese translation from translation project.
5761
5762         * po/de.po: Update German translation from translation project.
5763
5764 2013-07-26  David S. Miller  <davem@davemloft.net>
5765
5766         * po/bg.po: Update Bulgarian translation from translation project.
5767
5768         * po/nl.po: Update Dutch translation from translation project.
5769         * po/pl.po: Update Polish translation from translation project.
5770         * po/ru.po: Update Russian translation from translation project.
5771
5772 2013-07-24  David S. Miller  <davem@davemloft.net>
5773
5774         * po/libc.pot: Update.
5775
5776 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5777
5778         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
5779         variable page size.
5780         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
5781         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
5782         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
5783
5784 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5785
5786         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
5787
5788 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5789             Andreas Schwab  <schwab@suse.de>
5790             Roland McGrath  <roland@hack.frob.com>
5791             Joseph Myers  <joseph@codesourcery.com>
5792             Carlos O'Donell  <carlos@redhat.com>
5793
5794         [BZ #15755]
5795         * config.h.in: Define HAVE_PT_CHOWN.
5796         * config.make.in (build-pt-chown): New variable.
5797         * configure.in (--enable-pt_chown): New configure option.
5798         * configure: Regenerate.
5799         * login/Makefile: Include Makeconfig.  Build pt_chown only if
5800         build-pt-chown is enabled.
5801         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
5802         pt_chown to fix pty ownership.
5803         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
5804         CLOSE_ALL_FDS.
5805         * manual/install.texi (Configuring and compiling): Mention
5806         --enable-pt_chown. Add @findex for grantpt.
5807         * INSTALL: Regenerate.
5808
5809 2013-07-20  David S. Miller  <davem@davemloft.net>
5810
5811         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
5812         difference between 32-bit and 64-bit.
5813
5814 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
5815
5816         [BZ #15711]
5817         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
5818         Avoid system header dependency with -ffreestanding.
5819         ($(objpfx)bits/syscall%d): Likewise.
5820
5821 2013-07-13  David S. Miller  <davem@davemloft.net>
5822
5823         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
5824         underflows from atanl/atan2l due to bug 15319.
5825         (casinh_test_data): Likewise.
5826
5827 2013-07-07  David S. Miller  <davem@davemloft.net>
5828
5829         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
5830
5831 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
5832
5833         * sysdeps/i386/fpu/libm-test-ulps: Update.
5834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5835
5836 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5837
5838         * configure.in (--enable-lock-elision): Fix message text.
5839         * INSTALL: Regenerate.
5840         * configure: Regenerate.
5841
5842 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5843
5844         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5845
5846 2013-07-03  Andreas Jaeger  <aj@suse.de>
5847
5848         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
5849         define.
5850         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
5851         (ptrace_peeksiginfo_args): Add.
5852         (__ptrace_peeksiginfo_flags): Add.
5853         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5854         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5855         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5856
5857 2013-07-03  Allan McRae  <allan@archlinux.org>
5858
5859         * sysdeps/i386/fpu/libm-test-ulps: Update.
5860
5861 2013-07-02  David S. Miller  <davem@davemloft.net>
5862
5863         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5864
5865 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
5866
5867         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5868
5869 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
5870
5871         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5872         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5873
5874 2013-07-02  Andi Kleen <ak@linux.intel.com>
5875
5876         * config.h.in (ENABLE_LOCK_ELISION): Add.
5877         * configure.in (--enable-lock-elision): Add option.
5878         * manual/install.texi: Document --enable lock elision.
5879         * configure: Regenerate
5880         * INSTALL: Regenerate.
5881
5882 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
5883
5884         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
5885         SSE4.2 strcasecmp for libc.a.
5886         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
5887
5888 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
5889
5890         [BZ #13304]
5891         * soft-fp/op-common.h (_FP_FMA): New macro.
5892         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
5893         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
5894         (_FP_MUL_MEAT_1_imm): ... here.
5895         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
5896         (_FP_MUL_MEAT_1_wide): ... here.
5897         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
5898         (_FP_MUL_MEAT_1_hard): ... here.
5899         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
5900         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
5901         (_FP_MUL_MEAT_2_wide): ... here.
5902         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
5903         (_FP_MUL_MEAT_2_wide_3mul): ... here.
5904         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
5905         (_FP_MUL_MEAT_2_gmp): ... here.
5906         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
5907         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
5908         (_FP_MUL_MEAT_4_wide): ... here.
5909         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
5910         (_FP_MUL_MEAT_4_gmp): ... here.
5911         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
5912         (_FP_WFRACBITS_DW_S): Likewise.
5913         (_FP_WFRACXBITS_DW_S): Likewise.
5914         (_FP_HIGHBIT_DW_S): Likewise.
5915         (FP_FMA_S): Likewise.
5916         (_FP_FRAC_HIGH_DW_S): Likewise.
5917         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
5918         (_FP_WFRACBITS_DW_D): Likewise.
5919         (_FP_WFRACXBITS_DW_D): Likewise.
5920         (_FP_HIGHBIT_DW_D): Likewise.
5921         (FP_FMA_D): Likewise.
5922         (_FP_FRAC_HIGH_DW_D): Likewise.
5923         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
5924         (_FP_WFRACBITS_DW_E): Likewise.
5925         (_FP_WFRACXBITS_DW_E): Likewise.
5926         (_FP_HIGHBIT_DW_E): Likewise.
5927         (FP_FMA_E): Likewise.
5928         (_FP_FRAC_HIGH_DW_E): Likewise.
5929         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
5930         (_FP_WFRACBITS_DW_Q): Likewise.
5931         (_FP_WFRACXBITS_DW_Q): Likewise.
5932         (_FP_HIGHBIT_DW_Q): Likewise.
5933         (FP_FMA_Q): Likewise.
5934         (_FP_FRAC_HIGH_DW_Q): Likewise.
5935         * soft-fp/fmasf4.c: New file.
5936         * soft-fp/fmadf4.c: Likewise.
5937         * soft-fp/fmatf4.c: Likewise.
5938
5939 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5940
5941         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
5942         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
5943         Silvermont.
5944         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
5945         macro.
5946         (index_Slow_SSE4_2): Likewise.
5947         (index_Prefer_PMINUB_for_stringop): Likewise.
5948         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
5949         bit_Slow_SSE4_2 is set.
5950         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
5951         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5952
5953 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5954
5955         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
5956         rtld_global._dl_hwcap2.
5957         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
5958         POWER8.
5959         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
5960         POWER8 feature descriptions defined in _dl_hwcap2.
5961         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
5962         string handling for POWER8 feature bits.
5963         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
5964         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
5965         _dl_powerpc_cap_flags.
5966         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
5967         * sysdeps/powerpc/rtld-global-offsets.sym
5968         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
5969         _dl_hwcap2 in the rtld_global_ro structure.
5970
5971 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5972
5973         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
5974         hardware capabilities in support of AT_HWCAP2.
5975         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
5976         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
5977         GLRO(dl_hwcap2).
5978         (_dl_show_auxv): Add support for calling _dl_procinfo to display
5979         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
5980         explicitly the unknown a_type display mechanism is used.
5981         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
5982         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
5983         struct member.
5984         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
5985         to macro prototype for AT_HWCAP2 support.
5986         * sysdeps/i386/dl-procinfo.h: Likewise.
5987         * sysdeps/s390/dl-procinfo.h: Likewise.
5988         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
5989         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
5990         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
5991         return -1 for unknown a_type display fallback.
5992         * sysdeps/sparc/dl-procinfo.h: Likewise.
5993         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
5994         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
5995
5996 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
5997
5998         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
5999         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
6000
6001 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
6002
6003         [BZ #12492]
6004         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
6005         mprotect making __stack_prot writable.
6006
6007 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
6008             Joseph Myers  <joseph@codesourcery.com>
6009
6010         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
6011         as being properly aligned.
6012
6013 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
6014
6015         * dlfcn/modstatic5.c: New file.
6016         * dlfcn/tststatic5.c: New file.
6017         * dlfcn/Makefile (tests): Add tststatic5.
6018         (tests-static): Likewise.
6019         (modules-names): Add modstatic5.
6020         (tststatic5-ENV): New variable.
6021         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
6022
6023         [BZ #15022]
6024         * elf/dl-support.c (_dl_main_map): New variable.
6025         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
6026         (_dl_nns, _dl_load_adds): Set to 1.
6027         (_dl_initial_searchlist): Refer to _dl_main_map.
6028         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
6029         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
6030         call to _dl_get_origin.
6031         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
6032         around call_map.
6033         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
6034         * dlfcn/modstatic3.c: New file.
6035         * dlfcn/tststatic3.c: New file.
6036         * dlfcn/tststatic4.c: New file.
6037         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
6038         (tests-static): Likewise.
6039         (modules-names): Add modstatic3.
6040         (tststatic3-ENV, tststatic4-ENV): New variables.
6041         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
6042         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
6043
6044 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
6045
6046         * configure.in (CC): Require GCC version 4.4 or later.
6047         * configure: Regenerated.
6048         * manual/install.texi (Tools for Compilation): Update GCC version
6049         requirement.
6050         * INSTALL: Regenerated.
6051
6052 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6053
6054         [BZ #15674]
6055         * string/test-memcmp.c (check2): New.
6056         (main): Call check2.
6057
6058         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
6059
6060 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
6061
6062         [BZ #15022]
6063         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
6064         over to...
6065         (dl_open_worker) [!SHARED]: ... here.
6066
6067 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6068
6069         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
6070
6071 2013-06-25  Richard Henderson  <rth@redhat.com>
6072
6073         * locale/programs/locarchive.c: Include <libc-internal.h>
6074
6075 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
6076
6077         * manual/texinfo.tex: Update to version 2013-06-21.17, with
6078         trailing whitespace removed.
6079
6080 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
6081
6082         [BZ #10283]
6083         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
6084         * locale/programs/locarchive.c: Include libc-mmap.h.
6085         (prepare_address_space): Take two new outputs (the mmap base and len).
6086         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
6087         values.
6088         (create_archive): Declare new mmap base and len values for
6089         prepare_address_space, and store the result in ah.
6090         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
6091         (enlarge_archive): If ah->mmap_base is not NULL, use that and
6092         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
6093         Declare new mmap base and len values for
6094         prepare_address_space, and store the result in new_ah.
6095         (open_archive): Declare new mmap base and len values for
6096         prepare_address_space, and store the result in ah.
6097         (close_archive): If ah->mmap_base is not NULL, use that and
6098         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
6099         * sysdeps/generic/libc-mmap.h: New file.
6100
6101 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
6102
6103         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
6104         (ALIGN_UP): Likewise.
6105         (PTR_ALIGN_DOWN): Likewise.
6106         (PTR_ALIGN_UP): Likewise.
6107
6108 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6109
6110         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
6111         entry mapped to PPC_PLATFORM_POWER8.
6112         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
6113         POWER8.
6114         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
6115         (_dl_string_platform): Add case for exporting platform position for
6116         POWER8.
6117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
6118         search path to sysdeps/powerpc/powerpc32/power8 directory.
6119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
6120         search path to sysdeps/powerpc/powerpc64/power8 directory.
6121         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
6122         power7 directories.
6123         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
6124         power7 directories.
6125
6126 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6127
6128         * INSTALL: Regenerate.
6129
6130         * nscd/connections.c (nscd_init): Fix comment.
6131
6132 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
6133
6134         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
6135
6136         [BZ #15667]
6137         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
6138         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
6139
6140 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
6141
6142         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
6143         DL_DST_REQ_STATIC.
6144         (DL_DST_REQ_STATIC): Remove macro.
6145
6146 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
6147
6148         [BZ #7006]
6149         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
6150         with a shift of 0 bits.
6151
6152 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
6153
6154         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
6155         $(tststatic-ENV).
6156
6157 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6158
6159         [BZ #15655]
6160         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
6161
6162 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6163
6164         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
6165         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
6166         accepts -fno-tree-loop-distribute-patterns.
6167         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
6168         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
6169         recursive call.
6170         * string/memset.c (memset): Likewise.
6171         * string/test-memmove.c (simple_memmove): Disable loop transformation
6172         to library calls.
6173         * string/test-memset.c (simple_memset): Likewise.
6174         * benchtests/bench-memmove.c (simple_memmove): Likewise.
6175         * benchtests/bench-memset.c (simple_memset): Likewise.
6176         * configure: Regenerated.
6177
6178 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
6179
6180         * math/test-misc.c (main): Ignore fesetround failure when failures
6181         of subsequent rounding tests would be ignored.
6182
6183         [BZ #15654]
6184         * math/fedisblxcpt.c (fedisableexcept): Return 0.
6185         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
6186         * math/fegetenv.c (__fegetenv): Return 0.
6187         * math/fegetexcept.c (fegetexcept): Return 0.
6188         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
6189         FE_TONEAREST.
6190         * math/feholdexcpt.c (feholdexcept): Return 0.
6191         * math/fesetenv.c (__fesetenv): Return 0.
6192         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
6193         argument FE_TONEAREST.
6194         * math/feupdateenv.c (__feupdateenv): Return 0.
6195         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
6196
6197 2013-06-18  Roland McGrath  <roland@hack.frob.com>
6198
6199         * elf/rtld-Rules (rtld-compile-command.S): New variable.
6200         (rtld-compile-command.s, rtld-compile-command.c): New variables.
6201         ($(objpfx)rtld-%.os rules): Use them.
6202
6203 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6204
6205         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
6206         fields.
6207
6208 2013-06-17  Roland McGrath  <roland@hack.frob.com>
6209
6210         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
6211         length of target pattern, then descending length of dependency pattern.
6212         * configure.in (AWK): Require gawk 3.1.2 or newer.
6213         * manual/install.texi (Tools for Compilation): Say that we do.
6214         * configure: Regenerated.
6215
6216         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
6217         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
6218         * scripts/sysd-rules.awk: ... this new script.
6219         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
6220         than a glob-style pattern.
6221
6222 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
6223
6224         * math/test-misc.c (main): Do not treat incorrectly rounded
6225         conversions as failure unless ROUNDING_TESTS passes.
6226
6227 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
6228
6229         [BZ #15631]
6230         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
6231         restore exception state around main square root computation, then
6232         check for inexactness explicitly.
6233
6234         * math/libm-test.inc (fma_test_data): Add another test.
6235
6236 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6237
6238         * manual/threads.texi (Non-POSIX Extensions): New document
6239         node.  Document pthread_getattr_default_np and
6240         pthread_setattr_default_np.
6241
6242         * Versions.def (libpthread): Add GLIBC_2.18.
6243         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
6244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6245         Likewise.
6246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6247         Likewise.
6248         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6249         Likewise.
6250         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6251         Likewise.
6252         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
6253         Likewise.
6254         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
6255         Likewise.
6256         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
6257         Likewise.
6258         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6259         Likewise.
6260         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6261         Likewise.
6262
6263 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6264
6265         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6266         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
6267
6268 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
6269             H.J. Lu  <hjl.tools@gmail.com>
6270
6271         [BZ #15627]
6272         * sysdeps/x86_64/rtld-memset.c: Remove file.
6273         * sysdeps/x86_64/rtld-memset.S: New file.
6274
6275 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
6276
6277         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
6278         (test_in_one_mode): Take arguments for whether the rounding mode
6279         is supported for each floating-point type.
6280         (do_test): Pass new arguments to test_in_one_mode using
6281         ROUNDING_TESTS.
6282
6283 2013-06-13  Roland McGrath  <roland@hack.frob.com>
6284
6285         * posix/tst-waitid.c (do_test): Distinguish different instances of
6286         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
6287         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
6288         before entering the kernel for waitpid.
6289
6290 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
6291
6292         * NEWS: Fix note on clock function precision.  Text by Roland
6293         McGrath.
6294
6295 2013-06-13  Roland McGrath  <roland@hack.frob.com>
6296
6297         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
6298         it into place only when and if the sanity check passes.
6299
6300 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
6301
6302         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
6303         output for whether conversion result is exact.  Take argument
6304         indicating whether type is IBM long double.
6305         (round_for_all): Change need_exact field to ibm_ld.
6306         * stdlib/tst-strtod-round.c (struct exactness): New type.
6307         (struct test): Change bool ld_ok field to struct exactness exact.
6308         (TEST): Update all definitions for change to field.
6309         (tests): Regenerate array contents.
6310         (test_in_one_mode): Take pointer to new field instead of old ld_ok
6311         field value.  Check for IBM long double here.
6312         (do_test): Update calls to test_in_one_mode.
6313
6314 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
6315
6316         [BZ #12515]
6317         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
6318         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
6319
6320 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6321
6322         [BZ #15605]
6323         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
6324         generated by the compiler on loop optimizations.
6325         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
6326         general definitions.
6327
6328 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
6329
6330         * math/bug-nextafter.c: Include <math-tests.h>.
6331         (main): Only test for exceptions if EXCEPTION_TESTS is true for
6332         the relevant type.
6333         * math/bug-nexttoward.c: Include <math-tests.h>.
6334         (main): Only test for exceptions if EXCEPTION_TESTS is true for
6335         the relevant type.
6336         * math/test-misc.c: Include <math-tests.h>.
6337         (main): Only test for exceptions if EXCEPTION_TESTS is true for
6338         the relevant type.
6339
6340 2013-06-12  Andreas Jaeger  <aj@suse.de>
6341
6342         * po/ia.po: Update Interlingua translation from translation
6343         project.
6344
6345 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6346
6347         * include/fenv.h: Include stdbool.h.
6348         (struct rm_ctx): New structure.
6349         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
6350         Define macro.
6351         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
6352         (SET_RESTORE_ROUNDF): Likewise.
6353         (SET_RESTORE_ROUNDL): Likewise.
6354         (SET_RESTORE_ROUND_NOEX): Likewise.
6355         (SET_RESTORE_ROUND_NOEXF): Likewise.
6356         (SET_RESTORE_ROUND_NOEXL): Likewise.
6357         (SET_RESTORE_ROUND_53BIT): Likewise.
6358         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
6359         (libc_feresetround_noexf_ctx): Likewise.
6360         (libc_feresetround_noexl_ctx): Likewise.
6361         (libc_feholdsetround_53bit_ctx): Likewise.
6362         (libc_feresetround_53bit_ctx): Likewise.
6363         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
6364         (libc_feholdexcept_setround_sse_ctx): New function.
6365         (libc_fesetenv_sse_ctx): Likewise.
6366         (libc_feupdateenv_sse_ctx): Likewise.
6367         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
6368         (libc_feholdexcept_setround_387_ctx): Likewise.
6369         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
6370         (libc_feholdsetround_387_prec_ctx): Likewise.
6371         (libc_feholdsetround_387_ctx): Likewise.
6372         (libc_feholdsetround_387_53bit_ctx): Likewise.
6373         (libc_feholdsetround_sse_ctx): Likewise.
6374         (libc_feresetround_sse_ctx): Likewise.
6375         (libc_feresetround_387_ctx): Likewise.
6376         (libc_feupdateenv_387_ctx): Likewise.
6377         (libc_feholdexcept_setroundf_ctx): Define macro.
6378         (libc_fesetenvf_ctx): Likewise.
6379         (libc_feupdateenvf_ctx): Likewise.
6380         (libc_feholdsetroundf_ctx): Likewise.
6381         (libc_feresetroundf_ctx): Likewise.
6382         (libc_feholdexcept_setround_ctx): Likewise.
6383         (libc_fesetenv_ctx): Likewise.
6384         (libc_feupdateenv_ctx): Likewise.
6385         (libc_feholdsetround_ctx): Likewise.
6386         (libc_feresetround_ctx): Likewise.
6387         (libc_feholdexcept_setroundl_ctx): Likewise.
6388         (libc_feupdateenvl_ctx): Likewise.
6389         (libc_feholdsetroundl_ctx): Likewise.
6390         (libc_feresetroundl_ctx): Likewise.
6391         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
6392         (libc_feresetround_53bit_ctx): Likewise.
6393
6394 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6395
6396         * locale/iso-639.def: Convert to UTF-8.
6397
6398 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
6399
6400         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
6401         (EXCEPTION_TESTS_double): Likewise.
6402         (EXCEPTION_TESTS_long_double): Likewise.
6403         (EXCEPTION_TESTS): Likewise.
6404         * math/libm-test.inc (test_exceptions): Only test exceptions if
6405         EXCEPTION_TESTS (FLOAT).
6406
6407 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6408
6409         * benchtests/Makefile (string-bench): Add strcpy_chk and
6410         stpcpy_chk.
6411         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
6412         * benchtests/bench-stpcpy_chk.c: New file.
6413         * benchtests/bench-strcpy_chk-ifunc.c: New file.
6414         * benchtests/bench-strcpy_chk.c: New file.
6415         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
6416         code.
6417         (do_test): Likewise.
6418
6419 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6420
6421         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
6422         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
6423         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
6424         with tabs where appropriate.
6425         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
6426         dl-procinfo.h.
6427         [PPC_PLATFORM_PPC440]: Likewise.
6428         [PPC_PLATFORM_PPC464]: Likewise.
6429         [PPC_PLATFORM_PPC476]: Likewise.
6430         (_dl_string_platform): Add support for detecting ppc405, ppc440,
6431         ppc464, and ppc476 platform strings merging from ports/
6432         dl-procinfo.h.
6433
6434 2013-06-11  Andreas Schwab  <schwab@suse.de>
6435
6436         [BZ #14991]
6437         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
6438         (from_ucs4_idx): Regenerate.
6439         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
6440         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
6441         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
6442         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
6443         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
6444         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
6445         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
6446         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
6447         from FROM_LOOP and TO_LOOP specific macros.
6448         (BODY): Handle combining characters.
6449         * iconvdata/BIG5HKSCS.irreversible: Update.
6450         * iconvdata/BIG5HKSCS.precomposed: New file.
6451         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
6452         characters.
6453         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
6454
6455 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6456
6457         * include/sys/time.h: Fix indentation and add copyright header.
6458
6459         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
6460         (do_test): Likewise.
6461         * string/test-memchr.c (do_one_test): Likewise.
6462         (do_test): Likewise.
6463         * string/test-memcmp.c (do_one_test): Likewise.
6464         (do_test): Likewise.
6465         * string/test-memcpy.c (do_one_test): Likewise.
6466         (do_test): Likewise.
6467         * string/test-memmem.c (do_one_test): Likewise.
6468         (do_test): Likewise.
6469         (do_random_tests): Likewise.
6470         * string/test-memmove.c (do_one_test): Likewise.
6471         (do_test): Likewise.
6472         * string/test-memset.c (do_one_test): Likewise.
6473         (do_test): Likewise.
6474         * string/test-rawmemchr.c (do_one_test): Likewise.
6475         (do_test): Likewise.
6476         * string/test-strcasecmp.c (do_one_test): Likewise.
6477         (do_test): Likewise.
6478         * string/test-strcasestr.c (do_one_test): Likewise.
6479         (do_test): Likewise.
6480         * string/test-strcat.c (do_one_test): Likewise.
6481         (do_test): Likewise.
6482         * string/test-strchr.c (do_one_test): Likewise.
6483         (do_test): Likewise.
6484         * string/test-strcmp.c (do_one_test): Likewise.
6485         (do_test): Likewise.
6486         * string/test-strcpy.c (do_one_test): Likewise.
6487         (do_test): Likewise.
6488         * string/test-string.h: Likewise.
6489         (test_init): Likewise.
6490         * string/test-strlen.c (do_one_test): Likewise.
6491         (do_test): Likewise.
6492         * string/test-strncasecmp.c (do_one_test): Likewise.
6493         (do_test): Likewise.
6494         * string/test-strncat.c (do_one_test): Likewise.
6495         (do_test): Likewise.
6496         * string/test-strncmp.c (do_one_test): Likewise.
6497         (do_test_limit): Likewise.
6498         (do_test): Likewise.
6499         * string/test-strncpy.c (do_one_test): Likewise.
6500         (do_test): Likewise.
6501         * string/test-strnlen.c (do_one_test): Likewise.
6502         (do_test): Likewise.
6503         * string/test-strpbrk.c (do_one_test): Likewise.
6504         (do_test): Likewise.
6505         * string/test-strrchr.c (do_one_test): Likewise.
6506         (do_test): Likewise.
6507         * string/test-strspn.c (do_one_test): Likewise.
6508         (do_test): Likewise.
6509         * string/test-strstr.c (do_one_test): Likewise.
6510         (do_test): Likewise.
6511
6512         * benchtests/Makefile (string-bench): Add string benchmarks.
6513         * benchtests/bench-bcopy-ifunc.c: New file.
6514         * benchtests/bench-bcopy.c: New file.
6515         * benchtests/bench-bzero-ifunc.c: New file.
6516         * benchtests/bench-bzero.c: New file.
6517         * benchtests/bench-memccpy-ifunc.c: New file.
6518         * benchtests/bench-memccpy.c: New file.
6519         * benchtests/bench-memchr-ifunc.c: New file.
6520         * benchtests/bench-memchr.c: New file.
6521         * benchtests/bench-memcmp-ifunc.c: New file.
6522         * benchtests/bench-memcmp.c: New file.
6523         * benchtests/bench-memmem-ifunc.c: New file.
6524         * benchtests/bench-memmem.c: New file.
6525         * benchtests/bench-memmove-ifunc.c: New file.
6526         * benchtests/bench-memmove.c: New file.
6527         * benchtests/bench-mempcpy-ifunc.c: New file.
6528         * benchtests/bench-mempcpy.c: New file.
6529         * benchtests/bench-memset-ifunc.c: New file.
6530         * benchtests/bench-memset.c: New file.
6531         * benchtests/bench-rawmemchr-ifunc.c: New file.
6532         * benchtests/bench-rawmemchr.c: New file.
6533         * benchtests/bench-stpcpy-ifunc.c: New file.
6534         * benchtests/bench-stpcpy.c: New file.
6535         * benchtests/bench-stpncpy-ifunc.c: New file.
6536         * benchtests/bench-stpncpy.c: New file.
6537         * benchtests/bench-strcasecmp-ifunc.c: New file.
6538         * benchtests/bench-strcasecmp.c: New file.
6539         * benchtests/bench-strcasestr-ifunc.c: New file.
6540         * benchtests/bench-strcasestr.c: New file.
6541         * benchtests/bench-strcat-ifunc.c: New file.
6542         * benchtests/bench-strcat.c: New file.
6543         * benchtests/bench-strchr-ifunc.c: New file.
6544         * benchtests/bench-strchr.c: New file.
6545         * benchtests/bench-strchrnul-ifunc.c: New file.
6546         * benchtests/bench-strchrnul.c: New file.
6547         * benchtests/bench-strcmp-ifunc.c: New file.
6548         * benchtests/bench-strcmp.c: New file.
6549         * benchtests/bench-strcpy-ifunc.c: New file.
6550         * benchtests/bench-strcpy.c: New file.
6551         * benchtests/bench-strcspn-ifunc.c: New file.
6552         * benchtests/bench-strcspn.c: New file.
6553         * benchtests/bench-strlen-ifunc.c: New file.
6554         * benchtests/bench-strlen.c: New file.
6555         * benchtests/bench-strncasecmp-ifunc.c: New file.
6556         * benchtests/bench-strncasecmp.c: New file.
6557         * benchtests/bench-strncat-ifunc.c: New file.
6558         * benchtests/bench-strncat.c: New file.
6559         * benchtests/bench-strncmp-ifunc.c: New file.
6560         * benchtests/bench-strncmp.c: New file.
6561         * benchtests/bench-strncpy-ifunc.c: New file.
6562         * benchtests/bench-strncpy.c: New file.
6563         * benchtests/bench-strnlen-ifunc.c: New file.
6564         * benchtests/bench-strnlen.c: New file.
6565         * benchtests/bench-strpbrk-ifunc.c: New file.
6566         * benchtests/bench-strpbrk.c: New file.
6567         * benchtests/bench-strrchr-ifunc.c: New file.
6568         * benchtests/bench-strrchr.c: New file.
6569         * benchtests/bench-strspn-ifunc.c: New file.
6570         * benchtests/bench-strspn.c: New file.
6571         * benchtests/bench-strstr-ifunc.c: New file.
6572         * benchtests/bench-strstr.c: New file.
6573
6574         * benchtests/Makefile: Disable parallel execution of targets.
6575         (string-bench): Add memcpy.
6576         (benchset): New variable to store a list of benchmark sets.
6577         (bench-func): Renamed from bench.
6578         (bench-set): New target.
6579         (bench): Depend on bench-func and bench-set.
6580         * benchtests/README: Add section on benchmark sets.
6581         * benchtests/bench-memcpy-ifunc.c: New file.
6582         * benchtests/bench-memcpy.c: New file.
6583         * benchtests/bench-string.h: New file.
6584
6585 2013-06-11  Andreas Schwab  <schwab@suse.de>
6586
6587         [BZ #15577]
6588         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
6589         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
6590         values in the triple.
6591         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
6592         terminator in the group key.
6593
6594 2013-06-11  Andreas Jaeger  <aj@suse.de>
6595
6596         * po/zh_TW.po: Update Chinese (traditional) translation from
6597         translation project.
6598
6599 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6600
6601         * include/time.h (__clock_gettime): Add libc_hidden_proto.
6602         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
6603         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
6604         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
6605         (clock_getcpuclockid): Likewise.
6606         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
6607         Add weak_alias and libc_hidden_def.
6608         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
6609         * rt/clock_gettime.c (clock_gettime): Rename to
6610         __clock_gettime.  Add weak_alias and libc_hidden_def.
6611         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
6612         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
6613         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
6614         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
6615         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
6616         Likewise.
6617         * rt/clock_settime.c (clock_settime): Rename to
6618         __clock_settime.  Add weak_alias and libc_hidden_def.
6619         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
6620
6621 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
6622
6623         * mach/err_boot.sub: Remove trailing whitespace.
6624         * mach/err_ipc.sub: Likewise.
6625         * mach/err_mach.sub: Likewise.
6626
6627         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
6628         (ROUNDING_TESTS_double): Likewise.
6629         (ROUNDING_TESTS_long_double): Likewise.
6630         (ROUNDING_TESTS): Likewise.
6631         * math/libm-test.inc: Include <math-tests.h>.
6632         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
6633         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
6634         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
6635         (IF_ROUND_INIT_FE_UPWARD): Likewise.
6636
6637 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6638
6639         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
6640         of assigning.
6641
6642 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
6643
6644         * sysdeps/gnu/errlist.awk: Do not generate space at end of
6645         otherwise empty TRANS lines.
6646         * sysdeps/gnu/errlist.c: Regenerated.
6647
6648         * catgets/gencat.c (error_print): Use (void) in function
6649         definition.
6650         * crypt/crypt_util.c (__init_des): Likewise.
6651         * crypt/speeds.c (Stop): Likewise.
6652         (main): Likewise.
6653         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
6654         * inet/ruserpass.c (token): Likewise.
6655         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
6656         * intl/localealias.c (extend_alias_table): Likewise.
6657         * intl/plural-exp.c (init_germanic_plural): Likewise.
6658         * libio/fcloseall.c (__fcloseall): Likewise.
6659         * libio/genops.c (_IO_flush_all): Likewise.
6660         (_IO_flush_all_linebuffered): Likewise.
6661         (_IO_cleanup): Likewise.
6662         (_IO_iter_begin): Likewise.
6663         (_IO_iter_end): Likewise.
6664         (_IO_list_lock): Likewise.
6665         (_IO_list_unlock): Likewise.
6666         (_IO_list_resetlock): Likewise.
6667         * libio/getchar.c (getchar): Likewise.
6668         * libio/getchar_u.c (getchar_unlocked): Likewise.
6669         * libio/getwchar.c (getwchar): Likewise.
6670         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6671         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
6672         * login/getpt.c (__getpt): Likewise.
6673         * login/tst-utmp.c (main): Likewise.
6674         * malloc/hooks.c (__malloc_check_init): Likewise.
6675         * malloc/malloc.c (__malloc_stats): Likewise.
6676         * malloc/mtrace.c (tr_break): Likewise.
6677         (mtrace): Likewise.
6678         (muntrace): Likewise.
6679         * misc/fstab.c (endfsent): Likewise.
6680         * misc/getclktck.c (__getclktck): Likewise.
6681         * misc/getdtsz.c (__getdtablesize): Likewise.
6682         * misc/gethostid.c (gethostid): Likewise.
6683         * misc/getpagesize.c (__getpagesize): Likewise.
6684         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
6685         (__get_nprocs): Likewise.
6686         (__get_phys_pages): Likewise.
6687         (__get_avphys_pages): Likewise.
6688         * misc/getttyent.c (getttyent): Likewise.
6689         (setttyent): Likewise.
6690         (endttyent): Likewise.
6691         * misc/getusershell.c (getusershell): Likewise.
6692         (endusershell): Likewise.
6693         (setusershell): Likewise.
6694         (initshells): Likewise.
6695         * misc/hsearch.c (__hdestroy): Likewise.
6696         * misc/sync.c (sync): Likewise.
6697         * misc/syslog.c (closelog_internal): Likewise.
6698         (closelog): Likewise.
6699         * misc/ttyslot.c (ttyslot): Likewise.
6700         * misc/vhangup.c (vhangup): Likewise.
6701         * posix/fork.c (__fork): Likewise.
6702         * posix/getegid.c (__getegid): Likewise.
6703         * posix/geteuid.c (__geteuid): Likewise.
6704         * posix/getgid.c (__getgid): Likewise.
6705         * posix/getpid.c (__getpid): Likewise.
6706         * posix/getppid.c (__getppid): Likewise.
6707         * posix/getuid.c (__getuid): Likewise.
6708         * posix/pause.c (pause): Likewise.
6709         * posix/setpgrp.c (setpgrp): Likewise.
6710         * posix/setsid.c (__setsid): Likewise.
6711         * posix/test-vfork.c (noop): Likewise.
6712         * resolv/gethnamaddr.c (_endhtent): Likewise.
6713         (_gethtent): Likewise.
6714         (ht_endhostent): Likewise.
6715         (gethostent): Likewise.
6716         (dns_service): Likewise.
6717         * stdlib/drand48.c (drand48): Likewise.
6718         * stdlib/lrand48.c (lrand48): Likewise.
6719         * stdlib/mrand48.c (mrand48): Likewise.
6720         * stdlib/rand.c (rand): Likewise.
6721         * stdlib/random.c (__random): Likewise.
6722         * stdlib/setenv.c (clearenv): Likewise.
6723         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
6724         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
6725         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
6726         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
6727         (__get_nprocs): Likewise.
6728         (__get_phys_pages): Likewise.
6729         (__get_avphys_pages): Likewise.
6730         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
6731         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
6732         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
6733         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
6734         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
6735         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
6736         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
6737         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
6738         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
6739         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
6740         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
6741         * sysdeps/mach/hurd/sync.c (sync): Likewise.
6742         * sysdeps/posix/clock.c (clock): Likewise.
6743         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
6744         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
6745         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
6746         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6747         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
6748         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
6749         (__get_nprocs_conf): Likewise.
6750         (__get_phys_pages): Likewise.
6751         (__get_avphys_pages): Likewise.
6752         * time/clock.c (clock): Likewise.
6753         * time/tzset.c (__tzname_max): Likewise.
6754
6755 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
6756
6757         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
6758         (__bswap_32): Do not use "register".
6759         * crypt/crypt.c (_ufc_doit_r): Likewise.
6760         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
6761         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
6762         * gmon/gmon.c (__monstartup): Likewise.
6763         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
6764         * hurd/hurdmalloc.c (more_memory): Likewise.
6765         (malloc): Likewise.
6766         (free): Likewise.
6767         (realloc): Likewise.
6768         (malloc_fork_prepare): Likewise.
6769         (malloc_fork_parent): Likewise.
6770         (malloc_fork_child): Likewise.
6771         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
6772         (_svcauth_des): Likewise.
6773         * inet/inet_lnaof.c (inet_lnaof): Likewise.
6774         * inet/inet_net.c (inet_network): Likewise.
6775         * inet/inet_netof.c (inet_netof): Likewise.
6776         * inet/rcmd.c (__validuser2_sa): Likewise.
6777         * io/fts.c (fts_open): Likewise.
6778         (fts_load): Likewise.
6779         (fts_close): Likewise.
6780         (fts_read): Likewise.
6781         (fts_children): Likewise.
6782         (fts_build): Likewise.
6783         (fts_stat): Likewise.
6784         (fts_sort): Likewise.
6785         (fts_alloc): Likewise.
6786         (fts_lfree): Likewise.
6787         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
6788         (_IO_file_xsgetn): Likewise.
6789         (_IO_file_xsgetn_mmap): Likewise.
6790         * libio/iofopncook.c (_IO_cookie_read): Likewise.
6791         (_IO_cookie_write): Likewise.
6792         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
6793         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
6794         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
6795         * malloc/obstack.c (_obstack_begin): Likewise.
6796         (_obstack_begin_1): Likewise.
6797         (_obstack_newchunk): Likewise.
6798         (_obstack_allocated_p): Likewise.
6799         (obstack_free): Likewise.
6800         (_obstack_memory_used): Likewise.
6801         * misc/getttyent.c (getttynam): Likewise.
6802         (getttyent): Likewise.
6803         (skip): Likewise.
6804         (value): Likewise.
6805         * misc/getusershell.c (initshells): Likewise.
6806         * misc/syslog.c (__vsyslog_chk): Likewise.
6807         * misc/ttyslot.c (ttyslot): Likewise.
6808         * nis/nis_hash.c (__nis_hash): Likewise.
6809         * posix/fnmatch_loop.c (FCT): Likewise.
6810         * posix/getconf.c (print_all): Likewise.
6811         (main): Likewise.
6812         * posix/getopt.c (exchange): Likewise.
6813         * posix/glob.c (globfree): Likewise.
6814         (prefix_array): Likewise.
6815         (__glob_pattern_type): Likewise.
6816         * resolv/arpa/nameser.h (NS_GET16): Likewise.
6817         (NS_GET32): Likewise.
6818         (NS_PUT16): Likewise.
6819         (NS_PUT32): Likewise.
6820         * resolv/gethnamaddr.c (getanswer): Likewise.
6821         (gethostbyname2): Likewise.
6822         (gethostbyaddr): Likewise.
6823         (_gethtent): Likewise.
6824         (_gethtbyname2): Likewise.
6825         (_gethtbyaddr): Likewise.
6826         * resolv/ns_print.c (dst_s_get_int16): Likewise.
6827         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
6828         * resolv/res_init.c (__res_vinit): Likewise.
6829         (net_mask): Likewise.
6830         * resolv/res_mkquery.c (outchar): Likewise.
6831         (PRINT): Likewise.
6832         * stdio-common/printf_fp.c (outchar): Likewise.
6833         (PRINT): Likewise.
6834         * stdio-common/printf_fphex.c (outchar): Likewise.
6835         (PRINT): Likewise.
6836         * stdio-common/printf_size.c (outchar): Likewise.
6837         (PRINT): Likewise.
6838         * stdio-common/test_rdwr.c (main): Likewise.
6839         * stdio-common/tfformat.c (matches): Likewise.
6840         * stdio-common/vfprintf.c (outchar): Likewise.
6841         (printf_unknown): Likewise.
6842         (buffered_vfprintf): Likewise.
6843         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
6844         * stdio-common/xbug.c (AppendToBuffer): Likewise.
6845         (ReadFile): Likewise.
6846         * stdlib/qsort.c (SWAP): Likewise.
6847         (_quicksort): Likewise.
6848         * stdlib/setenv.c (__add_to_environ): Likewise.
6849         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
6850         * stdlib/strtol_l.c (__strtol_l): Likewise.
6851         * stdlib/tst-strtod.c (main): Likewise.
6852         * stdlib/tst-strtol.c (main): Likewise.
6853         * stdlib/tst-strtoll.c (main): Likewise.
6854         * string/bits/string2.h (__strcmp_cc): Likewise.
6855         (__strcmp_cg): Likewise.
6856         (__strcspn_c1): Likewise.
6857         (__strcspn_c2): Likewise.
6858         (__strcspn_c3): Likewise.
6859         (__strspn_c1): Likewise.
6860         (__strspn_c2): Likewise.
6861         (__strspn_c3): Likewise.
6862         (__strsep_1c): Likewise.
6863         (__strsep_2c): Likewise.
6864         (__strsep_3c): Likewise.
6865         * string/memccpy.c (__memccpy): Likewise.
6866         * string/stpcpy.c (__stpcpy): Likewise.
6867         * string/strcmp.c (strcmp): Likewise.
6868         * string/strrchr.c (strrchr): Likewise.
6869         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
6870         Likewise.
6871         * sysdeps/mach/hurd/getcwd.c
6872         (_hurd_canonicalize_directory_name_internal): Likewise.
6873         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
6874         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
6875         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
6876         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
6877         Likewise, in both definitions.
6878         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
6879         definitions.
6880         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
6881         64] (__bswap_64): Likewise.
6882         * time/test_time.c (main): Likewise.
6883         * time/tzfile.c (__tzfile_read): Likewise.
6884         (__tzfile_compute): Likewise.
6885         * time/tzset.c (__tzset_parse_tz): Likewise.
6886         (tzset_internal): Likewise.
6887         (compute_change): Likewise.
6888         * wcsmbs/wcscat.c (__wcscat): Likewise.
6889         * wcsmbs/wcschr.c (wcschr): Likewise.
6890         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
6891         * wcsmbs/wcscspn.c (wcscspn): Likewise.
6892         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
6893         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
6894         * wcsmbs/wcsspn.c (wcsspn): Likewise.
6895         * wcsmbs/wcsstr.c (wcsstr): Likewise.
6896         * wcsmbs/wmemchr.c (wmemchr): Likewise.
6897         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
6898         * wcsmbs/wmemset.c (wmemset): Likewise.
6899
6900 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
6901
6902         * scripts/config.guess: Update to version 2013-05-16.
6903         * scripts/config.sub: Update to version 2013-04-24.
6904         * scripts/install-sh: Update to version 2011-11-20.07.
6905         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
6906         * scripts/move-if-change: Update to version 2012-01-06 07:23.
6907
6908 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
6909
6910         * debug/fgetws_u_chk.c: Fix leading whitespaces.
6911         * elf/sln.c: Likewise.
6912         * hurd/hurd/ioctl.h: Likewise.
6913         * hurd/hurdmalloc.c: Likewise.
6914         * hurd/xattr.c: Likewise.
6915         * include/shlib-compat.h: Likewise.
6916         * inet/ruserpass.c: Likewise.
6917         * libio/iofgets_u.c: Likewise.
6918         * libio/iofgetws_u.c: Likewise.
6919         * locale/programs/ld-identification.c: Likewise.
6920         * locale/programs/ld-time.c: Likewise.
6921         * mach/msg-destroy.c: Likewise.
6922         * nss/nss_files/files-netgrp.c: Likewise.
6923         * resolv/res_data.c: Likewise.
6924         * soft-fp/op-1.h: Likewise.
6925         * soft-fp/op-2.h: Likewise.
6926         * soft-fp/op-4.h: Likewise.
6927         * soft-fp/op-common.h: Likewise.
6928         * stdio-common/printf_fphex.c: Likewise.
6929         * stdlib/strtod_l.c: Likewise.
6930         * sunrpc/rpc/clnt.h: Likewise.
6931         * sysdeps/generic/framestate.c: Likewise.
6932         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6933         * sysdeps/i386/bsd-setjmp.S: Likewise.
6934         * sysdeps/i386/__longjmp.S: Likewise.
6935         * sysdeps/i386/setjmp.S: Likewise.
6936         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6937         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
6938         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6939         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6940         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6941         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
6942         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
6943         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
6944         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
6945         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
6946         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
6947         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6948         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6949         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6950         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6951         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
6952         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6953         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
6954         * sysdeps/ieee754/support.c: Likewise.
6955         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
6956         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
6957         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
6958         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
6959         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
6960         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
6961         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
6962         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
6963         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
6964         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
6965         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
6966         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
6967         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
6968         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
6969         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
6970         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
6971         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
6972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
6973
6974 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
6975
6976         * posix/transbug.c: Remove executable mode.
6977
6978 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
6979
6980         * crypt/speeds.c: Remove trailing whitespace.
6981         * dlfcn/default.c: Likewise.
6982         * elf/ifuncdep2.c: Likewise.
6983         * elf/ifuncmain1.c: Likewise.
6984         * elf/ifuncmain1vis.c: Likewise.
6985         * elf/testobj.h: Likewise.
6986         * elf/tst-stackguard1.c: Likewise.
6987         * gmon/sys/gmon.h: Likewise.
6988         * hurd/hurdmsg.c: Likewise.
6989         * hurd/new-fd.c: Likewise.
6990         * hurd/ports-get.c: Likewise.
6991         * iconvdata/ibm1008_420.c: Likewise.
6992         * inet/tst-getni1.c: Likewise.
6993         * inet/tst-getni2.c: Likewise.
6994         * libio/ioungetc.c: Likewise.
6995         * libio/wfiledoalloc.c: Likewise.
6996         * manual/libm-err-tab.pl: Likewise.
6997         * math/w_dremf.c: Likewise.
6998         * misc/ftruncate.c: Likewise.
6999         * posix/bug-glob2.c: Likewise.
7000         * posix/tst-pcre.c: Likewise.
7001         * posix/wait4.c: Likewise.
7002         * resolv/README: Likewise.
7003         * resolv/res_debug.h: Likewise.
7004         * resolv/tst-inet_ntop.c: Likewise.
7005         * setjmp/bug269-setjmp.c: Likewise.
7006         * soft-fp/extended.h: Likewise.
7007         * soft-fp/op-1.h: Likewise.
7008         * soft-fp/op-2.h: Likewise.
7009         * soft-fp/op-4.h: Likewise.
7010         * soft-fp/op-8.h: Likewise.
7011         * soft-fp/testit.c: Likewise.
7012         * stdio-common/bug16.c: Likewise.
7013         * stdlib/random.c: Likewise.
7014         * sunrpc/rpcsvc/rquota.x: Likewise.
7015         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
7016         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7017         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7018         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7019         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7020         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7021         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7022         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7023         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7024         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7025         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7026         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
7027         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7028         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
7029         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7030         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
7031         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
7032         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7033         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
7034         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7035         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7036         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7037         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
7038         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
7039         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
7040         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
7041         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
7042         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7043         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7044         * sysdeps/ieee754/s_lib_version.c: Likewise.
7045         * sysdeps/mach/hurd/check_fds.c: Likewise.
7046         * sysdeps/mach/hurd/getsockname.c: Likewise.
7047         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
7048         * sysdeps/mach/hurd/recvfrom.c: Likewise.
7049         * sysdeps/powerpc/bits/link.h: Likewise.
7050         * sysdeps/powerpc/dl-procinfo.c: Likewise.
7051         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
7052         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
7053         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
7054         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
7055         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7056         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
7057         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
7058         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
7059         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
7060         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
7061         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
7062         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
7063         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
7064         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
7065         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
7066         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
7067         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
7068         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
7069         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
7070         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
7071         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
7072         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
7073         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
7074         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7075         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
7076         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
7077         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
7078         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
7079         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
7080         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
7081         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
7082         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7083         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7084         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
7085         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
7086         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
7087         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
7088         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
7089         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
7090         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
7091         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
7092         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
7093         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
7094         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
7095         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
7096         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
7097         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
7098         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
7099         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
7100         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7101         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7102         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7103         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7104         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
7105         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
7106         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
7107         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
7108         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
7109         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
7110         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
7111         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
7112         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
7113         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
7114         * sysdeps/powerpc/sysdep.h: Likewise.
7115         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
7116         * sysdeps/s390/s390-64/sub_n.S: Likewise.
7117         * sysdeps/sh/dl-trampoline.S: Likewise.
7118         * sysdeps/sh/memset.S: Likewise.
7119         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
7120         * sysdeps/sh/strlen.S: Likewise.
7121         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
7122         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
7123         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
7124         * sysdeps/sparc/sparc32/rem.S: Likewise.
7125         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
7126         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
7127         * sysdeps/sparc/sparc32/strchr.S: Likewise.
7128         * sysdeps/sparc/sparc32/udiv.S: Likewise.
7129         * sysdeps/sparc/sparc32/urem.S: Likewise.
7130         * sysdeps/sparc/sparc64/add_n.S: Likewise.
7131         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7132         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
7133         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
7134         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
7135         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
7136         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
7137         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
7138         * sysdeps/unix/bsd/times.c: Likewise.
7139         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
7140         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
7141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
7142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
7143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
7144         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7145         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
7146         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
7147         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
7148         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
7149         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
7150         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
7151         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
7152         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
7153         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
7154         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7155         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7156         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
7157         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
7158         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
7159         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
7160         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
7161         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
7162         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
7163         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
7164         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7165         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
7166         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
7167         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
7168         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
7169         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
7170         * sysdeps/x86_64/strcspn.S: Likewise.
7171
7172 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7173
7174         * locale/C-translit.h: Revert #include <stdint.h> because this is a
7175         generated file.  Regenerate properly from gen-translit.pl.
7176         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
7177         locale/C-translit.h.
7178
7179 2013-06-05  Andreas Schwab  <schwab@suse.de>
7180
7181         [BZ #15100]
7182         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
7183         week as 6 instead of -1.
7184         * time/tst-strptime.c (day_tests): Add test case.
7185
7186 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7187
7188         * sysdeps/generic/math_private.h
7189         (libc_feholdexcept_setround_53bit): Replace with
7190         libc_feholdsetround_53bit.
7191         (libc_feupdateenv_53bit): Replace with
7192         libc_feresetround_53bit.
7193         (SET_RESTORE_ROUND_53BIT): Adjust.
7194
7195 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
7196
7197         * string/test-strchrnul.c: Add copyright header.
7198
7199         * posix/tst-getaddrinfo4.c: Increase test timeout.
7200
7201 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
7202
7203         [BZ #15536]
7204         * math/libm-test.inc (MAX_EXP): Remove
7205         (MIN_EXP): Define.
7206         (ulp): Use MIN_EXP - MANT_DIG.
7207         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
7208
7209 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
7210
7211         * po/be.po: Revert last change.
7212         * po/zh_CN.po: Likewise.
7213         * po/header.pot: Likewise.
7214
7215 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
7216
7217         * Makefile ($(common-objpfx)linkobj/libc.so): Define
7218         link-libc-deps to empty as target-specific variable.
7219         * Makerules (link-libc-args): New variable.
7220         (libc-for-link): Likewise.
7221         (link-libc-deps): Likewise.
7222         (lib%.so): Depend on $(link-libc-deps).  Link with
7223         $(link-libc-args).
7224         (build-module): Link with $(link-libc-args).
7225         (build-module-asneeded): Likewise.
7226         (build-module-helper-objlist): Filter out $(link-libc-deps) from
7227         list of objects.
7228         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
7229         target-specific variable.
7230         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
7231         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
7232         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
7233         libc.
7234         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
7235         libc and ld.so.
7236         ($(objpfx)libpcprofile.so): Likewise.
7237         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
7238         libc_nonshared.a.
7239         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
7240         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
7241         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
7242         $(link-libc-deps).
7243         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
7244         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
7245         * login/Makefile ($(objpfx)libutil.so): Likewise.
7246         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
7247         * math/Makefile ($(objpfx)libm.so): Likewise.
7248         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
7249         $(objpfx)libnsl.so): Define libc-for-link as target-specific
7250         variable instead of depending directly on libc.
7251         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
7252         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
7253         $(link-libc-deps).
7254         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
7255         libc.
7256         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
7257         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
7258         ($(objpfx)libanl.so): Likewise.
7259         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
7260         ld.so.
7261         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
7262         $(link-libc-deps).
7263         * sysdeps/i386/fpu/Makefile: Remove file.
7264         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
7265         ($(objpfx)libm.so): Remove dependency on ld.so.
7266
7267 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
7268
7269         [BZ # 15553]
7270         * nis/yp_xdr.c (XDRMAXNAME): Define.
7271         (XDRMAXRECORD): Define.
7272         (xdr_domainname): Use XDRMAXNAME.
7273         (xdr_mapname): Likewise.
7274         (xdr_peername): Likewise.
7275         (xdr_keydat): Use XDRMAXRECORD.
7276         (xdr_valdat): Likewise.
7277
7278 2013-05-30  Jeff Law  <law@redhat.com>
7279
7280         [BZ #14256]
7281         * manual/errno.texi (ESTALE): Update to account for more than
7282         just NFS file systems.
7283         * sysdeps/gnu/errlist.c: Regenerated.
7284
7285 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7286
7287         [BZ #15465]
7288         * elf/Makefile (tests): Add tst-null-argv.
7289         (modules-names):  Add tst-null-argv-lib.
7290         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
7291         (tst-null-argv-ENV): Set environment for tst-null-argv.
7292         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
7293         (RTLD_PROGNAME): New macro.
7294         * elf/tst-null-argv.c: New test case.
7295         * elf/tst-null-argv-lib.c: Library for test case.
7296         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
7297         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
7298         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
7299         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
7300         * elf/dl-init.c (call_init): Likewise.
7301         (_dl_init): Likewise.
7302         * elf/dl-load.c (print_search_path): Likewise.
7303         (_dl_map_object): Likewise.
7304         * elf/dl-lookup.c (do_lookup_x): Likewise.
7305         (add_dependency): Likewise.
7306         (_dl_lookup_symbol_x): Likewise.
7307         (_dl_debug_bindings): Likewise.
7308         * elf/dl-open.c (_dl_show_scope): Likewise.
7309         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7310         * elf/dl-version.c (match_symbol): Likewise.
7311         (_dl_check_map_versions): Likewise.
7312         * elf/rtld.c (dl_main): Likewise.
7313         (print_unresolved): Use RTLD_PROGNAME.
7314         (print_missing_version): Likewise.
7315         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
7316         (elf_machine_rela): Likewise.
7317         * sysdeps/powerpc/powerpc32/dl-machine.c
7318         (__process_machine_rela): Likewise.
7319         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7320         Likewise.
7321         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
7322         Likewise.
7323         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
7324         Likewise.
7325         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7326         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
7327         Likewise.
7328         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
7329         Likewise.
7330         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7331
7332 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
7333
7334         * po/be.po: Add descriptive title.
7335         * po/zh_CN.po: Likewise.
7336         * po/header.pot: Likewise.
7337
7338 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
7339
7340         * locale/programs/locarchive.c (create_archive): Inlucde fname in
7341         error message.
7342         (enlarge_archive): Likewise.
7343
7344 2013-05-28  Ben North  <ben@redfrontdoor.org>
7345
7346         * manual/arith.texi (frexp): It is the magnitude of the return
7347         value which lies in [0.5, 1), not the return value itself.
7348
7349 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7350
7351         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7352
7353 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
7354
7355         * stdio-common/bug26.c (main): Correct fscanf template.
7356
7357         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
7358         declare _dl_skip_args.
7359
7360         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
7361         Don't declare.
7362
7363         * manual/platform.texi: Add missing @end deftypefun.
7364
7365 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
7366
7367         [BZ #15529]
7368         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
7369         bit of mantissa of 2^16382.
7370         * math/libm-test.inc (hypot_test_data): Add more tests.
7371
7372         * math/libm-test.inc: Add drem and pow10 to list of tested
7373         functions.
7374         (pow10_test): New function.
7375         (drem_test): Likewise.
7376         (drem_test_tonearest): Likewise.
7377         (drem_test_towardzero): Likewise.
7378         (drem_test_downward): Likewise.
7379         (drem_test_upward): Likewise.
7380         (main): Call the new functions.
7381
7382         * math/libm-test.inc (finite_test_data): Remove.
7383         (finite_test): Run tests from isfinite_test_data.
7384         (gamma_test_data): Remove.
7385         (gamma_test): Run tests from lgamma_test_data.
7386         * sysdeps/i386/fpu/libm-test-ulps: Update.
7387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7388
7389 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7390
7391         * manual/platform.texi: Add PowerPC PPR function set documentation.
7392         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
7393         implementation.
7394
7395 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
7396
7397         * math/libm-test.inc (MAX_EXP): Define.
7398         (ULPDIFF): Define.
7399         (ulp): New function.
7400         (check_float_internal): Use ULPDIFF.
7401         (cpow_test): Disable failing test.
7402         (check_ulp): Test ulp() implemetnation.
7403         (main): Call check_ulp before starting tests.
7404
7405 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
7406
7407         * math/gen-libm-test.pl (generate_testfile): Do not handle
7408         START_DATA and END_DATA.
7409         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
7410         END_DATA.
7411         (acos_tonearest_test_data): Likewise.
7412         (acos_towardzero_test_data): Likewise.
7413         (acos_downward_test_data): Likewise.
7414         (acos_upward_test_data): Likewise.
7415         (acosh_test_data): Likewise.
7416         (asin_test_data): Likewise.
7417         (asin_tonearest_test_data): Likewise.
7418         (asin_towardzero_test_data): Likewise.
7419         (asin_downward_test_data): Likewise.
7420         (asin_upward_test_data): Likewise.
7421         (asinh_test_data): Likewise.
7422         (atan_test_data): Likewise.
7423         (atanh_test_data): Likewise.
7424         (atan2_test_data): Likewise.
7425         (cabs_test_data): Likewise.
7426         (cacos_test_data): Likewise.
7427         (cacosh_test_data): Likewise.
7428         (carg_test_data): Likewise.
7429         (casin_test_data): Likewise.
7430         (casinh_test_data): Likewise.
7431         (catan_test_data): Likewise.
7432         (catanh_test_data): Likewise.
7433         (cbrt_test_data): Likewise.
7434         (ccos_test_data): Likewise.
7435         (ccosh_test_data): Likewise.
7436         (ceil_test_data): Likewise.
7437         (cexp_test_data): Likewise.
7438         (cimag_test_data): Likewise.
7439         (clog_test_data): Likewise.
7440         (clog10_test_data): Likewise.
7441         (conj_test_data): Likewise.
7442         (copysign_test_data): Likewise.
7443         (cos_test_data): Likewise.
7444         (cos_tonearest_test_data): Likewise.
7445         (cos_towardzero_test_data): Likewise.
7446         (cos_downward_test_data): Likewise.
7447         (cos_upward_test_data): Likewise.
7448         (cosh_test_data): Likewise.
7449         (cosh_tonearest_test_data): Likewise.
7450         (cosh_towardzero_test_data): Likewise.
7451         (cosh_downward_test_data): Likewise.
7452         (cosh_upward_test_data): Likewise.
7453         (cpow_test_data): Likewise.
7454         (cproj_test_data): Likewise.
7455         (creal_test_data): Likewise.
7456         (csin_test_data): Likewise.
7457         (csinh_test_data): Likewise.
7458         (csqrt_test_data): Likewise.
7459         (ctan_test_data): Likewise.
7460         (ctan_tonearest_test_data): Likewise.
7461         (ctan_towardzero_test_data): Likewise.
7462         (ctan_downward_test_data): Likewise.
7463         (ctan_upward_test_data): Likewise.
7464         (ctanh_test_data): Likewise.
7465         (ctanh_tonearest_test_data): Likewise.
7466         (ctanh_towardzero_test_data): Likewise.
7467         (ctanh_downward_test_data): Likewise.
7468         (ctanh_upward_test_data): Likewise.
7469         (erf_test_data): Likewise.
7470         (erfc_test_data): Likewise.
7471         (exp_test_data): Likewise.
7472         (exp_tonearest_test_data): Likewise.
7473         (exp_towardzero_test_data): Likewise.
7474         (exp_downward_test_data): Likewise.
7475         (exp_upward_test_data): Likewise.
7476         (exp10_test_data): Likewise.
7477         (exp2_test_data): Likewise.
7478         (expm1_test_data): Likewise.
7479         (fabs_test_data): Likewise.
7480         (fdim_test_data): Likewise.
7481         (finite_test_data): Likewise.
7482         (floor_test_data): Likewise.
7483         (fma_test_data): Likewise.
7484         (fma_towardzero_test_data): Likewise.
7485         (fma_downward_test_data): Likewise.
7486         (fma_upward_test_data): Likewise.
7487         (fmax_test_data): Likewise.
7488         (fmin_test_data): Likewise.
7489         (fmod_test_data): Likewise.
7490         (fpclassify_test_data): Likewise.
7491         (frexp_test_data): Likewise.
7492         (gamma_test_data): Likewise.
7493         (hypot_test_data): Likewise.
7494         (ilogb_test_data): Likewise.
7495         (isfinite_test_data): Likewise.
7496         (isgreater_test_data): Likewise.
7497         (isgreaterequal_test_data): Likewise.
7498         (isinf_test_data): Likewise.
7499         (isless_test_data): Likewise.
7500         (islessequal_test_data): Likewise.
7501         (islessgreater_test_data): Likewise.
7502         (isnan_test_data): Likewise.
7503         (isnormal_test_data): Likewise.
7504         (issignaling_test_data): Likewise.
7505         (isunordered_test_data): Likewise.
7506         (j0_test_data): Likewise.
7507         (j1_test_data): Likewise.
7508         (jn_test_data): Likewise.
7509         (ldexp_test_data): Likewise.
7510         (lgamma_test_data): Likewise.
7511         (lrint_test_data): Likewise.
7512         (lrint_tonearest_test_data): Likewise.
7513         (lrint_towardzero_test_data): Likewise.
7514         (lrint_downward_test_data): Likewise.
7515         (lrint_upward_test_data): Likewise.
7516         (llrint_test_data): Likewise.
7517         (llrint_tonearest_test_data): Likewise.
7518         (llrint_towardzero_test_data): Likewise.
7519         (llrint_downward_test_data): Likewise.
7520         (llrint_upward_test_data): Likewise.
7521         (log_test_data): Likewise.
7522         (log10_test_data): Likewise.
7523         (log1p_test_data): Likewise.
7524         (log2_test_data): Likewise.
7525         (logb_test_data): Likewise.
7526         (logb_downward_test_data): Likewise.
7527         (lround_test_data): Likewise.
7528         (llround_test_data): Likewise.
7529         (modf_test_data): Likewise.
7530         (nearbyint_test_data): Likewise.
7531         (nextafter_test_data): Likewise.
7532         (nexttoward_test_data): Likewise.
7533         (pow_test_data): Likewise.
7534         (pow_tonearest_test_data): Likewise.
7535         (pow_towardzero_test_data): Likewise.
7536         (pow_downward_test_data): Likewise.
7537         (pow_upward_test_data): Likewise.
7538         (remainder_test_data): Likewise.
7539         (remainder_tonearest_test_data): Likewise.
7540         (remainder_towardzero_test_data): Likewise.
7541         (remainder_downward_test_data): Likewise.
7542         (remainder_upward_test_data): Likewise.
7543         (remquo_test_data): Likewise.
7544         (rint_test_data): Likewise.
7545         (rint_tonearest_test_data): Likewise.
7546         (rint_towardzero_test_data): Likewise.
7547         (rint_downward_test_data): Likewise.
7548         (rint_upward_test_data): Likewise.
7549         (round_test_data): Likewise.
7550         (scalb_test_data): Likewise.
7551         (scalbn_test_data): Likewise.
7552         (scalbln_test_data): Likewise.
7553         (signbit_test_data): Likewise.
7554         (sin_test_data): Likewise.
7555         (sin_tonearest_test_data): Likewise.
7556         (sin_towardzero_test_data): Likewise.
7557         (sin_downward_test_data): Likewise.
7558         (sin_upward_test_data): Likewise.
7559         (sincos_test_data): Likewise.
7560         (sinh_test_data): Likewise.
7561         (sinh_tonearest_test_data): Likewise.
7562         (sinh_towardzero_test_data): Likewise.
7563         (sinh_downward_test_data): Likewise.
7564         (sinh_upward_test_data): Likewise.
7565         (sqrt_test_data): Likewise.
7566         (tan_test_data): Likewise.
7567         (tan_tonearest_test_data): Likewise.
7568         (tan_towardzero_test_data): Likewise.
7569         (tan_downward_test_data): Likewise.
7570         (tan_upward_test_data): Likewise.
7571         (tanh_test_data): Likewise.
7572         (tgamma_test_data): Likewise.
7573         (trunc_test_data): Likewise.
7574         (y0_test_data): Likewise.
7575         (y1_test_data): Likewise.
7576         (yn_test_data): Likewise.
7577         (significand_test_data): Likewise.
7578
7579         * math/gen-libm-test.pl (@functions): Remove variable.
7580         (generate_testfile): Don't handle START and END lines.
7581         * math/libm-test.inc (START): New macro.
7582         (END): Likewise.
7583         (END_COMPLEX): Likewise.
7584         (acos_test): Use END macro without arguments.
7585         (acos_test_tonearest): Likewise.
7586         (acos_test_towardzero): Likewise.
7587         (acos_test_downward): Likewise.
7588         (acos_test_upward): Likewise.
7589         (acosh_test): Likewise.
7590         (asin_test): Likewise.
7591         (asin_test_tonearest): Likewise.
7592         (asin_test_towardzero): Likewise.
7593         (asin_test_downward): Likewise.
7594         (asin_test_upward): Likewise.
7595         (asinh_test): Likewise.
7596         (atan_test): Likewise.
7597         (atanh_test): Likewise.
7598         (atan2_test): Likewise.
7599         (cabs_test): Likewise.
7600         (cacos_test): Use END_COMPLEX macro without arguments.
7601         (cacosh_test): Likewise.
7602         (carg_test): Use END macro without arguments.
7603         (casin_test): Use END_COMPLEX macro without arguments.
7604         (casinh_test): Likewise.
7605         (catan_test): Likewise.
7606         (catanh_test): Likewise.
7607         (cbrt_test): Use END macro without arguments.
7608         (ccos_test): Use END_COMPLEX macro without arguments.
7609         (ccosh_test): Likewise.
7610         (ceil_test): Use END macro without arguments.
7611         (cexp_test): Use END_COMPLEX macro without arguments.
7612         (cimag_test): Use END macro without arguments.
7613         (clog_test): Use END_COMPLEX macro without arguments.
7614         (clog10_test): Likewise.
7615         (conj_test): Likewise.
7616         (copysign_test): Use END macro without arguments.
7617         (cos_test): Likewise.
7618         (cos_test_tonearest): Likewise.
7619         (cos_test_towardzero): Likewise.
7620         (cos_test_downward): Likewise.
7621         (cos_test_upward): Likewise.
7622         (cosh_test): Likewise.
7623         (cosh_test_tonearest): Likewise.
7624         (cosh_test_towardzero): Likewise.
7625         (cosh_test_downward): Likewise.
7626         (cosh_test_upward): Likewise.
7627         (cpow_test): Use END_COMPLEX macro without arguments.
7628         (cproj_test): Likewise.
7629         (creal_test): Use END macro without arguments.
7630         (csin_test): Use END_COMPLEX macro without arguments.
7631         (csinh_test): Likewise.
7632         (csqrt_test): Likewise.
7633         (ctan_test): Likewise.
7634         (ctan_test_tonearest): Likewise.
7635         (ctan_test_towardzero): Likewise.
7636         (ctan_test_downward): Likewise.
7637         (ctan_test_upward): Likewise.
7638         (ctanh_test): Likewise.
7639         (ctanh_test_tonearest): Likewise.
7640         (ctanh_test_towardzero): Likewise.
7641         (ctanh_test_downward): Likewise.
7642         (ctanh_test_upward): Likewise.
7643         (erf_test): Use END macro without arguments.
7644         (erfc_test): Likewise.
7645         (exp_test): Likewise.
7646         (exp_test_tonearest): Likewise.
7647         (exp_test_towardzero): Likewise.
7648         (exp_test_downward): Likewise.
7649         (exp_test_upward): Likewise.
7650         (exp10_test): Likewise.
7651         (exp2_test): Likewise.
7652         (expm1_test): Likewise.
7653         (fabs_test): Likewise.
7654         (fdim_test): Likewise.
7655         (finite_test): Likewise.
7656         (floor_test): Likewise.
7657         (fma_test): Likewise.
7658         (fma_test_towardzero): Likewise.
7659         (fma_test_downward): Likewise.
7660         (fma_test_upward): Likewise.
7661         (fmax_test): Likewise.
7662         (fmin_test): Likewise.
7663         (fmod_test): Likewise.
7664         (fpclassify_test): Likewise.
7665         (frexp_test): Likewise.
7666         (gamma_test): Likewise.
7667         (hypot_test): Likewise.
7668         (ilogb_test): Likewise.
7669         (isfinite_test): Likewise.
7670         (isgreater_test): Likewise.
7671         (isgreaterequal_test): Likewise.
7672         (isinf_test): Likewise.
7673         (isless_test): Likewise.
7674         (islessequal_test): Likewise.
7675         (islessgreater_test): Likewise.
7676         (isnan_test): Likewise.
7677         (isnormal_test): Likewise.
7678         (issignaling_test): Likewise.
7679         (isunordered_test): Likewise.
7680         (j0_test): Likewise.
7681         (j1_test): Likewise.
7682         (jn_test): Likewise.
7683         (ldexp_test): Likewise.
7684         (lgamma_test): Likewise.
7685         (lrint_test): Likewise.
7686         (lrint_test_tonearest): Likewise.
7687         (lrint_test_towardzero): Likewise.
7688         (lrint_test_downward): Likewise.
7689         (lrint_test_upward): Likewise.
7690         (llrint_test): Likewise.
7691         (llrint_test_tonearest): Likewise.
7692         (llrint_test_towardzero): Likewise.
7693         (llrint_test_downward): Likewise.
7694         (llrint_test_upward): Likewise.
7695         (log_test): Likewise.
7696         (log10_test): Likewise.
7697         (log1p_test): Likewise.
7698         (log2_test): Likewise.
7699         (logb_test): Likewise.
7700         (logb_test_downward): Likewise.
7701         (lround_test): Likewise.
7702         (llround_test): Likewise.
7703         (modf_test): Likewise.
7704         (nearbyint_test): Likewise.
7705         (nextafter_test): Likewise.
7706         (nexttoward_test): Likewise.
7707         (pow_test): Likewise.
7708         (pow_test_tonearest): Likewise.
7709         (pow_test_towardzero): Likewise.
7710         (pow_test_downward): Likewise.
7711         (pow_test_upward): Likewise.
7712         (remainder_test): Likewise.
7713         (remainder_test_tonearest): Likewise.
7714         (remainder_test_towardzero): Likewise.
7715         (remainder_test_downward): Likewise.
7716         (remainder_test_upward): Likewise.
7717         (remquo_test): Likewise.
7718         (rint_test): Likewise.
7719         (rint_test_tonearest): Likewise.
7720         (rint_test_towardzero): Likewise.
7721         (rint_test_downward): Likewise.
7722         (rint_test_upward): Likewise.
7723         (round_test): Likewise.
7724         (scalb_test): Likewise.
7725         (scalbn_test): Likewise.
7726         (scalbln_test): Likewise.
7727         (signbit_test): Likewise.
7728         (sin_test): Likewise.
7729         (sin_test_tonearest): Likewise.
7730         (sin_test_towardzero): Likewise.
7731         (sin_test_downward): Likewise.
7732         (sin_test_upward): Likewise.
7733         (sincos_test): Likewise.
7734         (sinh_test): Likewise.
7735         (sinh_test_tonearest): Likewise.
7736         (sinh_test_towardzero): Likewise.
7737         (sinh_test_downward): Likewise.
7738         (sinh_test_upward): Likewise.
7739         (sqrt_test): Likewise.
7740         (tan_test): Likewise.
7741         (tan_test_tonearest): Likewise.
7742         (tan_test_towardzero): Likewise.
7743         (tan_test_downward): Likewise.
7744         (tan_test_upward): Likewise.
7745         (tanh_test): Likewise.
7746         (tgamma_test): Likewise.
7747         (trunc_test): Likewise.
7748         (y0_test): Likewise.
7749         (y1_test): Likewise.
7750         (yn_test): Likewise.
7751         (significand_test): Likewise.
7752
7753 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
7754
7755         [BZ #15381]
7756         * libio/genops.c (_IO_no_init): Initialize wide struct info.
7757
7758 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7759
7760         [BZ #14894]
7761         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
7762         __ppc_mdoio and __ppc_mdoom.
7763         * manual/platform.texi: Document new functions __ppc_yield,
7764         __ppc_mdoio and __ppc_mdoom.
7765
7766 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
7767
7768         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
7769         (main): Mention "tls" pseudo-hwcap is legacy.
7770         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
7771
7772 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
7773
7774         * math/gen-libm-test.pl (parse_args): Output only string of
7775         arguments as text for test name, not full call or descriptions of
7776         tests for extra outputs.
7777         (generate_testfile): Do not pass function name to parse_args.
7778         Generate this_func variable from START.
7779         * math/libm-test.inc (struct test_f_f_data): Rename test_name
7780         field to arg_str.
7781         (struct test_ff_f_data): Likewise.
7782         (test_ff_f_data_nexttoward): Likewise.
7783         (struct test_fi_f_data): Likewise.
7784         (struct test_fl_f_data): Likewise.
7785         (struct test_if_f_data): Likewise.
7786         (struct test_fff_f_data): Likewise.
7787         (struct test_c_f_data): Likewise.
7788         (struct test_f_f1_data): Likewise.  Remove field extra_name.
7789         (struct test_fF_f1_data): Likewise.
7790         (struct test_ffI_f1_data): Likewise.
7791         (struct test_c_c_data): Rename test_name field to arg_str.
7792         (struct test_cc_c_data): Likewise.
7793         (struct test_f_i_data): Likewise.
7794         (struct test_ff_i_data): Likewise.
7795         (struct test_f_l_data): Likewise.
7796         (struct test_f_L_data): Likewise.
7797         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
7798         and extra2_name.
7799         (COMMON_TEST_SETUP): New macro.
7800         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
7801         (COMMON_TEST_CLEANUP): Likewise.
7802         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
7803         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
7804         macros.
7805         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
7806         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
7807         macros.
7808         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
7809         (RUN_TEST_fff_f): Take argument string.  Call new setup and
7810         cleanup macros.
7811         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
7812         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
7813         macros.
7814         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
7815         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
7816         macros.
7817         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
7818         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
7819         cleanup macros.
7820         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
7821         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
7822         cleanup macros.
7823         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
7824         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
7825         cleanup macros.
7826         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
7827         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
7828         macros.
7829         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
7830         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
7831         macros.
7832         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
7833         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
7834         macros.
7835         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
7836         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
7837         cleanup macros.
7838         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
7839         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
7840         cleanup macros.
7841         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
7842         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
7843         macros.
7844         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
7845         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
7846         cleanup macros.
7847         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
7848         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
7849         macros.
7850         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
7851         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
7852         macros.
7853         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
7854         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
7855         cleanup macros.
7856         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
7857
7858 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
7859
7860         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
7861         to _sifields.sigfault.
7862         (si_addr_lsb): Define new macro.
7863         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
7864         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7865         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
7866
7867 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
7868
7869         [BZ #15441]
7870         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
7871         returns -1.
7872         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
7873         null return -1.
7874         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
7875         loading the domain.
7876
7877 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
7878
7879         * math/gen-libm-test.pl (parse_args): Do not include expected
7880         result in test name.
7881         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
7882         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7883         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7884         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
7885         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7887
7888 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
7889
7890         * benchtests/Makefile: Sort function entries.
7891
7892         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
7893         tanh, asinh, acosh, atanh.
7894         * benchtests/acos-inputs: New file.
7895         * benchtests/acosh-inputs: New file.
7896         * benchtests/asin-inputs: New file.
7897         * benchtests/asinh-inputs: New file.
7898         * benchtests/atanh-inputs: New file.
7899         * benchtests/cosh-inputs: New file.
7900         * benchtests/log-inputs: New file.
7901         * benchtests/sinh-inputs: New file.
7902         * benchtests/tanh-inputs: New file.
7903
7904 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
7905
7906         [BZ #15339]
7907         * posix/tst-getaddrinfo4.c: New test.
7908         * posix/Makefile (tests): Add it.
7909
7910 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7911
7912         [BZ #15339]
7913         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
7914         when no services were used.
7915         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
7916         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
7917
7918 2013-05-21  Andreas Schwab  <schwab@suse.de>
7919
7920         [BZ #15014]
7921         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
7922         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
7923         successful.
7924         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
7925         redundant variable declarations and reallocation of buffer when
7926         parsing as IPv6 address.  Always set NSS status when called from
7927         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
7928         buffer too small.  Correct computation of needed size.
7929         * nss/Makefile (tests): Add test-digits-dots.
7930         * nss/test-digits-dots.c: New test.
7931
7932 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7933
7934         * benchtests/Makefile: Remove instructions for adding
7935         benchmark tests.
7936         * benchtests/README: New file to explain how to execute and
7937         enhance the benchmark tests.
7938
7939 2013-05-21  Andreas Schwab  <schwab@suse.de>
7940
7941         [BZ #15493]
7942         * setjmp/Makefile (tests): Add tst-sigsetjmp.
7943         * setjmp/tst-sigsetjmp.c: New test.
7944
7945 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
7946
7947         * sysdeps/x86_64/memset.S (memset): New implementation.
7948         (__bzero): Likewise.
7949         (__memset_tail): New function.
7950
7951 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
7952
7953         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
7954         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
7955         __memcpy_sse2_unaligned ifunc selection.
7956         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
7957         Add memcpy-sse2-unaligned.S.
7958         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
7959         Add: __memcpy_sse2_unaligned.
7960
7961 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
7962
7963         [BZ #15490]
7964         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
7965         math_force_eval before restoring floating-point envrionment.
7966         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
7967         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
7968         Likewise.
7969         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
7970         <math_private.h>.
7971         (__nearbyintl): Use math_force_eval before restoring
7972         floating-point environment.
7973         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
7974
7975         * math/gen-libm-test.pl (special_functions): Remove.
7976         (parse_args): Don't handle TEST_extra.  Handle functions with no
7977         return value.
7978         * math/libm-test.inc (struct test_sincos_data): Replace with
7979         struct test_fFF_11_data.
7980         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
7981         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
7982         (sincos_test_data): Change element type to struct
7983         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
7984         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
7985         RUN_TEST_LOOP_sincos.
7986         * math/README.libm-test: Don't mention special handling of
7987         individual functions.
7988         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
7989         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7990         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7991         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
7992         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7993         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7994
7995         * math/gen-libm-test.pl (get_variable): Remove function.
7996         (parse_args): Don't show pointer parameters to call in test
7997         names.  Use "extra output N" in test names for extra outputs
7998         rather than naming variables.
7999
8000 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
8001
8002         [BZ #15488]
8003         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
8004         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
8005         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
8006         double tests.
8007         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
8008         disable.
8009         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
8010         check_long_double.
8011
8012         * math/gen-libm-test.pl (@tests): Remove variable.
8013         ($count): Likewise.
8014         (new_test): Remove function.
8015         (show_exceptions): New function.
8016         (special_functions): Use show_exceptions instead of new_test.
8017         (parse_args): Likewise.
8018         (generate_testfile): Pass only function name in generated call to
8019         print_max_error or print_complex_max_error.
8020         (get_ulps): Do not handle complex tests specially.
8021         (output_test): Rename to ...
8022         (get_all_ulps_for_test): ... this.  Return a string rather than
8023         printing to a file.  Require ulps to be present.
8024         (output_ulps): Generate arrays rather than #defines.
8025         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
8026         (struct ulp_data): New type.
8027         (BUILD_COMPLEX_ULP): Remove macro.
8028         (compare_ulp_data): New function.
8029         (find_ulps): Likewise.
8030         (find_test_ulps): Likewise.
8031         (find_function_ulps): Likewise.
8032         (find_complex_function_ulps): Likewise.
8033         (print_max_error): Determine allowed ulps using
8034         find_function_ulps.
8035         (print_complex_max_error): Determine allowed ulps using
8036         find_complex_function_ulps.
8037         (check_float_internal): Determine max ulps using find_test_ulps.
8038         (check_float): Do not take max_ulp parameter.  Update call to
8039         check_float_internal.
8040         (check_complex): Likewise.
8041         (check_int): Do not take max_ulp parameter.
8042         (check_long): Likewise.
8043         (check_bool): Likewise.
8044         (check_longlong): Likewise.
8045         (struct test_f_f_data): Remove max_ulp field.
8046         (struct test_ff_f_data): Likewise.
8047         (struct test_ff_f_data_nexttoward): Likewise.
8048         (struct test_fi_f_data): Likewise.
8049         (struct test_fl_f_data): Likewise.
8050         (struct test_if_f_data): Likewise.
8051         (struct test_fff_f_data): Likewise.
8052         (struct test_c_f_data): Likewise.
8053         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
8054         (struct test_fF_f1_data): Likewise.
8055         (struct test_ffI_f1_data): Likewise.
8056         (struct test_c_c_data): Remove max_ulp field.
8057         (struct test_cc_c_data): Likewise.
8058         (struct test_f_i_data): Likewise.
8059         (struct test_ff_i_data): Likewise.
8060         (struct test_f_l_data): Likewise.
8061         (struct test_f_L_data): Likewise.
8062         (struct test_sincos_data): Likewise.
8063         (RUN_TEST_f_f): Do not handle ulps.
8064         (RUN_TEST_LOOP_f_f): Likewise.
8065         (RUN_TEST_2_f): Likewise.
8066         (RUN_TEST_LOOP_2_f): Likewise.
8067         (RUN_TEST_fff_f): Likewise.
8068         (RUN_TEST_LOOP_fff_f): Likewise.
8069         (RUN_TEST_c_f): Likewise.
8070         (RUN_TEST_LOOP_c_f): Likewise.
8071         (RUN_TEST_f_f1): Likewise.
8072         (RUN_TEST_LOOP_f_f1): Likewise.
8073         (RUN_TEST_fF_f1): Likewise.
8074         (RUN_TEST_LOOP_fF_f1): Likewise.
8075         (RUN_TEST_fI_f1): Likewise.
8076         (RUN_TEST_LOOP_fI_f1): Likewise.
8077         (RUN_TEST_ffI_f1): Likewise.
8078         (RUN_TEST_LOOP_ffI_f1): Likewise.
8079         (RUN_TEST_c_c): Likewise.
8080         (RUN_TEST_LOOP_c_c): Likewise.
8081         (RUN_TEST_cc_c): Likewise.
8082         (RUN_TEST_LOOP_cc_c): Likewise.
8083         (RUN_TEST_f_i): Likewise.
8084         (RUN_TEST_LOOP_f_i): Likewise.
8085         (RUN_TEST_f_i_tg): Likewise.
8086         (RUN_TEST_LOOP_f_i_tg): Likewise.
8087         (RUN_TEST_ff_i_tg): Likewise.
8088         (RUN_TEST_LOOP_ff_i_tg): Likewise.
8089         (RUN_TEST_f_b): Likewise.
8090         (RUN_TEST_LOOP_f_b): Likewise.
8091         (RUN_TEST_f_b_tg): Likewise.
8092         (RUN_TEST_LOOP_f_b_tg): Likewise.
8093         (RUN_TEST_f_l): Likewise.
8094         (RUN_TEST_LOOP_f_l): Likewise.
8095         (RUN_TEST_f_L): Likewise.
8096         (RUN_TEST_LOOP_f_L): Likewise.
8097         (RUN_TEST_sincos): Likewise.
8098         (RUN_TEST_LOOP_sincos): Likewise.
8099
8100 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
8101
8102         [BZ #15480]
8103         [BZ #15485]
8104         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
8105         main case of finite arguments, set rounding mode to FE_TONEAREST
8106         and discard exceptions.
8107         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
8108         exceptions.
8109         (remainder_tonearest_test_data): New variable.
8110         (remainder_test_tonearest): New function.
8111         (remainder_towardzero_test_data): New variable.
8112         (remainder_test_towardzero): New function.
8113         (remainder_downward_test_data): New variable.
8114         (remainder_test_downward): New function.
8115         (remainder_upward_test_data): New variable.
8116         (remainder_test_upward): New function.
8117         (main): Call the new test functions.
8118
8119         * math/libm-test.inc (struct test_f_f1_data): Remove field
8120         extra_init.
8121         (struct test_fF_f1_data): Likewise.
8122         (struct test_ffI_f1_data): Likewise.
8123         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
8124         based on value of EXTRA_EXPECTED.
8125         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8126         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
8127         EXTRA_VAR based on value of EXTRA_EXPECTED.
8128         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8129         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
8130         EXTRA_VAR based on value of EXTRA_EXPECTED.
8131         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8132         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
8133         EXTRA_VAR based on value of EXTRA_EXPECTED.
8134         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8135         * math/gen-libm-test.pl (parse_args): Don't output initializers
8136         for extra output values.
8137
8138         * math/libm-test.inc (check_int): Expect result to be exactly
8139         equal to expected value and do not handle ulps.
8140         (check_long): Likewise.
8141         (check_longlong): Likewise.
8142
8143         * math/libm-test.inc (ceil_test_data): Test for "inexact"
8144         exceptions.
8145         (cimag_test_data): Likewise.
8146         (conj_test_data): Likewise.
8147         (copysign_test_data): Likewise.
8148         (cproj_test_data): Likewise.
8149         (creal_test_data): Likewise.
8150         (fabs_test_data): Likewise.
8151         (fdim_test_data): Likewise.
8152         (finite_test_data): Likewise.
8153         (floor_test_data): Likewise.
8154         (fmax_test_data): Likewise.
8155         (fmin_test_data): Likewise.
8156         (fmod_test_data): Likewise.
8157         (fpclassify_test_data): Likewise.
8158         (frexp_test_data): Likewise.
8159         (ilogb_test_data): Likewise.
8160         (isfinite_test_data): Likewise.
8161         (isgreater_test_data): Likewise.
8162         (isgreaterequal_test_data): Likewise.
8163         (isinf_test_data): Likewise.
8164         (isless_test_data): Likewise.
8165         (islessequal_test_data): Likewise.
8166         (islessgreater_test_data): Likewise.
8167         (isnan_test_data): Likewise.
8168         (isnormal_test_data): Likewise.
8169         (issignaling_test_data): Likewise.
8170         (isunordered_test_data): Likewise.
8171         (ldexp_test_data): Likewise.
8172         (lrint_test_data): Likewise.
8173         (lrint_test_data) [TEST_FLOAT]: Disable one test.
8174         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
8175         (lrint_tonearest_test_data): Test for "inexact" exceptions.
8176         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
8177         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
8178         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
8179         test input.
8180         (lrint_towardzero_test_data): Test for "inexact" exceptions.
8181         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
8182         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
8183         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
8184         that test input.
8185         (lrint_downward_test_data): Test for "inexact" exceptions.
8186         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
8187         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
8188         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
8189         test input.
8190         (lrint_upward_test_data): Test for "inexact" exceptions.
8191         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
8192         test input.
8193         (llrint_test_data): Test for "inexact" exceptions.
8194         (llrint_test_data) [TEST_FLOAT]: Disable one test.
8195         (llrint_tonearest_test_data): Test for "inexact" exceptions.
8196         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
8197         (llrint_towardzero_test_data): Test for "inexact" exceptions.
8198         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
8199         (llrint_downward_test_data): Test for "inexact" exceptions.
8200         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
8201         (llrint_upward_test_data): Test for "inexact" exceptions.
8202         (logb_test_data): Likewise.
8203         (logb_downward_test_data): Likewise.
8204         (nextafter_test_data): Likewise.
8205         (nexttoward_test_data): Likewise.
8206         (remainder_test_data): Likewise.
8207         (remquo_test_data): Likewise.
8208         (scalbn_test_data): Likewise.
8209         (scalbln_test_data): Likewise.
8210         (signbit_test_data): Likewise.
8211         (sqrt_test_data): Likewise.
8212         (significand_test_data): Likewise.
8213
8214 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
8215
8216         [BZ #15424]
8217         * benchtests/bench-modf.c (struct args): Mark arg0 as
8218         volatile.
8219         * scripts/bench.pl: Mark members of struct args as volatile.
8220
8221 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8222
8223         [BZ # 15497]
8224         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
8225         negative infinity on POWER6 or lower.
8226         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
8227
8228 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
8229
8230         [BZ #15442]
8231         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
8232         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
8233         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
8234         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
8235         (_FP_SETQNAN): New macro.
8236         (_FP_SETQNAN_SEMIRAW): Likewise.
8237         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
8238         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
8239         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
8240         (FP_EXTEND): Use _FP_FRAC_SNANP.
8241         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
8242         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
8243         into account.
8244         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
8245         New macro.
8246         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
8247         Likewise.
8248
8249 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8250
8251         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
8252         with DIVIDE_BY_ZERO_EXCEPTION.
8253         (gamma_test_data): Likewise.
8254         (lgamma_test_data): Likewise.
8255         (log_test_data): Likewise.
8256         (log10_test_data): Likewise.
8257         (log2_test_data): Likewise.
8258         (tgamma_test_data): Likewise.
8259
8260         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
8261         (acos_test_tonearest): Likewise.
8262         (acos_test_towardzero): Likewise.
8263         (acos_test_downward): Likewise.
8264         (acos_test_upward): Likewise.
8265         (acosh_test): Likewise.
8266         (asin_test): Likewise.
8267         (asin_test_tonearest): Likewise.
8268         (asin_test_towardzero): Likewise.
8269         (asin_test_downward): Likewise.
8270         (asin_test_upward): Likewise.
8271         (asinh_test): Likewise.
8272         (atan_test): Likewise.
8273         (atanh_test): Likewise.
8274         (atan2_test): Likewise.
8275         (cabs_test): Likewise.
8276         (cacos_test): Likewise.
8277         (cacosh_test): Likewise.
8278         (casin_test): Likewise.
8279         (casinh_test): Likewise.
8280         (catan_test): Likewise.
8281         (catanh_test): Likewise.
8282         (cbrt_test): Likewise.
8283         (ccos_test): Likewise.
8284         (ccosh_test): Likewise.
8285         (cexp_test): Likewise.
8286         (clog_test): Likewise.
8287         (clog10_test): Likewise.
8288         (cos_test): Likewise.
8289         (cos_test_tonearest): Likewise.
8290         (cos_test_towardzero): Likewise.
8291         (cos_test_downward): Likewise.
8292         (cos_test_upward): Likewise.
8293         (cosh_test): Likewise.
8294         (cosh_test_tonearest): Likewise.
8295         (cosh_test_towardzero): Likewise.
8296         (cosh_test_downward): Likewise.
8297         (cosh_test_upward): Likewise.
8298         (cpow_test): Likewise.
8299         (csin_test): Likewise.
8300         (csinh_test): Likewise.
8301         (csqrt_test): Likewise.
8302         (ctan_test): Likewise.
8303         (ctan_test_tonearest): Likewise.
8304         (ctan_test_towardzero): Likewise.
8305         (ctan_test_downward): Likewise.
8306         (ctan_test_upward): Likewise.
8307         (ctanh_test): Likewise.
8308         (ctanh_test_tonearest): Likewise.
8309         (ctanh_test_towardzero): Likewise.
8310         (ctanh_test_downward): Likewise.
8311         (ctanh_test_upward): Likewise.
8312         (erf_test): Likewise.
8313         (erfc_test): Likewise.
8314         (exp_test): Likewise.
8315         (exp_test_tonearest): Likewise.
8316         (exp_test_towardzero): Likewise.
8317         (exp_test_downward): Likewise.
8318         (exp_test_upward): Likewise.
8319         (exp10_test): Likewise.
8320         (exp2_test): Likewise.
8321         (expm1_test): Likewise.
8322         (fmod_test): Likewise.
8323         (gamma_test): Likewise.
8324         (hypot_test): Likewise.
8325         (j0_test): Likewise.
8326         (j1_test): Likewise.
8327         (jn_test): Likewise.
8328         (lgamma_test): Likewise.
8329         (log_test): Likewise.
8330         (log10_test): Likewise.
8331         (log1p_test): Likewise.
8332         (log2_test): Likewise.
8333         (logb_test_downward): Likewise.
8334         (pow_test): Likewise.
8335         (pow_test_tonearest): Likewise.
8336         (pow_test_towardzero): Likewise.
8337         (pow_test_downward): Likewise.
8338         (pow_test_upward): Likewise.
8339         (remainder_test): Likewise.
8340         (remquo_test): Likewise.
8341         (sin_test): Likewise.
8342         (sin_test_tonearest): Likewise.
8343         (sin_test_towardzero): Likewise.
8344         (sin_test_downward): Likewise.
8345         (sin_test_upward): Likewise.
8346         (sincos_test): Likewise.
8347         (sinh_test): Likewise.
8348         (sinh_test_tonearest): Likewise.
8349         (sinh_test_towardzero): Likewise.
8350         (sinh_test_downward): Likewise.
8351         (sinh_test_upward): Likewise.
8352         (sqrt_test): Likewise.
8353         (tan_test): Likewise.
8354         (tan_test_tonearest): Likewise.
8355         (tan_test_towardzero): Likewise.
8356         (tan_test_downward): Likewise.
8357         (tan_test_upward): Likewise.
8358         (tanh_test): Likewise.
8359         (tgamma_test): Likewise.
8360         (y0_test): Likewise.
8361         (y1_test): Likewise.
8362         (yn_test): Likewise.
8363
8364         * math/gen-libm-test.pl (adjust_arg): Remove function.
8365         (special_function): Remove argument $in_func.  Only handle
8366         generating output for tables of tests, not inside functions.
8367         (parse_args): Likewise.
8368         (generate_testfile): Remove variable $in_func.  Update call to
8369         parse_args.
8370         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
8371         (MINUS_ZERO_INIT): Rename macro to minus_zero.
8372         (PLUS_INFTY_INIT): Rename macro to plus_infty.
8373         (MINUS_INFTY_INIT): Rename macro to minus_infty.
8374         (QNAN_VALUE_INIT): Rename macro to qnan_value.
8375         (MAX_VALUE_INIT): Rename macro to max_value.
8376         (MIN_VALUE_INIT): Rename macro to min_value.
8377         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
8378         (plus_zero): Remove variable.
8379         (minus_zero): Likewise.
8380         (plus_infty): Likewise.
8381         (minus_infty): Likewise.
8382         (qnan_value): Likewise.
8383         (max_value): Likewise.
8384         (min_value): Likewise.
8385         (min_subnorm_value): Likewise.
8386
8387 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8388
8389         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
8390         uint64_t or uint32_t usage.
8391         * crypt/sha256-block.c: Likewise.
8392         * crypt/sha256-crypt.c: Likewise.
8393         * crypt/sha256.c: Likewise.
8394         * crypt/sha512-block.c: Likewise.
8395         * crypt/sha512-crypt.c: Likewise.
8396         * crypt/sha512.c: Likewise.
8397         * debug/backtrace-tst.c: Likewise.
8398         * debug/pcprofiledump.c: Likewise.
8399         * elf/cache.c: Likewise.
8400         * elf/dl-cache.c: Likewise.
8401         * elf/dl-misc.c: Likewise.
8402         * elf/dl-profile.c: Likewise.
8403         * elf/dl-support.c: Likewise.
8404         * elf/ldconfig.c: Likewise.
8405         * elf/sprof.c: Likewise.
8406         * iconv/dummy-repertoire.c: Likewise.
8407         * iconv/iconv_charmap.c: Likewise.
8408         * iconv/skeleton.c: Likewise.
8409         * iconvdata/8bit-generic.c: Likewise.
8410         * iconvdata/cp737.h: Likewise.
8411         * iconvdata/cp775.h: Likewise.
8412         * iconvdata/ibm1008.h: Likewise.
8413         * iconvdata/ibm1025.h: Likewise.
8414         * iconvdata/ibm1046.h: Likewise.
8415         * iconvdata/ibm1097.h: Likewise.
8416         * iconvdata/ibm1112.h: Likewise.
8417         * iconvdata/ibm1122.h: Likewise.
8418         * iconvdata/ibm1123.h: Likewise.
8419         * iconvdata/ibm1124.h: Likewise.
8420         * iconvdata/ibm1129.h: Likewise.
8421         * iconvdata/ibm1130.h: Likewise.
8422         * iconvdata/ibm1132.h: Likewise.
8423         * iconvdata/ibm1133.h: Likewise.
8424         * iconvdata/ibm1137.h: Likewise.
8425         * iconvdata/ibm1140.h: Likewise.
8426         * iconvdata/ibm1141.h: Likewise.
8427         * iconvdata/ibm1142.h: Likewise.
8428         * iconvdata/ibm1143.h: Likewise.
8429         * iconvdata/ibm1144.h: Likewise.
8430         * iconvdata/ibm1145.h: Likewise.
8431         * iconvdata/ibm1146.h: Likewise.
8432         * iconvdata/ibm1147.h: Likewise.
8433         * iconvdata/ibm1148.h: Likewise.
8434         * iconvdata/ibm1149.h: Likewise.
8435         * iconvdata/ibm1153.h: Likewise.
8436         * iconvdata/ibm1154.h: Likewise.
8437         * iconvdata/ibm1155.h: Likewise.
8438         * iconvdata/ibm1156.h: Likewise.
8439         * iconvdata/ibm1157.h: Likewise.
8440         * iconvdata/ibm1158.h: Likewise.
8441         * iconvdata/ibm1160.h: Likewise.
8442         * iconvdata/ibm1161.h: Likewise.
8443         * iconvdata/ibm1162.h: Likewise.
8444         * iconvdata/ibm1163.h: Likewise.
8445         * iconvdata/ibm1164.h: Likewise.
8446         * iconvdata/ibm1166.h: Likewise.
8447         * iconvdata/ibm1167.h: Likewise.
8448         * iconvdata/ibm12712.h: Likewise.
8449         * iconvdata/ibm1390.h: Likewise.
8450         * iconvdata/ibm1399.h: Likewise.
8451         * iconvdata/ibm16804.h: Likewise.
8452         * iconvdata/ibm4517.h: Likewise.
8453         * iconvdata/ibm4899.h: Likewise.
8454         * iconvdata/ibm4909.h: Likewise.
8455         * iconvdata/ibm4971.h: Likewise.
8456         * iconvdata/ibm5347.h: Likewise.
8457         * iconvdata/ibm803.h: Likewise.
8458         * iconvdata/ibm856.h: Likewise.
8459         * iconvdata/ibm901.h: Likewise.
8460         * iconvdata/ibm902.h: Likewise.
8461         * iconvdata/ibm9030.h: Likewise.
8462         * iconvdata/ibm9066.h: Likewise.
8463         * iconvdata/ibm921.h: Likewise.
8464         * iconvdata/ibm922.h: Likewise.
8465         * iconvdata/ibm9448.h: Likewise.
8466         * iconvdata/isiri-3342.h: Likewise.
8467         * iconvdata/jis0201.h: Likewise.
8468         * include/link.h: Likewise.
8469         * include/netdb.h: Likewise.
8470         * inet/check_native.c: Likewise.
8471         * inet/check_pf.c: Likewise.
8472         * inet/getipv4sourcefilter.c: Likewise.
8473         * inet/getnameinfo.c: Likewise.
8474         * inet/getsourcefilter.c: Likewise.
8475         * inet/htonl.c: Likewise.
8476         * inet/setipv4sourcefilter.c: Likewise.
8477         * inet/setsourcefilter.c: Likewise.
8478         * inet/test-inet6_opt.c: Likewise.
8479         * inet/tst-network.c: Likewise.
8480         * locale/C-collate.c: Likewise.
8481         * locale/C-ctype.c: Likewise.
8482         * locale/C-time.c: Likewise.
8483         * locale/C-translit.h: Likewise.
8484         * locale/loadarchive.c: Likewise.
8485         * locale/programs/3level.h: Likewise.
8486         * locale/programs/charmap.c: Likewise.
8487         * locale/programs/charmap.h: Likewise.
8488         * locale/programs/ld-address.c: Likewise.
8489         * locale/programs/ld-collate.c: Likewise.
8490         * locale/programs/ld-ctype.c: Likewise.
8491         * locale/programs/ld-identification.c: Likewise.
8492         * locale/programs/ld-measurement.c: Likewise.
8493         * locale/programs/ld-messages.c: Likewise.
8494         * locale/programs/ld-monetary.c: Likewise.
8495         * locale/programs/ld-name.c: Likewise.
8496         * locale/programs/ld-numeric.c: Likewise.
8497         * locale/programs/ld-paper.c: Likewise.
8498         * locale/programs/ld-telephone.c: Likewise.
8499         * locale/programs/ld-time.c: Likewise.
8500         * locale/programs/linereader.c: Likewise.
8501         * locale/programs/locale.c: Likewise.
8502         * locale/programs/locarchive.c: Likewise.
8503         * locale/programs/locfile.h: Likewise.
8504         * locale/programs/repertoire.c: Likewise.
8505         * locale/programs/simple-hash.c: Likewise.
8506         * locale/programs/simple-hash.h: Likewise.
8507         * malloc/memusage.c: Likewise.
8508         * malloc/memusagestat.c: Likewise.
8509         * nis/nis_defaults.c: Likewise.
8510         * nis/nis_hash.c: Likewise.
8511         * nis/nis_print.c: Likewise.
8512         * nis/nis_xdr.c: Likewise.
8513         * nscd/connections.c: Likewise.
8514         * nscd/hstcache.c: Likewise.
8515         * nscd/nscd_gethst_r.c: Likewise.
8516         * nscd/nscd_getserv_r.c: Likewise.
8517         * nscd/nscd_helper.c: Likewise.
8518         * nscd/servicescache.c: Likewise.
8519         * nss/makedb.c: Likewise.
8520         * nss/nss_db/db-XXX.c: Likewise.
8521         * nss/nss_db/db-initgroups.c: Likewise.
8522         * nss/nss_db/db-netgrp.c: Likewise.
8523         * nss/nss_files/files-network.c: Likewise.
8524         * nss/nss_files/files-parse.c: Likewise.
8525         * posix/bug-regex5.c: Likewise.
8526         * posix/fnmatch_loop.c: Likewise.
8527         * posix/regcomp.c: Likewise.
8528         * posix/regexec.c: Likewise.
8529         * posix/tst-rfc3484-2.c: Likewise.
8530         * posix/tst-rfc3484-3.c: Likewise.
8531         * posix/tst-rfc3484.c: Likewise.
8532         * resolv/nss_dns/dns-canon.c: Likewise.
8533         * resolv/nss_dns/dns-network.c: Likewise.
8534         * resolv/res_init.c: Likewise.
8535         * resolv/res_mkquery.c: Likewise.
8536         * resolv/tst-aton.c: Likewise.
8537         * stdlib/cxa_atexit.c: Likewise.
8538         * stdlib/cxa_finalize.c: Likewise.
8539         * stdlib/gen-fpioconst.c: Likewise.
8540         * stdlib/strtol_l.c: Likewise.
8541         * string/tst-endian.c: Likewise.
8542         * sunrpc/auth_des.c: Likewise.
8543         * sunrpc/clnt_udp.c: Likewise.
8544         * sunrpc/rtime.c: Likewise.
8545         * sunrpc/svcauth_des.c: Likewise.
8546         * sunrpc/xdr.c: Likewise.
8547         * sunrpc/xdr_intXX_t.c: Likewise.
8548         * sunrpc/xdr_rec.c: Likewise.
8549         * sysdeps/generic/ldconfig.h: Likewise.
8550         * sysdeps/generic/ldsodefs.h: Likewise.
8551         * sysdeps/generic/memusage.h: Likewise.
8552         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
8553         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
8554         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
8555         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
8556         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8557         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8558         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
8559         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
8560         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8561         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
8562         * sysdeps/posix/getaddrinfo.c: Likewise.
8563         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8564         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8565         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8566         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8567         * sysdeps/powerpc/test-gettimebase.c: Likewise.
8568         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
8569         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
8570         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
8571         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
8572         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
8573         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
8574         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
8575         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
8576         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
8577         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
8578         * sysdeps/x86_64/dl-tls.h: Likewise.
8579         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
8580         * time/alt_digit.c: Likewise.
8581         * time/era.c: Likewise.
8582         * wcsmbs/tst-c16c32-1.c: Likewise.
8583
8584 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8585
8586         * math/libm-test.inc (struct test_sincos_data): New type.
8587         (RUN_TEST_LOOP_sincos): New macro.
8588         (sincos_test_data): New variable.
8589         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
8590
8591 2013-05-16  Richard Henderson  <rth@redhat.com>
8592
8593         * math/atest-exp2.c (LIMB64): New macro.
8594         (CONSTSZ): New macro.
8595         (mp_exp1, mp_exp_m1, mp_log2): New variables.
8596         (hexdig): Move ...
8597         (print_mpn_fp): ... to function scope.
8598         (read_mpn_hex): Remove.
8599         (get_log2): Remove.
8600         (exp2_mpn): Use mp_log2.
8601         (main): Use mp_exp1.
8602
8603 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8604
8605         * math/libm-test.inc: Remove comment about not testing "inexact"
8606         exceptions.
8607         (INEXACT_EXCEPTION): New macro.
8608         (NO_INEXACT_EXCEPTION): Likewise.
8609         (INVALID_EXCEPTION_OK): Update value.
8610         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8611         (OVERFLOW_EXCEPTION_OK): Likewise.
8612         (UNDERFLOW_EXCEPTION_OK): Likewise.
8613         (IGNORE_ZERO_INF_SIGN): Likewise.
8614         (ERRNO_UNCHANGED): Likewise.
8615         (ERRNO_EDOM): Likewise.
8616         (ERRNO_ERANGE): Likewise.
8617         (test_exceptions): Handle testing "inexact" exceptions.
8618         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
8619         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
8620         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
8621         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
8622         INEXACT_EXCEPTION.
8623         (rint_towardzero_test_data): Likewise.
8624         (rint_downward_test_data): Likewise.
8625         (rint_upward_test_data): Likewise.
8626
8627         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
8628         with OVERFLOW_EXCEPTION.
8629         (exp10_test_data): Likewise.
8630         (exp2_test_data): Likewise.
8631         (expm1_test_data): Likewise.
8632         (lgamma_test_data): Likewise.
8633         (pow_test_data): Likewise.
8634         (tgamma_test_data): Likewise.
8635         (yn_test_data): Remove duplicate test of overflow.
8636
8637         * math/libm-test.inc (struct test_cc_c_data): New type.
8638         (RUN_TEST_LOOP_cc_c): New macro.
8639         (cpow_test_data): New variable.
8640         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
8641
8642         * math/libm-test.inc (struct test_f_L_data): New type.
8643         (RUN_TEST_LOOP_f_L): New macro.
8644         (llrint_test_data): New variable.
8645         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
8646         (llrint_tonearest_test_data): New variable.
8647         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
8648         (llrint_towardzero_test_data): New variable.
8649         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
8650         (llrint_downward_test_data): New variable.
8651         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
8652         (llrint_upward_test_data): New variable.
8653         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
8654         (llround_test_data): New variable.
8655         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
8656
8657 2013-05-13  Peter Collingbourne  <pcc@google.com>
8658
8659         * math/atest-exp2.c (get_log2): Remove const attribute.
8660
8661 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
8662
8663         * math/libm-test.inc (struct test_f_l_data): New type.
8664         (RUN_TEST_LOOP_f_l): New macro.
8665         (lrint_test_data): New variable.
8666         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
8667         (lrint_tonearest_test_data): New variable.
8668         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
8669         (lrint_towardzero_test_data): New variable.
8670         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
8671         (lrint_downward_test_data): New variable.
8672         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
8673         (lrint_upward_test_data): New variable.
8674         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
8675         (lround_test_data): New variable.
8676         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
8677
8678 2013-05-15  Peter Collingbourne  <pcc@google.com>
8679
8680         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
8681         (EXTRACT_WORDS64) Use where appropriate.
8682         (INSERT_WORDS64) Likewise.
8683
8684         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
8685         constraints with x constraints.
8686         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
8687
8688         * malloc/obstack.c (_obstack_compat): Add initializer.
8689
8690 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8691
8692         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
8693         si_trapno and add si_addr_lsb to _sifields.sigfault.
8694         (si_trapno): Remove macro.
8695         (si_addr_lsb): Define new macro.
8696         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
8697
8698 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
8699
8700         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
8701         instead of TEST_f_l.
8702         (llrint_test_tonearest): Likewise.
8703         (llrint_test_towardzero): Likewise.
8704         (llrint_test_downward): Likewise.
8705         (llrint_test_upward): Likewise.
8706         (llround_test): Likewise.
8707
8708         * math/libm-test.inc (struct test_f_i_data): Add comment.
8709         (RUN_TEST_LOOP_f_b): New macro.
8710         (RUN_TEST_LOOP_f_b_tg): Likewise.
8711         (finite_test_data): New variable.
8712         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
8713         (isfinite_test_data): New variable.
8714         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8715         (isinf_test_data): New variable.
8716         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8717         (isnan_test_data): New variable.
8718         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8719         (isnormal_test_data): New variable.
8720         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8721         (issignaling_test_data): New variable.
8722         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8723         (signbit_test_data): New variable.
8724         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8725
8726         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
8727         with INVALID_EXCEPTION.
8728         (acosh_test_data): Likewise.
8729         (asin_test_data): Likewise.
8730         (atanh_test_data): Likewise.
8731         (fmod_test_data): Likewise.
8732         (log_test_data): Likewise.
8733         (log10_test_data): Likewise.
8734         (log2_test_data): Likewise.
8735         (pow_test_data): Likewise.
8736         (sqrt_test_data): Likewise.
8737         (y0_test_data): Likewise.
8738         (y1_test_data): Likewise.
8739         (yn_test_data): Likewise.
8740
8741         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
8742         function contents.
8743
8744         * math/libm-test.inc (struct test_ff_i_data): New type.
8745         (RUN_TEST_LOOP_ff_i_tg): New macro.
8746         (isgreater_test_data): New variable.
8747         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8748         (isgreaterequal_test_data): New variable.
8749         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8750         (isless_test_data): New variable.
8751         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8752         (islessequal_test_data): New variable.
8753         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8754         (islessgreater_test_data): New variable.
8755         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8756         (isunordered_test_data): New variable.
8757         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8758
8759 2013-05-14  David S. Miller  <davem@davemloft.net>
8760
8761         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8762
8763 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
8764
8765         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
8766
8767         * math/libm-test.inc (struct test_fF_f1_data): Change type of
8768         extra_test to int.
8769         (struct test_f_i_data): Change type of max_ulp to int.
8770
8771         * math/libm-test.inc (test_ffI_f1_data): New type.
8772         (RUN_TEST_LOOP_ffI_f1): New macro.
8773         (remquo_test_data): New variable.
8774         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
8775
8776         * setjmp/tst-setjmp-fp.c: New file.
8777         * setjmp/Makefile (tests): Add tst-setjmp-fp.
8778         (link-libm): New variable.
8779         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
8780
8781         * math/libm-test.inc (struct test_f_i_data): New type.
8782         (RUN_TEST_LOOP_f_i): New macro.
8783         (RUN_TEST_LOOP_f_i_tg): Likewise.
8784         (fpclassify_test_data): New variable.
8785         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
8786         (ilogb_test_data): New variable.
8787         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
8788
8789         * math/libm-test.inc (scalbln_test): Correct function name in END
8790         call.
8791
8792         * math/libm-test.inc (struct test_f_f1_data): Add comment.
8793         (RUN_TEST_LOOP_fI_f1): New macro.
8794         (frexp_test_data): New variable.
8795         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
8796
8797         * math/libm-test.inc (struct test_fF_f1_data): New type.
8798         (RUN_TEST_LOOP_fF_f1): New macro.
8799         (modf_test_data): New variable.
8800         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
8801
8802         * math/libm-test.inc (struct test_f_f1_data): New type.
8803         (RUN_TEST_LOOP_f_f1): New macro.
8804         (gamma_test_data): New variable.
8805         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
8806         (lgamma_test_data): New variable.
8807         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
8808
8809 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
8810
8811         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
8812         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
8813         (main): Comment "tls" pseudo-hwcap.
8814
8815 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
8816
8817         * math/libm-test.inc (struct test_fl_f_data): New type.
8818         (RUN_TEST_LOOP_fl_f): New variable.
8819         (scalbln_test_data): New variable.
8820         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
8821
8822         * math/libm-test.inc (struct test_fi_f_data): New type.
8823         (RUN_TEST_LOOP_fi_f): New macro.
8824         (ldexp_test_data): New variable.
8825         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
8826         (scalbn_test_data): New variable.
8827         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
8828
8829         * math/libm-test.inc (struct test_c_f_data): New type.
8830         (RUN_TEST_LOOP_c_f): New macro.
8831         (cabs_test_data): New variable.
8832         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
8833         (carg_test_data): New variable.
8834         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
8835         (cimag_test_data): New variable.
8836         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
8837         (creal_test_data): New variable.
8838         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
8839
8840         * math/libm-test.inc (struct test_if_f_data): New type.
8841         (RUN_TEST_LOOP_if_f): New macro.
8842         (jn_test_data): New variable.
8843         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
8844         (yn_test_data): New variable.
8845         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
8846
8847         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
8848
8849 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8850
8851         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
8852         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
8853
8854 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
8855
8856         * benchtests/Makefile (CPPFLAGS-nonlib): Add
8857         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
8858         (bench-deps): Add bench-timing.h.
8859         * benchtests-bench-skeleton.c: Include bench-timing.h.
8860         (main): Use TIMING_* macros instead of clock_gettime.
8861         * benchtests/bench-timing.h: New file.
8862
8863         [BZ #14582]
8864         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
8865         Renamed from _LIB_VERSION.
8866         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
8867
8868 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
8869
8870         * math/libm-test.inc (struct test_fff_f_data): New type.
8871         (RUN_TEST_LOOP_fff_f): New macro.
8872         (fma_test_data): New variable.
8873         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
8874         (fma_towardzero_test_data): New variable.
8875         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
8876         (fma_downward_test_data): New variable.
8877         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
8878         (fma_upward_test_data): New variable.
8879         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
8880
8881         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
8882         (struct test_c_c_data): New type.
8883         (RUN_TEST_LOOP_c_c): New macro.
8884         (cacos_test_data): New variable.
8885         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
8886         (cacosh_test_data): New variable.
8887         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
8888         (casin_test_data): New variable.
8889         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
8890         (casinh_test_data): New variable.
8891         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
8892         (catan_test_data): New variable.
8893         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
8894         (catanh_test_data): New variable.
8895         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
8896         (ccos_test_data): New variable.
8897         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
8898         (ccosh_test_data): New variable.
8899         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
8900         (cexp_test_data): New variable.
8901         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
8902         (clog_test_data): New variable.
8903         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
8904         (clog10_test_data): New variable.
8905         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
8906         (conj_test_data): New variable.
8907         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
8908         (cproj_test_data): New variable.
8909         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
8910         (csin_test_data): New variable.
8911         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
8912         (csinh_test_data): New variable.
8913         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
8914         (csqrt_test_data): New variable.
8915         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
8916         (ctan_test_data): New variable.
8917         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
8918         (ctan_tonearest_test_data): New variable.
8919         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
8920         (ctan_towardzero_test_data): New variable.
8921         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
8922         (ctan_downward_test_data): New variable.
8923         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
8924         (ctan_upward_test_data): New variable.
8925         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
8926         (ctanh_test_data): New variable.
8927         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
8928         (ctanh_tonearest_test_data): New variable.
8929         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
8930         (ctanh_towardzero_test_data): New variable.
8931         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
8932         (ctanh_downward_test_data): New variable.
8933         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
8934         (ctanh_upward_test_data): New variable.
8935         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
8936         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
8937         of BUILD_COMPLEX.
8938
8939         * math/libm-test.inc (struct test_ff_f_data): New type.
8940         (struct test_ff_f_data_nexttoward): Likewise.
8941         (RUN_TEST_LOOP_2_f): New macro.
8942         (RUN_TEST_LOOP_ff_f): Likewise.
8943         (atan2_test_data): New variable.
8944         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
8945         (copysign_test_data): New variable.
8946         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
8947         (fdim_test_data): New variable.
8948         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
8949         (fmax_test_data): New variable.
8950         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
8951         (fmin_test_data): New variable.
8952         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
8953         (fmod_test_data): New variable.
8954         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
8955         (hypot_test_data): New variable.
8956         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
8957         (nextafter_test_data): New variable.
8958         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
8959         (nexttoward_test_data): New variable.
8960         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
8961         (pow_test_data): New variable.
8962         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
8963         (pow_tonearest_test_data): New variable.
8964         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
8965         (pow_towardzero_test_data): New variable.
8966         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
8967         (pow_downward_test_data): New variable.
8968         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
8969         (pow_upward_test_data): New variable.
8970         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
8971         (remainder_test_data): New variable.
8972         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
8973         (scalb_test_data): New variable.
8974         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
8975         * sysdeps/i386/fpu/libm-test-ulps: Update.
8976
8977 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
8978
8979         * math/libm-test.inc (fma_test): Use max_value instead of local
8980         variable fltmax.
8981         (nextafter_test): Likewise.
8982
8983         * math/libm-test.inc (acos_towardzero_test_data): New variable.
8984         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8985         (acos_downward_test_data): New variable.
8986         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8987         (acos_upward_test_data): New variable.
8988         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8989         (acosh_test_data): New variable.
8990         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
8991         (asin_test_data): New variable.
8992         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
8993         (asin_tonearest_test_data): New variable.
8994         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8995         (asin_towardzero_test_data): New variable.
8996         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8997         (asin_downward_test_data): New variable.
8998         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8999         (asin_upward_test_data): New variable.
9000         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9001         (asinh_test_data): New variable.
9002         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
9003         (atan_test_data): New variable.
9004         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
9005         (atanh_test_data): New variable.
9006         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
9007         (cbrt_test_data): New variable.
9008         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
9009         (ceil_test_data): New variable.
9010         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
9011         (cos_test_data): New variable.
9012         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
9013         (cos_tonearest_test_data): New variable.
9014         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9015         (cos_towardzero_test_data): New variable.
9016         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9017         (cos_downward_test_data): New variable.
9018         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9019         (cos_upward_test_data): New variable.
9020         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9021         (cosh_test_data): New variable.
9022         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
9023         (cosh_tonearest_test_data): New variable.
9024         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9025         (cosh_towardzero_test_data): New variable.
9026         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9027         (cosh_downward_test_data): New variable.
9028         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9029         (cosh_upward_test_data): New variable.
9030         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9031         (erf_test_data): New variable.
9032         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
9033         (erfc_test_data): New variable.
9034         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
9035         (exp_test_data): New variable.
9036         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
9037         (exp_tonearest_test_data): New variable.
9038         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9039         (exp_towardzero_test_data): New variable.
9040         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9041         (exp_downward_test_data): New variable.
9042         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9043         (exp_upward_test_data): New variable.
9044         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9045         (exp10_test_data): New variable.
9046         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
9047         (exp2_test_data): New variable.
9048         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
9049         (expm1_test_data): New variable.
9050         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
9051         (fabs_test_data): New variable.
9052         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
9053         (floor_test_data): New variable.
9054         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
9055         (j0_test_data): New variable.
9056         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
9057         (j1_test_data): New variable.
9058         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
9059         (log_test_data): New variable.
9060         (log_test): Run tests with RUN_TEST_LOOP_f_f.
9061         (log10_test_data): New variable.
9062         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
9063         (log1p_test_data): New variable.
9064         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
9065         (log2_test_data): New variable.
9066         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
9067         (logb_test_data): New variable.
9068         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
9069         (logb_downward_test_data): New variable.
9070         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9071         (nearbyint_test_data): New variable.
9072         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
9073         (rint_test_data): New variable.
9074         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
9075         (rint_tonearest_test_data): New variable.
9076         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9077         (rint_towardzero_test_data): New variable.
9078         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9079         (rint_downward_test_data): New variable.
9080         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9081         (rint_upward_test_data): New variable.
9082         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9083         (round_test_data): New variable.
9084         (round_test): Run tests with RUN_TEST_LOOP_f_f.
9085         (sin_test_data): New variable.
9086         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
9087         (sin_tonearest_test_data): New variable.
9088         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9089         (sin_towardzero_test_data): New variable.
9090         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9091         (sin_downward_test_data): New variable.
9092         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9093         (sin_upward_test_data): New variable.
9094         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9095         (sinh_test_data): New variable.
9096         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
9097         (sinh_tonearest_test_data): New variable.
9098         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9099         (sinh_towardzero_test_data): New variable.
9100         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9101         (sinh_downward_test_data): New variable.
9102         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9103         (sinh_upward_test_data): New variable.
9104         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9105         (sqrt_test_data): New variable.
9106         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
9107         (tan_test_data): New variable.
9108         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
9109         (tan_tonearest_test_data): New variable.
9110         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9111         (tan_towardzero_test_data): New variable.
9112         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9113         (tan_downward_test_data): New variable.
9114         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9115         (tan_upward_test_data): New variable.
9116         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9117         (tanh_test_data): New variable.
9118         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
9119         (tgamma_test_data): New variable.
9120         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
9121         (trunc_test_data): New variable.
9122         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
9123         (y0_test_data): New variable.
9124         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
9125         (y1_test_data): New variable.
9126         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
9127         (significand_test_data): New variable.
9128         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
9129
9130 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
9131
9132         [BZ #12387]
9133         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
9134
9135 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9136
9137         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
9138
9139 2013-05-10  Andreas Jaeger  <aj@suse.de>
9140
9141         [BZ #15448]
9142         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
9143         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
9144
9145 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
9146
9147         * math/gen-libm-test.pl (adjust_arg): New function.
9148         (special_functions): Handle generating output in both functions
9149         and arrays.
9150         (parse_args): Likewise.
9151         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
9152         $in_func argument to parse_args.
9153         * math/libm-test.inc (struct test_f_f_data): New type.
9154         (IF_ROUND_INIT_): New macro.
9155         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
9156         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
9157         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9158         (IF_ROUND_INIT_FE_UPWARD): Likewise.
9159         (ROUND_RESTORE_): Likewise.
9160         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
9161         (ROUND_RESTORE_FE_TONEAREST): Likewise.
9162         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
9163         (ROUND_RESTORE_FE_UPWARD): Likewise.
9164         (RUN_TEST_LOOP_f_f): New macro.
9165         (acos_test_data): New variable.
9166         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
9167         (acos_tonearest_test_data): New variable.
9168         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9169
9170 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9171
9172         * benchtests/bench-skeleton.c (startup): Fix coding style.
9173
9174 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
9175
9176         [BZ #6809]
9177         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
9178         negative infinity argument.
9179         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
9180         negative infinity argument.
9181         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
9182         negative infinity argument.
9183         * math/libm-test.inc (tgamma_test): Expect errno to be set for
9184         domain errors.
9185
9186 2013-05-10  Florian Weimer  <fweimer@redhat.com>
9187
9188         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
9189         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
9190         * iconv/iconv_prog.c (main): Likewise.
9191         * locale/programs/charmap-dir.c (charmap_readdir)
9192         (fopen_uncompressed): Likewise.
9193         * locale/programs/locfile.c (siblings_uncached)
9194         (write_locale_data): Use lstat64 instead of lstat.
9195         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
9196         stat.
9197
9198 2013-05-10  Andreas Jaeger  <aj@suse.de>
9199
9200         [BZ #15395]
9201         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
9202         localization.
9203         Include <locale.h>.
9204
9205 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
9206
9207         * elf/dl-close.c (_dl_close_worker): Add comments.
9208
9209 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
9210
9211         [BZ #15359]
9212         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
9213         high part of pi/2.
9214         (__ieee754_rem_pio2l): Update comments.
9215
9216         [BZ #15429]
9217         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
9218         high part of pi/2.
9219         (__ieee754_rem_pio2l): Update comments.
9220
9221         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
9222         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
9223
9224         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
9225         M_PI_4l.
9226
9227         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
9228         (M_PI_34_LOG10El): Likewise.
9229         (M_PI2_LOG10El): Likewise.
9230         (M_PI4_LOG10El): Likewise.
9231         (M_PI_LOG10El): Likewise.
9232
9233 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9234
9235         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9236
9237 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
9238
9239         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
9240         (MINUS_ZERO_INIT): Likewise.
9241         (PLUS_INFTY_INIT): Likewise.
9242         (MINUS_INFTY_INIT): Likewise.
9243         (QNAN_VALUE_INIT): Likewise.
9244         (MAX_VALUE_INIT): Likewise.
9245         (MIN_VALUE_INIT): Likewise.
9246         (MIN_SUBNORM_VALUE_INIT): Likewise.
9247         (plus_zero): Initialize with PLUS_ZERO_INIT.
9248         (minus_zero): Initialize with MINUS_ZERO_INIT.
9249         (plus_infty): Initialize with PLUS_INFTY_INIT.
9250         (minus_infty): Initialize with MINUS_INFTY_INIT.
9251         (qnan_value): Initialize with QNAN_VALUE_INIT.
9252         (max_value): Initialize with MAX_VALUE_INIT.
9253         (min_value): Initialize with MIN_VALUE_INIT.
9254         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
9255
9256         * math/libm-test.inc (RUN_TEST_if_f): New macro.
9257         (jn_test): Use TEST_if_f instead of TEST_ff_f.
9258         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
9259         (yn_test): Use TEST_if_f instead of TEST_ff_f.
9260
9261         * math/libm-test.inc (RUN_TEST_f_f): New macro.
9262         (RUN_TEST_2_f): Likewise.
9263         (RUN_TEST_ff_f): Likewise.
9264         (RUN_TEST_fi_f): Likewise.
9265         (RUN_TEST_fl_f): Likewise.
9266         (RUN_TEST_fff_f): Likewise.
9267         (RUN_TEST_c_f): Likewise.
9268         (RUN_TEST_f_f1): Likewise.
9269         (RUN_TEST_fF_f1): Likewise.
9270         (RUN_TEST_fI_f1): Likewise.
9271         (RUN_TEST_ffI_f1): Likewise.
9272         (RUN_TEST_c_c): Likewise.
9273         (RUN_TEST_cc_c): Likewise.
9274         (RUN_TEST_f_i): Likewise.
9275         (RUN_TEST_f_i_tg): Likewise.
9276         (RUN_TEST_ff_i_tg): Likewise.
9277         (RUN_TEST_f_b): Likewise.
9278         (RUN_TEST_f_b_tg): Likewise.
9279         (RUN_TEST_f_l): Likewise.
9280         (RUN_TEST_f_L): Likewise.
9281         (RUN_TEST_sincos): Likewise.
9282         * math/gen-libm-test.pl (new_test): Take new argument to indicate
9283         whether to show exceptions.  Do not include ");\n" in return
9284         value.
9285         (special_functions): Output call to RUN_TEST_sincos instead of
9286         check_float calls.  Update calls to new_test.
9287         (parse_args): Output call to single RUN_TEST_* macro instead of
9288         check_* calls and other assignments.  Update calls to new_test.
9289
9290         [BZ #2546]
9291         [BZ #2560]
9292         [BZ #5159]
9293         [BZ #15426]
9294         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
9295         input to result for tgamma overflow.
9296         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
9297         (gamma_coeff): New variable.
9298         (NCOEFF): New macro.
9299         (gamma_positive): New function.
9300         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
9301         underflow here.  Use gamma_positive instead of exp (lgamma) for
9302         other arguments.
9303         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
9304         (gamma_coeff): New variable.
9305         (NCOEFF): New macro.
9306         (gammaf_positive): New function.
9307         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
9308         underflow here.  Use gamma_positive instead of exp (lgamma) for
9309         other arguments.
9310         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
9311         (gamma_coeff): New variable.
9312         (NCOEFF): New macro.
9313         (gammal_positive): New function.
9314         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
9315         underflow here.  Use gamma_positive instead of exp (lgamma) for
9316         other arguments.
9317         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
9318         (gamma_coeff): New variable.
9319         (NCOEFF): New macro.
9320         (gammal_positive): New function.
9321         (__ieee754_gammal_r): Handle positive infinity, overflow and
9322         underflow here.  Handle NaN the same as positive infinity.  Remove
9323         check x < 0xffffffff for negative integers.  Use gamma_positive
9324         instead of exp (lgamma) for other arguments.
9325         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
9326         (gamma_coeff): New variable.
9327         (NCOEFF): New macro.
9328         (gammal_positive): New function.
9329         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
9330         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
9331         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9332         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
9333         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
9334         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9335         * sysdeps/generic/math_private.h (__gamma_productf): New
9336         prototype.
9337         (__gamma_product): Likewise.
9338         (__gamma_productl): Likewise.
9339         * math/Makefile (libm-calls): Add gamma_product.
9340         * math/libm-test.inc (tgamma_test): Add more tests.
9341         * sysdeps/i386/fpu/libm-test-ulps: Update.
9342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9343
9344 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
9345
9346         * benchtests/bench-skeleton.c (main): Preheat CPU.
9347
9348 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
9349
9350         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
9351
9352 2013-05-07  Roland McGrath  <roland@hack.frob.com>
9353
9354         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
9355         and _dl_skip_args_internal.
9356
9357 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
9358
9359         * manual/message.texi (Message Translation): Talk about users.
9360         Message to key mapping impacts design.
9361
9362 2013-05-06  Roland McGrath  <roland@hack.frob.com>
9363
9364         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
9365
9366         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
9367
9368         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
9369         * sysdeps/wordsize-64/glob64.c: ... here.
9370
9371         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
9372         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
9373         New macros.
9374
9375         * debug/getlogin_r_chk.c: Moved to ...
9376         * login/getlogin_r_chk.c: ... here.
9377         * debug/Makefile (routines): Move getlogin_r_chk to ...
9378         * login/Makefile (routines): ... here.
9379         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
9380         * login/Versions (libc: GLIBC_2.4): ... here.
9381
9382         * io/poll.c (__poll): Renamed from poll.
9383         Add libc_hidden_def.
9384         (poll): Define as weak alias.
9385
9386         * debug/ptsname_r_chk.c: Moved to ...
9387         * login/ptsname_r_chk.c: ... here.
9388         * debug/Makefile (routines): Move ptsname_r_chk to ...
9389         * login/Makefile (routines): ... here.
9390         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
9391         * login/Versions (libc: GLIBC_2.4): ... here.
9392
9393         * posix/getlogin.c: Moved to ...
9394         * login/getlogin.c: ... here.
9395         * posix/getlogin_r.c: Moved to ...
9396         * login/getlogin_r.c: ... here.
9397         * posix/getlogin_r.c: Moved to ...
9398         * login/getlogin_r.c: ... here.
9399         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
9400         * login/Makefile (routines): ... here.
9401         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
9402         * login/Versions (libc: GLIBC_2.0): ... here.
9403
9404         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
9405         (setrlimit): Define as weak alias.
9406
9407         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
9408         Call __ names for open, ftruncate, and close.
9409         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
9410         (truncate): Define as weak alias.
9411
9412 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
9413
9414         * math/gen-libm-test.pl (parse_args): Initialize x before each
9415         test of frexp, modf and remquo.
9416
9417         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
9418         test signgam value.
9419
9420 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9421
9422         [BZ #15418]
9423         [BZ #15419]
9424         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
9425         internal tests.
9426         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9427
9428 2013-05-06  Roland McGrath  <roland@hack.frob.com>
9429
9430         * elf/dl-writev.h: New file.
9431         * elf/dl-misc.c: Include it.
9432         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
9433         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
9434
9435 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
9436
9437         * math/libm-test.inc (noXFails): Remove variable.
9438         (noXPasses): Likewise.
9439         (BUILD_COMPLEX_INT): Remove macro.
9440         (print_screen): Remove xfail argument.
9441         (print_screen_max_error): Likewise.
9442         (update_stats): Likewise.
9443         (print_max_error): Likewise.  Update calls to other affected
9444         functions.
9445         (print_complex_max_error): Likewise.
9446         (test_single_exception): Update calls to print_screen.
9447         (test_single_errno): Likewise.
9448         (check_float_internal): Remove xfail argument.  Update calls to
9449         other affected functions.
9450         (check_float): Likewise.
9451         (check_complex): Likewise.
9452         (check_int): Likewise.
9453         (check_long): Likewise.
9454         (check_bool): Likewise.
9455         (check_longlong): Likewise.
9456         (main): Don't print noXFails and noXPasses.
9457         * math/gen-libm-test.pl (top level): Don't mention expected
9458         failure handling in comment.
9459         (new_test): Don't handle expected failures.
9460         (parse_args): Don't mention expected failure handling in comment.
9461         (generate_testfile): Don't handle expected failures.
9462         (parse_ulps): Likewise.
9463         (print_ulps_file): Likewise.
9464         (get_failure): Remove function.
9465         (output_test): Don't handle expected failures.
9466         * make/README.libm-test: Don't mention expected failure handling.
9467
9468         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
9469         (minus_zero): Likewise.
9470         (plus_infty): Likewise.
9471         (minus_infty): Likewise.
9472         (qnan_value): Likewise.
9473         (max_value): Likewise.
9474         (min_value): Likewise.
9475         (min_subnorm_value): Likewise.
9476         (initialize): Do not initialize those variables dynamically.
9477
9478 2013-05-03  Roland McGrath  <roland@hack.frob.com>
9479
9480         * io/open.c (__open_2): Moved to ...
9481         * io/open_2.c: ... this new file.
9482         * io/open64.c (__open64_2): Moved to ...
9483         * io/open64_2.c: ... this new file.
9484         * io/openat.c (__openat_2): Moved to ...
9485         * io/openat_2.c: ... this new file.
9486         * io/openat64.c (__openat64_2): Moved to ...
9487         * io/openat64_2.c: ... this new file.
9488         * io/Makefile (routines): Add them.
9489         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
9490         * sysdeps/unix/sysv/linux/open_2.c: File removed.
9491         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
9492         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
9493         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
9494         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
9495         (__openat64): Add hidden_ver.
9496         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
9497         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
9498
9499         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
9500         Separately conditionalize setting of GLRO(dl_sysinfo) so
9501         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
9502         as well, but the actual setting is only under [NEED_DL_SYSINFO].
9503
9504 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9505
9506         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
9507         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
9508         definition.
9509         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
9510         * sysdeps/unix/sysv/linux/powerpc/init-first.c
9511         (_libc_vdso_platform_setup): Add __vdso_time initialization.
9512         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
9513         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
9514
9515 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
9516
9517         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
9518         test signgam value.
9519
9520         * math/libm-test.inc (hypot_test): Do not use
9521         IGNORE_ZERO_INF_SIGN.
9522
9523 2013-05-03  Andreas Jaeger  <aj@suse.de>
9524
9525         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
9526         Linux 3.9.
9527         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
9528         (PF_MAX): Adjust for VSOCK change.
9529
9530 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9531
9532         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9533
9534 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
9535
9536         [BZ #15264]
9537         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
9538         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
9539         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
9540
9541 2013-05-02  David S. Miller  <davem@davemloft.net>
9542
9543         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9544
9545 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
9546
9547         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
9548
9549 2013-05-01  Roland McGrath  <roland@hack.frob.com>
9550
9551         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
9552
9553 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
9554
9555         [BZ #14952]
9556         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
9557         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
9558         Use __attribute__ ((__gnu_inline__)).
9559         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
9560         Don't use __attribute__ ((__gnu_inline__)).
9561
9562 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
9563
9564         [BZ #15423]
9565         * math/s_catan.c (__catan): Handle small real or imaginary part of
9566         input specially to avoid spurious underflow.
9567         * math/s_catanf.c (__catanf): Likewise.
9568         * math/s_catanh.c (__catanh): Likewise.
9569         * math/s_catanhf.c (__catanhf): Likewise.
9570         * math/s_catanhl.c (__catanhl): Likewise.
9571         * math/s_catanl.c (__catanl): Likewise.
9572         * math/libm-test.inc (catan_test): Add more tests.
9573         (catanh_test): Likewise.
9574         * sysdeps/i386/fpu/libm-test-ulps: Update.
9575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9576
9577 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9578
9579         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9580
9581 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
9582
9583         [BZ #15416]
9584         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
9585         accurately for denominator in atan2.
9586         * math/s_catanf.c (__catanf): Likewise.
9587         * math/s_catanh.c (__catanh): Likewise.
9588         * math/s_catanhf.c (__catanhf): Likewise.
9589         * math/s_catanhl.c (__catanhl): Likewise.
9590         * math/s_catanl.c (__catanl): Likewise.
9591         * math/libm-test.inc (catan_test): Add more tests.
9592         (catanh_test): Likewise.
9593         * sysdeps/i386/fpu/libm-test-ulps: Update.
9594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9595
9596 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9597
9598         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
9599
9600         * benchtests/Makefile (bench): Remove slow benchmarks.
9601         * benchtests/atan-inputs: Add slow benchmark inputs.
9602         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
9603         (BENCH_FUNC): Accept variant offset.
9604         (VARIANT): Define.
9605         * benchtests/bench-skeleton.c (main): Run benchmark for each
9606         variant.
9607         * benchtests/cos-inputs: Add slow benchmark inputs.
9608         * benchtests/exp-inputs: Likewise.
9609         * benchtests/pow-inputs: Likewise.
9610         * benchtests/sin-inputs: Likewise.
9611         * benchtests/slowatan-inputs: Remove.
9612         * benchtests/slowatan.c: Remove.
9613         * benchtests/slowcos-inputs: Remove.
9614         * benchtests/slowcos.c: Remove.
9615         * benchtests/slowexp-inputs: Remove.
9616         * benchtests/slowexp.c: Remove.
9617         * benchtests/slowpow-inputs: Remove.
9618         * benchtests/slowpow.c: Remove.
9619         * benchtests/slowsin-inputs: Remove.
9620         * benchtests/slowsin.c: Remove.
9621         * benchtests/slowtan-inputs: Remove.
9622         * benchtests/slowtan.c: Remove.
9623         * benchtests/tan-inputs: Add slow benchmark inputs.
9624         * scripts/bench.pl: Parse comments and directives.
9625
9626         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
9627         in CPPFLAGS.
9628         ($(objpfx)bench-%.c): Remove *-ITER.
9629         * benchtests/bench-modf.c: Remove definition of ITER.
9630         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
9631         (main): Loop for DURATION seconds instead of fixed number of
9632         iterations.
9633         * scripts/bench.pl: Don't expect iterations in parameters.
9634
9635 2013-04-29  Roland McGrath  <roland@hack.frob.com>
9636
9637         * io/fchdir.c (__fchdir): Renamed from fchdir.
9638         (fchdir): Define as weak alias.
9639
9640 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
9641
9642         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
9643         (ERRNO_EDOM): Likewise.
9644         (ERRNO_ERANGE): Likewise.
9645         (noErrnoTests): New variable.
9646         (init_max_error): Set errno to 0.
9647         (test_single_errno): New function.
9648         (test_errno): Likewise.
9649         (check_float_internal): Call test_errno.  Set errno to 0.
9650         (check_complex): Refer to errno tests in comment.
9651         (check_int): Call test_errno.  Set errno to 0.
9652         (check_long): Likewise.
9653         (check_bool): Likewise.
9654         (check_longlong): Likewise.
9655         (cos_test): Use ERRNO_* flags for errno tests instead of
9656         check_int.
9657         (expm1_test): Likewise.
9658         (fmod_test): Likewise.
9659         (ilogb_test): Likewise.
9660         (lgamma_test): Likewise.
9661         (pow_test): Likewise.
9662         (remainder_test): Likewise.
9663         (sin_test): Likewise.
9664         (tan_test): Likewise.
9665         (yn_test): Likewise.
9666         (initialize): Set errno to 0.
9667         (main): Print number of errno tests.
9668         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
9669
9670 2013-04-29  Andreas Jaeger  <aj@suse.de>
9671
9672         [BZ #15084]
9673         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
9674         and RES_USEVC.
9675
9676         [BZ #15085]
9677         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
9678         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
9679         unimplemented.
9680
9681         [BZ #15380]
9682         * stdlib/random.c (__initstate): Return NULL if
9683         __initstate fails.
9684
9685         [BZ #15086]
9686         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
9687         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
9688         RES_SNGLKUPREOP.
9689
9690 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9691
9692         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9693
9694 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
9695
9696         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
9697         of individual tests.
9698         (casin_test): Likewise.
9699         (casinh_test): Likewise.
9700
9701 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
9702
9703         [BZ #15409]
9704         * math/s_catan.c (__catan): Handle arguments with large real or
9705         imaginary part separately without squaring.
9706         * math/s_catanf.c (__catanf): Likewise.
9707         * math/s_catanh.c (__catanh): Likewise.
9708         * math/s_catanhf.c (__catanhf): Likewise.
9709         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
9710         and redefine.
9711         (__catanhl): Handle arguments with large real or imaginary part
9712         separately without squaring.
9713         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
9714         and redefine.
9715         (__catanl): Handle arguments with large real or imaginary part
9716         separately without squaring.
9717         * math/libm-test.inc (catan_test): Add more tests.
9718         (catanh_test): Likewise.
9719         * sysdeps/i386/fpu/libm-test-ulps: Update.
9720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9721
9722 2013-04-27  Andreas Jaeger  <aj@suse.de>
9723
9724         [BZ #15007]
9725         * stdlib/stdlib.h: Update guards for qecvt.
9726         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
9727         <stdlib.h>.
9728
9729 2013-04-27  Allan McRae  <allan@archlinux.org>
9730
9731         * sysdeps/i386/fpu/libm-test-ulps: Update.
9732
9733 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
9734
9735         [BZ #15406]
9736         * math/s_catan.c: Include <float.h>.
9737         (__catan): Ensure underflow exception occurs for underflowed
9738         result.
9739         * math/s_catanf.c: Include <float.h>.
9740         (__catanf): Ensure underflow exception occurs for underflowed
9741         result.
9742         * math/s_catanh.c: Include <float.h>.
9743         (__catanh): Ensure underflow exception occurs for underflowed
9744         result.
9745         * math/s_catanhf.c: Include <float.h>.
9746         (__catanhf): Ensure underflow exception occurs for underflowed
9747         result.
9748         * math/s_catanhl.c: Include <float.h>.
9749         (__catanhl): Ensure underflow exception occurs for underflowed
9750         result.
9751         * math/s_catanl.c: Include <float.h>.
9752         (__catanl): Ensure underflow exception occurs for underflowed
9753         result.
9754         * math/libm-test.inc (catan_test): Add more tests.
9755         (catanh_test): Likewise.
9756
9757         [BZ #15405]
9758         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
9759         underflowed result.
9760         * math/s_ccoshf.c (__ccoshf): Likewise.
9761         * math/s_ccoshl.c (__ccoshl): Likewise.
9762         * math/s_csin.c (__csin): Likewise.
9763         * math/s_csinf.c (__csinf): Likewise.
9764         * math/s_csinh.c (__csinh): Likewise.
9765         * math/s_csinhf.c (__csinhf): Likewise.
9766         * math/s_csinhl.c (__csinhl): Likewise.
9767         * math/s_csinl.c (__csinl): Likewise.
9768         * math/libm-test.inc (ccos_test): Add more tests.
9769         (ccosh_test): Likewise.
9770         (csin_test): Likewise.
9771         (csinh_test): Likewise.
9772
9773 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9774
9775         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
9776         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
9777         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
9778         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
9779         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
9780         powerpc/power5+/fpu folders.
9781         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
9782
9783
9784 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
9785
9786         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9787
9788 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
9789
9790         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
9791         additions to variable.
9792         [$(config-machine) = x86_64] (modules-names): Likewise.
9793         ($(objpfx)tst-audit3): Remove dependency.
9794         ($(objpfx)tst-audit3.out): Likewise.
9795         ($(objpfx)tst-audit4): Likewise.
9796         ($(objpfx)tst-audit4.out): Likewise.
9797         ($(objpfx)tst-audit5): Likewise.
9798         ($(objpfx)tst-audit5.out): Likewise.
9799         ($(objpfx)tst-audit6): Likewise.
9800         ($(objpfx)tst-audit6.out): Likewise.
9801         ($(objpfx)tst-audit7): Likewise.
9802         ($(objpfx)tst-audit7.out): Likewise.
9803         (tst-audit3-ENV): Remove variable.
9804         (tst-audit4-ENV): Likewise.
9805         (tst-audit5-ENV): Likewise.
9806         (tst-audit6-ENV): Likewise.
9807         (tst-audit7-ENV): Likewise.
9808         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
9809         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
9810         addition to variable.
9811         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
9812         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
9813         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
9814         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
9815         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
9816         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
9817         tst-audit3, tst-audit4 and tst-audit5.
9818         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
9819         tst-audit6 and tst-audit7.
9820         [$(subdir) = elf] (modules-names): Add audit modules for those
9821         tests.
9822         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
9823         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
9824         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
9825         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
9826         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
9827         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
9828         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
9829         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
9830         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
9831         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
9832         [$(subdir) = elf] (tst-audit3-ENV): New variable.
9833         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
9834         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
9835         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
9836         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
9837         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
9838         Likewise.
9839         [$(subdir) = elf && $(config-cflags-avx) = yes]
9840         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
9841         [$(subdir) = elf && $(config-cflags-avx) = yes]
9842         (CFLAGS-tst-auditmod4a.c): Likewise.
9843         [$(subdir) = elf && $(config-cflags-avx) = yes]
9844         (CFLAGS-tst-auditmod4b.c): Likewise.
9845         [$(subdir) = elf && $(config-cflags-avx) = yes]
9846         (CFLAGS-tst-auditmod6b.c): Likewise.
9847         [$(subdir) = elf && $(config-cflags-avx) = yes]
9848         (CFLAGS-tst-auditmod6c.c): Likewise.
9849         [$(subdir) = elf && $(config-cflags-avx) = yes]
9850         (CFLAGS-tst-auditmod7b.c): Likewise.
9851         * elf/tst-audit3.c: Move to ...
9852         * sysdeps/x86_64/tst-audit3.c: ... here.
9853         * elf/tst-audit4.c: Move to ...
9854         * sysdeps/x86_64/tst-audit4.c: ... here.
9855         * elf/tst-audit5.c: Move to ...
9856         * sysdeps/x86_64/tst-audit5.c: ... here.
9857         * elf/tst-audit6.c: Move to ...
9858         * sysdeps/x86_64/tst-audit6.c: ... here.
9859         * elf/tst-audit7.c: Move to ...
9860         * sysdeps/x86_64/tst-audit7.c: ... here.
9861         * elf/tst-auditmod3a.c: Move to ...
9862         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
9863         * elf/tst-auditmod3b.c: Move to ...
9864         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
9865         * elf/tst-auditmod4a.c: Move to ...
9866         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
9867         * elf/tst-auditmod4b.c: Move to ...
9868         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
9869         * elf/tst-auditmod5a.c: Move to ...
9870         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
9871         * elf/tst-auditmod5b.c: Move to ...
9872         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
9873         * elf/tst-auditmod6a.c: Move to ...
9874         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
9875         * elf/tst-auditmod6b.c: Move to ...
9876         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
9877         * elf/tst-auditmod6c.c: Move to ...
9878         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
9879         * elf/tst-auditmod7a.c: Move to ...
9880         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
9881         * elf/tst-auditmod7b.c: Move to ...
9882         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
9883
9884 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
9885
9886         [BZ #15366]
9887         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
9888         define unconditionally.
9889         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
9890         define unconditionally.
9891         (INT8_C, INT16_C, etc.): Likewise.
9892
9893 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
9894
9895         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
9896         __ehdr_start with hidden visibility.
9897
9898         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
9899
9900 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
9901
9902         * math/libm-test.inc (cos_test): Use accurate hex constants.
9903         (sincost_test): Likewise.
9904
9905 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
9906
9907         * math/libm-test.inc (catan_test): Add more tests.
9908         (catanh_test): Likewise.
9909
9910         * math/s_catanf.c (__catanf): Use suffixed floating-point
9911         constants.
9912         * math/s_catanhf.c (__catanhf): Likewise.
9913         * math/s_catanhl.c (__catanhl): Likewise.
9914         * math/s_catanl.c (__catanl): Likewise.
9915
9916         [BZ #15394]
9917         * math/s_catan.c (__catan): Calculate imaginary part of result
9918         with log1p not log unless computing log of number close to 0.
9919         * math/s_catanf.c (__catanf): Likewise.
9920         * math/s_catanl.c (__catanl): Likewise.
9921         * math/s_catanh.c (__catanh): Calculate real part of result with
9922         log1p not log unless computing log of number close to 0.
9923         * math/s_catanhf.c (__catanhf): Likewise.
9924         * math/s_catanhl.c (__catanhl): Likewise.
9925         * math/libm-test.inc (catan_test): Add more tests.
9926         (catanh_test): Likewise.
9927         * sysdeps/i386/fpu/libm-test-ulps: Update.
9928         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9929
9930 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
9931
9932         * benchtests/Makefile: Mention files in which fast and slow
9933         paths of math functions are implemented.
9934
9935 2013-04-23  Roland McGrath  <roland@hack.frob.com>
9936
9937         * sysdeps/posix/timespec_get.c: New file.
9938
9939 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9940
9941         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
9942         POWER.
9943         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
9944         for POWER.
9945         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
9946         powerpc/power5/fpu folders.
9947         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
9948         * benchtests/Makefile: Add modf testcase.
9949         * benchtests/bench-modf.c: New file: Benchmark test for mo
9950
9951 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
9952
9953         [BZ #14888]
9954         * time/Makefile (tests): Add tst-strptime-whitespace.
9955         * time/strptime_l.c (get_number): Use ISSPACE.
9956         (__strptime_internal): Likewise.
9957         * time/tst-strptime-whitespace.c: New test case.
9958
9959 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
9960
9961         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
9962         member.
9963         (_nss_files_init): Set it here.
9964
9965 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
9966
9967         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
9968         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
9969         unsigned.
9970
9971 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
9972
9973         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
9974
9975 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9976
9977         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
9978         size just once.
9979
9980 2013-04-21  David S. Miller  <davem@davemloft.net>
9981
9982         * po/ru.po: Update Russion translation from translation project.
9983
9984 2013-04-17  Adam Conrad  <adconrad@0c3.net>
9985
9986         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
9987         and setfsgid.
9988
9989 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
9990
9991         * configure.in: Remove i386 configure warning. Remove i386 case.
9992         * configure: Regenerate.
9993         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
9994         Add example to error message.
9995         * sysdeps/i386/configure: Regenerate.
9996
9997 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9998
9999         * benchtests/Makefile (bench): Add cos, tan, slowcos and
10000         slowtan.
10001         * benchtests/cos-inputs: New file.
10002         * benchtests/slowcos-inputs: New file.
10003         * benchtests/slowcos.c: New file.
10004         * benchtests/slowtan-inputs: New file.
10005         * benchtests/slowtan.c: New file.
10006         * benchtests/tan-inputs: New file.
10007
10008 2013-04-16  Roland McGrath  <roland@hack.frob.com>
10009
10010         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
10011         considered kosher.
10012
10013 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10014
10015         * benchtests/Makefile: Include cppflags-iterator.mk to add
10016         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
10017
10018         * Makefile.in (bench-clean): New target.
10019         * benchtests/Makefile (bench-clean): Likewise.
10020
10021 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
10022
10023         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
10024
10025 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
10026
10027         * stdio-common/tstdiomisc.c: Fix coding-style violation.
10028
10029 2013-04-15  Andreas Schwab  <schwab@suse.de>
10030
10031         * nscd/grpcache.c (cache_addgr): Properly check for short write.
10032         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10033         * nscd/pwdcache.c (cache_addpw): Likewise.
10034         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
10035         more than recsize.
10036
10037 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10038
10039         * benchtests/Makefile (bench): Write all output to
10040         bench-out.tmp together.
10041
10042 2013-04-15  Andreas Schwab  <schwab@suse.de>
10043
10044         * nscd/nscd.c (main): Don't fork again after closing files.
10045
10046 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10047
10048         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
10049
10050         * benchtests/Rules (bench-deps): Collect dependencies into a
10051         single variable.  Add Makefile to dependencies.
10052         ($(objpfx)bench-%.c): Depend on bench-deps.
10053
10054 2013-04-12  Roland McGrath  <roland@hack.frob.com>
10055             Xavier Roche  <roche+kml2@exalead.com>
10056
10057         [BZ #15361]
10058         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
10059         just that it's a file descriptor.
10060         * manual/llio.texi (Synchronizing AIO Operations): Update description
10061         for EBADF error from aio_fsync.
10062
10063 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10064
10065         * Rules (bench): Move target definition...
10066         * benchtests/Makefile: ... here.
10067
10068 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
10069
10070         * math/libm-test.inc (cos_test): Fix PI/2 test.
10071         (sincos_test): Likewise.
10072         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
10073         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
10074
10075 2013-04-11  Andreas Schwab  <schwab@suse.de>
10076
10077         [BZ #13988]
10078         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
10079         accept exponent character only when digits were seen.
10080         * stdio-common/Makefile (tests): Add bug26.
10081         * stdio-common/bug26.c: New file.
10082
10083         [BZ #14293]
10084         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
10085         non-freeable.
10086
10087 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10088
10089         * Makeconfig (rtld-prefix): Define built linker prefix.
10090         * Rules (run-bench): Use it.
10091         * math/Makefile (run-regen-ulps): Likewise.
10092
10093         * Rules (bench): Remove eval.
10094
10095 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10096             Roland McGrath  <roland@hack.frob.com>
10097             Ondrej Bilka  <neleai@seznam.cz>
10098
10099         [BZ #15346]
10100         * time/getdate.c: Include ctype.h and alloca.h.
10101         (__getdate_r): Trim leading and trailing spaces of input.
10102         * time/tst-getdate.c (tests): Add tests with leading and
10103         trailing spaces.
10104
10105 2013-04-08  Roland McGrath  <roland@hack.frob.com>
10106
10107         [BZ #14280]
10108         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
10109         when computing value.
10110
10111 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10112
10113         * math/README.libm-test (How can I generate "libm-test-ulps"?):
10114         Use testrun.sh to run libm tests.
10115
10116         [BZ #15309]
10117         * elf/dl-open.c (dl_open_worker): memset all of seen array.
10118
10119 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
10120
10121         [BZ #15264]
10122         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
10123
10124 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10125
10126         * Makefile.in (regen-ulps): New target.
10127         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
10128         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
10129         [ifneq (no,$(PERL)] (regen-ulps): New target.
10130         [ifeq (no,$(PERL)] (regen-ulps): New target.
10131         * math/libm-test.inc (ulps_file_name): Define.
10132         (output_dir): New variable.
10133         (options): Add "output-dir" option.
10134         (parse_opt): Handle 'o' case.
10135         (main): If output_dir is non-NULL use it as a prefix
10136         otherwise use "".
10137         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
10138
10139 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10140
10141         [BZ #10060, #10062]
10142         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
10143         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
10144         fail configure if __sync_val_compare_and_swap is not inlined.
10145         * sysdeps/i386/configure: Regenerate.
10146         * configure.in: Build for i686 when configured for i386.
10147         * configure: Regenerate.
10148         * README: Remove i386 reference.
10149
10150 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10151
10152         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
10153         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10154
10155 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10156
10157         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
10158         (lmsnanval): New variables.
10159         (F): Add conversion tests.
10160         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
10161         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
10162
10163         * stdio-common/tstdiomisc.c (F): Properly collect individual
10164         tests' results.
10165
10166         [BZ #14686, #15336]
10167         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
10168         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
10169         Instead, use input NaN values or generate a qNaN by arithmetic
10170         operation.  Also fix bugs to comply with the standard.
10171         * math/libm-test.inc (remainder_test): Add more tests.
10172
10173         [BZ #15335, #15342]
10174         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
10175         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
10176         input NaN values or generate a qNaN by arithmetic operation.
10177
10178         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
10179         unreachable code.
10180
10181         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
10182         definitions.
10183
10184 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
10185
10186         [BZ #14478]
10187         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
10188         underflowed result.
10189         * math/s_cexpf.c (__cexpf): Likewise.
10190         * math/s_cexpl.c (__cexpl): Likewise.
10191         * math/libm-test.inc (cexp_test): Add more tests.
10192
10193 2013-04-03  Andreas Schwab  <schwab@suse.de>
10194
10195         [BZ #15330]
10196         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
10197         order arrays from heap if bigger than alloca cutoff.
10198
10199 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
10200
10201         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
10202         (SNAN_TESTS_double): Refer to GCC PR56831.
10203         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
10204         GCC PR56828.
10205
10206 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
10207
10208         * Rules (bench): Move bench.out after the run is complete.
10209
10210         * Rules (bench): Echo currently running benchmark.
10211
10212         * benchtests/Makefile (bench): Add atan and slowatan.
10213         * benchtests/atan-inputs: New file.
10214         * benchtests/slowatan-inputs: New file.
10215         * benchtests/slowatan.c: New file.
10216
10217         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
10218         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
10219         its value.
10220
10221         [BZ #15305]
10222         * sysdeps/unix/sysv/linux/kernel-features.h
10223         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
10224         __ASSUME_XFS_RESTRICTED_CHOWN.
10225         * sysdeps/unix/sysv/linux/pathconf.c
10226         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
10227         Save and restore errno.
10228
10229 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
10230
10231         [BZ #15327]
10232         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
10233         arguments using __kernel_casinh.
10234         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
10235         arguments using __kernel_casinhf.
10236         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
10237         arguments using __kernel_casinhl.
10238         * math/libm-test.inc (cacosh_test): Add more tests.
10239         * sysdeps/i386/fpu/libm-test-ulps: Update.
10240         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10241
10242 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10243
10244         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
10245         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
10246
10247         * bench/Makefile (bench): Add sin and slowsin.
10248         * benchtests/sin-inputs: New file.
10249         * benchtests/slowsin-inputs: New file.
10250         * benchtests/slowsin.c: New file.
10251
10252         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
10253         (bench): Add slowexp and slowpow.
10254         (exp-ITER): Increase iterations.
10255         (pow-ITER): Likewise.
10256         * benchtests/exp-inputs: Change input.
10257         * benchtests/pow-inputs: Likewise.
10258         * benchtests/slowexp-inputs: New file.
10259         * benchtests/slowexp.c: New file.
10260         * benchtests/slowpow-inputs: New file.
10261         * benchtests/slowpow.c: New file.
10262
10263 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10264
10265         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
10266         instructions.
10267         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
10268         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
10269         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
10270         * benchtests/Makefile: Add rint benchtest.
10271         * benchtests/rint-inputs: Input for rint benchtest.
10272
10273 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10274
10275         * Versions.def (libm): Add GLIBC_2.18.
10276         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
10277         hidden libm prototypes.
10278         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
10279         * math/Makefile (libm-calls): Add s_issignaling.
10280         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
10281         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
10282         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
10283         declaration.
10284         * math/math.h [__USE_GNU] (issignaling): New macro.
10285         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
10286         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
10287         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
10288         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
10289         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
10290         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
10291         * manual/arith.texi (issignaling): New section.
10292         * manual/libm-err-tab.pl (@all_functions): Update comment.
10293         * math/gen-libm-test.pl (parse_args): Apply special handling for
10294         issignaling.
10295         * math/libm-test.inc (print_float, issignaling_test): New
10296         functions.
10297         (check_float_internal): Add issignaling checks.
10298         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
10299         default definition.
10300         * sysdeps/powerpc/math-tests.h: New file.
10301         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
10302         tests.
10303         * math/test-snan.c (TEST_FUNC): Likewise.
10304
10305 2013-03-30  David S. Miller  <davem@davemloft.net>
10306
10307         * po/de.po: Update from translation team.
10308
10309 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
10310
10311         [BZ #10357]
10312         * math/k_casinh.c (__kernel_casinh): Handle arguments with
10313         imaginary part less than 1.0 and real part less than 0.5
10314         specially.
10315         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10316         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10317         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
10318         (cacos_test): Add more tests.
10319         (casin_test): Likewise.
10320         (casinh_test): Likewise.
10321         * sysdeps/i386/fpu/libm-test-ulps: Update.
10322         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10323
10324 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10325
10326         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
10327         ONE with its value.
10328
10329         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
10330         (__pow_mp): Replace ONE and MONE with their values.
10331         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
10332         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
10333         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
10334         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
10335         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
10336         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
10337
10338         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
10339
10340         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
10341         (__pow_mp): Replace ZERO and MZERO with their values.
10342         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
10343         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
10344         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
10345         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
10346         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
10347         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
10348         (__sqr): Likewise.
10349
10350         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
10351
10352         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
10353
10354 2013-03-28  Roland McGrath  <roland@hack.frob.com>
10355
10356         * include/stdlib.h [!SHARED] (__call_tls_dtors):
10357         Declare with __attribute__ ((weak)).
10358         * stdlib/exit.c (__libc_atexit) [!SHARED]:
10359         Call __call_tls_dtors only if it's not NULL.
10360
10361 2013-03-28  Roland McGrath  <roland@hack.frob.com>
10362
10363         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
10364         didn't do it already, then set _dl_phdr and _dl_phnum based on the
10365         magic __ehdr_start linker symbol if it's defined.
10366         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
10367         them up here if it was already done.
10368
10369         * elf/dl-support.c (_dl_phdr): Make pointer to const.
10370         (_dl_aux_init): Use const in cast when setting it.
10371         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
10372         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
10373         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
10374
10375         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
10376         Declare them here.
10377         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
10378         * csu/libc-tls.c: Nor here.
10379         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
10380
10381         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
10382         (__libc_message): Never call vsyslog.
10383
10384 2013-03-28  Alan Modra  <amodra@gmail.com>
10385
10386         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
10387         Define as empty.
10388         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
10389         Likewise.
10390
10391 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10392
10393         [BZ #15214]
10394         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
10395         underflow.
10396         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10397
10398 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10399
10400         [BZ #15304]
10401         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
10402         Don't add gid passed as argument.
10403
10404         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
10405
10406 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
10407
10408         [BZ #15307]
10409         * math/k_casinh.c (__kernel_casinh): Handle arguments with
10410         imaginary part between 1.0 and 1.5 and real part less than 0.5
10411         specially.
10412         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10413         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10414         * math/libm-test.inc (cacos_test): Add more tests.
10415         (casin_test): Likewise.
10416         (casinh_test): Likewise.
10417         * sysdeps/i386/fpu/libm-test-ulps: Update.
10418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10419
10420 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10421
10422         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
10423         constants.
10424         (norm): Likewise.
10425         (denorm): Likewise.
10426         (__dbl_mp): Likewise.
10427         (add_magnitudes): Likewise.
10428         (sub_magnitudes): Likewise.
10429         (__add): Likewise.
10430         (__sub): Likewise.
10431         (__mul): Likewise.
10432         (__sqr): Likewise.
10433         (__inv): Likewise.
10434         (__dvd): Likewise.
10435
10436         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
10437         commented code.
10438         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
10439         (__dubcos): Likewise.
10440         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
10441         (__ieee754_acos): Likewise.
10442         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
10443         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
10444         (__exp1): Likewise.
10445         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
10446         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10447         (log1): Likewise.
10448         (my_log2): Likewise.
10449         (checkint): Likewise.
10450         * sysdeps/ieee754/dbl-64/e_remainder.c
10451         (__ieee754_remainder): Likewise.
10452         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
10453         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
10454         (bsloww): Likewise.
10455         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
10456
10457         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
10458         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
10459         MANTISSA_STORE_T to store computations on mantissa.  Use
10460         macros for rounding and division.
10461         (denorm): Likewise.
10462         (__dbl_mp): Likewise.
10463         (add_magnitudes): Likewise.
10464         (sub_magnitudes): Likewise.
10465         (__mul): Likewise.
10466         (__sqr): Likewise.
10467         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
10468         powers of two in terms of TWOPOW macro.
10469         (mp_no): Make type of mantissa as MANTISSA_T.
10470         [!RADIXI]: Define RADIXI.
10471         [!TWO52]: Define TWO52.
10472         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
10473
10474 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10475
10476         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
10477         llroundl symbol when building for PPC32.
10478
10479 2013-03-24  Mark H Weaver  <mhw@netris.org>
10480
10481         * manual/arith.texi (Normalization Functions): Fix prototypes for
10482         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
10483
10484 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10485
10486         [BZ #13889]
10487         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
10488         high value to check if expl overflow.
10489         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
10490         to check for underflow and overflow.
10491         * math/libm-test.inc: Add exp test.
10492
10493 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
10494
10495         [BZ #11120]
10496         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
10497         with NOT_IN_libc.
10498
10499 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10500
10501         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
10502         symbol.
10503
10504 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10505
10506         * math/gen-libm-test.pl (parse_args, special_functions): Properly
10507         wrap blocks consisting of several statements.
10508
10509         * sysdeps/generic/math-tests.h: New file.
10510         * sysdeps/i386/fpu/math-tests.h: Likewise.
10511         * math/test-snan.c: Include it.
10512         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
10513
10514 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
10515
10516         [BZ #15285]
10517         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
10518         (__ieee754_j0l): Do not improve calculations using cos of twice
10519         input for inputs above LDBL_MAX / 2.0L.
10520         (__ieee754_y0l): Likewise.
10521         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
10522         (__ieee754_j1l): Do not improve calculations using cos of twice
10523         input for inputs above LDBL_MAX / 2.0L.
10524         (__ieee754_y1l): Likewise.
10525         * math/libm-test.inc (j0_test): Add another test.
10526         (j1_test): Likewise.
10527         (y0_test): Likewise.
10528         (y1_test): Likewise.
10529         * sysdeps/i386/fpu/libm-test-ulps: Update.
10530
10531 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
10532
10533         * Rules ($(objpfx)bench-%.c): Include code from a C source
10534         file.
10535
10536 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
10537
10538         [BZ #15287]
10539         * math/k_casinh.c (__kernel_casinh): Handle arguments with
10540         imaginary part 1.0 and real part less than 0.5 specially.
10541         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10542         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10543         * math/libm-test.inc (cacos_test): Add more tests.
10544         (casin_test): Likewise.
10545         (casinh_test): Likewise.
10546         * sysdeps/i386/fpu/libm-test-ulps: Update.
10547         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10548
10549 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
10550
10551         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
10552         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
10553
10554 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
10555
10556         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
10557         * config.make.in (config-cflags-sse4): Remove variable.
10558         (config-cflags-avx): Likewise.
10559         (config-cflags-sse2avx): Likewise.
10560         (config-cflags-novzeroupper): Likewise.
10561         (config-asflags-i686): Likewise.
10562         (have-mfma4): Likewise.
10563         (have-as-vis3): Likewise.
10564         (MIG): Likewise.
10565         * configure.in (MIG): Do not AC_SUBST.
10566         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
10567         (libc_cv_cc_sse4): Do not AC_SUBST.
10568         (libc_cv_cc_avx): Likewise.
10569         (libc_cv_cc_sse2avx): Likewise.
10570         (libc_cv_cc_novzeroupper): Likewise.
10571         (libc_cv_cc_fma4): Likewise.
10572         (libc_cv_as_i686): Likewise.
10573         (libc_cv_sparc_as_vis3): Likewise.
10574         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
10575         LIBC_CONFIG_VAR.
10576         (config-asflags-i686): Likewise.
10577         (config-cflags-avx): Likewise.
10578         (config-cflags-sse2avx): Likewise.
10579         (have-mfma4): Likewise.
10580         (config-cflags-novzeroupper): Likewise.
10581         * sysdeps/mach/configure.in (MIG): Likewise.
10582         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
10583         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
10584         LIBC_CONFIG_VAR.
10585         (config-cflags-avx): Likewise.
10586         (config-cflags-sse2avx): Likewise.
10587         (have-mfma4): Likewise.
10588         (config-cflags-novzeroupper): Likewise.
10589         * configure: Regenerated.
10590         * sysdeps/i386/configure: Likewise.
10591         * sysdeps/mach/configure: Likewise.
10592         * sysdeps/sparc/configure: Likewise.
10593         * sysdeps/x86_64/configure: Likewise.
10594
10595 2013-03-20  Roland McGrath  <roland@hack.frob.com>
10596
10597         [BZ #14812]
10598         * locale/programs/localedef.c (options): Put N_ translation marker
10599         on argument names, not just descriptions.
10600
10601 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10602
10603         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
10604
10605 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
10606
10607         [BZ #14176]
10608         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
10609
10610 2013-03-19  Roland McGrath  <roland@hack.frob.com>
10611
10612         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
10613         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
10614         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
10615         [!BEFORE_ABORT] (before_abort): New function.
10616         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
10617         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
10618         (writev_for_fatal): New function.
10619         (WRITEV_FOR_FATAL): New macro; call that.
10620         (backtrace_and_maps): New function.
10621         (BEFORE_ABORT): New macro; call that.
10622         (struct str_list): Type removed.
10623         (__libc_message, __libc_fatal): Functions removed.
10624         Include <sysdeps/posix/libc_fatal.c> instead.
10625
10626 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
10627
10628         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
10629         constants.
10630         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
10631         double constants.
10632
10633 2013-03-19  Andreas Schwab  <schwab@suse.de>
10634
10635         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
10636         * sysdeps/gnu/configure: Regenerate.
10637
10638         * configure.in: Substitute libc_cv_rtlddir.
10639         * configure: Regenerate.
10640         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
10641         * Makeconfig (rtlddir, inst_rtlddir): New variables.
10642         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
10643         * elf/Makefile (install-others, CFLAGS-interp.c)
10644         (ldso_install, common-ldd-rewrite): Likewise.
10645         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
10646         $(inst_slibdir)/$(rtld-installed-name).
10647         * scripts/rellns-sh: Add -p option.
10648         * Makerules (make-shlib-link): Use rellns-sh to get relative name
10649         for source.
10650
10651 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
10652
10653         * manual/nptl.texi: Renamed to ...
10654         * manual/threads.texi: ... this.
10655         * manual/Makefile (chapters): Update.
10656
10657 2013-03-18  Roland McGrath  <roland@hack.frob.com>
10658
10659         [BZ #14812]
10660         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
10661         on argument names, not just descriptions.
10662         * malloc/memusagestat.c (options): Likewise.
10663         * nss/getent.c (options): Likewise.
10664
10665 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
10666
10667         [BZ #14812]
10668         * iconv/iconv_prog.c (options): Put N_ translation marker
10669         on argument names, not just descriptions.
10670         * iconv/iconvconfig.c (options): Likewise.
10671
10672 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
10673
10674         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
10675         implementation which is faster on all x86_64 architectures.
10676         Tested on AMD, Intel Nehalem, SNB, IVB.
10677         * sysdeps/x86_64/strnlen.S: Likewise.
10678
10679         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
10680         Remove all multiarch strlen and strnlen versions.
10681         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
10682         Remove strlen and strnlen related parts.
10683
10684         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
10685         Inline strlen part.
10686         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
10687
10688         * sysdeps/x86_64/multiarch/strlen.S: Remove.
10689         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
10690         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
10691         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
10692         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
10693         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
10694
10695 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
10696
10697         * manual/memory.texi (Malloc Tunable Parameters):
10698         Sort parameters alphabetically. Add comments for missing entries.
10699
10700 2013-03-17  David S. Miller  <davem@davemloft.net>
10701
10702         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10703
10704 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
10705
10706         [BZ #15283]
10707         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
10708         for arguments at most half maximum finite value.
10709         * math/libm-test.inc (j0_test): Add more tests.
10710         (j1_test): Likewise.
10711         (y0_test): Likewise.
10712         (y1_test): Likewise.
10713         * sysdeps/i386/fpu/libm-test-ulps: Update.
10714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10715
10716         [BZ #14155]
10717         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
10718         1 / x and functions P and Q for arguments above 0x1p256L.
10719         (__ieee754_y0l): Likewise.
10720         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
10721         (__ieee754_y1l): Likewise.
10722         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
10723         (j1_test): Likewise.
10724         (y0_test): Likewise.
10725         (y1_test): Likewise.
10726
10727 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
10728
10729         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
10730         variable.
10731
10732 2013-03-15  Roland McGrath  <roland@hack.frob.com>
10733
10734         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
10735         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
10736         zero since it's initialized to EXEC_PAGESIZE.
10737
10738         * sysdeps/unix/sysv/linux/ldsodefs.h
10739         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
10740         * sysdeps/generic/ldsodefs.h: ... here.
10741
10742 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
10743
10744         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
10745
10746         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
10747         math/test-snan.c.
10748         * math/test-snan.c: Renamed from
10749         sysdeps/powerpc/fpu/test-powerpc-snan.c.
10750         * math/Makefile (tests): Add test-snan.
10751         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
10752         test-powerpc-snan.
10753
10754         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
10755         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
10756         functions.
10757         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
10758         __builtin_nan family of functions.
10759         * math/libm-test.inc (initialize): Initialize qnan_value with
10760         __builtin_nan family of functions.
10761         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
10762         Remove variables.
10763         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
10764         Remove functions.
10765         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
10766         storage class.  Initialize qNaN_var and sNaN_var with
10767         __builtin_nan and __builtin_nans families of functions,
10768         respectively.
10769
10770         * math/libm-test.inc (acosh_test): Also test with qNaN input.
10771         (sqrt_test): Remove duplicate test with qNaN input.
10772         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
10773         (round_test, signbit_test, significand_test): Note missing +/-Inf
10774         as well as qNaN tests.
10775
10776         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
10777         qNaN_var.  Fix a few strings, too.
10778         * math/libm-test.inc (nan_value): Rename to qnan_value.
10779         * math/gen-libm-test.pl (%beautify): Adjust to that.
10780         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
10781         * math/test-misc.c (main): Likewise.
10782         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
10783         to __qnan_bytes, and __qnan_union, respectively.
10784         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
10785         Likewise.
10786         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
10787         and lqnanval, respectively.
10788         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
10789         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
10790         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
10791         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
10792
10793         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
10794         * math/test-misc.c (main) [__x86_64__]: Enable test for long
10795         doubles.
10796
10797         * math/test-misc.c (main): Fix copy'n'pastos.
10798         * misc/tst-efgcvt.c (special): Likewise.
10799
10800         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
10801         Remove declarations.
10802
10803 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10804
10805         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
10806         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
10807         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
10808         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
10809
10810 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10811
10812         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
10813         macro to return vdso values correctly in IFUNC implementations.
10814         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
10815         Optimization by using IFUNC.
10816
10817 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10818             Richard Henderson  <rth@redhat.com>
10819             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10820
10821         * Makefile.in (bench): New target.
10822         * NEWS: Mention the benchmark framework.
10823         * Rules (bench): Likewise.
10824         (binaries-bench): Generate binaries for functions to
10825         benchmark.
10826         * benchtests/Makefile: New makefile for benchmark tests.
10827         * benchtests/bench-skeleton.c: New skeleton file for benchmark
10828         programs.
10829         * benchtests/exp-inputs: New input file for EXP function.
10830         * benchtests/pow-inputs: New input file for POW function.
10831         * scripts/bench.pl: New script to generate source files for
10832         benchmark programs.
10833
10834 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10835
10836         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
10837         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
10838         computations on mantissa.  Use macros for rounding and
10839         division.
10840         (denorm): Likewise.
10841         (__dbl_mp): Likewise.
10842         (add_magnitudes): Likewise.
10843         (sub_magnitudes): Likewise.
10844         (__mul): Likewise.
10845         (__sqr): Likewise.
10846         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
10847         powers of two in terms of TWOPOW macro.
10848         (mp_no): Make type of mantissa as MANTISSA_T.
10849         [!RADIXI]: Define RADIXI.
10850         [!TWO52]: Define TWO52.
10851         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
10852
10853         * manual/nptl.texi (cindex): Modify threads to pthreads.
10854
10855 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
10856
10857         * sysdeps/x86_64/preconfigure: Regenerated.
10858
10859 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
10860
10861         [BZ #14155]
10862         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
10863         0x1p28 and above.
10864         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
10865         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
10866         0x1p28 and above.
10867         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
10868         * math/libm-test.inc (j0_test): Do not allow one spurious
10869         underflow exception.
10870         (y1_test): Likewise.
10871
10872 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
10873
10874         * manual/Makefile (chapters): Add nptl.
10875         * manual/debug.texi (Debugging Support): Add link to Threads
10876         chapter.
10877         * manual/nptl.texi: New file.
10878
10879         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
10880
10881 2013-03-14  Petr Baudis  <pasky@ucw.cz>
10882
10883         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
10884         for non-NULL pointer before the memory validity test. Pointed
10885         out by Holger Brunck <holger.brunck@keymile.com>.
10886
10887 2013-03-13  Andreas Schwab  <schwab@suse.de>
10888
10889         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
10890         instead of .os.
10891
10892 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
10893
10894         * timezone/zic.c: Update from tzcode 2013b.
10895
10896 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
10897
10898         * manual/install.texi (Configuring and compiling):
10899         Mention i686 and i586.
10900         * INSTALL: Regenerate.
10901
10902 2013-03-12  Roland McGrath  <roland@hack.frob.com>
10903
10904         * sysdeps/init_array/elf-init.c: New file.
10905         * csu/elf-init.c
10906         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
10907         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
10908
10909         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
10910         __gmon_start__ as global, but as static with a .preinit_array pointer.
10911         * sysdeps/init_array/gmon-start.c: New file.  Use that.
10912         * sysdeps/init_array/crti.S: New file, empty except for comments.
10913         * sysdeps/init_array/crtn.S: Likewise.
10914
10915 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
10916
10917         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
10918         definining bcopy.
10919         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10920         Remove Prefer_SSE_for_memop.
10921         * sysdeps/x86_64/multiarch/init-arch.h: Remove
10922         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
10923         HAS_PREFER_SSE_FOR_MEMOP.
10924         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10925         memset-x86-64.
10926         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
10927         Remove bzero, memset ifunc support.
10928         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
10929         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
10930         * sysdeps/x86_64/multiarch/memset.S: Likewise.
10931         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
10932
10933 2013-03-11  Andreas Schwab  <schwab@suse.de>
10934
10935         [BZ #15234]
10936         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
10937         by SHLIB_COMPAT.
10938         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
10939         (GLIBC_2.16): Remove pthread_atfork.
10940
10941 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
10942
10943         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
10944         (ptestcases.h): Likewise.
10945
10946 2013-03-08  Roland McGrath  <roland@hack.frob.com>
10947
10948         * Makeconfig ($(common-objpfx)config.status): Depend on
10949         sysdeps/*/preconfigure{,.in} too.
10950
10951 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
10952
10953         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
10954         (__free_hook): Use void * instead of __malloc_ptr_t.
10955         (__malloc_hook): Likewise.
10956         (__realloc_hook): Likewise.
10957         (__memalign_hook): Likewise.
10958         (__after_morecore_hook): Likewise.
10959         * malloc/arena.c (save_malloc_hook): Likewise.
10960         (save_free_hook): Likewise.
10961         * malloc/hooks.c (malloc_hook_ini): Likewise.
10962         (realloc_hook_ini): Likewise.
10963         (memalign_hook_ini): Likewise.
10964         * malloc/malloc.c (malloc_hook_ini): Likewise.
10965         (realloc_hook_ini): Likewise.
10966         (memalign_hook_ini): Likewise.
10967         (__free_hook): Likewise.
10968         (__malloc_hook): Likewise.
10969         (__realloc_hook): Likewise.
10970         (__memalign_hook): Likewise.
10971         (__libc_malloc): Likewise.
10972         (__libc_free): Likewise.
10973         (__libc_realloc): Likewise.
10974         (__libc_memalign): Likewise.
10975         (__libc_valloc): Likewise.
10976         (__libc_pvalloc): Likewise.
10977         (__libc_calloc): Likewise.
10978         (__posix_memalign): Likewise.
10979         * malloc/morecore.c (__sbrk): Likewise.
10980         (__default_morecore): Likewise.
10981
10982         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
10983
10984         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
10985         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
10986         __malloc_ptrdiff_t.
10987
10988         * malloc/malloc.h (__malloc_size_t): Remove macro.
10989         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
10990         __malloc_size_t.
10991         (old_memalign_hook): Likewise.
10992         (old_realloc_hook): Likewise.
10993         (struct hdr): Likewise.
10994         (flood): Likewise.
10995         (mallochook): Likewise.
10996         (memalignhook): Likewise.
10997         (reallochook): Likewise.
10998         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
10999         (tr_old_realloc_hook): Likewise.
11000         (tr_old_memalign_hook): Likewise.
11001         (tr_mallochook): Likewise.
11002         (tr_reallochook): Likewise.
11003         (tr_memalignhook): Likewise.
11004
11005 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11006
11007         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
11008         default_ldbl_pack and using as default implementation.
11009         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
11010         implementation.
11011         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
11012         redundant definition.
11013         (ldbl_insert_mantissa): Likewise.
11014         (ldbl_canonicalize): Likewise.
11015         (ldbl_nearbyint): Likewise.
11016         (ldbl_pack): Rename to ldbl_pack_ppc.
11017         (ldbl_unpack): Rename to ldbl_unpack_ppc.
11018         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
11019         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
11020
11021 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11022
11023         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
11024         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
11025         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
11026         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
11027         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
11028         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
11029         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
11030         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
11031
11032 2013-03-07  Andreas Jaeger  <aj@suse.de>
11033
11034         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11035         bits/mman-linux.h.
11036
11037 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
11038
11039         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
11040         Include mpa.h and declare __MPEXP.
11041         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
11042         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
11043         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
11044         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
11045         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
11046         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
11047         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
11048
11049         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
11050         (__slowpow): Use long double EXPL and LOGL functions to
11051         compute POW.
11052         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
11053         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
11054         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
11055         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
11056         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
11057         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
11058
11059         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
11060         intermediate variable to calculate exponent.
11061         (__sqr): Likewise.
11062         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
11063         Likewise.
11064         (__sqr): Likewise.
11065
11066         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
11067         [!NO__SQR]: Define __sqr.
11068         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
11069         and NO__SQR.  Remove all code except __mul and __sqr.  Include
11070         sysdeps/ieee754/dbl-64/mpa.c.
11071         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11072
11073         [BZ #12723]
11074         * posix/Makefile (tests): Add tst-pathconf.
11075         * posix/tst-pathconf.c: New test case.
11076         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
11077         _PC_PIPE_BUF.
11078         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
11079
11080 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
11081
11082         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
11083
11084 2013-03-06  Andreas Jaeger  <aj@suse.de>
11085
11086         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
11087         definition via __MAP_ANONYMOUS.
11088
11089         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
11090         it's not part of Linux headers.
11091
11092         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
11093         (MAP_HUGE_MASK): Define.
11094
11095         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11096         Define.
11097         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11098         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11099         Define.
11100         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11101         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11102         Define.
11103         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11104         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
11105         Define.
11106         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11107
11108         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
11109         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
11110         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
11111         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
11112         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
11113         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
11114
11115         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
11116         Handle f2fs.
11117
11118         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11119         Handle f2fs and efivarfs.
11120
11121         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
11122         f2fs.
11123
11124         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
11125         (EFIVARFS_MAGIC): Add.
11126         (F2FS_LINK_MAX): Add.
11127
11128 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11129
11130         * stdio-common/vfprintf.c: Replace __builtin_expect with
11131         __glibc_unlikely.
11132
11133 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
11134
11135         [BZ #13550]
11136         * sysdeps/generic/bp-sym.h: Remove file.
11137         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
11138         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
11139         <bp-sym.h> and <bp-asm.h>.
11140         (__longjmp): Don't use BP_SYM.
11141         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
11142         and <bp-asm.h>.
11143         (memcpy): Don't use BP_SYM.
11144         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
11145         <bp-sym.h> and <bp-asm.h>.
11146         (memcpy): Don't use BP_SYM.
11147         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
11148         <bp-asm.h>.
11149         (memcpy): Don't use BP_SYM.
11150         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
11151         <bp-asm.h>.
11152         (memset): Don't use BP_SYM.
11153         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11154         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11155         (__bzero): Don't use BP_SYM.
11156         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11157         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11158         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
11159         <bp-sym.h> and <bp-asm.h>.
11160         (memcmp): Don't use BP_SYM.  Remove comment about bounded
11161         pointers.
11162         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
11163         <bp-sym.h> and <bp-asm.h>.
11164         (memcpy): Don't use BP_SYM.
11165         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
11166         <bp-sym.h> and <bp-asm.h>.
11167         (memset): Don't use BP_SYM.
11168         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11169         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11170         (__bzero): Don't use BP_SYM.
11171         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11172         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11173         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
11174         <bp-sym.h> and <bp-asm.h>.
11175         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11176         pointers.
11177         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
11178         <bp-sym.h> and <bp-asm.h>.
11179         (memcpy): Don't use BP_SYM.
11180         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
11181         <bp-sym.h> and <bp-asm.h>.
11182         (memset): Don't use BP_SYM.
11183         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11184         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11185         (__bzero): Don't use BP_SYM.
11186         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11187         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11188         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
11189         <bp-sym.h> and <bp-asm.h>.
11190         (__memchr): Don't use BP_SYM.
11191         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
11192         <bp-sym.h> and <bp-asm.h>.
11193         (memcmp): Don't use BP_SYM.  Remove comment about bounded
11194         pointers.
11195         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
11196         <bp-sym.h> and <bp-asm.h>.
11197         (memcpy): Don't use BP_SYM.
11198         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
11199         <bp-sym.h> and <bp-asm.h>.
11200         (__mempcpy): Don't use BP_SYM.
11201         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
11202         <bp-sym.h> and <bp-asm.h>.
11203         (__memrchr): Don't use BP_SYM.
11204         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
11205         <bp-sym.h> and <bp-asm.h>.
11206         (memset): Don't use BP_SYM.
11207         (__bzero): Likewise.
11208         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
11209         <bp-sym.h> and <bp-asm.h>.
11210         (__rawmemchr): Don't use BP_SYM.
11211         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
11212         <bp-sym.h> and <bp-asm.h>.
11213         (__STRCMP): Don't use BP_SYM.
11214         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
11215         <bp-sym.h> and <bp-asm.h>.
11216         (strchr): Don't use BP_SYM.
11217         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
11218         <bp-sym.h> and <bp-asm.h>.
11219         (__strchrnul): Don't use BP_SYM.
11220         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
11221         <bp-sym.h> and <bp-asm.h>.
11222         (strlen): Don't use BP_SYM.
11223         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
11224         <bp-sym.h> and <bp-asm.h>.
11225         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11226         pointers.
11227         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
11228         <bp-sym.h> and <bp-asm.h>.
11229         (__strnlen): Don't use BP_SYM.
11230         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
11231         <bp-sym.h> and <bp-asm.h>.
11232         (__GI__setjmp): Don't use BP_SYM.
11233         (_setjmp): Likewise.
11234         (__sigsetjmp): Likewise.
11235         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
11236         (L(start_addresses)): Don't use BP_SYM.
11237         (_start): Likewise.
11238         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
11239         <bp-asm.h>.
11240         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
11241         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
11242         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11243         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11244         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
11245         <bp-asm.h>.
11246         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
11247         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
11248         about bounded pointers.
11249         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
11250         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11251         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
11252         <bp-asm.h>.
11253         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
11254         about bounded pointers.  Remove GKM FIXME comments.
11255         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
11256         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
11257         <bp-asm.h>.
11258         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
11259         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
11260         Remove GKM FIXME comments.
11261         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11262         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11263         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
11264         <bp-asm.h>.
11265         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
11266         about bounded pointers.  Remove GKM FIXME comment.
11267         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
11268         and <bp-asm.h>.
11269         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11270         pointers.
11271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
11272         <bp-sym.h> and <bp-asm.h>.
11273         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
11274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
11275         <bp-sym.h> and <bp-asm.h>.
11276         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
11277         comment.
11278
11279 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11280
11281         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
11282         call free(NULL).
11283
11284 2013-03-05  David S. Miller  <davem@davemloft.net>
11285
11286         * po/es.po: Update from translation team.
11287
11288 2013-03-05  Andreas Jaeger  <aj@suse.de>
11289
11290         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
11291         <bits/mman-linux.h>.
11292         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11293         is fine.
11294         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
11295         <bits/mman-linux.h> to end of file.
11296         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11297         is fine.
11298         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
11299         <bits/mman-linux.h> to end of file.
11300         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11301         is fine.
11302         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
11303         <bits/mman-linux.h> to end of file.
11304
11305         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
11306         (MCL_CURRENT, MCL_FUTURE): Define here.
11307
11308 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11309
11310         [BZ #15232]
11311         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
11312         attribute_hidden.
11313         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
11314
11315 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11316
11317         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
11318         fourth parameter needed for rt_sigprocmask syscall.
11319         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
11320         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
11321         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
11322         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
11323         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
11324         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
11325
11326 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
11327
11328         [BZ #13550]
11329         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
11330         comment about bounded pointers.
11331         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
11332         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
11333
11334 2013-03-04  Andreas Jaeger  <aj@suse.de>
11335
11336         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
11337         common definitions.
11338
11339         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
11340         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
11341         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
11342         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11343         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
11344         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11345
11346 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11347
11348         [BZ #15055]
11349         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
11350         __ieee754_sqrl instead of __sqrl.
11351
11352 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
11353
11354         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
11355         * sysdeps/powerpc/fpu_control.h: ... here.
11356         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
11357         * sysdeps/powerpc/bits/fenvinline.h: ... here.
11358         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
11359         * sysdeps/powerpc/bits/mathinline.h: ... here.
11360
11361 2013-03-01  Roland McGrath  <roland@hack.frob.com>
11362
11363         * elf/dl-hwcaps.c (_dl_important_hwcaps):
11364         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
11365         to just [NEED_DL_SYSINFO_DSO].
11366         * elf/dl-support.c: Likewise.
11367         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
11368         * elf/rtld.c (dl_main): Likewise.
11369         * elf/setup-vdso.h (setup_vdso): Likewise.
11370         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
11371         * sysdeps/unix/sysv/linux/dl-sysdep.c
11372         (_dl_discover_osversion): Likewise.
11373
11374 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
11375
11376         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
11377         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
11378
11379 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
11380
11381         * NEWS: Mention libm performance improvements and non-x86 PI
11382         futex support.
11383
11384         * csu/libc-start.c (__pthread_initialize_minimal): Change
11385         function arguments.
11386         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
11387
11388 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
11389
11390         [BZ #13550]
11391         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
11392         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
11393         <bp-sym.h> and <bp-asm.h>.
11394         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
11395         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
11396         and <bp-asm.h>.
11397         (memcpy): Don't use BP_SYM.
11398         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
11399         <bp-asm.h>.
11400         (__mpn_add_n): Don't use BP_SYM.
11401         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
11402         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
11403         and <bp-asm.h>.
11404         (__mpn_addmul_1): Don't use BP_SYM.
11405         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11406         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
11407         <bp-sym.h>.
11408         (_setjmp): Don't use BP_SYM.
11409         (__novmx_setjmp): Likewise.
11410         (__GI__setjmp): Likewise.
11411         (__vmx_setjmp): Likewise.
11412         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
11413         <bp-sym.h>.
11414         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
11415         (__bzero): Don't use BP_SYM.
11416         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11417         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11418         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
11419         <bp-sym.h> and <bp-asm.h>.
11420         (memcpy): Don't use BP_SYM.
11421         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
11422         <bp-sym.h> and <bp-asm.h>.
11423         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
11424         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
11425         <bp-sym.h> and <bp-asm.h>.
11426         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
11427         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
11428         <bp-asm.h>.
11429         (__mpn_lshift): Don't use BP_SYM.
11430         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11431         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
11432         <bp-asm.h>.
11433         (memset): Don't use BP_SYM.
11434         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11435         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11436         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
11437         <bp-asm.h>.
11438         (__mpn_mul_1): Don't use BP_SYM.
11439         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11440         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
11441         <bp-sym.h> and <bp-asm.h>.
11442         (memcmp): Don't use BP_SYM.
11443         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
11444         <bp-sym.h> and <bp-asm.h>.
11445         (memcpy): Don't use BP_SYM.
11446         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
11447         <bp-sym.h> and <bp-asm.h>.
11448         (memset): Don't use BP_SYM.
11449         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
11450         <bp-sym.h> and <bp-asm.h>.
11451         (strncmp): Don't use BP_SYM.
11452         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
11453         <bp-sym.h> and <bp-asm.h>.
11454         (memcpy): Don't use BP_SYM.
11455         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
11456         <bp-sym.h> and <bp-asm.h>.
11457         (memset): Don't use BP_SYM.
11458         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
11459         <bp-sym.h> and <bp-asm.h>.
11460         (__memchr): Don't use BP_SYM.
11461         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
11462         <bp-sym.h> and <bp-asm.h>.
11463         (memcmp): Don't use BP_SYM.
11464         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
11465         <bp-sym.h> and <bp-asm.h>.
11466         (memcpy): Don't use BP_SYM.
11467         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
11468         <bp-sym.h> and <bp-asm.h>.
11469         (__mempcpy): Don't use BP_SYM.
11470         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
11471         <bp-sym.h> and <bp-asm.h>.
11472         (__memrchr): Don't use BP_SYM.
11473         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
11474         <bp-sym.h> and <bp-asm.h>.
11475         (memset): Don't use BP_SYM.
11476         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
11477         <bp-sym.h> and <bp-asm.h>.
11478         (__rawmemchr): Don't use BP_SYM.
11479         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
11480         <bp-sym.h> and <bp-asm.h>.
11481         (__STRCMP): Don't use BP_SYM.
11482         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
11483         <bp-sym.h> and <bp-asm.h>.
11484         (strchr): Don't use BP_SYM.
11485         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
11486         <bp-sym.h> and <bp-asm.h>.
11487         (__strchrnul): Don't use BP_SYM.
11488         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
11489         <bp-sym.h> and <bp-asm.h>.
11490         (strlen): Don't use BP_SYM.
11491         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
11492         <bp-sym.h> and <bp-asm.h>.
11493         (strncmp): Don't use BP_SYM.
11494         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
11495         <bp-sym.h> and <bp-asm.h>.
11496         (__strnlen): Don't use BP_SYM.
11497         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
11498         <bp-asm.h>.
11499         (__mpn_rshift): Don't use BP_SYM.
11500         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11501         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
11502         <bp-sym.h> and <bp-asm.h>.
11503         (__sigsetjmp): Don't use BP_SYM.
11504         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
11505         (L(start_addresses)): Don't use BP_SYM.
11506         (_start): Likewise.
11507         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
11508         <bp-asm.h>.
11509         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
11510         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11511         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11512         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
11513         <bp-asm.h>.
11514         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
11515         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
11516         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11517         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
11518         <bp-asm.h>.
11519         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
11520         comments.
11521         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
11522         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
11523         <bp-asm.h>.
11524         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
11525         FIXME comments.
11526         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11527         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11528         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
11529         <bp-asm.h>.
11530         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
11531         comment.
11532         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
11533         and <bp-asm.h>.
11534         (strncmp): Don't use BP_SYM,
11535         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
11536         <bp-asm.h>.
11537         (__mpn_sub_n): Don't use BP_SYM.
11538         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11539         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
11540         and <bp-asm.h>.
11541         (__mpn_submul_1): Don't use BP_SYM.
11542         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
11544         <bp-sym.h> and <bp-asm.h>.
11545         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
11546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
11547         <bp-sym.h> and <bp-asm.h>.
11548         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
11549         comment.
11550
11551 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11552
11553         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
11554         Use ZK to minimize writes to Z.
11555         (sub_magnitudes): Simplify code a bit.
11556         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
11557         Use ZK to minimize writes to Z.
11558         (sub_magnitudes): Simplify code a bit.
11559
11560 2013-02-27  Roland McGrath  <roland@hack.frob.com>
11561
11562         * csu/gmon-start.c: Add special exception to license text.
11563
11564 2013-02-27  Richard Henderson  <rth@redhat.com>
11565
11566         * scripts/config.guess: Update from config.git.
11567         * scripts/config.sub: Likewise.
11568
11569 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11570
11571         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
11572
11573         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
11574
11575         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
11576
11577         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
11578
11579         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
11580
11581 2013-02-26  Roland McGrath  <roland@hack.frob.com>
11582
11583         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
11584         [$(build-shared = yes].
11585
11586 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11587
11588         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
11589         (__mul): Reduce iterations for calculating mantissa.
11590
11591         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
11592         MPTWO.
11593         (__mpranred): Likewise.
11594
11595         [BZ #15160]
11596         * malloc/memusagestat.c (main): Draw graphs for heap and stack
11597         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
11598
11599 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
11600
11601         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
11602         Define __attribute__.
11603
11604 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11605
11606         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
11607         unused.
11608         * posix/regex_internal.h (__attribute): Remove.
11609         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
11610         (re_string_context_at): Likewise.
11611         (bitset_not): Use __attribute__ and mark function as possibly
11612         unused.
11613         (bitset_merge): Likewise.
11614         (bitset_mask): Likewise.
11615         (re_string_char_size_at): Likewise.
11616         (re_string_wchar_at): Likewise.
11617         (re_string_elem_size_at): Likewise.
11618
11619 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
11620
11621         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
11622         code.
11623         (cc32): Likewise.
11624
11625         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
11626         (__acr): Likewise.
11627         (__cpy): Likewise.
11628         (norm): Likewise.
11629         (denorm): Likewise.
11630         (__dbl_mp): Likewise.
11631         (add_magnitudes): Likewise.
11632         (sub_magnitudes): Likewise.
11633         (__mul): Likewise.
11634         (__inv): Likewise.
11635
11636         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
11637         style.
11638
11639         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
11640         style.
11641
11642         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
11643         code.
11644
11645         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
11646         up changes with default code.
11647         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
11648         Likewise.
11649
11650 2013-02-24  Allan McRae  <allan@archlinux.org>
11651
11652         * manual/socket.texi (The Internet Namespace): Order menu items
11653         to match that in the file.
11654
11655         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
11656         node listing of the info page menu.
11657
11658 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
11659
11660         [BZ #13550]
11661         * sysdeps/i386/bp-asm.h: Remove file.
11662         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
11663         (PARMS): Do not use macros from bp-asm.h.
11664         (S1): Likewise.
11665         (S2): Likewise.
11666         (SIZE): Likewise.
11667         (__mpn_add_n): Do not use BP_SYM
11668         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
11669         "bp-asm.h".
11670         (PARMS): Do not use macros from bp-asm.h.
11671         (S1): Likewise.
11672         (SIZE): Likewise.
11673         (__mpn_addmul_1): Do not use BP_SYM
11674         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
11675         "bp-asm.h".
11676         (PARMS): Do not use macros from bp-asm.h.
11677         (SIGMSK): Likewise.
11678         (_setjmp): Likewise.  Do not use BP_SYM.
11679         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
11680         "bp-asm.h".
11681         (PARMS): Do not use macros from bp-asm.h.
11682         (SIGMSK): Likewise.
11683         (setjmp): Likewise.  Do not use BP_SYM.
11684         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
11685         "bp-asm.h".
11686         (PARMS): Do not use macros from bp-asm.h.
11687         (__frexp): Do not use BP_SYM.
11688         (frexp): Likewise.
11689         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
11690         "bp-asm.h".
11691         (PARMS): Do not use macros from bp-asm.h.
11692         (__frexpf): Do not use BP_SYM.
11693         (frexpf): Likewise.
11694         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
11695         "bp-asm.h".
11696         (PARMS): Do not use macros from bp-asm.h.
11697         (__frexpl): Do not use BP_SYM.
11698         (frexpl): Likewise.
11699         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
11700         "bp-asm.h".
11701         (PARMS): Do not use macros from bp-asm.h.
11702         (__remquo): Do not use BP_SYM.
11703         (remquo): Likewise.
11704         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
11705         "bp-asm.h".
11706         (PARMS): Do not use macros from bp-asm.h.
11707         (__remquof): Do not use BP_SYM.
11708         (remquof): Likewise.
11709         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
11710         "bp-asm.h".
11711         (PARMS): Do not use macros from bp-asm.h.
11712         (__remquol): Do not use BP_SYM.
11713         (remquol): Likewise.
11714         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
11715         "bp-asm.h".
11716         (PARMS): Do not use macros from bp-asm.h.
11717         (DEST): Likewise.
11718         (SRC): Likewise.
11719         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
11720         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
11721         "bp-asm.h".
11722         (PARMS): Do not use macros from bp-asm.h.
11723         (strlen): Do not use BP_SYM.
11724         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
11725         "bp-asm.h".
11726         (PARMS): Do not use macros from bp-asm.h.
11727         (S1): Likewise.
11728         (S2): Likewise.
11729         (SIZE): Likewise.
11730         (__mpn_add_n): Do not use BP_SYM.
11731         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
11732         "bp-asm.h".
11733         (PARMS): Do not use macros from bp-asm.h.
11734         (S1): Likewise.
11735         (SIZE): Likewise.
11736         (__mpn_addmul_1): Do not use BP_SYM.
11737         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
11738         weak_alias.
11739         (bzero): Likewise.
11740         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
11741         "bp-asm.h".
11742         (PARMS): Do not use macros from bp-asm.h.
11743         (S): Likewise.
11744         (SIZE): Likewise.
11745         (__mpn_lshift): Do not use BP_SYM.
11746         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
11747         "bp-asm.h".
11748         (PARMS): Do not use macros from bp-asm.h.
11749         (DEST): Likewise.
11750         (SRC): Likewise.
11751         (LEN): Likewise.
11752         (memcpy): Likewise.  Do not use BP_SYM.
11753         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
11754         libc_hidden_def and weak_alias.
11755         (mempcpy): Do not use BP_SYM in weak_alias.
11756         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
11757         "bp-asm.h".
11758         (PARMS): Do not use macros from bp-asm.h.
11759         (DEST): Likewise.
11760         (LEN): Likewise.
11761         [!BZERO_P] (CHR): Likewise.
11762         (memset): Likewise.  Do not use BP_SYM.
11763         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
11764         "bp-asm.h".
11765         (PARMS): Do not use macros from bp-asm.h.
11766         (S1): Likewise.
11767         (SIZE): Likewise.
11768         (__mpn_mul_1): Do not use BP_SYM.
11769         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
11770         "bp-asm.h".
11771         (PARMS): Do not use macros from bp-asm.h.
11772         (S): Likewise.
11773         (SIZE): Likewise.
11774         (__mpn_rshift): Do not use BP_SYM.
11775         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
11776         "bp-asm.h".
11777         (PARMS): Do not use macros from bp-asm.h.
11778         (STR): Likewise.
11779         (CHR): Likewise.
11780         (strchr): Likewise.  Do not use BP_SYM.
11781         (index): Do not use BP_SYM in weak_alias.
11782         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
11783         "bp-asm.h".
11784         (PARMS): Do not use macros from bp-asm.h.
11785         (DEST): Likewise.
11786         (SRC): Likewise.
11787         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
11788         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
11789         "bp-asm.h".
11790         (PARMS): Do not use macros from bp-asm.h.
11791         (strlen): Do not use BP_SYM.
11792         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
11793         "bp-asm.h".
11794         (PARMS): Do not use macros from bp-asm.h.
11795         (S1): Likewise.
11796         (S2): Likewise.
11797         (SIZE): Likewise.
11798         (__mpn_sub_n): Do not use BP_SYM.
11799         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
11800         "bp-asm.h".
11801         (PARMS): Do not use macros from bp-asm.h.
11802         (S1): Likewise.
11803         (SIZE): Likewise.
11804         (__mpn_submul_1): Do not use BP_SYM.
11805         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
11806         "bp-asm.h".
11807         (PARMS): Do not use macros from bp-asm.h.
11808         (S1): Likewise.
11809         (S2): Likewise.
11810         (SIZE): Likewise.
11811         (__mpn_add_n): Do not use BP_SYM.
11812         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
11813         weak_alias.
11814         (bzero): Likewise.
11815         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
11816         "bp-asm.h".
11817         (PARMS): Do not use macros from bp-asm.h.
11818         (BLK2): Likewise.
11819         (LEN): Likewise.
11820         (memcmp): Do not use BP_SYM.
11821         (bcmp): Do not use BP_SYM in weak_alias.
11822         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
11823         "bp-asm.h".
11824         (PARMS): Do not use macros from bp-asm.h.
11825         (DEST): Likewise.
11826         (SRC): Likewise.
11827         (LEN): Likewise.
11828         (memcpy): Likewise.  Do not use BP_SYM.
11829         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
11830         "bp-asm.h".
11831         (PARMS): Do not use macros from bp-asm.h.
11832         (DEST): Likewise.
11833         (SRC): Likewise.
11834         (LEN): Likewise.
11835         (memmove): Likewise.  Do not use BP_SYM.
11836         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
11837         "bp-asm.h".
11838         (PARMS): Do not use macros from bp-asm.h.
11839         (DEST): Likewise.
11840         (SRC): Likewise.
11841         (LEN): Likewise.
11842         (__mempcpy): Likewise.  Do not use BP_SYM.
11843         (mempcpy): Do not use BP_SYM in weak_alias.
11844         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
11845         "bp-asm.h".
11846         (PARMS): Do not use macros from bp-asm.h.
11847         (DEST): Likewise.
11848         (LEN): Likewise.
11849         [!BZERO_P] (CHR): Likewise.
11850         (memset): Likewise.  Do not use BP_SYM.
11851         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
11852         "bp-asm.h".
11853         (PARMS): Do not use macros from bp-asm.h.
11854         (STR2): Likewise.
11855         (strcmp): Do not use BP_SYM.
11856         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
11857         "bp-asm.h".
11858         (PARMS): Do not use macros from bp-asm.h.
11859         (STR): Likewise.
11860         (DELIM): Likewise.
11861         [USE_AS_STRTOK_R] (SAVE): Likewise.
11862         (FUNCTION): Likewise.  Do not use BP_SYM.
11863         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
11864         aliases.
11865         (strtok_r): Likewise.
11866         (__GI___strtok_r): Likewise.
11867         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
11868         (PARMS): Do not use macros from bp-asm.h.
11869         (S): Likewise.
11870         (SIZE): Likewise.
11871         (__mpn_lshift): Do not use BP_SYM.
11872         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
11873         (PARMS): Do not use macros from bp-asm.h.
11874         (STR): Likewise.
11875         (CHR): Likewise.
11876         (__memchr): Do not use BP_SYM.
11877         (memchr): Do not use BP_SYM in weak_alias.
11878         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
11879         (PARMS): Do not use macros from bp-asm.h.
11880         (BLK2): Likewise.
11881         (LEN): Likewise.
11882         (memcmp): Do not use BP_SYM.
11883         (bcmp): Do not use BP_SYM in weak_alias.
11884         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
11885         (PARMS): Do not use macros from bp-asm.h.
11886         (S1): Likewise.
11887         (SIZE): Likewise.
11888         (__mpn_mul_1): Do not use BP_SYM.
11889         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
11890         "bp-asm.h".
11891         (PARMS): Do not use macros from bp-asm.h.
11892         (STR): Likewise.
11893         (CHR): Likewise.
11894         (__rawmemchr): Do not use BP_SYM.
11895         (rawmemchr): Do not use BP_SYM in weak_alias.
11896         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
11897         (PARMS): Do not use macros from bp-asm.h.
11898         (S): Likewise.
11899         (SIZE): Likewise.
11900         (__mpn_rshift): Do not use BP_SYM.
11901         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
11902         (PARMS): Do not use macros from bp-asm.h.
11903         (SIGMSK): Likewise.
11904         (__sigsetjmp): Likewise.  Do not use BP_SYM.
11905         * sysdeps/i386/start.S: Do not include "bp-sym.h".
11906         (_start): Do not use BP_SYM.
11907         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
11908         (PARMS): Do not use macros from bp-asm.h.
11909         (DEST): Likewise.
11910         (SRC): Likewise.
11911         (__stpcpy): Likewise.  Do not use BP_SYM.
11912         (stpcpy): Do not use BP_SYM in weak_alias.
11913         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
11914         "bp-asm.h".
11915         (PARMS): Do not use macros from bp-asm.h.
11916         (DEST): Likewise.
11917         (SRC): Likewise.
11918         (LEN): Likewise.
11919         (__stpncpy): Likewise.  Do not use BP_SYM.
11920         (stpncpy): Do not use BP_SYM in weak_alias.
11921         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
11922         (PARMS): Do not use macros from bp-asm.h.
11923         (STR): Likewise.
11924         (CHR): Likewise.
11925         (strchr): Likewise.  Do not use BP_SYM.
11926         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
11927         "bp-asm.h".
11928         (PARMS): Do not use macros from bp-asm.h.
11929         (STR): Likewise.
11930         (CHR): Likewise.
11931         (__strchrnul): Likewise.  Do not use BP_SYM.
11932         (strchrnul): Do not use BP_SYM in weak_alias.
11933         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
11934         "bp-asm.h".
11935         (PARMS): Do not use macros from bp-asm.h.
11936         (STOP): Likewise.
11937         (strcspn): Do not use BP_SYM.
11938         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
11939         "bp-asm.h".
11940         (PARMS): Do not use macros from bp-asm.h.
11941         (STR): Likewise.
11942         (STOP): Likewise.
11943         (strpbrk): Likewise.  Do not use BP_SYM.
11944         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
11945         "bp-asm.h".
11946         (PARMS): Do not use macros from bp-asm.h.
11947         (STR): Likewise.
11948         (CHR): Likewise.
11949         (strrchr): Likewise.  Do not use BP_SYM.
11950         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
11951         (PARMS): Do not use macros from bp-asm.h.
11952         (SKIP): Likewise.
11953         (strspn): Do not use BP_SYM.
11954         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
11955         (PARMS): Do not use macros from bp-asm.h.
11956         (STR): Likewise.
11957         (DELIM): Likewise.
11958         (SAVE): Likewise.
11959         (FUNCTION): Likewise.  Do not use BP_SYM.
11960         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
11961         aliases.
11962         (strtok_r): Likewise.
11963         (__GI___strtok_r): Likewise.
11964         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
11965         (PARMS): Do not use macros from bp-asm.h.
11966         (S1): Likewise.
11967         (S2): Likewise.
11968         (SIZE): Likewise.
11969         (__mpn_sub_n): Do not use BP_SYM.
11970         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
11971         "bp-asm.h".
11972         (PARMS): Do not use macros from bp-asm.h.
11973         (S1): Likewise.
11974         (SIZE): Likewise.
11975         (__mpn_submul_1): Do not use BP_SYM.
11976         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
11977         <bp-sym.h>.
11978         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
11979         and <bp-asm.h>.
11980         (PARMS): Do not use macros from bp-asm.h.
11981         (FLAGS): Likewise.
11982         (PTID): Likewise.
11983         (TLS): Likewise.
11984         (CTID): Likewise.
11985         (__clone): Do not use BP_SYM.
11986         (clone): Do not use BP_SYM in weak_alias.
11987         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
11988         and <bp-asm.h>.
11989         (PARMS): Do not use macros from bp-asm.h.
11990         (LEN): Likewise.
11991         (__mmap64): Do not use BP_SYM.
11992         (mmap64): Do not use BP_SYM in weak_alias.
11993         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
11994         <bp-sym.h> and <bp-asm.h>.
11995         (PARMS): Do not use macros from bp-asm.h.
11996         (__posix_fadvise64_l64): Do not use BP_SYM.
11997         * sysdeps/unix/sysv/linux/i386/semtimedop.S
11998         (PARMS): Do not use macros from bp-asm.h.
11999         (NSOPS): Likewise.
12000         (semtimedop): Do not use BP_SYM.
12001         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
12002         and <bp-asm.h>.
12003
12004 2013-02-21  Allan McRae  <allan@archlinux.org>
12005
12006         * manual/message.texi (Charset conversion in gettext):
12007         Move @end statement to beginning of line.
12008
12009 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12010
12011         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
12012         static.
12013         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
12014         Likewise.
12015
12016         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
12017         (denorm): Likewise.
12018         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
12019         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
12020
12021 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12022
12023         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
12024         tail-call to the resolved function if pltexit isn't needed.
12025
12026 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12027
12028         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
12029         or Y being zero as being unlikely.
12030         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
12031         Likewise.
12032
12033 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
12034
12035         * manual/nss.texi (System Databases and Name Service Switch):
12036         Remove frobnicate @pxref.
12037
12038 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
12039
12040         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
12041         __attribute__ ((unused)) to __attribute__ ((__unused__)).
12042
12043 2013-02-20  Petr Machata  <pmachata@redhat.com>
12044
12045         * elf/elf.h (R_ARM_TARGET1): New macro.
12046         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
12047         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
12048         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
12049         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
12050         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
12051         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
12052         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
12053         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
12054         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
12055         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
12056         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
12057         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
12058         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
12059         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
12060         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
12061         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
12062         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
12063         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
12064         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
12065         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
12066         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
12067         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
12068         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
12069         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
12070         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
12071         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
12072         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
12073         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
12074         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
12075         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
12076         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
12077         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
12078         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
12079         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
12080         (R_ARM_THM_GOT_BREL12): Likewise.
12081         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
12082         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
12083         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
12084         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
12085         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
12086         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
12087         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
12088         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
12089         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
12090
12091 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
12092
12093         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
12094         __attribute_used__ to __attribute__ ((unused)).
12095
12096 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12097
12098         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
12099         powerpc mpa.c.
12100         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
12101         comment formatting.
12102         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
12103
12104 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
12105
12106         [BZ #13550]
12107         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
12108         Remove macro.
12109         (ENTER): Remove both macro definitions.
12110         (LEAVE): Likewise.
12111         (CHECK_BOUNDS_LOW): Likewise.
12112         (CHECK_BOUNDS_HIGH): Likewise.
12113         (CHECK_BOUNDS_BOTH): Likewise.
12114         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
12115         (RETURN_BOUNDED_POINTER): Likewise.
12116         (RETURN_NULL_BOUNDED_POINTER): Likewise.
12117         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
12118         (POP_ERRNO_LOCATION_RETURN): Likewise.
12119         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
12120         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12121         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
12122         macros.
12123         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12124         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
12125         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
12126         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
12127         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
12128         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
12129         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
12130         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
12131         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
12132         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
12133         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
12134         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
12135         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12136         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
12137         removed macros.
12138         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12139         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
12140         macros.
12141         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12142         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
12143         * sysdeps/i386/i586/memset.S (memset): Likewise.
12144         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
12145         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12146         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
12147         macros.
12148         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12149         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
12150         Change uses of L(2) to L(out).
12151         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
12152         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
12153         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
12154         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12155         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
12156         removed macros.
12157         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12158         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
12159         macros.
12160         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12161         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
12162         (RETURN): Do not use macro LEAVE.
12163         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
12164         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
12165         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
12166         * sysdeps/i386/i686/memset.S (memset): Likewise.
12167         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
12168         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
12169         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12170         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
12171         Likewise.
12172         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12173         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
12174         L(1_2) and L(1_3) into L(1).
12175         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
12176         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
12177         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12178         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
12179         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12180         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
12181         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
12182         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12183         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
12184         macros.
12185         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
12186         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12187         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
12188         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
12189         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
12190         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12191         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
12192         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
12193         * sysdeps/i386/strcspn.S (strcspn): Likewise.
12194         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
12195         * sysdeps/i386/strrchr.S (strrchr): Likewise.
12196         * sysdeps/i386/strspn.S (strspn): Likewise.
12197         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
12198         conditional code.
12199         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12200         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
12201         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
12202         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
12203         L(1_3) into L(1_1).
12204         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
12205         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12206         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
12207         macros.
12208         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12209
12210 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
12211
12212         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
12213         macro.
12214
12215 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
12216
12217         * math/atest-exp.c (exp_mpn): Remove ROUND.
12218         * math/atest-exp2.c (exp_mpn): Likewise.
12219         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
12220
12221         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
12222         * stdlib/tst-tls-atexit-lib.c: Likewise.
12223         * stdlib/tst-tls-atexit.c: Likewise.
12224
12225 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12226
12227         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
12228         and __attribute_alloc_size__.
12229
12230 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12231
12232         * include/programs/xmalloc.h: Change __attribute_alloc_size to
12233         __attribute_alloc_size__.
12234         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
12235         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
12236
12237 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12238
12239         * include/programs/xmalloc.h: New file.
12240         * catgets/gencat.c: Include it.
12241         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
12242         * elf/pldd.c: Likewise.
12243         * iconv/iconv_charmap.c: Likewise.
12244         * iconv/iconvconfig.c: Likewise.
12245         * iconv/strtab.c: Likewise.
12246         * locale/programs/locale.c: Likewise.
12247         * locale/programs/localedef.h: Likewise.
12248         * locale/programs/simple-hash.c: Likewise.
12249         * nscd/nscd.h: Likewise.
12250         * nss/makedb.c: Likewise.
12251         * sysdeps/generic/ldconfig.h: Likewise.
12252
12253 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12254
12255         * Versions.def: Add GLIBC_2.18.
12256         * include/link.h (struct link_map): New member l_tls_dtor_count.
12257         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
12258         (__call_tls_dtors): Likewise.
12259         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
12260         __cxa_thread_atexit_impl.
12261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12262         Likewise.
12263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12264         Likewise.
12265         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
12266         Likewise.
12267         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
12268         Likewise.
12269         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
12270         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
12271         Likewise.
12272         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
12273         Likewise.
12274         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
12275         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
12276         Likewise.
12277         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
12278         (tests): Add test case tst-tls-atexit.
12279         (modules-names): Add shared library for tst-tls-atexit.
12280         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
12281         (GLIBC_PRIVATE): Add __call_tls_dtors.
12282         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
12283         for libstdc++.
12284         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
12285         * stdlib/tst-tls-atexit.c: New test case.
12286         * stdlib/tst-tls-atexit-lib.c: New test case.
12287
12288         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
12289
12290         * elf/Versions (ld): Add _dl_find_dso_for_object.
12291         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
12292         * elf/dl-open.c (_dl_find_dso_for_object): New function.
12293         (dl_open_worker): Use _dl_find_dso_for_object.
12294         * elf/dl-sym.c (do_sym): Likewise.
12295         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
12296
12297 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12298
12299         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
12300         Syntactic changes only.
12301         (_dl_runtime_profile): Do a tail-call to the resolved function.
12302
12303 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
12304
12305         [BZ #13550]
12306         * sysdeps/x86_64/bp-asm.h: Remove file.
12307         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
12308         <bp-sym.h> and <bp-asm.h>.
12309         (__clone): Do not use BP_SYM.
12310         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
12311         <bp-sym.h> and <bp-asm.h>.
12312         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12313         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
12314         "bp-asm.h".
12315         (_setjmp): Do not use BP_SYM.
12316         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
12317         "bp-asm.h".
12318         (setjmp): Do not use BP_SYM.
12319         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
12320         libc_hidden_def.
12321         (mempcpy): Do not use BP_SYM in weak_alias.
12322         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
12323         "bp-asm.h".
12324         (strchr): Do not use BP_SYM.
12325         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
12326         "bp-asm.h".
12327         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
12328         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
12329         (_start): Do not use BP_SYM.
12330         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
12331         "bp-asm.h".
12332         (strcat): Do not use BP_SYM.
12333         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
12334         "bp-asm.h".
12335         (STRCMP): Do not use BP_SYM.
12336         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
12337         "bp-asm.h".
12338         (STRCPY): Do not use BP_SYM.
12339         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
12340         "bp-asm.h".
12341         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
12342         "bp-asm.h".
12343         (FUNCTION): Do not use BP_SYM.
12344         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
12345         weak_alias.
12346         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
12347
12348 2013-02-17  Andreas Jaeger  <aj@suse.de>
12349
12350         * time/Versions: Sort entries.
12351         * string/Versions: Likewise.
12352         * resolv/Versions: Likewise.
12353         * posix/Versions: Likewise.
12354         * iconv/Versions: Likewise.
12355         * elf/Versions: Likewise.
12356         * wcsmbs/Versions: Likewise.
12357
12358 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
12359
12360         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
12361         loop termination condition.
12362
12363         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
12364         variable to calculate EZ.
12365         (__sqr): Likewise.
12366
12367         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
12368         the lower precision input.
12369
12370 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
12371
12372         [BZ #13550]
12373         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
12374         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
12375         (run-via-rtld-prefix): Do not handle %-bp tests.
12376         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
12377         (all-object-suffixes): Remove .ob.
12378         (bppfx): Remove variable.
12379         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
12380         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
12381         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
12382         [$(build-bounded) = yes] (libtype.ob): Likewise.
12383         * Makerules (elide-routines.ob): Remove variable.
12384         (do-tests-clean): Do not handle *-bp.out.
12385         (common-mostlyclean): Do not handle *-bp and *-bp.out.
12386         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
12387         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
12388         (tests): Do not include $(tests-bp.out).
12389         (xtests): Do not include $(xtests-bp.out).
12390         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
12391         [$(build-bounded) = yes] ($(addprefix
12392         $(objpfx),$(binaries-bounded))): Remove rule.
12393         ($(objpfx)%-bp.out): Remove rule.
12394         * config.make.in (build-bounded): Remove variable.
12395         * crypt/Makefile [$(build-bounded) = yes]
12396         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
12397         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
12398         append to variable.
12399         [$(build-bounded) = yes] (install-lib): Likewise.
12400         [$(build-bounded) = yes] (generated): Likewise.
12401         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
12402         Remove rule.
12403         * intl/Makefile [$(build-bounded) = yes]
12404         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
12405         * math/Makefile [$(build-bounded) = yes]
12406         ($(tests:%=$(objpfx)%-bp): Likewise.
12407         * misc/Makefile [$(build-bounded) = yes]
12408         ($(objpfx)tst-tsearch-bp): Likewise.
12409         * nptl/Makeconfig (bounded-thread-library): Remove variable.
12410         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
12411         Remove dependency.
12412         * string/Makefile (o-objects.ob): Remove variable.
12413         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
12414         (CFLAGS-.ob): Remove variable.
12415         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
12416         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
12417         both definitions of variable.
12418         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
12419         (ASFLAGS-.ob): Remove variable.
12420
12421 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
12422
12423         [BZ #13550]
12424         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
12425         Remove __BOUNDED_POINTERS__ from condition.
12426         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
12427         * string/bits/string2.h [!__NO_STRING_INLINES &&
12428         !__BOUNDED_POINTERS__]: Likewise.
12429         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
12430         Likewise.
12431         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
12432         Remove conditional code.
12433         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
12434         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
12435         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
12436         condition.
12437
12438         [BZ #13550]
12439         * csu/libc-start.c: Do not include <bp-sym.h>.
12440         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
12441         * elf/dl-open.c: Do not include <bp-sym.h>.
12442         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
12443         * math/fegetenv.c: Do not include <bp-sym.h>.
12444         (fegetenv): Do not use BP_SYM in versioned symbols.
12445         * nptl/sysdeps/pthread/bits/libc-lockP.h
12446         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
12447         <bp-sym.h>.
12448         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12449         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
12450         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12451         (__pthread_mutex_destroy): Likewise.
12452         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12453         (__pthread_mutex_lock): Likewise.
12454         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12455         (__pthread_mutex_trylock): Likewise.
12456         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12457         (__pthread_mutex_unlock): Likewise.
12458         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12459         (__pthread_mutexattr_init): Likewise.
12460         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12461         (__pthread_mutexattr_destroy): Likewise.
12462         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12463         (__pthread_mutexattr_settype): Likewise.
12464         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12465         (__pthread_rwlock_init): Likewise.
12466         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12467         (__pthread_rwlock_destroy): Likewise.
12468         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12469         (__pthread_rwlock_rdlock): Likewise.
12470         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12471         (__pthread_rwlock_tryrdlock): Likewise.
12472         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12473         (__pthread_rwlock_wrlock): Likewise.
12474         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12475         (__pthread_rwlock_trywrlock): Likewise.
12476         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12477         (__pthread_rwlock_unlock): Likewise.
12478         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12479         (__pthread_key_create): Likewise.
12480         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12481         (__pthread_setspecific): Likewise.
12482         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12483         (__pthread_getspecific): Likewise.
12484         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
12485         Likewise.
12486         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12487         (_pthread_cleanup_push_defer): Likewise.
12488         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12489         (_pthread_cleanup_pop_restore): Likewise.
12490         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12491         (pthread_setcancelstate): Likewise.
12492         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
12493         <bp-sym.h>.
12494         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
12495         (memchr): Do not use BP_SYM in weak_alias.
12496         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
12497         (fegetenv): Do not use BP_SYM in versioned symbols.
12498         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
12499         (fesetenv): Do not use BP_SYM in versioned symbols.
12500         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
12501         (feupdateenv): Do not use BP_SYM in versioned symbols.
12502         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
12503         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
12504         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
12505         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
12506         (open64): Do not use BP_SYM in weak_alias.
12507         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
12508         (fegetenv): Do not use BP_SYM in versioned symbols.
12509         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
12510         (fesetenv): Do not use BP_SYM in versioned symbols.
12511         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
12512         (feupdateenv): Do not use BP_SYM in versioned symbols.
12513         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
12514         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
12515         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
12516         (feraiseexcept): Do not use BP_SYM in versioned symbols.
12517         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
12518         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
12519         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
12520         <bp-sym.h>.
12521         (__libc_start_main): Do not use BP_SYM.
12522
12523 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
12524
12525         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
12526         redundant return line.
12527         (norm): Likewise.
12528         (denorm): Likewise.
12529         (dbl_mp): Likewise.
12530         (sub_magnitudes): Likewise.
12531         (__add): Likewise.
12532         (__sub): Likewise.
12533         (__mul): Likewise.
12534         (__inv): Likewise.
12535         (__dvd): Likewise.
12536         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
12537         (norm): Likewise.
12538         (denorm): Likewise.
12539         (dbl_mp): Likewise.
12540         (sub_magnitudes): Likewise.
12541         (__add): Likewise.
12542         (__sub): Likewise.
12543         (__mul): Likewise.
12544         (__inv): Likewise.
12545         (__dvd): Likewise.
12546
12547         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
12548         instead of __mul.
12549         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
12550         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
12551         (cc32): Likewise.
12552
12553         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
12554         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
12555         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
12556         of __mul for squares.
12557         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
12558         function
12559         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
12560         Likewise.
12561         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
12562         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
12563
12564 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
12565
12566         [BZ #13550]
12567         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
12568         code.
12569         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
12570         prototype or function definition.  Rename ubp_* variables and
12571         parameters.  Remove argv definitions conditional on
12572         [__BOUNDED_POINTERS__].
12573         * debug/backtrace.c (__backtrace): Do not use __unbounded.
12574         * elf/dl-runtime.c (_dl_fixup): Likewise.
12575         * include/set-hooks.h (RUN_HOOK): Likewise.
12576         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
12577         definition.
12578         * string/strcpy.c (strcpy): Do not use __unbounded.
12579         * sysdeps/generic/frame.h (struct layout): Likewise.
12580         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
12581         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
12582         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
12583         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
12584         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
12585         (__backtrace): Likewise.
12586         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
12587         use __ptrvalue.
12588         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
12589         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
12590         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
12591         Likewise.
12592         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
12593         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
12594         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
12595         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
12596         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
12597         Do not use __unbounded.
12598         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
12599         Rename __unboundedrlimits parameter to rlimits in prototype.
12600         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
12601         Do not use __unbounded.
12602         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
12603         not use __ptrvalue.
12604         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
12605         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
12606         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
12607         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
12608         __ptrvalue or __unbounded.
12609         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
12610         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
12611         use __unbounded.
12612         (__new_msgctl): Do not use __ptrvalue.
12613         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
12614         __unbounded.
12615         (__libc_msgrcv): Do not use __ptrvalue.
12616         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
12617         startup_info): Do not use __unbounded.
12618         (__libc_start_main): Likewise.  Rename ubp_* variables and
12619         parameters.  Remove argv definitions conditional on
12620         [__BOUNDED_POINTERS__].
12621         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
12622         __ptrvalue.
12623         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
12624         use __unbounded.
12625         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
12626         or __ptrvalue.
12627         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
12628         use __unbounded.
12629         (__new_shmctl): Do not use __ptrvalue.
12630         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
12631         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
12632         Likewise.
12633         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
12634         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
12635         (__libc_sigaction): Likewise.
12636         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
12637         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
12638         Likewise.
12639         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
12640
12641 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
12642
12643         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
12644
12645         * string/mempcpy.c: Implement by calling memcpy.
12646
12647 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
12648
12649         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
12650
12651         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
12652         evaluation.
12653
12654         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
12655         values in the mantissa.
12656
12657         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
12658         minimize writes to Z.
12659         (sub_magnitudes): Simplify code a bit.
12660
12661 2013-02-12  Roland McGrath  <roland@hack.frob.com>
12662
12663         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
12664         from the message.  The linker prefixes all warnings with that already.
12665
12666 2013-02-12  Andreas Schwab  <schwab@suse.de>
12667
12668         [BZ #15078]
12669         * posix/regexec.c (extend_buffers): Add parameter min_len.
12670         (check_matching): Pass minimum needed length.
12671         (clean_state_log_if_needed): Likewise.
12672         (get_subexp): Likewise.
12673         * posix/Makefile (tests): Add bug-regex34.
12674         (bug-regex34-ENV): Define.
12675         * posix/bug-regex34.c: New file.
12676
12677         [BZ #11561]
12678         * posix/regcomp.c (parse_bracket_exp): When looking up collating
12679         elements compare against the byte sequence of it, not its name.
12680         * posix/Makefile (tests): Add bug-regex35.
12681         (bug-regex35-ENV): Define.
12682         * posix/bug-regex35.c: New file.
12683
12684 2013-02-11  Tom de Vries  <tom@codesourcery.com>
12685
12686         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
12687         comment.
12688         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
12689         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
12690         (CHECK_EOL): Add undef.
12691
12692 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
12693
12694         * bits/stdlib-bsearch.h: New file.
12695         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
12696         * stdlib/stdlib.h: Likewise.
12697
12698 2013-02-11  Roland McGrath  <roland@hack.frob.com>
12699
12700         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
12701         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
12702         declaration.
12703         * manual/search.texi (Array Search Function): Add missing const in
12704         lfind prototype.
12705         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
12706         declaration to use rlim_t.
12707         (Basic Scheduling Functions): Remove erroneous const from
12708         sched_getparam prototype.  Remove erroneous * from
12709         sched_get_priority_max and sched_get_priority_min prototypes.
12710         (Resource Usage): Fix summary @comment on vtimes to refer to
12711         sys/vtimes.h rather than vtimes.h.
12712         Add missing *s in vtimes prototype.
12713         (Limits on Resources): Fix ulimit prototype to return long int.
12714         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
12715         prototypes to use long int rather than double.
12716         (BSD Random): Fix initstate and setstate to use char *, not void *.
12717         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
12718         prototype to make second argument 'struct aiocb64 *const[]'.
12719         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
12720         (Status of AIO Operations): Remove erroneous const in aio_return and
12721         aio_return64 prototypes.
12722         (Synchronizing I/O): Fix sync prototype to return void.
12723         * manual/startup.texi (Suboptions): Remove an erroneous const in
12724         getsubopt prototype.
12725         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
12726         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
12727         use size_t rather than int.
12728         (Scanning All Users): Likewise for getpwent_r.
12729         (Setting Groups): Add missing const to setgroups prototype.
12730         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
12731         * manual/socket.texi (Host Names): Fix gethostbyaddr and
12732         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
12733         'const void *' rather than 'const char *'.
12734         (Host Address Functions): Likewise for inet_ntop.
12735         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
12736         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
12737         ssize_t for return value.
12738         (Sending Data): Likewise for send, sendto, sendmsg.
12739         (Socket Option Functions): Add a missing const in setsockopt prototype.
12740         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
12741         use wchar_t for the argument.
12742         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
12743         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
12744         take no arguments.
12745         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
12746         double/float/long double for second argument.
12747         Fix return types of significand, significandf, significandl.
12748         * manual/filesys.texi (Setting Permissions): Use mode_t for second
12749         argument in fchmod prototype.
12750         (File Owner): Use uid_t and gid_t in fchown prototype.
12751         (File Times): Add const to utimes, futimes, and lutimes prototypes.
12752         (Making Special Files): Use mode_t and dev_t in mknod prototype.
12753         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
12754         use 'const struct dirent **' as argument types to CMP function pointer
12755         argument.
12756         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
12757         (File Times): Fix summary magic @comment for struct utimbuf and utime
12758         to refer to utime.h, not time.h.
12759         * manual/string.texi (Argz Functions): Add missing const in
12760         argz_extract and argz_next prototypes.
12761         (Finding Tokens in a String): Likewise for basename.
12762         (String/Array Comparison): Fix typo in wcscasecmp prototype.
12763         (Copying and Concatenation): Fix typo in wmemmove prototype.
12764         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
12765         (Signal Stack): Remove erroneous const in sigstack prototype.
12766         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
12767         prototype.
12768         (Simple Calendar Time): Likewise for stime.
12769         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
12770         prototype.
12771         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
12772         say sys/sysctl.h instead.
12773         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
12774         and vsyslog prototypes.
12775
12776 2013-02-11  Tom de Vries  <tom@codesourcery.com>
12777
12778         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
12779         Remove.
12780
12781 2013-02-11  Roland McGrath  <roland@hack.frob.com>
12782
12783         * misc/sys/mman.h: Fix typo in mremap comment.
12784
12785 2013-02-08  Roland McGrath  <roland@hack.frob.com>
12786
12787         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
12788         the '\0' terminator.
12789
12790 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
12791
12792         [BZ #13550]
12793         * debug/segfault.c: Don't include <bp-checks.h>.
12794         * sysdeps/generic/bp-checks.h: Remove file.
12795         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
12796         (__GETDENTS): Don't use CHECK_N.
12797         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
12798         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
12799         (__getgroups): Don't use CHECK_N.
12800         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
12801         (setgroups): Don't use CHECK_N.
12802         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
12803         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12804         (__libc_msgrcv): Don't use CHECK_N.
12805         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
12806         (__libc_msgsnd): Don't use CHECK_N.
12807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
12808         <bp-checks.h>.
12809         (__libc_pread): Don't use CHECK_N.
12810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
12811         include <bp-checks.h>.
12812         (__libc_pread64): Don't use CHECK_N.
12813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
12814         include <bp-checks.h>.
12815         (__libc_pwrite): Don't use CHECK_N.
12816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
12817         include <bp-checks.h>.
12818         (__libc_pwrite64): Don't use CHECK_N.
12819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
12820         <bp-checks.h>.
12821         (__libc_pread): Don't use CHECK_N.
12822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
12823         include <bp-checks.h>.
12824         (__libc_pread64): Don't use CHECK_N.
12825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
12826         include <bp-checks.h>.
12827         (__libc_pwrite): Don't use CHECK_N.
12828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
12829         include <bp-checks.h>.
12830         (__libc_pwrite64): Don't use CHECK_N.
12831         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
12832         (do_pread): Don't use CHECK_N.
12833         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
12834         (do_pread64): Don't use CHECK_N.
12835         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
12836         (do_pwrite): Don't use CHECK_N.
12837         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
12838         (do_pwrite64): Don't use CHECK_N.
12839         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
12840         (__libc_readv): Don't use CHECK_N.
12841         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
12842         (semop): Don't use CHECK_N.
12843         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
12844         <bp-checks.h>.
12845         (semtimedop): Don't use CHECK_N.
12846         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
12847         (__libc_pread): Don't use CHECK_N.
12848         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
12849         <bp-checks.h>.
12850         (__libc_pread64): Don't use CHECK_N.
12851         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
12852         <bp-checks.h>.
12853         (__libc_pwrite): Don't use CHECK_N.
12854         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
12855         <bp-checks.h>.
12856         (__libc_pwrite64): Don't use CHECK_N.
12857         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
12858         <bp-checks.h>.
12859         (__libc_msgrcv): Don't use CHECK_N.
12860         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
12861         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
12862         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
12863         (__libc_writev): Don't use CHECK_N.
12864
12865 2013-02-08  Roland McGrath  <roland@hack.frob.com>
12866
12867         * string/strcpy.c: Removed unused variable.
12868
12869         * Makeconfig (+sysdep-includes): Define with := rather than =.
12870         Use an existing include/ subdir of each sysdeps dir before it.
12871
12872 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
12873
12874         * nscd/connection.c (register_traced_file): Comment function.
12875         [HAVE_INOTIFY] (union __inev): Define.
12876         [HAVE_INOTIFY] (inotify_check_files): New function.
12877         [HAVE_INOTIFY] (clear_db_cache): Likewise.
12878         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
12879         clear_db_cache.
12880         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
12881
12882 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
12883
12884         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
12885         loaded if not already and that a failure is permanent.
12886
12887 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
12888
12889         [BZ #15006]
12890         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
12891         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
12892
12893 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
12894
12895         [BZ #13550]
12896         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
12897         (CHECK_1_NULL_OK): Likewise.
12898         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
12899         (__fxstat): Do not use CHECK_1.
12900         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
12901         <bp-checks.h>.
12902         (___fxstat64): Do not use CHECK_1.
12903         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
12904         <bp-checks.h>.
12905         (__fxstatat): Do not use CHECK_1.
12906         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
12907         <bp-checks.h>.
12908         (__fxstatat64): Do not use CHECK_1.
12909         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
12910         <bp-checks.h>.
12911         (__fxstat): Do not use CHECK_1.
12912         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
12913         <bp-checks.h>.
12914         (__fxstatat): Do not use CHECK_1.
12915         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
12916         <bp-checks.h>.
12917         (__getresgid): Do not use CHECK_1.
12918         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
12919         <bp-checks.h>.
12920         (__getresuid): Do not use CHECK_1.
12921         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
12922         <bp-checks.h>.
12923         (__lxstat): Do not use CHECK_1.
12924         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
12925         <bp-checks.h>.
12926         (__old_msgctl): Do not use CHECK_1.
12927         (__new_msgctl): Likewise.
12928         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
12929         <bp-checks.h>.
12930         (__new_setrlimit): Do not use CHECK_1.
12931         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
12932         <bp-checks.h>.
12933         (__old_shmctl): Do not use CHECK_1.
12934         (__new_shmctl): Likewise.
12935         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
12936         <bp-checks.h>.
12937         (__xstat): Do not use CHECK_1.
12938         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
12939         (__lxstat): Do not use CHECK_1.
12940         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
12941         <bp-checks.h>.
12942         (___lxstat64): Do not use CHECK_1.
12943         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
12944         (__old_msgctl): Do not use CHECK_1.
12945         (__new_msgctl): Likewise.
12946         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
12947         <bp-checks.h>.
12948         (__gettimeofday): Do not use CHECK_1.
12949         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
12950         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
12951         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
12952         <bp-checks.h>.
12953         (__gettimeofday): Do not use CHECK_1.
12954         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
12955         (__old_shmctl): Do not use CHECK_1_NULL_OK.
12956         (__new_shmctl): Do not use CHECK_1.
12957         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
12958         <bp-checks.h>.
12959         (do_sigtimedwait): Do not use CHECK_1.
12960         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
12961         <bp-checks.h>.
12962         (do_sigwaitinfo): Do not use CHECK_1.
12963         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
12964         <bp-checks.h>.
12965         (msgctl): Do not use CHECK_1.
12966         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
12967         <bp-checks.h>.
12968         (shmctl): Do not use CHECK_1.
12969         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
12970         (ustat): Do not use CHECK_1.
12971         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
12972         <bp-checks.h>.
12973         (__fxstat): Do not use CHECK_1.
12974         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
12975         <bp-checks.h>.
12976         (__fxstatat): Do not use CHECK_1.
12977         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
12978         <bp-checks.h>.
12979         (__lxstat): Do not use CHECK_1.
12980         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
12981         <bp-checks.h>.
12982         (__xstat): Do not use CHECK_1.
12983         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
12984         (__xstat): Do not use CHECK_1.
12985         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
12986         (___xstat64): Do not use CHECK_1.
12987
12988         [BZ #13550]
12989         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
12990         definitions.
12991         (CHECK_BOUNDS_HIGH): Likewise.
12992         * string/strcpy.c: Do not include <bp-checks.h>.
12993         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
12994
12995 2013-02-07  Roland McGrath  <roland@hack.frob.com>
12996
12997         * nscd/nscd-client.h (__nscd_drop_map_ref):
12998         Add __attribute__ ((unused)).
12999         * nis/nss-nisplus.h (niserr2nss): Likewise.
13000
13001         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
13002         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
13003
13004         * csu/libc-tls.c (init_static_tls, init_slotinfo):
13005         Remove inline keyword.
13006         * include/rounding-mode.h (round_away): Likewise.
13007         * libio/wfileops.c (adjust_wide_data): Likewise.
13008         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
13009         (__m128i_strloadu_tolower): Likewise.
13010         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
13011         (__m128i_strloadu_tolower): Likewise.
13012         * time/mktime.c (ydhms_diff): Likewise.
13013         * locale/elem-hash.h (elem_hash): Likewise.
13014         * locale/setlocale.c (setdata): Likewise.
13015         * posix/regex_internal.h (re_string_char_size_at): Likewise.
13016         (re_string_wchar_at): Likewise.
13017         (bitset_not, bitset_merge, bitset_mask): Likewise.
13018         [!(__GNUC__ > 3)] (inline): Remove macro.
13019         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
13020         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
13021         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
13022         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
13023         * string/memcmp.c (memcmp_bytes): Likewise.
13024         * locale/programs/locarchive.c (compute_hashval): Likewise.
13025         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
13026         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
13027         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
13028         * nss/getent.c (print_rpc, print_protocols): Likewise.
13029         (print_passwd, print_group, print_aliases): Likewise.
13030         * nis/nss-nisplus.h (niserr2nss): Likewise.
13031         * nscd/connections.c (restart_p): Likewise.
13032         Change return type to bool.
13033
13034 2013-02-05  Roland McGrath  <roland@hack.frob.com>
13035
13036         * Makeconfig (all-Depend-files): Add existing
13037         $(sorted-subdirs:=/Depend) files.
13038         (all-subdirs): Remove nss.
13039         * sysdeps/unix/inet/Subdirs: Add it here instead.
13040         * hesiod/Depend: New file.
13041
13042         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
13043         instead of calling alloca.
13044
13045         * io/lseek.c (__lseek): Rename to __libc_lseek.
13046         Define __lseek as an alias.
13047
13048         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
13049
13050 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
13051
13052         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
13053         else clause and remove check for non-standard endianness.
13054
13055 2013-02-04  David S. Miller  <davem@davemloft.net>
13056
13057         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13058
13059 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
13060
13061         [BZ #13550]
13062         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
13063         (__ubp_memchr): Remove prototype.
13064         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
13065         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
13066         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
13067         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
13068         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
13069         Remove alias.
13070         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
13071         (__ubp_memchr): Likewise.
13072         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
13073         (__ubp_memchr): Likewise.
13074         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
13075         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
13076         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
13077         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
13078         CHECK_STRING.
13079         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
13080         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
13081         (__getcwd): Do not use CHECK_STRING.
13082         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
13083         <bp-checks.h>.
13084         (__real_chown): Do not use CHECK_STRING.
13085         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
13086         <bp-checks.h>.
13087         (fchownat): Do not use CHECK_STRING.
13088         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
13089         CHECK_STRING.
13090         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13091         <bp-checks.h>.
13092         (__lchown): Do not use CHECK_STRING.
13093         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13094         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13095         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13096         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
13097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13098         include <bp-checks.h>.
13099         (truncate64): Do not use CHECK_STRING.
13100         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13101         <bp-checks.h>.
13102         (__real_chown): Do not use CHECK_STRING.
13103         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13104         <bp-checks.h>.
13105         (__lchown): Do not use CHECK_STRING.
13106         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13107         <bp-checks.h>.
13108         (__chown): Do not use CHECK_STRING.
13109         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
13110         <bp-checks.h>.
13111         (truncate64): Do not use CHECK_STRING.
13112         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
13113         Likewise.
13114         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
13115         (__xmknod): Do not use CHECK_STRING.
13116         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
13117         <bp-checks.h>.
13118         (__xmknodat): Do not use CHECK_STRING.
13119         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13120         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
13121
13122 2013-02-04  Andreas Schwab  <schwab@suse.de>
13123
13124         [BZ #14142]
13125         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
13126         * include/netdb.h: Likewise for h_errno.
13127         * elf/tst-stackguard1.c: Include <tls.h>.
13128
13129 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13130
13131         * elf/link.h (struct link_map): Extend the l_addr comment.
13132         * include/link.h (struct link_map): Likewise.
13133
13134 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
13135
13136         [BZ #13550]
13137         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
13138         (BOUNDED_1): Remove macro.
13139         * debug/backtrace.c: Don't include <bp-checks.h>.
13140         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
13141         (__backtrace): Likewise.
13142         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
13143         <bp-checks.h>.
13144         (__backtrace): Don't use BOUNDED_1.
13145         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
13146         <bp-checks.h>.
13147         (__backtrace): Don't use BOUNDED_1.
13148         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
13149         (__backtrace): Don't use BOUNDED_1.
13150         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
13151         (shmat): Don't use BOUNDED_N.
13152
13153 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
13154
13155         [BZ #13550]
13156         * sysdeps/generic/bp-start.h: Remove file.
13157         * csu/libc-start.c: Don't include <bp-start.h>.
13158         (LIBC_START_MAIN): Set up __environ directly instead of using
13159         INIT_ARGV_and_ENVIRON.
13160         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
13161         <bp-start.h>.
13162
13163         [BZ #13550]
13164         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
13165         definitions.
13166         (CHECK_FCNTL): Likewise.
13167         (CHECK_N_PAGES): Likewise.
13168
13169         [BZ #13550]
13170         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
13171         definitions.
13172         (CHECK_SIGSET_NULL_OK): Likewise.
13173         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
13174         <bp-checks.h>.
13175         (sigpending): Don't use CHECK_SIGSET.
13176         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
13177         <bp-checks.h>.
13178         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
13179         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
13180         <bp-checks.h>.
13181         (do_sigsuspend): Don't use CHECK_SIGSET.
13182         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
13183         use CHECK_SIGSET.
13184         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
13185         (do_sigwait): Don't use CHECK_SIGSET.
13186         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
13187         use CHECK_SIGSET.
13188         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
13189         include <bp-checks.h>.
13190         (sigpending): Don't use CHECK_SIGSET.
13191         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
13192         include <bp-checks.h>.
13193         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
13194         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
13195         <bp-checks.h>.
13196         (sigpending): Don't use CHECK_SIGSET.
13197         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
13198         <bp-checks.h>.
13199         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
13200
13201         [BZ #13550]
13202         * sysdeps/generic/bp-semctl.h: Remove file.
13203         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
13204         <bp-checks.h> and <bp-semctl.h>.
13205         (__old_semctl): Don't use CHECK_SEMCTL.
13206         (__new_semctl): Likewise.
13207         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
13208         and <bp-semctl.h>.
13209         (__old_semctl): Don't use CHECK_SEMCTL.
13210         (__new_semctl): Likewise.
13211         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
13212         <bp-checks.h> and <bp-semctl.h>.
13213         (__old_semctl): Don't use CHECK_SEMCTL.
13214         (__new_semctl): Likewise.
13215         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
13216         <bp-checks.h> and <bp-semctl.h>.
13217         (semctl): Don't use CHECK_SEMCTL.
13218
13219         [BZ #13550]
13220         * Makerules (elide-bp-thunks): Remove variable.
13221         (elide-routines.oS): Don't use $(elide-bp-thunks).
13222         (elide-routines.os): Likewise.
13223         (elide-routines.o): Likewise.
13224         (elide-routines.op): Likewise.
13225         (elide-routines.og): Likewise.
13226         (objects): Don't use $(bp-thunks).
13227         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
13228         include.
13229         (common-generated): Do not add s-proto-bp.d.
13230         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
13231         (int): Likewise.
13232         (typ): Likewise.
13233         Do not generate makefile rules for bounded-pointer thunks.
13234         * sysdeps/generic/bp-thunks.h: Remove file.
13235         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
13236         * sysdeps/unix/s-proto-bp.S: Likewise.
13237
13238         [BZ #15062]
13239         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
13240         parts of result separately when argument is not close to line from
13241         -i to i and one part of argument is small.
13242         * math/k_casinhf.c (__kernel_casinhf): Likewise.
13243         * math/k_casinhl.c (__kernel_casinhl): Likewise.
13244         * math/libm-test.inc (cacos_test): Add more tests.
13245         (casin_test): Likewise.
13246         (casinh_test): Likewise.
13247         * sysdeps/i386/fpu/libm-test-ulps: Update.
13248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13249
13250 2013-01-31  David S. Miller  <davem@davemloft.net>
13251
13252         * po/de.po: Update from translation team.
13253
13254 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
13255
13256         * time/tzfile.c: Include stdint.h for SIZE_MAX.
13257
13258 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
13259
13260         * configure.in (_AC_PROG_CC_C89): New definition.
13261         * configure: Regenerate.
13262
13263         * configure.in (AC_PROG_CPP): New definition.
13264         * configure: Regenerate.
13265
13266 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
13267
13268         * debug/tst-backtrace.h: New file.
13269         * debug/tst-backtrace2.c: Include tst-backtrace.h.
13270         (ret): Remove variable.
13271         (x): Likewise.
13272         (FAIL): Remove macro.
13273         (NO_INLINE): Likewise.
13274         (fn1): Use match function instead of strstr.
13275         * debug/tst-backtrace3.c: Include tst-backtrace.h.
13276         (ret): Remove variable.
13277         (x): Likewise.
13278         (FAIL): Remove macro.
13279         (NO_INLINE): Likewise.
13280         (fn): Use match function instead of strstr.
13281         * debug/tst-backtrace4.c: Include tst-backtrace.h.
13282         (ret): Remove variable.
13283         (x): Likewise.
13284         (FAIL): Remove macro.
13285         (NO_INLINE): Likewise.
13286         (handle_signal): Use match function instead of strstr.
13287         * debug/tst-backtrace5.c: Include tst-backtrace.h.
13288         (ret): Remove variable.
13289         (x): Likewise.
13290         (FAIL): Remove macro.
13291         (NO_INLINE): Likewise.
13292         (handle_signal): Use match function instead of strstr.
13293
13294 2013-01-23  Roland McGrath  <roland@hack.frob.com>
13295
13296         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
13297
13298 2013-01-23  David S. Miller  <davem@davemloft.net>
13299
13300         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
13301         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
13302         argument of CAS if possible.
13303         * sysdeps/sparc/sparc64/bits/atomic.h
13304         (__arch_compare_and_exchange_val_32_acq): Likewise.
13305         (__arch_compare_and_exchange_val_64_acq): Likewise.
13306
13307 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
13308
13309         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
13310         * sysdeps/posix/ulimit.c: ... this.
13311         Include <limits.h>.
13312         * sysdeps/unix/bsd/ulimit.c: Remove file.
13313
13314 2013-01-23  Adam Conrad  <adconrad@0c3.net>
13315
13316         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
13317         (LDFLAGS-tst-array5): Likewise.
13318
13319 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
13320
13321         [BZ #15036]
13322         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
13323         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
13324         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
13325         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
13326
13327 2013-01-21  David S. Miller  <davem@davemloft.net>
13328
13329         * sysdeps/sparc/backtrace.c: New file.
13330         * sysdeps/sparc/sparc32/backtrace.h: New file.
13331         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
13332         * sysdeps/sparc/sparc64/backtrace.h: New file.
13333         * sysdeps/sparc/sparc64/backtrace.c: Delete.
13334         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
13335         -funwind-tables.
13336
13337 2013-01-21  Andreas Schwab  <schwab@suse.de>
13338
13339         [BZ #15020]
13340         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
13341         closed its stdout.
13342
13343 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
13344
13345         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
13346         "mpa2.h".
13347         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
13348
13349 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
13350             Mark Mitchell  <mark@codesourcery.com>
13351             Tom de Vries  <tom@codesourcery.com>
13352             Paul Pluzhnikov  <ppluzhnikov@google.com>
13353
13354         * debug/tst-backtrace2.c: New file.
13355         * debug/tst-backtrace3.c: Likewise.
13356         * debug/tst-backtrace4.c: Likewise.
13357         * debug/tst-backtrace5.c: Likewise.
13358         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
13359         (CFLAGS-tst-backtrace3.c): Likewise.
13360         (CFLAGS-tst-backtrace4.c): Likewise.
13361         (CFLAGS-tst-backtrace5.c): Likewise.
13362         (LDFLAGS-tst-backtrace2): Likewise.
13363         (LDFLAGS-tst-backtrace3): Likewise.
13364         (LDFLAGS-tst-backtrace4): Likewise.
13365         (LDFLAGS-tst-backtrace5): Likewise.
13366         (tests): Add new tests tst-backtrace2, tst-backtrace3,
13367         tst-backtrace4 and tst-backtrace5.
13368
13369 2013-01-18  Anton Blanchard  <anton@samba.org>
13370             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13371
13372         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
13373         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
13374         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
13375         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
13376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
13377         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
13378         "+r" and remove output regs list as redundant.  Add explicit inline
13379         asm to specify register of return val to work around compiler codegen
13380         bug.  Remove (int) cast on return value.  Add return type parameter to
13381         use in macro so that this macro does not truncate return value for
13382         64-bit values.
13383         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
13384         pass to INTERNAL_VSYSCALL_NCS.
13385         (INLINE_VSYSCALL): Add 'long int' as return type to
13386         INTERNAL_VSYSCALL_NCS macro invocation.
13387         (INTERNAL_VSYSCALL): Add 'long int' as return type to
13388         INTERNAL_VSYSCALL_NCS macro invocation.
13389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13390
13391 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13392
13393         [BZ #14496]
13394         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
13395         Fix application of SIMD FP exception mask.
13396
13397         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
13398         mp_no from a power of two.
13399         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
13400         __mpexp_twomm1.  Use __pow_mp.
13401
13402         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
13403         multiplication.
13404
13405 2013-01-17  David S. Miller  <davem@davemloft.net>
13406
13407         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13408
13409 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
13410
13411         [BZ #15023]
13412         * include/complex.h: Condition contents on [!_COMPLEX_H].
13413         (__kernel_casinhf): New prototype.
13414         (__kernel_casinh): Likewise.
13415         (__kernel_casinhl): Likewise.
13416         * math/Makefile (libm_calls): Add k_casinh.
13417         * math/k_casinh.c: New file.
13418         * math/k_casinhf.c: Likewise.
13419         * math/k_casinhl.c: Likewise.
13420         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
13421         finite nonzero arguments.
13422         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
13423         finite nonzero arguments.
13424         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
13425         finite nonzero arguments.
13426         * math/s_casinh.c: Do not include <float.h>.
13427         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
13428         * math/s_casinhf.c: Do not include <float.h>.
13429         (__casinhf): Move code for finite nonzero arguments to
13430         k_casinhf.c.
13431         * math/s_casinhl.c: Do not include <float.h>.
13432         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
13433         redefine.
13434         (__casinhl): Move code for finite nonzero arguments to
13435         k_casinhl.c.
13436         * math/libm-test.inc (cacos_test): Add more tests.
13437         * sysdeps/i386/fpu/libm-test-ulps: Update.
13438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13439
13440 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
13441
13442         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
13443         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
13444         [!HAVE_MREMAP]: Remove [defined linux] case.
13445         * malloc/arena.c: Do not include <malloc-sysdep.h>.
13446
13447 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
13448
13449         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
13450
13451 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13452
13453         * elf/elf.h (R_386_SIZE32): New relocation.
13454         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
13455         R_386_SIZE32.
13456         (elf_machine_rela): Likewise.
13457         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
13458         R_X86_64_SIZE64 and R_X86_64_SIZE32.
13459
13460 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
13461
13462         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
13463         (FP_FAST_FMA): Do not define.
13464         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
13465         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
13466         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
13467         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
13468         !_SOFT_FLOAT]: Likewise.
13469         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
13470         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
13471         value.
13472         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
13473         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
13474         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
13475         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
13476         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
13477         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
13478         file.
13479
13480 2013-01-16  Andreas Schwab  <schwab@suse.de>
13481
13482         [BZ #14327]
13483         * include/stdlib.h (__mktemp): Add declaration.
13484         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
13485         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
13486
13487 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
13488
13489         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
13490         definitions.
13491         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
13492         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
13493         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
13494         definitions here.
13495         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
13496         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
13497         definitions.
13498         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
13499         and ONE.
13500         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
13501         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
13502         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
13503         definitions.
13504         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
13505         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
13506         definitions.
13507         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
13508
13509         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
13510
13511 2013-01-15  David S. Miller  <davem@davemloft.net>
13512
13513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
13514         trunc{,f} to libm-sysdep_routes.
13515         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
13517         file.
13518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
13519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
13520         file.
13521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
13522         file.
13523         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
13524         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
13525         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
13526         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
13527         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
13528         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
13529         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
13530         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
13531
13532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
13533         nearbyint{,f} to libm-sysdep_routes.
13534         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
13536         New file.
13537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
13538         file.
13539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
13540         New file.
13541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
13542         file.
13543         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
13544         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
13545         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
13546         file.
13547         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
13548         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
13549         file.
13550         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
13551         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
13552         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
13553
13554         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
13555         libc_feholdexcept and libc_fesetenv.
13556
13557 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
13558
13559         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
13560
13561 2013-01-14  David S. Miller  <davem@davemloft.net>
13562
13563         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
13564         (SPARC_ASM_VIS2_IFUNC): Likewise.
13565         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
13566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
13567         use of 'siam' instruction.
13568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
13569         Likewise.
13570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
13571         Likewise.
13572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
13573         Likewise.
13574         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
13575         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13576         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
13577         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
13578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
13579         file.
13580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
13581         file.
13582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
13583         file.
13584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
13585         file.
13586         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
13587         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
13588         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
13589         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
13590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
13591         new VIS2 routines.
13592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
13593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
13595         Likewise.
13596         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
13597         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
13598         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
13599         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
13600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
13601         routines to libm-sysdep_routines.
13602         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13603
13604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
13605         fdim/fdimf to libm-sysdep_routines.
13606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
13607         file.
13608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
13609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
13610         file.
13611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
13612         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
13613         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
13614         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
13615         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
13616         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
13617         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
13618
13619 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13620
13621         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
13622         to optimize copies.
13623
13624         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
13625         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
13626         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
13627
13628         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
13629         local variable MPTWO.
13630         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
13631         Likewise.
13632
13633 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
13634
13635         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
13636         GLOB_NOESCAPE.
13637
13638 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
13639
13640         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
13641
13642 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
13643
13644         * manual/pattern.texi (glob_t): Document gl_flags.
13645         (glob64_t): Likewise.
13646
13647 2013-01-11  David S. Miller  <davem@davemloft.net>
13648
13649         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
13650         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
13651         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
13652         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
13653         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
13654         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
13655         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
13656         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
13657         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
13658         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
13659         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
13660         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
13661         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
13662
13663         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
13664         sparc V9 rather than using V8 code.
13665         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
13666         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
13667
13668         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
13669         Move to...
13670         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
13671         Here.
13672
13673 2013-01-11  Roland McGrath  <roland@hack.frob.com>
13674
13675         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
13676         not in the main loop.
13677         * configure: Regenerated.
13678
13679 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
13680
13681         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
13682         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
13683         to just #else.
13684         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
13685         [!__GLIBC_HAVE_LONG_LONG] case.
13686         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
13687         condition to just #else.
13688         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
13689         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
13690         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
13691         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
13692         unconditional.
13693         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
13694         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
13695         #elif condition to just #else.
13696         * sysdeps/unix/sysv/linux/sys/sysmacros.h
13697         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
13698         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
13699         #elif condition to just #else.
13700
13701 2013-01-11  Steve Ellcey  <sellcey@mips.com>
13702
13703         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
13704         (EF_MIPS_ARCH_64): Fix value.
13705         (EF_MIPS_ARCH_32R2): New.
13706         (EF_MIPS_ARCH_64R2): New.
13707
13708 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
13709
13710         * Makeconfig (+link-pie-before-libc): New.
13711         (+link-pie-after-libc): Likewise.
13712         (+link-pie-tests): Likewise.
13713         (+link-pie): Rewritten.
13714         (link-before-libc): Remove $(config-LDFLAGS).
13715         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
13716         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
13717         (config-LDFLAGS): Renamed to ...
13718         (rtld-LDFLAGS): This.
13719         (rtld-tests-LDFLAGS): New macro.
13720         (link-libc-rpath-link): Likewise.
13721         (link-libc-tests-rpath-link): Likewise.
13722         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
13723         (link-libc): Prepand $(link-libc-rpath-link).
13724         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
13725         (test-program-prefix): New macro.
13726         (test-via-rtld-prefix): Likewise.
13727         (test-program-cmd): Likewise.
13728         (host-test-program-cmd): Likewise.
13729         * Makefile ($(common-objpfx)testrun.sh): Replace
13730         $(run-program-prefix) with $(test-program-prefix).
13731         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
13732         $(rtld-LDFLAGS).
13733         ($(common-objpfx)shlib.lds): Likewise.
13734         (build-module-helper): Likewise.
13735         ($(common-objpfx)format.lds): Likewise.
13736         * Rules (binaries-pie-tests): New.
13737         (binaries-pie-notests): Likewise.
13738         (binaries-pie): Rewritten.
13739         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
13740         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
13741         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
13742         (make-test-out): Replace $(host-built-program-cmd) with
13743         $(host-test-program-cmd).
13744         * config.make.in (build-hardcoded-path-in-tests): New variable.
13745         * configure.in (--enable-hardcoded-path-in-tests): New configure
13746         option.
13747         (hardcoded_path_in_tests): New AC_SUBST.
13748         * configure: Regenerated.
13749         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
13750         $(built-program-cmd) with $(test-program-cmd).
13751         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
13752         (test_program_cmd): This.
13753         * elf/Makefile ($(objpfx)order.out): Run test with
13754         $(test-program-prefix).
13755         ($(objpfx)order2.out): Likewise.
13756         ($(objpfx)tst-initorder.out): Likewise.
13757         ($(objpfx)tst-initorder2.out): Likewise.
13758         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
13759         $(test-program-cmd).
13760         ($(objpfx)tst-array1-static.out): Likewise.
13761         ($(objpfx)tst-array2.out): Likewise.
13762         ($(objpfx)tst-array3.out): Likewise.
13763         ($(objpfx)tst-array4.out): Likewise.
13764         ($(objpfx)tst-array5.out): Likewise.
13765         ($(objpfx)tst-array5-static.out): Likewise.
13766         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
13767         $(test-program-cmd).
13768         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
13769         $(run-program-prefix) with $(test-program-prefix).
13770         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
13771         (test_program_prefix): This.
13772         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
13773         $(run-program-prefix) with $(test-program-prefix).
13774         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
13775         (test_program_prefix): This.
13776         * iconvdata/tst-tables.sh: Likewise.
13777         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
13778         $(run-program-prefix) with $(test-program-prefix).
13779         ($(objpfx)tst-translit.out): Likewise.
13780         ($(objpfx)tst-gettext2.out): Likewise.
13781         ($(objpfx)tst-gettext4.out): Likewise.
13782         ($(objpfx)tst-gettext6.out): Likewise.
13783         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
13784         (test_program_prefix): This.
13785         * intl/tst-gettext2.sh: Likewise.
13786         * intl/tst-gettext4.sh  Likewise.
13787         * intl/tst-gettext6.sh: Likewise.
13788         * intl/tst-translit.sh: Likewise.
13789         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
13790         with $(test-program-cmd).
13791         * libio/Makefile ($(objpfx)test-freopen.out): Replace
13792         $(run-program-prefix) with $(test-program-prefix).
13793         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
13794         (test_program_prefix): This.
13795         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
13796         $(run-program-prefix) with $(test-program-prefix).
13797         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
13798         (test_program_prefix): This.
13799         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
13800         * posix/Makefile ($(objpfx)globtest.out): Replace
13801         $(run-via-rtld-prefix) and $(test-wrapper) with
13802         $(test-program-prefix) and $(test-via-rtld-prefix).
13803         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
13804         $(test-program-prefix).
13805         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
13806         $(host-test-program-cmd).
13807         (tst-spawn-ARGS): Likewise.
13808         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
13809         $(test-program-prefix).
13810         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
13811         (test_via_rtld_prefix): This.
13812         (test_wrapper): Renamed to ...
13813         (test_program_prefix): This.
13814         (run_program_prefix): Replaced by test_program_prefix.
13815         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
13816         (test_program_prefix): This.
13817         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
13818         with $(host-test-program-cmd).
13819         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
13820         $(run-program-prefix) with $(test-program-prefix).
13821         ($(objpfx)tst-printf.out): Likewise.
13822         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
13823         $(test-program-cmd).
13824         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
13825         (test_program_prefix): This.
13826         * stdio-common/tst-unbputc.sh: Likewise.
13827         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
13828         $(run-program-prefix) with $(test-program-prefix).
13829         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
13830         (test_program_prefix): This.
13831         * string/Makefile ($(objpfx)tst-svc.out):  Replace
13832         $(built-program-cmd) with $(test-program-cmd).
13833
13834 2013-01-11  Andreas Jaeger  <aj@suse.de>
13835
13836         [BZ #15003]
13837         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
13838         value. Sync with Linux 3.7.
13839
13840 2013-01-10  David S. Miller  <davem@davemloft.net>
13841
13842         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
13843         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
13844         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
13845
13846 2013-01-10  Roland McGrath  <roland@hack.frob.com>
13847
13848         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
13849         never set.
13850         * configure: Regenerated.
13851
13852 2013-01-10  David S. Miller  <davem@davemloft.net>
13853
13854         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
13855         sparc V9 rather than using V8 code.
13856         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
13857         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
13858
13859 2013-01-10  Roland McGrath  <roland@hack.frob.com>
13860
13861         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
13862         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
13863         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
13864         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
13865         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
13866         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
13867         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
13868         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
13869         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
13870         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
13871         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
13872         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
13873         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
13874         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
13875         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
13876         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
13877         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
13878         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
13879         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
13880         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
13881         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
13882         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
13883         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
13884         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
13885         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
13886         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
13887         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
13888
13889 2013-01-10  David S. Miller  <davem@davemloft.net>
13890
13891         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13892
13893 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13894
13895         * posix/Makefile (tests-static): New variable.
13896         (tests): Add $(tests-static).
13897         (tst-exec-static-ARGS): New variable.
13898         (tst-spawn-static-ARGS): Likewise.
13899         * posix/tst-exec-static.c: New file.
13900         * posix/tst-spawn-static.c: Likewise.
13901         * posix/tst-exec.c: Support run directly.
13902         * posix/tst-spawn.c: Likewise.
13903
13904 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
13905
13906         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
13907         long.
13908         * math/bits/mathcalls.h (llrint): Likewise.
13909         (llround): Likewise.
13910         * stdlib/stdlib.h (struct drand48_data): Likewise.
13911         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
13912         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
13913         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
13914         Likewise.
13915         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
13916         Likewise.
13917         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
13918         (elf_greg_t): Likewise.
13919         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
13920         (__jmp_buf): Likewise.
13921         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
13922         definitions.
13923         (llrint): Likewise, for all definitions.
13924         (llrintl): Likewise.
13925
13926         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
13927         Remove [__GNUC__] condition.
13928         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
13929         condition to just [__USE_ISOC99].
13930         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
13931
13932 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13933
13934         [BZ #14200]
13935         * sysdeps/unix/sysv/linux/x86/bits/environments.h
13936         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
13937         defined.
13938         (_POSIX_V6_ILP32_OFF32): Likewise.
13939         (_XBS5_ILP32_OFF32): Likewise.
13940         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
13941         (__ILP32_OFFBIG_LDFLAGS): Likewise.
13942
13943 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
13944
13945         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
13946
13947         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
13948         doubles __mpexp_twomm1.  Adjust usage.
13949         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
13950         Remove.
13951
13952 2013-01-10  Andreas Schwab  <schwab@suse.de>
13953
13954         [BZ #14964]
13955         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
13956         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
13957
13958 2013-01-09  David S. Miller  <davem@davemloft.net>
13959
13960         [BZ #15003]
13961         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
13962         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
13963         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
13964         TCP_FASTOPEN): Define.
13965         (tcp_repair_opt): New structure.
13966         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
13967         enum values.
13968         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
13969         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
13970         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
13971         (tcp_cookie_transactions): New structure.
13972
13973 2013-01-09  Anton Blanchard  <anton@samba.org>
13974
13975         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
13976         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
13977         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
13978         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
13979
13980 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
13981
13982         * include/features.h (__USE_ANSI): Remove.
13983
13984 2013-01-09  Roland McGrath  <roland@hack.frob.com>
13985
13986         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
13987
13988         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
13989
13990 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
13991
13992         * sysdeps/s390/fpu/libm-test-ulps: Update.
13993
13994         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13995
13996         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
13997         (__acr): Likewise.
13998         (__cpy): Likewise.
13999         (norm): Likewise.
14000         (denorm): Likewise.
14001         (__mp_dbl): Likewise.
14002         (__dbl_mp): Likewise.
14003         (add_magnitudes): Likewise.
14004         (sub_magnitudes): Likewise.
14005         (__add): Likewise.
14006         (__sub): Likewise.
14007         (__mul): Likewise.
14008         (__inv): Likewise.
14009         (__dvd): Likewise.
14010         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
14011         (__acr): Likewise.
14012         (__cpy): Likewise.
14013         (norm): Likewise.
14014         (denorm): Likewise.
14015         (__mp_dbl): Likewise.
14016         (__dbl_mp): Likewise.
14017         (add_magnitudes): Likewise.
14018         (sub_magnitudes): Likewise.
14019         (__add): Likewise.
14020         (__sub): Likewise.
14021         (__mul): Likewise.
14022         (__inv): Likewise.
14023         (__dvd): Likewise.
14024         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
14025         (__acr): Likewise.
14026         (__cpy): Likewise.
14027         (norm): Likewise.
14028         (denorm): Likewise.
14029         (__mp_dbl): Likewise.
14030         (__dbl_mp): Likewise.
14031         (add_magnitudes): Likewise.
14032         (sub_magnitudes): Likewise.
14033         (__add): Likewise.
14034         (__sub): Likewise.
14035         (__mul): Likewise.
14036         (__inv): Likewise.
14037         (__dvd): Likewise.
14038
14039 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
14040
14041         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
14042         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
14043         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
14044         2 && __USE_EXTERN_INLINES]: Likewise.
14045
14046 2013-01-08  Andreas Jaeger  <aj@suse.de>
14047
14048         [BZ# 14985]
14049         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
14050         Remove.
14051         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
14052         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
14053
14054 2013-01-07  Anton Blanchard  <anton@samba.org>
14055
14056         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
14057         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
14058         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
14059         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
14060         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14061         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
14062         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
14063         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
14064         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14065         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
14066         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14067         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14068         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
14069         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14070         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
14071         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14072         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14073         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14074         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
14075         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14076         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
14077         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
14078         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14079         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
14080         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
14081         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14082         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14083         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
14084         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
14085         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
14086         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
14087         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14088         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
14089         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
14090         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
14091         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14092         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14093         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
14094         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
14095         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
14096         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
14097         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14098         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
14099
14100 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
14101
14102         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
14103         (__MALLOC_PMT): Likewise.
14104         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
14105         [__GNUC__], only on [_LIBC].
14106         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
14107         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
14108         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
14109         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
14110         forward declaration.
14111         (realloc_hook_ini): Likewise.
14112         (memalign_hook_ini): Likewise.
14113         (__libc_memalign): Do not use __MALLOC_PMT in variable
14114         declaration.
14115         (__libc_valloc): Likewise.
14116         (__libc_pvalloc): Likewise.
14117         (__libc_calloc): Likewise.
14118         (__posix_memalign): Likewise.
14119
14120         [BZ #14996]
14121         * math/s_casinh.c: Include <float.h>.
14122         (__casinh): Do not do computation with squaring and square root
14123         for large arguments.
14124         * math/s_casinhf.c: Include <float.h>.
14125         (__casinhf): Do not do computation with squaring and square root
14126         for large arguments.
14127         * math/s_casinhl.c: Include <float.h>.
14128         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
14129         (__casinhl): Do not do computation with squaring and square root
14130         for large arguments.
14131         * math/libm-test.inc (casin_test): Add more tests.
14132         (casinh_test): Likewise.
14133         * sysdeps/i386/fpu/libm-test-ulps: Update.
14134         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14135
14136 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
14137
14138         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
14139         (__x86_64_raw_data_cache_size): Likewise.
14140         (__x86_64_data_cache_size_half): Likewise.
14141         (__x86_64_raw_data_cache_size_half): Likewise.
14142         (__x86_64_shared_cache_size): Likewise.
14143         (__x86_64_raw_shared_cache_size): Likewise.
14144         (__x86_64_shared_cache_size_half): Likewise.
14145         (__x86_64_raw_shared_cache_size_half): Likewise.
14146         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
14147         to ...
14148         (__x86_data_cache_size): This.
14149         (__x86_64_raw_data_cache_size): Renamed to ...
14150         (__x86_raw_data_cache_size): This.
14151         (__x86_64_data_cache_size_half): Renamed to ...
14152         (__x86_data_cache_size_half): This.
14153         (__x86_64_raw_data_cache_size_half): Renamed to ...
14154         (__x86_raw_data_cache_size_half): This.
14155         (__x86_64_shared_cache_size): Renamed to ...
14156         (__x86_shared_cache_size): This.
14157         (__x86_64_raw_shared_cache_size): Renamed to ...
14158         (__x86_raw_shared_cache_size): This.
14159         (__x86_64_shared_cache_size_half): Renamed to ...
14160         (__x86_shared_cache_size_half): This.
14161         (__x86_64_raw_shared_cache_size_half): Renamed to ...
14162         (__x86_raw_shared_cache_size_half): This.
14163         * sysdeps/x86_64/memcpy.S: Updated.
14164         * sysdeps/x86_64/memset.S: Likewise.
14165         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
14166         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14167         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14168
14169 2013-01-04  David S. Miller  <davem@davemloft.net>
14170
14171         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14172
14173 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
14174
14175         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
14176         1 to avoid redefinition warning.
14177         (__USE_GNU): Don't define.
14178         (init_signaling_nan): Protoize.
14179
14180         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14181
14182 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14183
14184         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
14185         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
14186         (__cpymn): Likewise.
14187         (norm): Remove commented code.
14188         (denorm): Likewise.
14189         (__mp_dbl): Likewise.
14190         (__inv): Likewise.
14191         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
14192         (__cpymn): Likewise.
14193         (norm): Remove commented code.
14194         (denorm): Likewise.
14195         (__mp_dbl): Likewise.
14196         (__inv): Likewise.
14197
14198         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
14199         mp_no value for 1.0 and 2.0.
14200         (norm): Use RADIXI instead of radixi.d.
14201         (denorm): Likewise.
14202         (__mul): Use 0.0 instead of zero.d.
14203         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
14204         mp_no value for 1.0 and 2.0.
14205         (norm): Use RADIXI instead of radixi.d.
14206         (denorm): Likewise.
14207         (__mul): Use 0.0 instead of zero.d.
14208
14209 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
14210
14211         [BZ #14994]
14212         * math/s_casinh.c (__casinh): Reduce finite argument to first
14213         quadrant then set signs of results at the end.
14214         * math/s_casinhf.c (__casinhf): Likewise.
14215         * math/s_casinhl.c (__casinhl): Likewise.
14216         * math/libm-test.inc (casin_test): Add more tests.
14217         (casinh_test): Likewise.
14218         * sysdeps/i386/fpu/libm-test-ulps: Update.
14219         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14220
14221 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14222
14223         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
14224
14225         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
14226
14227         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
14228         declarations.
14229         (denorm): Likewise.
14230         (__mp_dbl): Likewise.
14231         (__inv): Likewise.
14232
14233         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
14234         and adjust the header comment.
14235
14236         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
14237         variable name from declaration.
14238
14239 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14240
14241         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14242         Initialize COMMON_CPUID_INDEX_7 element.
14243         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
14244         (CPUID_RTM): Likewise.
14245         (HAS_RTM): Likewise.
14246         (COMMON_CPUID_INDEX_7): New enum.
14247
14248 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
14249
14250         [BZ #14981]
14251         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
14252         size is zero, record memory as freed.
14253
14254 2013-01-03  Andreas Jaeger  <aj@suse.de>
14255
14256         * po/ia.po: Add new Interlingua translation.
14257
14258 2012-01-03  Allan McRae  <allan@archlinux.org>
14259
14260         * locale/programs/localedef.c: Fix description of '--posix' flag.
14261
14262 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
14263
14264         * NEWS: Update dates in second copyright notice.
14265         * README: Update copyright dates in example.
14266         * manual/libc.texinfo: Update copyright dates.
14267         * scripts/test-installation.pl: Update copyright date in --version
14268         output.
14269
14270         * hurd/ctty-input.c: Fix copyright notice formatting.
14271         * hurd/ctty-output.c: Likewise.
14272         * hurd/dtable.c: Likewise.
14273         * hurd/hurd-raise.c: Likewise.
14274         * hurd/hurdprio.c: Likewise.
14275         * hurd/msgportdemux.c: Likewise.
14276         * misc/sys/file.h: Likewise.
14277         * misc/sys/ioctl.h: Likewise.
14278         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
14279         * sysdeps/mach/hurd/chdir.c: Likewise.
14280         * sysdeps/mach/hurd/fchdir.c: Likewise.
14281         * sysdeps/mach/hurd/rename.c: Likewise.
14282         * sysdeps/mach/hurd/rmdir.c: Likewise.
14283         * sysdeps/mach/hurd/seekdir.c: Likewise.
14284         * sysdeps/mach/hurd/setsid.c: Likewise.
14285         * sysdeps/posix/wait3.c: Likewise.
14286
14287         * All files with FSF copyright notices: Update copyright dates
14288         using scripts/update-copyrights.
14289         * intl/plural.c: Regenerated.
14290         * locale/programs/charmap-kw.h: Likewise.
14291         * locale/programs/locfile-kw.h: Likewise.
14292
14293 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
14294
14295         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
14296         four values.
14297
14298         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
14299         calculation loop and add branch prediction.
14300
14301         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
14302         check access beyond bounds of m1np.
14303
14304         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
14305         MPTWO.
14306         (__inv): Remove local variable MPTWO to use the global
14307         constant.
14308         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
14309         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
14310         variable MPTWO.
14311         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
14312         MP3HALFS static const.
14313
14314 2013-01-01  David S. Miller  <davem@davemloft.net>
14315
14316         * po/ca.po: Update from translation team.
14317
14318 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
14319
14320         * scripts/update-copyrights: New file.
14321         * Makeconfig: Reformat copyright notice.
14322         * ctype/ctype.h: Likewise.
14323         * debug/swprintf_chk.c: Likewise.
14324         * elf/dl-cache.c: Likewise.
14325         * elf/dl-debug.c: Likewise.
14326         * elf/dl-object.c: Likewise.
14327         * grp/initgroups.c: Likewise.
14328         * hurd/Makefile: Likewise.
14329         * hurd/hurd/signal.h: Likewise.
14330         * hurd/hurdfault.c: Likewise.
14331         * hurd/hurdioctl.c: Likewise.
14332         * hurd/hurdlookup.c: Likewise.
14333         * hurd/intr-msg.c: Likewise.
14334         * iconv/gconv_open.c: Likewise.
14335         * libio/swprintf.c: Likewise.
14336         * locale/lc-ctype.c: Likewise.
14337         * locale/nl_langinfo.c: Likewise.
14338         * mach/Machrules: Likewise.
14339         * mach/Makefile: Likewise.
14340         * malloc/obstack.h: Likewise.
14341         * manual/Makefile: Likewise.
14342         * manual/tsort.awk: Likewise.
14343         * misc/bits/stab.def: Likewise.
14344         * nis/nis_print_group_entry.c: Likewise.
14345         * nis/nis_table.c: Likewise.
14346         * nis/nss_compat/compat-pwd.c: Likewise.
14347         * nis/nss_compat/compat-spwd.c: Likewise.
14348         * po/Makefile: Likewise.
14349         * posix/fnmatch.c: Likewise.
14350         * posix/regex.h: Likewise.
14351         * resolv/Makefile: Likewise.
14352         * resolv/nss_dns/dns-network.c: Likewise.
14353         * resolv/res_hconf.c: Likewise.
14354         * scripts/gen-sorted.awk: Likewise.
14355         * soft-fp/soft-fp.h: Likewise.
14356         * stdio-common/printf.h: Likewise.
14357         * stdlib/monetary.h: Likewise.
14358         * stdlib/random.c: Likewise.
14359         * stdlib/random_r.c: Likewise.
14360         * sysdeps/generic/Makefile: Likewise.
14361         * sysdeps/gnu/Makefile: Likewise.
14362         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14363         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14364         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14365         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14366         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14367         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14368         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14369         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14370         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14371         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14372         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14373         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14374         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14375         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14376         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
14377         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14378         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14379         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14380         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14381         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14382         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14383         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14384         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14385         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
14386         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
14387         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14388         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
14389         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
14390         * sysdeps/mach/hurd/errnos.awk: Likewise.
14391         * sysdeps/mach/hurd/fork.c: Likewise.
14392         * sysdeps/mach/hurd/getcwd.c: Likewise.
14393         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
14394         * sysdeps/mach/hurd/mmap.c: Likewise.
14395         * sysdeps/mach/hurd/utimes.c: Likewise.
14396         * sysdeps/mach/hurd/xmknod.c: Likewise.
14397         * sysdeps/posix/profil.c: Likewise.
14398         * sysdeps/posix/readdir_r.c: Likewise.
14399         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14400         * sysdeps/powerpc/bits/setjmp.h: Likewise.
14401         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
14402         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
14403         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14404         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
14405         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
14406         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14407         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14408         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
14409         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
14410         * sysdeps/pthread/lio_listio.c: Likewise.
14411         * sysdeps/sparc/dl-procinfo.h: Likewise.
14412         * sysdeps/unix/i386/sysdep.S: Likewise.
14413         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
14414         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
14415         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
14416         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
14417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14418         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
14419         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
14420         * sysdeps/unix/sysv/linux/speed.c: Likewise.
14421         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
14422         * sysdeps/wordsize-32/divdi3.c: Likewise.
14423         * time/sys/time.h: Likewise.
14424         * wcsmbs/Makefile: Likewise.
14425
14426 2013-01-01  David S. Miller  <davem@davemloft.net>
14427
14428         * po/fr.po: Update from translation team.
14429
14430         * catgets/gencat.c: Update copyright year.
14431         * csu/version.c: Likewise.
14432         * debug/catchsegv.sh: Likewise.
14433         * debug/pcprofiledump.c: Likewise.
14434         * debug/xtrace.sh: Likewise.
14435         * elf/ldconfig.c: Likewise.
14436         * elf/ldd.bash.in: Likewise.
14437         * elf/pldd.c: Likewise.
14438         * elf/sotruss.ksh: Likewise.
14439         * elf/sprof.c: Likewise.
14440         * iconv/iconv_prog.c: Likewise.
14441         * iconv/iconvconfig.c: Likewise.
14442         * locale/programs/locale.c: Likewise.
14443         * locale/programs/localedef.c: Likewise.
14444         * login/programs/pt_chown.c: Likewise.
14445         * malloc/memusage.sh: Likewise.
14446         * malloc/memusagestat.c: Likewise.
14447         * malloc/mtrace.pl: Likewise.
14448         * nscd/nscd.c: Likewise.
14449         * nss/getent.c: Likewise.
14450         * nss/makedb.c: Likewise.
14451         * posix/getconf.c: Likewise.
14452
14453 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
14454
14455         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
14456         numbers.
14457
14458 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
14459
14460         * math/bits/mathcalls.h (modf): Use __nonnull.
14461
14462 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
14463
14464         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
14465         (split): Use macro CN instead of the bare value.
14466         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
14467         could be used.
14468         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
14469         instead of the bare value.
14470         (power1): Likewise.
14471
14472 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14473
14474         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
14475         __ATAN_TWOM.
14476         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14477
14478         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
14479         their values.
14480         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
14481         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
14482         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
14483         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
14484
14485 2012-12-28  Andreas Jaeger  <aj@suse.de>
14486
14487         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
14488         values are from Linux 3.7.
14489
14490         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
14491         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
14492
14493 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14494
14495         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
14496         TRUE case.
14497
14498         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
14499         (norm): Likewise.
14500         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
14501         variables with preprocessor constants.
14502         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14503         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14504         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14505
14506 2012-12-27  Bruno Haible  <bruno@clisp.org>
14507
14508         [BZ #14317]
14509         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
14510         only if needed.
14511
14512 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
14513
14514         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
14515         and use variable directly.
14516         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
14517
14518         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
14519         MPONE.
14520         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
14521         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
14522         variable MPONE.
14523         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
14524         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
14525         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
14526         include directive.  Remove local variable MPONE.
14527         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
14528         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
14529         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14530
14531 2012-12-25  David S. Miller  <davem@davemloft.net>
14532
14533         * version.h (RELEASE): Set to "development".
14534         (VERSION): Set to "2.17.90".
14535         * NEWS: Add 2.18 section.
14536
14537 2012-12-21  David S. Miller  <davem@davemloft.net>
14538
14539         * po/hr.po: Update from translation team.
14540
14541 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14542
14543         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
14544
14545 2012-12-19  Steve Ellcey  <sellcey@mips.com>
14546
14547         * NEWS:  Mention new memcpy for MIPS.
14548
14549 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
14550
14551         * manual/contrib.texi (Contributors): Spelling correction.
14552
14553 2012-12-15  David S. Miller  <davem@davemloft.net>
14554
14555         * po/ru.po: Update from translation team.
14556
14557 2012-12-13  David S. Miller  <davem@davemloft.net>
14558
14559         * NEWS: Mention IFUNC testsuite enhancements.
14560
14561         * po/pl.po: Update from translation team.
14562         * po/bg.po: Likewise.
14563
14564         * manual/contrib.texi (Contributors): Update entries for Hongjiu
14565         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
14566
14567 2012-12-11  David S. Miller  <davem@davemloft.net>
14568
14569         * po/sv.po: Update from translation team.
14570
14571         * po/vi.po: Update from translation team.
14572
14573         * po/cs.po: Update from translation team.
14574
14575         * po/de.po: Update from translation team.
14576         * po/eo.po: Likewise.
14577         * po/nl.po: Likewise.
14578
14579 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
14580
14581         [BZ #14246]
14582         * manual/argp.texi (Argp Helper Functions): Move node to follow
14583         Argp Parsing State.
14584
14585         [BZ #14872]
14586         * manual/conf.texi (Limits on File System Capacity): Mention if
14587         terminating null is included in the max size.
14588
14589 2012-12-10  Andreas Jaeger  <aj@suse.de>
14590
14591         * po/cs.po: Update from translation team.
14592
14593 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
14594
14595         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
14596         void pointer and cast to uintptr_t.
14597         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
14598         path.
14599         * sysdeps/s390/s390-64/memcpy.S: Likewise.
14600         * sysdeps/s390/s390-64/memset.S: Likewise.
14601
14602 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
14603
14604         [BZ #14833]
14605         * menual/message.texi (Message Translation): Fix typos.
14606         (Helper programs for gettext): Likewise.
14607
14608 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
14609
14610         [BZ #14898]
14611         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
14612         Change to -1.
14613
14614 2012-12-07  David S. Miller  <davem@davemloft.net>
14615
14616         * po/libc.pot: Update.
14617
14618 2012-12-07  Richard Henderson  <rth@redhat.com>
14619
14620         [BZ #10114]
14621         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
14622         normal/normal case to before the switch.
14623         (_FP_DIV): Likewise.
14624
14625 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
14626             Mike Frysinger  <vapier@gentoo.org>
14627
14628         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
14629         check for __NR_fadvise64_64.
14630
14631 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
14632
14633         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
14634         0, not just to plain "0" as a statement.
14635         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
14636         with cw.
14637
14638 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
14639
14640         * NEWS: Use sourceware.org in Bugzilla URL.
14641
14642 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
14643
14644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
14645         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
14646
14647         * stdio-common/tst-put-error.c (do_test): Add newline to the
14648         padded test to ensure flush.
14649
14650 2012-12-05  Jeff Law  <law@redhat.com>
14651
14652         * sunrpc/etc.rpc (fedfs_admin): Add entry.
14653
14654 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
14655
14656         * README: Don't refer to ports add-on as distributed separately.
14657         Mention AArch64 in list of systems supported in the ports add-on.
14658
14659         * LICENSES: Add more non-FSF copyright and license notices.
14660
14661         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
14662         ((unused)).
14663
14664         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
14665
14666         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
14667         10000 as width of padded output.
14668
14669 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
14670
14671         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
14672
14673         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
14674         variable LX with __attribute__ ((unused)).
14675         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
14676         Likewise.
14677         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
14678         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14679         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
14680         with __attribute__ ((unused)).
14681
14682 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
14683
14684         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
14685
14686 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
14687
14688         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
14689         (CFLAGS-nldbl-acos.c): New variable.
14690         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
14691         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
14692         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
14693         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
14694         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
14695         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
14696         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
14697         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
14698         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
14699         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
14700         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
14701         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
14702         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
14703         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
14704         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
14705         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
14706         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
14707         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
14708         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
14709         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
14710         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
14711         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
14712         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
14713         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
14714         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
14715         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
14716         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
14717         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
14718         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
14719         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
14720         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
14721         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
14722         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
14723         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
14724         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
14725         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
14726         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
14727         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
14728         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
14729         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
14730         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
14731         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
14732         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
14733         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
14734         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
14735         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
14736         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
14737         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
14738         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
14739         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
14740         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
14741         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
14742         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
14743         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
14744         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
14745         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
14746         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
14747         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
14748         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
14749         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
14750         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
14751         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
14752         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
14753         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
14754         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
14755         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
14756         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
14757         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
14758         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
14759         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
14760         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
14761         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
14762         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
14763         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
14764         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
14765         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
14766         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
14767         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
14768         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
14769         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
14770         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
14771         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
14772         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
14773         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
14774         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
14775         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
14776         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
14777         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
14778         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
14779         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
14780         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
14781         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
14782         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
14783         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
14784         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
14785         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
14786         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
14787
14788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
14789         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
14790
14791         [BZ #14914]
14792         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
14793         whole low double instead of just low 47 bits when splitting values
14794         into two parts.
14795
14796 2012-12-03  Allan McRae  <allan@archlinux.org>
14797
14798         * manual/stdio.texi (Predefined Printf Handlers): Remove
14799         @hsep and @vsep usage.
14800
14801 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
14802
14803         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
14804         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
14805
14806 2012-12-03  Jeff Law  <law@redhat.com>
14807
14808         * time/sys/time.h (settimeofday): Do not mark TV argument
14809         as __nonnull.
14810
14811 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
14812
14813         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
14814         when currently writing and seek to current position when not.
14815         * libio/Makefile (tests): Remove bug-fclose1.
14816         * libio/bug-fclose1.c: Delete.
14817
14818 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
14819
14820         * manual/arith.texi (feenableexcept): Fix typo.
14821         (fedisableexcept): Likewise.
14822
14823 2012-11-30  Roland McGrath  <roland@hack.frob.com>
14824
14825         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
14826         second, differently-typed declaration, rather than a cast.
14827
14828 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
14829
14830         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
14831         * include/rpc/svc.h: ... here.
14832
14833 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
14834
14835         [BZ #13013]
14836         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
14837         depending n and resplen2 to catch cases where answer
14838         equals answerp2.
14839
14840 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
14841
14842         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
14843         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
14844
14845 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
14846
14847         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
14848
14849 2012-11-29  Roland McGrath  <roland@hack.frob.com>
14850
14851         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
14852
14853 2012-11-28  Jeff Law  <law@redhat.com>
14854
14855         [BZ #13761]
14856         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
14857         dataset_temporary.  Track alloca usage into alloca_used.
14858         If dataset is large allocate and release it via malloc/free.
14859
14860 2012-06-04  Florian Weimer  <fweimer@redhat.com>
14861
14862         [BZ #14197]
14863         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
14864
14865 2012-11-28  David S. Miller  <davem@davemloft.net>
14866
14867         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14868
14869 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
14870
14871         [BZ #14803]
14872         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
14873         of pi/2 rounded to nearest to 64 bits.
14874         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
14875         nearest to 64 bits.
14876         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
14877         bits.
14878
14879 2012-11-28  Jeff Law <law@redhat.com>
14880             Martin Osvald <mosvald@redhat.com>
14881
14882         [BZ #14889]
14883         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
14884         * sunrpc/svc.c: Include time.h.
14885         (__svc_accept_failed): New function.
14886         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
14887         any reason other than EINTR, call __svc_accept_failed.
14888         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
14889         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
14890
14891 2012-11-28  Andreas Schwab  <schwab@suse.de>
14892
14893         * scripts/abilist.awk: Also handle indirect functions in .opd
14894         section.
14895
14896 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
14897
14898         [BZ #13881]
14899         * sysdeps/x86/fpu/powl_helper.c: New file.
14900         * sysdeps/x86/fpu/Makefile: Likewise.
14901         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
14902         (p3): New object.
14903         (__ieee754_powl): Use __powl_helper for finite arguments except
14904         integer exponents below 8.
14905         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
14906         (p3): New object.
14907         (__ieee754_powl): Use __powl_helper for finite arguments except
14908         integer exponents below 8.
14909         * math/libm-test.inc (pow_test): Add more tests and enable some
14910         previously disabled tests.
14911         * sysdeps/i386/fpu/libm-test-ulps: Update.
14912         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14913
14914 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14915             Carlos O'Donell  <carlos_odonell@mentor.com>
14916
14917         * nss/makedb.c (is_prime): Assert that input is odd and greater
14918         than 4.  Note that fact in a comment too.
14919         (next_prime): Add 4 to input.
14920
14921 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
14922
14923         [BZ #11741]
14924         * libio/Makefile (tests): Add test case tst-fwrite-error.
14925         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
14926         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
14927         * libio/tst-fwrite-error.c: New test case.
14928
14929 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
14930
14931         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
14932         before casting to void *.
14933         * include/libc-internal.h (__pointer_type): New macro.
14934         (__integer_if_pointer_type_sub): Likewise.
14935         (__integer_if_pointer_type): Likewise.
14936         (cast_to_integer): Likewise.
14937         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
14938         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
14939         before casting to atomic64_t.
14940         (atomic_exchange_acq): Likewise.
14941         (__arch_exchange_and_add_body): Likewise.
14942         (__arch_add_body): Likewise.
14943         (atomic_add_negative): Likewise.
14944         (atomic_add_zero): Likewise.
14945
14946 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
14947
14948         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
14949         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
14950         (add_fdes): Likewise.
14951         (linear_search_fdes): Likewise.
14952         (binary_search_unencoded_fdes): Likewise.
14953
14954 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
14955
14956         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
14957
14958 2012-11-24  Adam Conrad  <adconrad@0c3.net>
14959
14960         * configure.in: Autodetect C++ header directories.
14961         * configure: Regenerated.
14962
14963 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
14964
14965         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
14966
14967 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
14968
14969         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14970
14971 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
14972
14973         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
14974         LDBL_MANT_DIG == 106]: Disable some tests.
14975         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
14976         Likewise.
14977         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
14978         Likewise.
14979
14980         [BZ #14871]
14981         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
14982         input for small inputs.  Return +/- pi/2 for large inputs.
14983         * math/libm-test.inc (atan_test): Add more tests.
14984
14985         * sysdeps/generic/unwind-dw2-fde-glibc.c
14986         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
14987         __attribute__ ((unused)).
14988
14989         [BZ #14645]
14990         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
14991         x * y if x and y are nonzero and z is zero.
14992
14993         [BZ #14811]
14994         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
14995         nonzero exponents with absolute value below 0x1p-117 to +/-
14996         0x1p-117.
14997
14998         [BZ #14869]
14999         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
15000         up arguments below 2**-450, not just those below 2**-500.
15001         * math/libm-test.inc (hypot_test): Add another test.
15002
15003         [BZ #14868]
15004         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
15005         Return a+b for ratio over 2**120, not 2**60.
15006         * math/libm-test.inc (hypot_test): Add another test.
15007
15008         * math/libm-test.inc (clog_test): Use
15009         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
15010         (clog10_test): Likewise.
15011
15012         [BZ #6778]
15013         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
15014
15015 2012-11-22  Andreas Schwab  <schwab@suse.de>
15016
15017         * sysdeps/i386/fpu/libm-test-ulps: Update.
15018
15019 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
15020
15021         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
15022         printf output with newline.
15023
15024 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
15025
15026         [BZ #14865]
15027         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
15028         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
15029         -z nodlopen, -z initfirst and -z execstack support.
15030         * configure: Regenerated.
15031
15032         * elf/elf.h (DF_1_NODIRECT): New macro.
15033         (DF_1_IGNMULDEF): Likewise.
15034         (DF_1_NOKSYMS): Likewise.
15035         (DF_1_NOHDR): Likewise.
15036         (DF_1_EDITED): Likewise.
15037         (DF_1_NORELOC): Likewise.
15038         (DF_1_SYMINTPOSE): Likewise.
15039         (DF_1_GLOBAUDIT): Likewise.
15040         (DF_1_SINGLETON): Likewise.
15041         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
15042         DT_1_SUPPORTED_MASK bits.
15043         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
15044
15045 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
15046
15047         * sysdeps/unix/make-syscalls.sh: Document prefixes.
15048
15049 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
15050
15051         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
15052         macro.
15053
15054         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
15055         (sendmmsg): Move declarations...
15056         * socket/sys/socket.h: ... here.
15057         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
15058         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
15059         include it from...
15060         * socket/recvmmsg.c: ... this new file.
15061         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
15062         (sendmmsg): Rename to __sendmmsg, create weak alias and make
15063         definition of __sendmmsg hidden.
15064         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
15065         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
15066         Move ENOSYS stub into and include it from...
15067         * socket/sendmmsg.c: ... this new file.
15068         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
15069         (sysdep_routines): Move recvmmsg and sendmmsg...
15070         * socket/Makefile (routines): ... here.
15071         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
15072         (GLIBC_PRIVATE): Add __sendmmsg.
15073         * include/sys/socket.h (__sendmmsg): Add declarations.
15074         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
15075         sendmmsg.
15076
15077 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
15078
15079         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
15080         variable I1 with __attribute__ ((unused)).
15081         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
15082
15083 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
15084
15085         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
15086         DUMMY variables with __attribute__ ((unused)).
15087
15088         * bits/byteswap.h: Include <bits/types.h>.
15089         (__bswap_64): Use __uint64_t instead of unsigned long long int.
15090
15091 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
15092
15093         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
15094         string_t.  Do not manually set errno.
15095         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
15096         length with __strnlen.  Make sure to both set errno and return it on
15097         failure.
15098
15099 2012-11-19  David S. Miller  <davem@davemloft.net>
15100
15101         With help from Joseph Myers.
15102         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
15103         very large arguments properly.
15104         * math/libm-test.inc (atan_test): New tests.
15105         (atan2_test): New tests.
15106         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15107         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15108
15109 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
15110
15111         [BZ #14856]
15112         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
15113         Define to 3.
15114
15115         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
15116         [POSIX] (EADDRNOTAVAIL): Likewise.
15117         [POSIX] (EAFNOSUPPORT): Likewise.
15118         [POSIX] (EALREADY): Likewise.
15119         [POSIX] (ECONNABORTED): Likewise.
15120         [POSIX] (ECONNREFUSED): Likewise.
15121         [POSIX] (ECONNRESET): Likewise.
15122         [POSIX] (EDESTADDRREQ): Likewise.
15123         [POSIX] (EDQUOT): Likewise.
15124         [POSIX] (EHOSTUNREACH): Likewise.
15125         [POSIX] (EIDRM): Likewise.
15126         [POSIX] (EISCONN): Likewise.
15127         [POSIX] (ELOOP): Likewise.
15128         [POSIX] (EMULTIHOP): Likewise.
15129         [POSIX] (ENETDOWN): Likewise.
15130         [POSIX] (ENETUNREACH): Likewise.
15131         [POSIX] (ENOBUFS): Likewise.
15132         [POSIX] (ENODATA): Likewise.
15133         [POSIX] (ENOLINK): Likewise.
15134         [POSIX] (ENOMSG): Likewise.
15135         [POSIX] (ENOPROTOOPT): Likewise.
15136         [POSIX] (ENOSR): Likewise.
15137         [POSIX] (ENOSTR): Likewise.
15138         [POSIX] (ENOTCONN): Likewise.
15139         [POSIX] (ENOTSOCK): Likewise.
15140         [POSIX] (EOPNOTSUPP): Likewise.
15141         [POSIX] (EOVERFLOW): Likewise.
15142         [POSIX] (EPROTO): Likewise.
15143         [POSIX] (EPROTONOSUPPORT): Likewise.
15144         [POSIX] (EPROTOTYPE): Likewise.
15145         [POSIX] (ESTALE): Likewise.
15146         [POSIX] (ETIME): Likewise.
15147         [POSIX] (ETXTBSY): Likewise.
15148         [POSIX] (EWOULDBLOCK): Likewise.
15149         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
15150         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
15151         [POSIX] (SEEK_CUR): Likewise.
15152         [POSIX] (SEEK_END): Likewise.
15153         [POSIX || UNIX98] (mode_t): Do not require.
15154         [POSIX] (off_t): Likewise.
15155         [POSIX] (pid_t): Likewise.
15156         [POSIX] (sys/stat.h): Do not allow header.
15157         [POSIX] (unistd.h): Likewise.
15158         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
15159         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
15160         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
15161         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
15162         require.
15163         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
15164         sigevent): Specify elements.
15165         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
15166         entry.
15167         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
15168         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
15169
15170         * conform/data/cpio.h-data [POSIX]: Disable whole file.
15171         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
15172         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
15173         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
15174         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
15175         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
15176         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
15177         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
15178         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
15179         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
15180         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
15181         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
15182         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
15183         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
15184         Likewise.
15185         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
15186         Likewise.
15187         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
15188         Likewise.
15189         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
15190         Likewise.
15191         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
15192         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
15193         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
15194         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
15195         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
15196         Specify lower bound on value.
15197         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
15198         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
15199         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
15200         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
15201         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
15202         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
15203         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
15204         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
15205         value.
15206         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
15207         as optional.
15208         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
15209         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
15210         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
15211         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
15212         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
15213         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
15214         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
15215         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
15216         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
15217         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
15218         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
15219         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
15220         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
15221         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
15222         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
15223         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
15224         entry.
15225         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
15226         optional.
15227         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
15228         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
15229         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
15230         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
15231         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
15232         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
15233         Likewise.
15234         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
15235         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
15236         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
15237         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
15238         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
15239         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
15240         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
15241         as optional.
15242         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
15243         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
15244         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
15245         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
15246         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
15247         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
15248         specify as optional.
15249         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
15250         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
15251         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
15252         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
15253         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
15254         [XPG3] (NL_LANGMAX): Likewise.
15255         [POSIX || XPG3] (NL_MSGMAX): Likewise.
15256         [POSIX || XPG3] (NL_NMAX): Likewise.
15257         [POSIX || XPG3] (NL_SETMAX): Likewise.
15258         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
15259         [XPG3] (NZERO): Likewise.
15260         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
15261         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
15262         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
15263         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
15264         (REG_ERANGE): Expect.
15265         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
15266         optional-constant.
15267         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
15268         Use (void) in prototype.
15269         [POSIX] (*_t): Allow.
15270         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
15271         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
15272         (WRDE_BADVAL): Expect.
15273
15274         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
15275         expect.
15276         [XPG3 || XPG4] (O_RSYNC): Likewise.
15277         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
15278         Likewise.
15279         [XPG3 || XPG4] (pthread_sigmask): Likewise.
15280         [XPG3 || XPG4] (sigqueue): Likewise.
15281         [XPG3 || XPG4] (sigtimedwait): Likewise.
15282         [XPG3 || XPG4] (sigwaitinfo): Likewise.
15283         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
15284         [XPG3 || XPG4] (vsnprintf): Likewise.
15285         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
15286         Likewise.
15287         [XPG3 || XPG4] (blksize_t): Likewise.
15288         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
15289         Likewise.
15290         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
15291         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
15292         [XPG3 || XPG4] (struct itimerspec): Likewise.
15293         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
15294         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
15295         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
15296         [XPG3 || XPG4] (clockid_t): Likewise.
15297         [XPG3 || XPG4] (timer_t): Likewise.
15298         [XPG3 || XPG4] (clock_getres): Likewise.
15299         [XPG3 || XPG4] (clock_gettime): Likewise.
15300         [XPG3 || XPG4] (clock_settime): Likewise.
15301         [XPG3 || XPG4] (nanosleep): Likewise.
15302         [XPG3 || XPG4] (timer_create): Likewise.
15303         [XPG3 || XPG4] (timer_delete): Likewise.
15304         [XPG3 || XPG4] (timer_gettime): Likewise.
15305         [XPG3 || XPG4] (timer_getoverrun): Likewise.
15306         [XPG3 || XPG4] (timer_settime): Likewise.
15307         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
15308         [XPG3 || XPG4] (getlogin_r): Likewise.
15309         [XPG3 || XPG4] (pread): Likewise.
15310         [XPG3 || XPG4] (pthread_atfork): Likewise.
15311         [XPG3 || XPG4] (pwrite): Likewise.
15312
15313         [BZ #14835]
15314         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
15315         <bits/siginfo.h>.
15316
15317 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
15318
15319         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
15320         finalizing MALLSTREAM.
15321
15322         * sysdeps/mach/hurd/syncfs.c: New file.
15323
15324 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
15325
15326         [BZ #14719]
15327         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
15328         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
15329         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
15330         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
15331         (_nss_dns_gethostbyname4_r): Likewise.
15332         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
15333         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
15334
15335 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
15336
15337         [BZ #13763]
15338         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
15339
15340 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
15341
15342         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
15343         * elf/cache.c (print_entry): Print ",AArch64" for
15344         FLAG_AARCH64_LIB64
15345
15346         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
15347         * elf/cache.c (print_entry): Print ",hard-float" for
15348         FLAG_ARM_LIBHF.
15349
15350 2012-11-18  David S. Miller  <davem@davemloft.net>
15351
15352         With help from Joseph Myers.
15353         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
15354         cutoff to 2**-13.
15355         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
15356         cutoff to 2**-25.
15357         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
15358         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
15359         small.
15360         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
15361         * math/libm-test.inc (y0_test): New tests.
15362         (y1_test): New tests.
15363         * sysdeps/i386/fpu/libm-test-ulps: Update.
15364         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15365         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15366
15367 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
15368
15369         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
15370         64-bit targets.
15371         * configure: Regenerated.
15372
15373 2012-11-17  David S. Miller  <davem@davemloft.net>
15374
15375         [BZ #14811]
15376         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
15377         nonzero exponents with absolute value below 0x1p-128 to +/-
15378         0x1p-128.
15379
15380 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
15381
15382         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
15383
15384         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
15385
15386         * posix/getconf-speclist.c: New file.
15387         * posix/posix-envs.def: Likewise.
15388         * posix/confstr.c (START_ENV_GROUP): New macro.
15389         (END_ENV_GROUP): Likewise.
15390         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
15391         (KNOWN_PRESENT_ENV_STRING): Likewise.
15392         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
15393         (UNKNOWN_ENVIRONMENT): Likewise.
15394         (confstr): Include posix-envs.def instead of handling
15395         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
15396         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
15397         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
15398         (END_ENV_GROUP): Likewise.
15399         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
15400         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
15401         (UNKNOWN_ENVIRONMENT): Likewise.
15402         (__sysconf): Include posix-envs.def instead of handling associated
15403         cases directly here.
15404         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
15405         preprocessing getconf-speclist.c rather than running getconf or
15406         generating empty file.
15407
15408 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
15409
15410         * scripts/check-local-headers.sh: Ignore 'mach' headers.
15411
15412 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
15413
15414         [BZ #14672]
15415         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
15416
15417 2012-11-16  David S. Miller  <davem@davemloft.net>
15418
15419         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
15420         smaller than LDBL_EPSILON/2.0L, just return xm1.
15421
15422 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
15423
15424         * elf/tst-array1.c (init): Set constructor priority to 1000.
15425         (fini): Set destructor priority to 1000.
15426         * elf/tst-array2dep.c: Likewise.
15427
15428 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15429
15430         [BZ #11741]
15431         * libio/fileops.c (_IO_new_file_write): Correctly return error.
15432         (_IO_new_file_xsputn): Also return EOF if none of the input
15433         data was written when overflow failed.
15434         * libio/iopadn.c (_IO_padn): Likewise.
15435         * libio/iowpadn.c (_IO_wpadn): Likewise.
15436         * stdio-common/tst-put-error.c: Add copyright notice.
15437         (do_test): Add case for printing padded string.
15438         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
15439         _IO_padn returned error.
15440         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
15441         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
15442         return EOF.
15443
15444 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15445
15446         * libio/libioP.h: Add comment note that the references to C++
15447         bits are now obsolete.
15448
15449 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15450
15451         * math/libm-test.inc (check_complex): Use asprintf.
15452
15453 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
15454
15455         * debug/pcprofiledump.c (print_version): Update copyright year.
15456         * malloc/memusagestat.c (print_version): Likewise.
15457
15458 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
15459
15460         [BZ #14831]
15461         * elf/Makefile (tests): Add tst-audit8.
15462         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
15463         ($(objpfx)tst-audit8.out): New target.
15464         (tst-audit8-ENV): New variable.
15465         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
15466         audit if l_reloc_result is NULL.
15467         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
15468         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
15469         * elf/tst-audit8.c: New file.
15470
15471 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15472
15473         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
15474         * misc/Makefile (CFLAGS-select.c): Define.
15475         * posix/Makefile (CFLAGS-pause.c): Define.
15476
15477 2012-11-13  David S. Miller  <davem@davemloft.net>
15478
15479         * crypt/Makefile: Move test targets after toplevel Rules
15480         inclusion.  Grab any necessary sysdep routines when linking.
15481         * crypt/md5.c (md5_process_block): Remove define, we will always
15482         name it __md5_process_block.
15483         (md5_finish_ctx): Update md5_process_block call.
15484         (md5_stream): Likewise.
15485         (md5_process_bytes): Likewise.
15486         (md5_process_block): Rename to __md5_process_block and move to ...
15487         * crypt/md5-block.c: ... here.
15488         * crypt/sha256.c (sha256_process_block): Move to ...
15489         * crypt/sha256-block.c: ... here.
15490         * crypt/sha512.c (sha512_process_block): Move to ...
15491         * crypt/sha512-block.c: ... here.
15492         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
15493         path.
15494         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
15495         * sysdeps/sparc/sparc64/multiarch/Makefile
15496         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
15497         crypt subdir.
15498         (localedef-aux): Add md5 crypto assembler when in locale subdir.
15499         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
15500         multiarch changes.
15501         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
15502         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
15503         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
15504         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
15505         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
15506         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
15507         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
15508         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
15509         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
15510         file.
15511         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
15512         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
15513         file.
15514         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
15515
15516 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
15517
15518         * timezone/tzselect.ksh: Update from tzcode git revision
15519         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
15520         * timezone/zdump.c: Likewise.
15521         * timezone/zic.c: Likewise.
15522         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
15523         in TZVERSION setting, not $(PKGVERSION).
15524         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
15525         REPORT_BUGS_TO settings.
15526
15527         [BZ #14838]
15528         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
15529         macro.
15530
15531 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15532
15533         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
15534         detection to immediately after _FP_ROUND().
15535         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
15536         bits are 0.
15537
15538 2012-11-11  David S. Miller  <davem@davemloft.net>
15539
15540         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
15541         inttypes.h
15542         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
15543         __close rather than their public counterparts.
15544
15545 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
15546
15547         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
15548         file.
15549         [UNIX98] (sem_timedwait): Do not expect.
15550         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
15551         [XPG4 || UNIX98] (sockatmark): Do not expect.
15552         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
15553         (clock_getcpuclockid): Do not expect.
15554         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
15555         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
15556         Do not expect.
15557         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
15558         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
15559         [UNIX98] (vwscanf): Likewise.
15560         [UNIX98] (vswscanf): Likewise.
15561
15562 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
15563
15564         * timezone/version.h: Remove file.
15565         * timezone/README: Do not refer to version.h.
15566         * timezone/Makefile ($(objpfx)zic.o): New dependency on
15567         $(objpfx)version.h.
15568         ($(objpfx)zdump.o): Likewise.
15569         ($(objpfx)version.h): New target.
15570
15571         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
15572         2012i.
15573         * timezone/README: Don't mention modification to tzselect.ksh.
15574         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
15575         work on unmodified tzselect.ksh.  Substitute version numbers in
15576         tzselect.ksh.
15577
15578         * Makefile (format-me): Remove.
15579         (INSTALL): Adjust indentation.  Use commands directly instead of
15580         using $(format-me).
15581
15582         * aclocal.m4 (ACX_PKGVERSION): New macro.
15583         (ACX_BUGURL): Likewise.
15584         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
15585         (PKGVERSION): New AC_DEFINE_UNQUOTED.
15586         (REPORT_BUGS_TO): Likewise.
15587         * configure: Regenerated.
15588         * config.h.in (PKGVERSION): New macro.
15589         (REPORT_BUGS_TO): Likewise.
15590         * config.make.in (PKGVERSION): New variable.
15591         (PKGVERSION_TEXI): Likewise.
15592         (REPORT_BUGS_TO): Likewise.
15593         (REPORT_BUGS_TEXI): Likewise.
15594         * Makefile (format-me): Use -I$(common-objpfx)manual.
15595         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
15596         ($(common-objpfx)manual/%): New target.
15597         (manual/%): Remove target.
15598         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
15599         (print_version): Use PKGVERSION.
15600         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
15601         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
15602         and REPORT_BUGS_TO.
15603         ($(objpfx)xtrace): Likewise.
15604         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
15605         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
15606         (print_version): Use PKGVERSION.
15607         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
15608         (do_version): Use PKGVERSION.
15609         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
15610         REPORT_BUGS_TO.
15611         (common-ldd-rewrite): Likewise.
15612         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
15613         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
15614         (print_version): Use PKGVERSION.
15615         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
15616         * elf/pldd.c (argp_program_bug_address): Remove variable.
15617         (more_help): New function.
15618         (argp): Use more_help.
15619         (print_version): Use PKGVERSION.
15620         * elf/sln.c (main): Use PKGVERSION.
15621         (usage): Use REPORT_BUGS_TO.
15622         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
15623         (top level): Use PKGVERSION.
15624         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
15625         (print_version): Use PKGVERSION.
15626         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
15627         (print_version): Use PKGVERSION.
15628         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
15629         (print_version): Use PKGVERSION.
15630         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
15631         (print_version): Use PKGVERSION.
15632         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
15633         (print_version): Use PKGVERSION.
15634         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
15635         (print_version): Use PKGVERSION.
15636         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
15637         and BUGURL.
15638         ($(objpfx)memusage): Likewise.
15639         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
15640         (do_version): Use PKGVERSION.
15641         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
15642         (print_version): Use PKGVERSION.
15643         * malloc/mtrace.pl ($PACKAGE): Remove variable.
15644         ($PKGVERSION): New variable.
15645         ($REPORT_BUGS_TO): Likewise.
15646         (usage): Use $REPORT_BUGS_TO.
15647         (top level): Use $PKGVERSION.
15648         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
15649         ($(objpfx)pkgvers.texi): New rule.
15650         ($(objpfx)stamp-pkgvers): Likewise.
15651         * manual/install.texi: Include pkgvers.texi.
15652         (--with-pkgversion): Document new configure option.
15653         (--with-bugurl): Likewise.
15654         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
15655         than necessarily for this particular distribution.  Use
15656         REPORT_BUGS_TO for where to report bugs.
15657         * INSTALL: Regenerated.
15658         * manual/libc.texinfo: Include pkgvers.texi.
15659         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
15660         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
15661         (print_version): Use PKGVERSION.
15662         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
15663         (print_version): Use PKGVERSION.
15664         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
15665         (print_version): Use PKGVERSION.
15666         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
15667         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
15668         macro.
15669         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
15670         (print_version): Use PKGVERSION.
15671         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
15672         (print_version): Use PKGVERSION.
15673         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
15674         and PKGVERSION.
15675
15676         * timezone/checktab.awk: Update from tzcode 2012i.
15677         * timezone/ialloc.c: Likewise.
15678         * timezone/private.h: Likewise.
15679         * timezone/scheck.c: Likewise.
15680         * timezone/tzfile.h: Likewise.
15681         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
15682         (TZVERSION): Hardcode tzcode version number.
15683         * timezone/zdump.c: Update from tzcode 2012i.
15684         * timezone/zic.c: Likewise.
15685         * timezone/version.h: New file.
15686         * timezone/README: Describe version.h.  Update upstream location.
15687
15688         [BZ #14824]
15689         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
15690         (mktemp): Enable declaration.
15691         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
15692         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
15693         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
15694         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
15695         Likewise.
15696         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
15697         Likewise.
15698         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
15699         Likewise.
15700         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
15701         Likewise.
15702         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
15703         Likewise.
15704         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
15705         Likewise.
15706
15707         [BZ #14821]
15708         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
15709         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
15710         for copies of such integer values.
15711         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
15712         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
15713
15714 2012-11-09  Andreas Jaeger  <aj@suse.de>
15715
15716         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
15717         definitions and declarations that are provided by
15718         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
15719
15720 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15721
15722         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
15723         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
15724         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
15725         definition.
15726
15727 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15728
15729         * elf/elf.h: Update comment before AArch64 relocations.
15730
15731 2012-11-07  David S. Miller  <davem@davemloft.net>
15732
15733         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
15734         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
15735         (__start_context): Declare.
15736         (__makecontext_ret): Delete.
15737         (__makecontext): Hook up __start_context instead of
15738         __makecontext_ret.
15739         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
15740         (sysdep_routines): Add __start_context when in stdlib.
15741
15742 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
15743
15744         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
15745         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
15746         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
15747         hardcoded "nm".
15748         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
15749         (READELF): New variable.  Use it instead of hardcoded "readelf".
15750
15751 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
15752
15753         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
15754         * sysdeps/x86/Makefile: Here.
15755         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
15756         * sysdeps/x86/tst-xmmymm.sh: This.
15757
15758 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
15759
15760         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
15761         expectations.
15762         [UNIX98] (pthread_barrier_t): Do not expect.
15763         [UNIX98] (pthread_barrierattr_t): Likewise.
15764         [UNIX98] (pthread_spinlock_t): Likewise.
15765         [UNIX98] (pthread_barrier_destroy): Likewise.
15766         [UNIX98] (pthread_barrier_init): Likewise.
15767         [UNIX98] (pthread_barrier_wait): Likewise.
15768         [UNIX98] (pthread_barrierattr_destroy): Likewise.
15769         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
15770         [UNIX98] (pthread_barrierattr_init): Likewise.
15771         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
15772         [UNIX98] (pthread_getcpuclockid): Likewise.
15773         [UNIX98] (pthread_mutex_timedlock): Likewise.
15774         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
15775         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
15776         [UNIX98] (pthread_sigmask): Likewise.
15777         [UNIX98] (pthread_spin_destroy): Likewise.
15778         [UNIX98] (pthread_spin_init): Likewise.
15779         [UNIX98] (pthread_spin_lock): Likewise.
15780         [UNIX98] (pthread_spin_trylock): Likewise.
15781         [UNIX98] (pthread_spin_unlock): Likewise.
15782         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
15783         Do not expect.
15784         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
15785         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
15786         [XPG3 || XPG4] (pthread_cond_t): Likewise.
15787         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
15788         [XPG3 || XPG4] (pthread_key_t): Likewise.
15789         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
15790         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
15791         [XPG3 || XPG4] (pthread_once_t): Likewise.
15792         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
15793         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
15794         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
15795         [XPG3 || XPG4] (pthread_t): Likewise.
15796
15797         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
15798         not expect.
15799         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
15800
15801         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
15802         Change function return type to int.
15803
15804         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
15805         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
15806         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
15807         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
15808         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
15809         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
15810         [!POSIX] (posix_madvise): Likewise.
15811         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
15812         && !UNIX98].
15813         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
15814         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
15815         (mode_t): Likewise.
15816         (posix_mem_offset): Likewise.
15817         (posix_typed_mem_get_info): Likewise.
15818         (posix_typed_mem_open): Likewise.
15819
15820         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
15821         Change condition to [XOPEN2K8].
15822
15823         * conform/conformtest.pl: Preprocess allow-header data with -x c
15824         instead of from stdin.
15825         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
15826         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
15827         [C99-based standards] (cerfc): Likewise.
15828         [C99-based standards] (cexp2): Likewise.
15829         [C99-based standards] (cexpm1): Likewise.
15830         [C99-based standards] (clog10): Likewise.
15831         [C99-based standards] (clog1p): Likewise.
15832         [C99-based standards] (clog2): Likewise.
15833         [C99-based standards] (clgamma): Likewise.
15834         [C99-based standards] (ctgamma): Likewise.
15835         [C99-based standards] (cerff): Likewise.
15836         [C99-based standards] (cerfcf): Likewise.
15837         [C99-based standards] (cexp2f): Likewise.
15838         [C99-based standards] (cexpm1f): Likewise.
15839         [C99-based standards] (clog10f): Likewise.
15840         [C99-based standards] (clog1pf): Likewise.
15841         [C99-based standards] (clog2f): Likewise.
15842         [C99-based standards] (clgammaf): Likewise.
15843         [C99-based standards] (ctgammaf): Likewise.
15844         [C99-based standards] (cerfl): Likewise.
15845         [C99-based standards] (cerfcl): Likewise.
15846         [C99-based standards] (cexp2l): Likewise.
15847         [C99-based standards] (cexpm1l): Likewise.
15848         [C99-based standards] (clog10l): Likewise.
15849         [C99-based standards] (clog1pl): Likewise.
15850         [C99-based standards] (clog2l): Likewise.
15851         [C99-based standards] (clgammal): Likewise.
15852         [C99-based standards] (ctgammal): Likewise.
15853         * conform/data/inttypes.h-data [C99-based standards]: Include
15854         stdint.h-data.  Remove all expectations for stdint.h contents.
15855         [C99-based standards] (PRI*): Do not allow.
15856         [C99-based standards] (SCN*): Likewise.
15857         [C99-based standards] (*_t): Likewise.
15858         [C99-based-standards] (PRId8): Expect macro.
15859         [C99-based-standards] (PRIi8): Likewise.
15860         [C99-based-standards] (PRIo8): Likewise.
15861         [C99-based-standards] (PRIu8): Likewise.
15862         [C99-based-standards] (PRIx8): Likewise.
15863         [C99-based-standards] (PRIX8): Likewise.
15864         [C99-based-standards] (SCNd8): Likewise.
15865         [C99-based-standards] (SCNi8): Likewise.
15866         [C99-based-standards] (SCNo8): Likewise.
15867         [C99-based-standards] (SCNu8): Likewise.
15868         [C99-based-standards] (SCNx8): Likewise.
15869         [C99-based-standards] (PRIdLEAST8): Likewise.
15870         [C99-based-standards] (PRIiLEAST8): Likewise.
15871         [C99-based-standards] (PRIoLEAST8): Likewise.
15872         [C99-based-standards] (PRIuLEAST8): Likewise.
15873         [C99-based-standards] (PRIxLEAST8): Likewise.
15874         [C99-based-standards] (PRIXLEAST8): Likewise.
15875         [C99-based-standards] (SCNdLEAST8): Likewise.
15876         [C99-based-standards] (SCNiLEAST8): Likewise.
15877         [C99-based-standards] (SCNoLEAST8): Likewise.
15878         [C99-based-standards] (SCNuLEAST8): Likewise.
15879         [C99-based-standards] (SCNxLEAST8): Likewise.
15880         [C99-based-standards] (PRIdFAST8): Likewise.
15881         [C99-based-standards] (PRIiFAST8): Likewise.
15882         [C99-based-standards] (PRIoFAST8): Likewise.
15883         [C99-based-standards] (PRIuFAST8): Likewise.
15884         [C99-based-standards] (PRIxFAST8): Likewise.
15885         [C99-based-standards] (PRIXFAST8): Likewise.
15886         [C99-based-standards] (SCNdFAST8): Likewise.
15887         [C99-based-standards] (SCNiFAST8): Likewise.
15888         [C99-based-standards] (SCNoFAST8): Likewise.
15889         [C99-based-standards] (SCNuFAST8): Likewise.
15890         [C99-based-standards] (SCNxFAST8): Likewise.
15891         [C99-based-standards] (PRId16): Likewise.
15892         [C99-based-standards] (PRIi16): Likewise.
15893         [C99-based-standards] (PRIo16): Likewise.
15894         [C99-based-standards] (PRIu16): Likewise.
15895         [C99-based-standards] (PRIx16): Likewise.
15896         [C99-based-standards] (PRIX16): Likewise.
15897         [C99-based-standards] (SCNd16): Likewise.
15898         [C99-based-standards] (SCNi16): Likewise.
15899         [C99-based-standards] (SCNo16): Likewise.
15900         [C99-based-standards] (SCNu16): Likewise.
15901         [C99-based-standards] (SCNx16): Likewise.
15902         [C99-based-standards] (PRIdLEAST16): Likewise.
15903         [C99-based-standards] (PRIiLEAST16): Likewise.
15904         [C99-based-standards] (PRIoLEAST16): Likewise.
15905         [C99-based-standards] (PRIuLEAST16): Likewise.
15906         [C99-based-standards] (PRIxLEAST16): Likewise.
15907         [C99-based-standards] (PRIXLEAST16): Likewise.
15908         [C99-based-standards] (SCNdLEAST16): Likewise.
15909         [C99-based-standards] (SCNiLEAST16): Likewise.
15910         [C99-based-standards] (SCNoLEAST16): Likewise.
15911         [C99-based-standards] (SCNuLEAST16): Likewise.
15912         [C99-based-standards] (SCNxLEAST16): Likewise.
15913         [C99-based-standards] (PRIdFAST16): Likewise.
15914         [C99-based-standards] (PRIiFAST16): Likewise.
15915         [C99-based-standards] (PRIoFAST16): Likewise.
15916         [C99-based-standards] (PRIuFAST16): Likewise.
15917         [C99-based-standards] (PRIxFAST16): Likewise.
15918         [C99-based-standards] (PRIXFAST16): Likewise.
15919         [C99-based-standards] (SCNdFAST16): Likewise.
15920         [C99-based-standards] (SCNiFAST16): Likewise.
15921         [C99-based-standards] (SCNoFAST16): Likewise.
15922         [C99-based-standards] (SCNuFAST16): Likewise.
15923         [C99-based-standards] (SCNxFAST16): Likewise.
15924         [C99-based-standards] (PRId32): Likewise.
15925         [C99-based-standards] (PRIi32): Likewise.
15926         [C99-based-standards] (PRIo32): Likewise.
15927         [C99-based-standards] (PRIu32): Likewise.
15928         [C99-based-standards] (PRIx32): Likewise.
15929         [C99-based-standards] (PRIX32): Likewise.
15930         [C99-based-standards] (SCNd32): Likewise.
15931         [C99-based-standards] (SCNi32): Likewise.
15932         [C99-based-standards] (SCNo32): Likewise.
15933         [C99-based-standards] (SCNu32): Likewise.
15934         [C99-based-standards] (SCNx32): Likewise.
15935         [C99-based-standards] (PRIdLEAST32): Likewise.
15936         [C99-based-standards] (PRIiLEAST32): Likewise.
15937         [C99-based-standards] (PRIoLEAST32): Likewise.
15938         [C99-based-standards] (PRIuLEAST32): Likewise.
15939         [C99-based-standards] (PRIxLEAST32): Likewise.
15940         [C99-based-standards] (PRIXLEAST32): Likewise.
15941         [C99-based-standards] (SCNdLEAST32): Likewise.
15942         [C99-based-standards] (SCNiLEAST32): Likewise.
15943         [C99-based-standards] (SCNoLEAST32): Likewise.
15944         [C99-based-standards] (SCNuLEAST32): Likewise.
15945         [C99-based-standards] (SCNxLEAST32): Likewise.
15946         [C99-based-standards] (PRIdFAST32): Likewise.
15947         [C99-based-standards] (PRIiFAST32): Likewise.
15948         [C99-based-standards] (PRIoFAST32): Likewise.
15949         [C99-based-standards] (PRIuFAST32): Likewise.
15950         [C99-based-standards] (PRIxFAST32): Likewise.
15951         [C99-based-standards] (PRIXFAST32): Likewise.
15952         [C99-based-standards] (SCNdFAST32): Likewise.
15953         [C99-based-standards] (SCNiFAST32): Likewise.
15954         [C99-based-standards] (SCNoFAST32): Likewise.
15955         [C99-based-standards] (SCNuFAST32): Likewise.
15956         [C99-based-standards] (SCNxFAST32): Likewise.
15957         [C99-based-standards] (PRId64): Likewise.
15958         [C99-based-standards] (PRIi64): Likewise.
15959         [C99-based-standards] (PRIo64): Likewise.
15960         [C99-based-standards] (PRIu64): Likewise.
15961         [C99-based-standards] (PRIx64): Likewise.
15962         [C99-based-standards] (PRIX64): Likewise.
15963         [C99-based-standards] (SCNd64): Likewise.
15964         [C99-based-standards] (SCNi64): Likewise.
15965         [C99-based-standards] (SCNo64): Likewise.
15966         [C99-based-standards] (SCNu64): Likewise.
15967         [C99-based-standards] (SCNx64): Likewise.
15968         [C99-based-standards] (PRIdLEAST64): Likewise.
15969         [C99-based-standards] (PRIiLEAST64): Likewise.
15970         [C99-based-standards] (PRIoLEAST64): Likewise.
15971         [C99-based-standards] (PRIuLEAST64): Likewise.
15972         [C99-based-standards] (PRIxLEAST64): Likewise.
15973         [C99-based-standards] (PRIXLEAST64): Likewise.
15974         [C99-based-standards] (SCNdLEAST64): Likewise.
15975         [C99-based-standards] (SCNiLEAST64): Likewise.
15976         [C99-based-standards] (SCNoLEAST64): Likewise.
15977         [C99-based-standards] (SCNuLEAST64): Likewise.
15978         [C99-based-standards] (SCNxLEAST64): Likewise.
15979         [C99-based-standards] (PRIdFAST64): Likewise.
15980         [C99-based-standards] (PRIiFAST64): Likewise.
15981         [C99-based-standards] (PRIoFAST64): Likewise.
15982         [C99-based-standards] (PRIuFAST64): Likewise.
15983         [C99-based-standards] (PRIxFAST64): Likewise.
15984         [C99-based-standards] (PRIXFAST64): Likewise.
15985         [C99-based-standards] (SCNdFAST64): Likewise.
15986         [C99-based-standards] (SCNiFAST64): Likewise.
15987         [C99-based-standards] (SCNoFAST64): Likewise.
15988         [C99-based-standards] (SCNuFAST64): Likewise.
15989         [C99-based-standards] (SCNxFAST64): Likewise.
15990         [C99-based-standards] (PRIdMAX): Likewise.
15991         [C99-based-standards] (PRIiMAX): Likewise.
15992         [C99-based-standards] (PRIoMAX): Likewise.
15993         [C99-based-standards] (PRIuMAX): Likewise.
15994         [C99-based-standards] (PRIxMAX): Likewise.
15995         [C99-based-standards] (PRIXMAX): Likewise.
15996         [C99-based-standards] (SCNdMAX): Likewise.
15997         [C99-based-standards] (SCNiMAX): Likewise.
15998         [C99-based-standards] (SCNoMAX): Likewise.
15999         [C99-based-standards] (SCNuMAX): Likewise.
16000         [C99-based-standards] (SCNxMAX): Likewise.
16001         [C99-based-standards] (PRIdPTR): Likewise.
16002         [C99-based-standards] (PRIiPTR): Likewise.
16003         [C99-based-standards] (PRIoPTR): Likewise.
16004         [C99-based-standards] (PRIuPTR): Likewise.
16005         [C99-based-standards] (PRIxPTR): Likewise.
16006         [C99-based-standards] (PRIXPTR): Likewise.
16007         [C99-based-standards] (SCNdPTR): Likewise.
16008         [C99-based-standards] (SCNiPTR): Likewise.
16009         [C99-based-standards] (SCNoPTR): Likewise.
16010         [C99-based-standards] (SCNuPTR): Likewise.
16011         [C99-based-standards] (SCNxPTR): Likewise.
16012         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
16013         allow.
16014         * conform/data/stdint.h-data: Update comments to clarify
16015         requirements.
16016         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
16017         type.
16018         [C99-based standards] (INT8_MAX): Likewise.
16019         [C99-based standards] (INT16_MIN): Likewise.
16020         [C99-based standards] (INT16_MAX): Likewise.
16021         [C99-based standards] (INT32_MIN): Likewise.
16022         [C99-based standards] (INT32_MAX): Likewise.
16023         [C99-based standards] (INT64_MIN): Likewise.
16024         [C99-based standards] (INT64_MAX): Likewise.
16025         [C99-based standards] (UINT8_MAX): Likewise.
16026         [C99-based standards] (UINT16_MAX): Likewise.
16027         [C99-based standards] (UINT32_MAX): Likewise.
16028         [C99-based standards] (UINT64_MAX): Likewise.
16029         [C99-based standards] (INT_LEAST8_MIN): Likewise.
16030         [C99-based standards] (INT_LEAST8_MAX): Likewise.
16031         [C99-based standards] (INT_LEAST16_MIN): Likewise.
16032         [C99-based standards] (INT_LEAST16_MAX): Likewise.
16033         [C99-based standards] (INT_LEAST32_MIN): Likewise.
16034         [C99-based standards] (INT_LEAST32_MAX): Likewise.
16035         [C99-based standards] (INT_LEAST64_MIN): Likewise.
16036         [C99-based standards] (INT_LEAST64_MAX): Likewise.
16037         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
16038         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
16039         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
16040         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
16041         [C99-based standards] (INT_FAST8_MIN): Likewise.
16042         [C99-based standards] (INT_FAST8_MAX): Likewise.
16043         [C99-based standards] (INT_FAST16_MIN): Likewise.
16044         [C99-based standards] (INT_FAST16_MAX): Likewise.
16045         [C99-based standards] (INT_FAST32_MIN): Likewise.
16046         [C99-based standards] (INT_FAST32_MAX): Likewise.
16047         [C99-based standards] (INT_FAST64_MIN): Likewise.
16048         [C99-based standards] (INT_FAST64_MAX): Likewise.
16049         [C99-based standards] (UINT_FAST8_MAX): Likewise.
16050         [C99-based standards] (UINT_FAST16_MAX): Likewise.
16051         [C99-based standards] (UINT_FAST32_MAX): Likewise.
16052         [C99-based standards] (UINT_FAST64_MAX): Likewise.
16053         [C99-based standards] (INTPTR_MIN): Likewise.
16054         [C99-based standards] (INTPTR_MAX): Likewise.
16055         [C99-based standards] (UINTPTR_MAX): Likewise.
16056         [C99-based standards] (INTMAX_MIN): Likewise.
16057         [C99-based standards] (INTMAX_MAX): Likewise.
16058         [C99-based standards] (UINTMAX_MAX): Likewise.
16059         [C99-based standards] (PTRDIFF_MIN): Likewise.
16060         [C99-based standards] (PTRDIFF_MAX): Likewise.
16061         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
16062         [C99-based standards] (SIZE_MAX): Likewise.
16063         [C99-based standards] (WCHAR_MAX): Likewise.
16064         [C99-based standards] (WINT_MAX): Likewise.
16065         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
16066         constraint on value.
16067         [C99-based standards] (WCHAR_MIN): Likewise.
16068         [C99-based standards] (WINT_MIN): Likewise.
16069         [C99-based standards] (*_t): Allow.
16070         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
16071         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
16072         Include math.h-data and complex.h-data.  Remove all expectations
16073         of math.h and complex.h contents.
16074         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
16075         at end of line.
16076         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
16077         (struct tm): Expect tag.
16078         [C99-based-standards] (wcstof): Expect function.
16079         [C99-based-standards] (wcstold): Likewise.
16080         [C99-based-standards] (wcstoll): Likewise.
16081         [C99-based-standards] (wcstoull): Likewise.
16082         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
16083         macro-int-constant.  Specify type.
16084         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
16085         constraint on value.
16086         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
16087         Specify type.
16088         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
16089         Specify value.
16090         [ISO C standards]: Do not allow headers.
16091         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
16092         wcs[abcdefghijklmnopqrstuvwxyz]*.
16093         [ISO C standards] (*_t): Do not allow.
16094         * conform/data/wctype.h-data [C99-based standards] (iswblank):
16095         Expect function.
16096         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
16097         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
16098         Specify type.
16099         [ISO C standards]: Do not allow headers.
16100         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
16101         is[abcdefghijklmnopqrstuvwxyz]*.
16102         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
16103         to[abcdefghijklmnopqrstuvwxyz]*.
16104         [ISO C standards] (*_t): Do not allow.
16105         * conform/data/stdalign.h-data: New file.
16106         * conform/data/stdbool.h-data: Likewise.
16107         * conform/data/stdnoreturn.h-data: Likewise.
16108
16109 2012-11-07  Roland McGrath  <roland@hack.frob.com>
16110
16111         [BZ #14815]
16112         * manual/filesys.texi (Directory Entries): Typo fix.
16113         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
16114
16115 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16116
16117         * elf/elf.h (EM_AARCH64): New macro.
16118         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
16119         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
16120         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
16121         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
16122         (R_AARCH64_TLSDESC): Likewise.
16123         (NT_ARM_TLS): Likewise.
16124         (NT_ARM_HW_BREAK): Likewise.
16125         (NT_ARM_HW_WATCH): Likewise.
16126
16127 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16128
16129         [BZ #14811]
16130         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
16131         (__ieee754_powl): Saturate nonzero exponents with absolute value
16132         below 0x1p-79 to +/- 0x1p-79.
16133         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
16134         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
16135         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
16136         nonzero exponents with absolute value below 0x1p-32 to +/-
16137         0x1p-32.
16138         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
16139         (__ieee754_powl): Saturate nonzero exponents with absolute value
16140         below 0x1p-79 to +/- 0x1p-79.
16141         * math/libm-test.inc (pow_test): Add more tests.
16142
16143 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16144
16145         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
16146         _dl_s390_cap_flags with kernel. Increase string length.
16147         (_dl_s390_platforms): Add z196 and zEC12.
16148
16149 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16150
16151         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
16152         Change XOPEN21K to XOPEN2K.
16153
16154 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
16155
16156         * string/memmove.c: Use memcpy when possible.
16157
16158 2012-11-06  Andreas Jaeger  <aj@suse.de>
16159
16160         * po/eo.po: Update from translation team.
16161
16162 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
16163
16164         [BZ #14793]
16165         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
16166         exponent and small x and y exponents, scale x or y up.  Increase
16167         by 2 the exponent used in scaling up.
16168         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16169         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16170         * math/libm-test.inc (fma_test): Add more tests.
16171         (fma_test_towardzero): Likewise.
16172         (fma_test_downward): Likewise.
16173         (fma_test_upward): Likewise.
16174
16175 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
16176
16177         [BZ #14805]
16178         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
16179         fenv_t *.
16180
16181         [BZ #14801]
16182         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
16183         namespace for names of struct fields.
16184         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
16185         fenv_t fields.
16186         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
16187         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
16188
16189 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16190
16191         [BZ #3665]
16192         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
16193
16194 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
16195
16196         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
16197         PTR_DEMANGLE.
16198
16199         [BZ #5246]
16200         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
16201         PTR_DEMANGLE.
16202
16203 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
16204
16205         [BZ #14797]
16206         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
16207         definitely overflow as x * y not x * y + z.
16208         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16209         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16210         * math/libm-test.inc (fma_test): Add more tests.
16211         (fma_test_towardzero): Likewise.
16212         (fma_test_downward): Likewise.
16213         (fma_test_upward): Likewise.
16214
16215 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
16216
16217         [BZ #157]
16218
16219         * include/stub-tag.h: Remove file.
16220         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
16221         '#include' of it.
16222         * manual/maint.texi (Porting): Don't reference it.
16223         * Makerules ($(objpfx)stubs): Likewise.
16224         * dirent/closedir.c: Don't include <stub-tag.h>.
16225         * dirent/dirfd.c: Likewise.
16226         * dirent/fdopendir.c: Likewise.
16227         * dirent/getdents.c: Likewise.
16228         * dirent/getdents64.c: Likewise.
16229         * dirent/opendir.c: Likewise.
16230         * dirent/readdir.c: Likewise.
16231         * dirent/readdir64.c: Likewise.
16232         * dirent/readdir64_r.c: Likewise.
16233         * dirent/readdir_r.c: Likewise.
16234         * dirent/rewinddir.c: Likewise.
16235         * dirent/seekdir.c: Likewise.
16236         * dirent/telldir.c: Likewise.
16237         * gmon/profil.c: Likewise.
16238         * grp/setgroups.c: Likewise.
16239         * inet/if_index.c: Likewise.
16240         * io/access.c: Likewise.
16241         * io/chdir.c: Likewise.
16242         * io/chmod.c: Likewise.
16243         * io/chown.c: Likewise.
16244         * io/close.c: Likewise.
16245         * io/dup.c: Likewise.
16246         * io/dup2.c: Likewise.
16247         * io/dup3.c: Likewise.
16248         * io/euidaccess.c: Likewise.
16249         * io/faccessat.c: Likewise.
16250         * io/fchdir.c: Likewise.
16251         * io/fchmod.c: Likewise.
16252         * io/fchmodat.c: Likewise.
16253         * io/fchown.c: Likewise.
16254         * io/fchownat.c: Likewise.
16255         * io/fcntl.c: Likewise.
16256         * io/flock.c: Likewise.
16257         * io/fstatfs.c: Likewise.
16258         * io/fstatfs64.c: Likewise.
16259         * io/fstatvfs.c: Likewise.
16260         * io/fstatvfs64.c: Likewise.
16261         * io/futimens.c: Likewise.
16262         * io/fxstat.c: Likewise.
16263         * io/fxstat64.c: Likewise.
16264         * io/fxstatat.c: Likewise.
16265         * io/fxstatat64.c: Likewise.
16266         * io/getcwd.c: Likewise.
16267         * io/isatty.c: Likewise.
16268         * io/lchmod.c: Likewise.
16269         * io/lchown.c: Likewise.
16270         * io/link.c: Likewise.
16271         * io/linkat.c: Likewise.
16272         * io/lseek.c: Likewise.
16273         * io/lseek64.c: Likewise.
16274         * io/lxstat64.c: Likewise.
16275         * io/mkdir.c: Likewise.
16276         * io/mkdirat.c: Likewise.
16277         * io/mkfifo.c: Likewise.
16278         * io/mkfifoat.c: Likewise.
16279         * io/open.c: Likewise.
16280         * io/open64.c: Likewise.
16281         * io/openat.c: Likewise.
16282         * io/openat64.c: Likewise.
16283         * io/pipe.c: Likewise.
16284         * io/pipe2.c: Likewise.
16285         * io/poll.c: Likewise.
16286         * io/posix_fadvise.c: Likewise.
16287         * io/posix_fadvise64.c: Likewise.
16288         * io/posix_fallocate.c: Likewise.
16289         * io/posix_fallocate64.c: Likewise.
16290         * io/read.c: Likewise.
16291         * io/readlink.c: Likewise.
16292         * io/readlinkat.c: Likewise.
16293         * io/rmdir.c: Likewise.
16294         * io/sendfile.c: Likewise.
16295         * io/sendfile64.c: Likewise.
16296         * io/statfs.c: Likewise.
16297         * io/statfs64.c: Likewise.
16298         * io/statvfs.c: Likewise.
16299         * io/statvfs64.c: Likewise.
16300         * io/symlink.c: Likewise.
16301         * io/symlinkat.c: Likewise.
16302         * io/ttyname.c: Likewise.
16303         * io/ttyname_r.c: Likewise.
16304         * io/umask.c: Likewise.
16305         * io/unlink.c: Likewise.
16306         * io/unlinkat.c: Likewise.
16307         * io/utime.c: Likewise.
16308         * io/utimensat.c: Likewise.
16309         * io/write.c: Likewise.
16310         * io/xmknod.c: Likewise.
16311         * io/xmknodat.c: Likewise.
16312         * io/xstat.c: Likewise.
16313         * io/xstat64.c: Likewise.
16314         * login/getpt.c: Likewise.
16315         * login/grantpt.c: Likewise.
16316         * login/unlockpt.c: Likewise.
16317         * math/e_acoshl.c: Likewise.
16318         * math/e_acosl.c: Likewise.
16319         * math/e_asinl.c: Likewise.
16320         * math/e_atan2l.c: Likewise.
16321         * math/e_atanhl.c: Likewise.
16322         * math/e_coshl.c: Likewise.
16323         * math/e_expl.c: Likewise.
16324         * math/e_fmodl.c: Likewise.
16325         * math/e_gammal_r.c: Likewise.
16326         * math/e_hypotl.c: Likewise.
16327         * math/e_j0l.c: Likewise.
16328         * math/e_j1l.c: Likewise.
16329         * math/e_jnl.c: Likewise.
16330         * math/e_lgammal_r.c: Likewise.
16331         * math/e_log10l.c: Likewise.
16332         * math/e_log2l.c: Likewise.
16333         * math/e_logl.c: Likewise.
16334         * math/e_powl.c: Likewise.
16335         * math/e_rem_pio2l.c: Likewise.
16336         * math/e_sinhl.c: Likewise.
16337         * math/e_sqrtl.c: Likewise.
16338         * math/fclrexcpt.c: Likewise.
16339         * math/fedisblxcpt.c: Likewise.
16340         * math/feenablxcpt.c: Likewise.
16341         * math/fegetenv.c: Likewise.
16342         * math/fegetexcept.c: Likewise.
16343         * math/fegetround.c: Likewise.
16344         * math/feholdexcpt.c: Likewise.
16345         * math/fesetenv.c: Likewise.
16346         * math/fesetround.c: Likewise.
16347         * math/feupdateenv.c: Likewise.
16348         * math/fgetexcptflg.c: Likewise.
16349         * math/fraiseexcpt.c: Likewise.
16350         * math/fsetexcptflg.c: Likewise.
16351         * math/ftestexcept.c: Likewise.
16352         * math/k_cosl.c: Likewise.
16353         * math/k_rem_pio2l.c: Likewise.
16354         * math/k_sinl.c: Likewise.
16355         * math/k_tanl.c: Likewise.
16356         * math/s_asinhl.c: Likewise.
16357         * math/s_atanl.c: Likewise.
16358         * math/s_cbrtl.c: Likewise.
16359         * math/s_erfl.c: Likewise.
16360         * math/s_expm1l.c: Likewise.
16361         * math/s_log1pl.c: Likewise.
16362         * math/s_tanhl.c: Likewise.
16363         * misc/acct.c: Likewise.
16364         * misc/brk.c: Likewise.
16365         * misc/chflags.c: Likewise.
16366         * misc/chroot.c: Likewise.
16367         * misc/fchflags.c: Likewise.
16368         * misc/fgetxattr.c: Likewise.
16369         * misc/flistxattr.c: Likewise.
16370         * misc/fremovexattr.c: Likewise.
16371         * misc/fsetxattr.c: Likewise.
16372         * misc/fsync.c: Likewise.
16373         * misc/ftruncate.c: Likewise.
16374         * misc/futimes.c: Likewise.
16375         * misc/futimesat.c: Likewise.
16376         * misc/getdomain.c: Likewise.
16377         * misc/getdtsz.c: Likewise.
16378         * misc/gethostid.c: Likewise.
16379         * misc/gethostname.c: Likewise.
16380         * misc/getloadavg.c: Likewise.
16381         * misc/getpagesize.c: Likewise.
16382         * misc/getsysstats.c: Likewise.
16383         * misc/getxattr.c: Likewise.
16384         * misc/gtty.c: Likewise.
16385         * misc/ioctl.c: Likewise.
16386         * misc/lgetxattr.c: Likewise.
16387         * misc/listxattr.c: Likewise.
16388         * misc/llistxattr.c: Likewise.
16389         * misc/lremovexattr.c: Likewise.
16390         * misc/lsetxattr.c: Likewise.
16391         * misc/lutimes.c: Likewise.
16392         * misc/madvise.c: Likewise.
16393         * misc/mincore.c: Likewise.
16394         * misc/mlock.c: Likewise.
16395         * misc/mlockall.c: Likewise.
16396         * misc/mmap.c: Likewise.
16397         * misc/mprotect.c: Likewise.
16398         * misc/msync.c: Likewise.
16399         * misc/munlock.c: Likewise.
16400         * misc/munlockall.c: Likewise.
16401         * misc/munmap.c: Likewise.
16402         * misc/preadv.c: Likewise.
16403         * misc/preadv64.c: Likewise.
16404         * misc/ptrace.c: Likewise.
16405         * misc/pwritev.c: Likewise.
16406         * misc/pwritev64.c: Likewise.
16407         * misc/readv.c: Likewise.
16408         * misc/reboot.c: Likewise.
16409         * misc/remap_file_pages.c: Likewise.
16410         * misc/removexattr.c: Likewise.
16411         * misc/revoke.c: Likewise.
16412         * misc/select.c: Likewise.
16413         * misc/setdomain.c: Likewise.
16414         * misc/setegid.c: Likewise.
16415         * misc/seteuid.c: Likewise.
16416         * misc/sethostid.c: Likewise.
16417         * misc/sethostname.c: Likewise.
16418         * misc/setregid.c: Likewise.
16419         * misc/setreuid.c: Likewise.
16420         * misc/setxattr.c: Likewise.
16421         * misc/sstk.c: Likewise.
16422         * misc/stty.c: Likewise.
16423         * misc/swapoff.c: Likewise.
16424         * misc/swapon.c: Likewise.
16425         * misc/sync.c: Likewise.
16426         * misc/syncfs.c: Likewise.
16427         * misc/syscall.c: Likewise.
16428         * misc/truncate.c: Likewise.
16429         * misc/ualarm.c: Likewise.
16430         * misc/usleep.c: Likewise.
16431         * misc/ustat.c: Likewise.
16432         * misc/utimes.c: Likewise.
16433         * misc/vhangup.c: Likewise.
16434         * misc/writev.c: Likewise.
16435         * posix/_exit.c: Likewise.
16436         * posix/alarm.c: Likewise.
16437         * posix/execve.c: Likewise.
16438         * posix/fexecve.c: Likewise.
16439         * posix/fork.c: Likewise.
16440         * posix/fpathconf.c: Likewise.
16441         * posix/getaddrinfo.c: Likewise.
16442         * posix/getegid.c: Likewise.
16443         * posix/geteuid.c: Likewise.
16444         * posix/getgid.c: Likewise.
16445         * posix/getgroups.c: Likewise.
16446         * posix/getlogin.c: Likewise.
16447         * posix/getlogin_r.c: Likewise.
16448         * posix/getpgid.c: Likewise.
16449         * posix/getpid.c: Likewise.
16450         * posix/getppid.c: Likewise.
16451         * posix/getresgid.c: Likewise.
16452         * posix/getresuid.c: Likewise.
16453         * posix/getsid.c: Likewise.
16454         * posix/getuid.c: Likewise.
16455         * posix/glob64.c: Likewise.
16456         * posix/nanosleep.c: Likewise.
16457         * posix/pathconf.c: Likewise.
16458         * posix/pause.c: Likewise.
16459         * posix/posix_madvise.c: Likewise.
16460         * posix/pread.c: Likewise.
16461         * posix/pread64.c: Likewise.
16462         * posix/pwrite.c: Likewise.
16463         * posix/pwrite64.c: Likewise.
16464         * posix/sched_getaffinity.c: Likewise.
16465         * posix/sched_getp.c: Likewise.
16466         * posix/sched_gets.c: Likewise.
16467         * posix/sched_primax.c: Likewise.
16468         * posix/sched_primin.c: Likewise.
16469         * posix/sched_rr_gi.c: Likewise.
16470         * posix/sched_setaffinity.c: Likewise.
16471         * posix/sched_setp.c: Likewise.
16472         * posix/sched_sets.c: Likewise.
16473         * posix/sched_yield.c: Likewise.
16474         * posix/setgid.c: Likewise.
16475         * posix/setlogin.c: Likewise.
16476         * posix/setpgid.c: Likewise.
16477         * posix/setresgid.c: Likewise.
16478         * posix/setresuid.c: Likewise.
16479         * posix/setsid.c: Likewise.
16480         * posix/setuid.c: Likewise.
16481         * posix/sleep.c: Likewise.
16482         * posix/spawni.c: Likewise.
16483         * posix/sysconf.c: Likewise.
16484         * posix/times.c: Likewise.
16485         * posix/wait.c: Likewise.
16486         * posix/wait3.c: Likewise.
16487         * posix/wait4.c: Likewise.
16488         * posix/waitpid.c: Likewise.
16489         * resolv/gai_sigqueue.c: Likewise.
16490         * resource/getpriority.c: Likewise.
16491         * resource/getrlimit.c: Likewise.
16492         * resource/getrusage.c: Likewise.
16493         * resource/nice.c: Likewise.
16494         * resource/setpriority.c: Likewise.
16495         * resource/setrlimit.c: Likewise.
16496         * resource/ulimit.c: Likewise.
16497         * rt/aio_cancel.c: Likewise.
16498         * rt/aio_fsync.c: Likewise.
16499         * rt/aio_read.c: Likewise.
16500         * rt/aio_sigqueue.c: Likewise.
16501         * rt/aio_suspend.c: Likewise.
16502         * rt/aio_write.c: Likewise.
16503         * rt/clock_getres.c: Likewise.
16504         * rt/clock_gettime.c: Likewise.
16505         * rt/clock_nanosleep.c: Likewise.
16506         * rt/clock_settime.c: Likewise.
16507         * rt/lio_listio.c: Likewise.
16508         * rt/mq_close.c: Likewise.
16509         * rt/mq_getattr.c: Likewise.
16510         * rt/mq_notify.c: Likewise.
16511         * rt/mq_open.c: Likewise.
16512         * rt/mq_receive.c: Likewise.
16513         * rt/mq_send.c: Likewise.
16514         * rt/mq_setattr.c: Likewise.
16515         * rt/mq_timedreceive.c: Likewise.
16516         * rt/mq_timedsend.c: Likewise.
16517         * rt/mq_unlink.c: Likewise.
16518         * rt/shm_open.c: Likewise.
16519         * rt/shm_unlink.c: Likewise.
16520         * rt/timer_create.c: Likewise.
16521         * rt/timer_delete.c: Likewise.
16522         * rt/timer_getoverr.c: Likewise.
16523         * rt/timer_gettime.c: Likewise.
16524         * rt/timer_settime.c: Likewise.
16525         * setjmp/__longjmp.c: Likewise.
16526         * setjmp/setjmp.c: Likewise.
16527         * signal/kill.c: Likewise.
16528         * signal/killpg.c: Likewise.
16529         * signal/raise.c: Likewise.
16530         * signal/sigaction.c: Likewise.
16531         * signal/sigaltstack.c: Likewise.
16532         * signal/sigblock.c: Likewise.
16533         * signal/sigignore.c: Likewise.
16534         * signal/sigintr.c: Likewise.
16535         * signal/signal.c: Likewise.
16536         * signal/sigpause.c: Likewise.
16537         * signal/sigpending.c: Likewise.
16538         * signal/sigqueue.c: Likewise.
16539         * signal/sigreturn.c: Likewise.
16540         * signal/sigset.c: Likewise.
16541         * signal/sigsetmask.c: Likewise.
16542         * signal/sigstack.c: Likewise.
16543         * signal/sigsuspend.c: Likewise.
16544         * signal/sigtimedwait.c: Likewise.
16545         * signal/sigvec.c: Likewise.
16546         * signal/sigwait.c: Likewise.
16547         * signal/sigwaitinfo.c: Likewise.
16548         * signal/sysv_signal.c: Likewise.
16549         * socket/accept.c: Likewise.
16550         * socket/accept4.c: Likewise.
16551         * socket/bind.c: Likewise.
16552         * socket/connect.c: Likewise.
16553         * socket/getpeername.c: Likewise.
16554         * socket/getsockname.c: Likewise.
16555         * socket/getsockopt.c: Likewise.
16556         * socket/isfdtype.c: Likewise.
16557         * socket/listen.c: Likewise.
16558         * socket/recv.c: Likewise.
16559         * socket/recvfrom.c: Likewise.
16560         * socket/recvmsg.c: Likewise.
16561         * socket/send.c: Likewise.
16562         * socket/sendmsg.c: Likewise.
16563         * socket/sendto.c: Likewise.
16564         * socket/setsockopt.c: Likewise.
16565         * socket/shutdown.c: Likewise.
16566         * socket/sockatmark.c: Likewise.
16567         * socket/socket.c: Likewise.
16568         * socket/socketpair.c: Likewise.
16569         * stdio-common/ctermid.c: Likewise.
16570         * stdio-common/cuserid.c: Likewise.
16571         * stdio-common/remove.c: Likewise.
16572         * stdio-common/rename.c: Likewise.
16573         * stdio-common/renameat.c: Likewise.
16574         * stdio-common/tempname.c: Likewise.
16575         * stdlib/getcontext.c: Likewise.
16576         * stdlib/makecontext.c: Likewise.
16577         * stdlib/setcontext.c: Likewise.
16578         * stdlib/swapcontext.c: Likewise.
16579         * stdlib/system.c: Likewise.
16580         * streams/fattach.c: Likewise.
16581         * streams/fdetach.c: Likewise.
16582         * streams/getmsg.c: Likewise.
16583         * streams/getpmsg.c: Likewise.
16584         * streams/putmsg.c: Likewise.
16585         * streams/putpmsg.c: Likewise.
16586         * sysdeps/unix/bsd/getpt.c: Likewise.
16587         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
16588         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
16589         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
16590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
16591         Likewise.
16592         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
16593         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
16594         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
16595         * sysvipc/msgctl.c: Likewise.
16596         * sysvipc/msgget.c: Likewise.
16597         * sysvipc/msgrcv.c: Likewise.
16598         * sysvipc/msgsnd.c: Likewise.
16599         * sysvipc/semctl.c: Likewise.
16600         * sysvipc/semget.c: Likewise.
16601         * sysvipc/semop.c: Likewise.
16602         * sysvipc/semtimedop.c: Likewise.
16603         * sysvipc/shmat.c: Likewise.
16604         * sysvipc/shmctl.c: Likewise.
16605         * sysvipc/shmdt.c: Likewise.
16606         * sysvipc/shmget.c: Likewise.
16607         * termios/tcdrain.c: Likewise.
16608         * termios/tcflow.c: Likewise.
16609         * termios/tcflush.c: Likewise.
16610         * termios/tcgetattr.c: Likewise.
16611         * termios/tcgetpgrp.c: Likewise.
16612         * termios/tcsendbrk.c: Likewise.
16613         * termios/tcsetattr.c: Likewise.
16614         * termios/tcsetpgrp.c: Likewise.
16615         * time/adjtime.c: Likewise.
16616         * time/clock.c: Likewise.
16617         * time/getitimer.c: Likewise.
16618         * time/gettimeofday.c: Likewise.
16619         * time/setitimer.c: Likewise.
16620         * time/settimeofday.c: Likewise.
16621         * time/stime.c: Likewise.
16622         * time/time.c: Likewise.
16623
16624 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
16625
16626         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
16627         /usr/old/bin.
16628
16629         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
16630         instead of spaces.
16631         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
16632
16633 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
16634
16635         [BZ #14796]
16636         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
16637         FE_TONEAREST before applying Dekker multiplication and Knuth
16638         addition.  Clear inexact exceptions and check for exact zero
16639         results afterwards.
16640         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16641         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
16642         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16643         * math/libm-test.inc (fma_test): Add more tests.
16644         (fma_test_towardzero): Likewise.
16645         (fma_test_downward): Likewise.
16646         (fma_test_upward): Likewise.
16647         * sysdeps/generic/math_private.h (default_libc_fesetround): New
16648         function.
16649         (libc_fesetround): New macro.
16650         (libc_fesetroundf): Likewise.
16651         (libc_fesetroundl): Likewise.
16652         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
16653         function.
16654         (libc_fesetround_387): Likewise.
16655         (libc_fesetroundf): New macro.
16656         (libc_fesetround): Likewise.
16657         (libc_fesetroundl): Likewise.
16658         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
16659         function.
16660         (libc_fesetroundf): New macro.
16661         (libc_fesetround): Likewise.
16662         (libc_fesetroundl): Likewise.
16663         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
16664         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
16665         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
16666         libm_hidden_ver.
16667         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
16668         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
16669         libm_hidden_def.
16670         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
16671         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
16672         libm_hidden_ver.
16673         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
16674         libm_hidden_def.
16675
16676         [BZ #3439]
16677         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
16678         integer constant usable in #if and use that to give value to enum
16679         constant.
16680         (FE_DIVBYZERO): Likewise.
16681         (FE_UNDERFLOW): Likewise.
16682         (FE_OVERFLOW): Likewise.
16683         (FE_INVALID): Likewise.
16684         (FE_INVALID_SNAN): Likewise.
16685         (FE_INVALID_ISI): Likewise.
16686         (FE_INVALID_IDI): Likewise.
16687         (FE_INVALID_ZDZ): Likewise.
16688         (FE_INVALID_IMZ): Likewise.
16689         (FE_INVALID_COMPARE): Likewise.
16690         (FE_INVALID_SOFTWARE): Likewise.
16691         (FE_INVALID_SQRT): Likewise.
16692         (FE_INVALID_INTEGER_CONVERSION): Likewise.
16693         (FE_TONEAREST): Likewise.
16694         (FE_TOWARDZERO): Likewise.
16695         (FE_UPWARD): Likewise.
16696         (FE_DOWNWARD): Likewise.
16697         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
16698         (FE_DIVBYZERO): Likewise.
16699         (FE_OVERFLOW): Likewise.
16700         (FE_UNDERFLOW): Likewise.
16701         (FE_INEXACT): Likewise.
16702         (FE_TONEAREST): Likewise.
16703         (FE_DOWNWARD): Likewise.
16704         (FE_UPWARD): Likewise.
16705         (FE_TOWARDZERO): Likewise.
16706         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
16707         (FE_UNDERFLOW): Likewise.
16708         (FE_OVERFLOW): Likewise.
16709         (FE_DIVBYZERO): Likewise.
16710         (FE_INVALID): Likewise.
16711         (FE_TONEAREST): Likewise.
16712         (FE_TOWARDZERO): Likewise.
16713         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
16714         (FE_OVERFLOW): Likewise.
16715         (FE_UNDERFLOW): Likewise.
16716         (FE_DIVBYZERO): Likewise.
16717         (FE_INEXACT): Likewise.
16718         (FE_TONEAREST): Likewise.
16719         (FE_TOWARDZERO): Likewise.
16720         (FE_UPWARD): Likewise.
16721         (FE_DOWNWARD): Likewise.
16722         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
16723         (FE_DIVBYZERO): Likewise.
16724         (FE_OVERFLOW): Likewise.
16725         (FE_UNDERFLOW): Likewise.
16726         (FE_INEXACT): Likewise.
16727         (FE_TONEAREST): Likewise.
16728         (FE_DOWNWARD): Likewise.
16729         (FE_UPWARD): Likewise.
16730         (FE_TOWARDZERO): Likewise.
16731
16732 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
16733
16734         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
16735
16736 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
16737
16738         * scripts/cross-test-ssh.sh (command): Use newlines to separate
16739         commands.  Quote $PWD.
16740         (blacklist_exports): Don't use remove_newlines.  Replace "declare
16741         -x" by "export".
16742         (remove_newlines): Remove.
16743
16744 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
16745
16746         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
16747         * stdlib/stdlib.h (atof): Moved to ...
16748         * include/bits/stdlib-float.h: Here.  New file.
16749         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
16750         * stdlib/bits/stdlib-float.h: New file.
16751         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
16752         -mno-sse -mno-mmx.
16753         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
16754         <xmmintrin.h>.
16755
16756 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
16757
16758         * conform/conformtest.pl (@headers): Add fenv.h.
16759         * conform/data/fenv.h-data: New file.
16760         * include/fenv.h [_ISOMAC]: Disable all contents of file except
16761         include of <math/fenv.h>.
16762
16763         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
16764         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
16765         && !UNIX98].  Enables tests for XOPEN2K8.
16766         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
16767         POSIX2008]: Likewise.
16768
16769         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
16770         (struct rusage): Do not expect type or its members.
16771
16772         [BZ #3439]
16773         * math/math.h (FP_NAN): Define macro to integer constant usable in
16774         #if and use that to give value to enum constant.
16775         (FP_INFINITE): Likewise.
16776         (FP_ZERO): Likewise.
16777         (FP_SUBNORMAL): Likewise.
16778         (FP_NORMAL): Likewise.
16779
16780 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
16781
16782         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
16783         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
16784         arguments.
16785
16786 2012-11-02  Roland McGrath  <roland@hack.frob.com>
16787
16788         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
16789         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
16790         autoconf-time if not.
16791         * configure.in: Remove AC_PREREQ.
16792
16793 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16794
16795         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
16796         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
16797         of the internal implementation.
16798
16799 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
16800
16801         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
16802         except include of <misc/sys/syslog.h>.
16803
16804 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16805
16806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
16807         function returns with a NULL context exit with zero.
16808
16809 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16810
16811         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
16812
16813 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
16814
16815         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
16816         (run_program_cmd): This.
16817         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
16818         (tst_langinfo): New variable.  Use it.
16819
16820 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
16821
16822         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
16823         floating point opcodes.
16824
16825 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
16826
16827         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
16828         variable.
16829
16830         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
16831
16832         * sysdeps/mach/hurd/powerpc: Remove directory.
16833         * sysdeps/mach/powerpc: Likewise.
16834
16835 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16836
16837         * scripts/check-local-headers.sh: Ignore c++ headers.
16838
16839 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
16840
16841         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
16842         __libc_cleanup_region_start argument.
16843
16844 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
16845
16846         [BZ #14784]
16847         [BZ #14785]
16848         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
16849         x * y using scaling, not as x * y + z.
16850         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16851         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16852         * math/libm-test.inc (fma_test): Add more tests.
16853         (fma_test_towardzero): Likewise.
16854         (fma_test_downward): Likewise.
16855         (fma_test_upward): Likewise.
16856
16857 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
16858
16859         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
16860
16861 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
16862
16863         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
16864         New variable.
16865
16866 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
16867
16868         * rt/tst-shm.c (worker): Correct checking for mmap failure.
16869
16870 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
16871
16872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16873         Fix sort order.
16874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16875         Likewise.
16876
16877 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16878
16879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16880         Fix the order of the list for glibc 2.17.
16881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16882         Likewise.
16883
16884 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
16885
16886         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16887
16888 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
16889
16890         [BZ #14610]
16891         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
16892         for low part of x being zero before using __atanl (y).
16893         * math/libm-test.inc (atan2_test): Add another test.
16894
16895         * manual/install.texi (Configuring and compiling): Document
16896         general use of test-wrapper and test-wrapper-env.
16897         * INSTALL: Regenerated.
16898
16899         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
16900         (__fma): Do not extract and scale down low bits on after-rounding
16901         systems when result rounded to normal precision would have normal
16902         exponent.
16903         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
16904         (__fmal): Do not extract and scale down low bits on after-rounding
16905         systems when result rounded to normal precision would have normal
16906         exponent.
16907         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
16908         (__fmal): Do not extract and scale down low bits on after-rounding
16909         systems when result rounded to normal precision would have normal
16910         exponent.
16911         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
16912         macro.
16913         (fma_test): Add more tests.
16914         (fma_test_towardzero): Likewise.
16915         (fma_test_downward): Likewise.
16916         (fma_test_upward): Likewise.
16917
16918 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
16919
16920         * sysdeps/i386/tininess.h: Renamed to ...
16921         * sysdeps/x86/tininess.h: This.
16922         * sysdeps/x86_64/tininess.h: Removed.
16923
16924 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
16925
16926         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
16927         input.  Use $(build-program-cmd).
16928         ($(objpfx)tst-array1-static.out): Likewise.
16929         ($(objpfx)tst-array2.out): Likewise.
16930         ($(objpfx)tst-array3.out): Likewise.
16931         ($(objpfx)tst-array4.out): Likewise.
16932         ($(objpfx)tst-array5.out): Likewise.
16933         ($(objpfx)tst-array5-static.out): Likewise.
16934
16935 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
16936
16937         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
16938         if defined.
16939
16940         * nss/nsswitch.h (nss_interface_function): Provide new
16941         macro for use with NSS functions.
16942         * grp/initgroups.c: Use new macro.
16943         * nss/getXXbyYY.c: Likewise.
16944         * nss/getXXbyYY_r.c: Likewise.
16945         * nss/getXXent.c: Likewise.
16946         * nss/getXXent_r.c: Likewise.
16947         * sysdeps/posix/getaddrinfo.c: Likewise.
16948
16949 2012-10-30  Andreas Jaeger  <aj@suse.de>
16950
16951         * po/ru.po: Update Russion translation from translation project.
16952
16953 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
16954
16955         [BZ #14152]
16956         [BZ #14783]
16957         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
16958         result and shift together with sticky bit instead of replicating
16959         round-to-nearest rounding.
16960         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16961         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16962         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
16963         missing underflow exceptions.
16964         (fma_test_towardzero): Add more tests.
16965         (fma_test_downward): Likewise.
16966         (fma_test_upward): Likewise.
16967
16968         [BZ #14047]
16969         * sysdeps/generic/tininess.h: New file.
16970         * sysdeps/i386/tininess.h: Likewise.
16971         * sysdeps/sh/tininess.h: Likewise.
16972         * sysdeps/x86_64/tininess.h: Likewise.
16973         * stdlib/tst-strtod-underflow.c: Likewise.
16974         * stdlib/tst-tininess.c: Likewise.
16975         * stdlib/strtod_l.c: Include <tininess.h>.
16976         (round_and_return): Do not set errno for exact underflow cases.
16977         Force an underflow exception when setting errno for underflow.
16978         Determine underflow based on rounding to normal precision if
16979         TININESS_AFTER_ROUNDING.
16980         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
16981         ERANGE for exact underflow cases.
16982         * stdlib/Makefile (tests): Add tst-tininess and
16983         tst-strtod-underflow.
16984         ($(objpfx)tst-tininess): Use $(link-libm).
16985         ($(objpfx)tst-strtod-underflow): Likewise.
16986
16987 2012-10-30  Andreas Jaeger  <aj@suse.de>
16988
16989         [BZ#14767]
16990         * elf/Makefile (tests): Remove conditional for have-initfini-array
16991         since this is now always required and the variable does not exist
16992         anymore.
16993         (tests-static): Likewise.
16994         (modules-names): Likewise.
16995
16996         * po/eo.po: Add Esperanto translation from translation project.
16997
16998         * elf/tst-array1.c (fini_array): Make writeable so that it can be
16999         merged with constructor/destructor.
17000         (init_array): Likewise.
17001         * elf/tst-array2dep.c (fini_array): Likewise.
17002         (init_array): Likewise.
17003
17004 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
17005
17006         * manual/message.texi: Delete @cartouche tags.
17007
17008 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
17009
17010         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
17011         EOPNOTSUPP.
17012         * sysdeps/mach/hurd/fsync.c: Likewise.
17013
17014         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
17015         [_POSIX_REALTIME_SIGNALS]: Change condition to
17016         [_POSIX_REALTIME_SIGNALS > 0].
17017
17018 2012-10-27  Andreas Jaeger  <aj@suse.de>
17019
17020         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
17021         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
17022         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
17023         [__WORDSIZE != 64]: Likewise.
17024
17025 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
17026
17027         *  iconvdata/tst-table.sh: Remove ${SHELL}.
17028         *  iconvdata/tst-tables.sh: Likewise.
17029
17030 2012-10-25  David S. Miller  <davem@davemloft.net>
17031
17032         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17033         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
17034         of strtoull.
17035
17036         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
17037         ifunc-impl-list.c
17038         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17039         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
17040         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
17041         file.
17042
17043 2012-10-25  Roland McGrath  <roland@hack.frob.com>
17044
17045         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17046         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
17047         __getdirentries.
17048
17049 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
17050             Jim Blandy  <jimb@codesourcery.com>
17051
17052         * scripts/cross-test-ssh.sh: New file.
17053         * manual/install.texi (Configuring and compiling): Document use of
17054         cross-test-ssh.sh.
17055         * INSTALL: Regenerated.
17056
17057 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
17058
17059         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
17060         EOPNOTSUPP.
17061
17062 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
17063
17064         * Makeconfig (run-program-prefix): Fix comment.
17065
17066 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
17067             Jim Blandy  <jimb@codesourcery.com>
17068
17069         * Makeconfig (test-wrapper): New variable,
17070         (test-wrapper-env): Likewise.
17071         [$(cross-compiling) = yes && $(test-wrapper) != ""]
17072         (run-built-tests): Define to yes.
17073         (run-program-prefix): Use $(test-wrapper).
17074         (built-program-cmd): Likewise.
17075         * Rules (make-test-out): Use $(test-wrapper-env) and
17076         $(host-built-program-cmd).
17077         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
17078         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
17079         tst-pathopt.sh.
17080         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
17081         $(test-wrapper-env) to tst-rtld-load-self.sh.
17082         ($(objpfx)order2.out): Use $(test-wrapper).
17083         ($(objpfx)tst-initorder.out): Likewise.
17084         ($(objpfx)tst-initorder2.out): Likewise.
17085         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
17086         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
17087         (test_wrapper_env): New variable.  Use it to run ld.so.
17088         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
17089         Use it to run ld.so.
17090         (test_wrapper_env): Likewise.
17091         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
17092         $(test-wrapper) to run-iconv-test.sh.
17093         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
17094         (ICONV): Use $test_wrapper.
17095         * posix/Makefile ($(objpfx)globtest.out): Pass
17096         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
17097         globtest.sh, not $(run-program-prefix).
17098         * posix/globtest.sh (run_via_rtld_prefix): New variable.
17099         (test_wrapper): Likewise.
17100         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
17101         set together with run_via_rtld_prefix.
17102         (run_program_prefix): Define in terms of test_wrapper and
17103         run_via_rtld_prefix.
17104
17105 2012-10-24  Roland McGrath  <roland@hack.frob.com>
17106
17107         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
17108         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
17109         Targets removed.
17110
17111         [BZ #14743]
17112         * include/time.h: Remove librt_hidden_proto (clock_gettime).
17113         Declare __clock_getres, __clock_gettime, __clock_settime,
17114         __clock_nanosleep, and __clock_getcpuclockid.
17115         * rt/clock_gettime.c: Define __clock_gettime as an alias.
17116         Remove librt_hidden_def (clock_gettime).
17117         * sysdeps/unix/clock_gettime.c: Likewise.
17118         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
17119         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
17120         * rt/clock_getres.c: Define __clock_getres as an alias.
17121         * sysdeps/posix/clock_getres.c: Likewise.
17122         * rt/clock_settime.c: Define __clock_settime as an alias.
17123         * sysdeps/unix/clock_settime.c: Likewise.
17124         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
17125         * sysdeps/unix/clock_nanosleep.c: Likewise.
17126         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
17127         * rt/clock-compat.c: New file.
17128         * rt/Makefile (librt-routines): Add clock-compat and move
17129         $(clock-routines) to ...
17130         (routines): ... here, new variable.
17131         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
17132         Don't add get_clockfreq here.
17133         * rt/Versions (libc: GLIBC_2.17): New version set.
17134         Add clock_* symbols here.
17135         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
17136         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
17137         (GLIBC_2.17): Add clock_* symbols.
17138         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
17139         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
17140         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
17141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17142         Likewise.
17143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17144         Likewise.
17145         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
17146         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
17147         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
17148         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
17149         * NEWS: Mention the move.
17150
17151         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
17152         Use __open, __read, __close rather than their public counterparts.
17153         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17154         (__get_clockfreq_via_cpuinfo): Likewise.
17155         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
17156         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
17157
17158         * config.h.in (HAVE_IFUNC): New #undef.
17159         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
17160         was successful.
17161         * configure: Regenerated.
17162
17163 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
17164
17165         * configure.in: Move READELF check to start of file.
17166         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
17167         libc_cv_asm_gnu_indirect_function in the process.
17168         * configure: Regenerated.
17169
17170 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
17171
17172         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
17173         send the output to /dev/null.
17174         (libc_cv_cc_with_libunwind): Likewise.
17175         (libc_cv_as_noexecstack): Likewise.
17176         * configure: Regenerate.
17177
17178 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
17179
17180         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
17181
17182         * posix/globtest.sh (TMPDIR): Do not set.
17183         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
17184         (testout): Likewise.
17185
17186 2012-10-24  Andreas Jaeger  <aj@suse.de>
17187
17188         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
17189         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
17190         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
17191         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
17192         posix_fadvise64, posix_fallocate64.
17193
17194         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
17195         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
17196         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
17197         Likewise.
17198         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
17199         Likewise.
17200         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
17201
17202         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
17203         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
17204         <bits/fcntl-linux.h>.
17205         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
17206
17207         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
17208         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
17209         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
17210         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
17211         [__WORDSIZE != 64]: Likewise.
17212
17213 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
17214
17215         * Makeconfig (run-built-tests): New variable.
17216         * Rules [$(cross-compiling) = yes]: Change condition to
17217         [$(run-built-tests) = no].
17218         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
17219         to [$(run-built-tests) = yes].
17220         * elf/Makefile [$(cross-compiling) = no]: Likewise
17221         * grp/Makefile [$(cross-compiling) = no]: Likewise.
17222         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
17223         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
17224         * intl/Makefile [$(cross-compiling) = no]: Likewise.
17225         * io/Makefile [$(cross-compiling) = no]: Likewise.
17226         * libio/Makefile [$(cross-compiling) = no]: Likewise.
17227         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
17228         * misc/Makefile [$(cross-compiling) = no]: Likewise.
17229         * posix/Makefile [$(cross-compiling) = no]: Likewise.
17230         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
17231         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
17232         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
17233         * string/Makefile [$(cross-compiling) = no]: Likewise.
17234
17235         * posix/Makefile ($(objpfx)globtest.out): Pass
17236         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
17237         $(rtld-installed-name).
17238         * posix/globtest.sh (elf_objpfx): Remove variable.
17239         (rtld_installed_name): Likewise.
17240         (library_path): Likewise.
17241         (run_program_prefix): New variable.  Use for running globtest
17242         binary.
17243
17244 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
17245             Joseph Myers  <joseph@codesourcery.com>
17246
17247         * Makeconfig (host-built-program-cmd): New variable.
17248         * elf/Makefile (tst-stackguard1-ARGS): Use
17249         $(host-built-program-cmd).
17250         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
17251         (tst-spawn-ARGS): Likewise.
17252         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
17253
17254 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
17255             Jim Blandy  <jimb@codesourcery.com>
17256
17257         * Makeconfig (run-via-rtld-prefix): New variable.
17258         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
17259         (built-program-cmd): Likewise.
17260
17261 2012-10-22  Andreas Jaeger  <aj@suse.de>
17262
17263         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
17264         __O_RSYNC if it exists, otherwise to O_SYNC.
17265
17266 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
17267             Joseph Myers  <joseph@codesourcery.com>
17268
17269         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
17270         /dev/null.
17271         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
17272         from /dev/null
17273         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
17274         /dev/null.
17275
17276 2012-10-22  Andreas Jaeger  <aj@suse.de>
17277
17278         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
17279         Define always.
17280         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
17281
17282         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17283         bits/fcntl-linux.h.
17284
17285         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
17286         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
17287
17288         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
17289         to __O_LARGEFILE.
17290         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
17291         to __O_LARGEFILE.
17292
17293 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
17294             Joseph Myers  <joseph@codesourcery.com>
17295
17296         * config.make.in (NM): New variable.
17297
17298 2012-10-21  Andreas Jaeger  <aj@suse.de>
17299
17300         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
17301         definitions and declarations that are provided by
17302         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
17303
17304 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
17305
17306         [BZ #14683]
17307         * elf/Makefile (tests-static): Add tst-leaks1-static.
17308         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
17309         ($(objpfx)tst-leaks1-static): New rule.
17310         ($(objpfx)tst-leaks1-static-mem): Likewise.
17311         (tst-leaks1-static-ENV): New macro.
17312         * elf/dl-open.c (dl_open_worker): Check the main application
17313         only if SHARED is defined.
17314         * elf/tst-leaks1-static.c: New file.
17315
17316 2012-10-20  Andreas Jaeger  <aj@suse.de>
17317
17318         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
17319         generic values for Linux.
17320         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
17321         and declarations that are provided by <bits/fcntl-linux.h> and
17322         include <bits/fcntl-linux.h>.
17323         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17324         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17325
17326 2012-10-20  Roland McGrath  <roland@hack.frob.com>
17327
17328         * io/fcntl.h: Move include of <bits/types.h> to the top and
17329         include it unconditionally.
17330
17331 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
17332
17333         * wcsmbs/Makefile (tests-ifunc): New variable.
17334         (tests): Add $(tests-ifunc).
17335         * wcsmbs/test-wcschr-ifunc.c: New file.
17336         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
17337         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
17338         * wcsmbs/test-wcslen-ifunc.c: Likewise.
17339         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
17340         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
17341
17342         * string/Makefile (tests-ifunc): New variable.
17343         (tests): Add $(tests-ifunc).
17344         * string/test-memccpy.c (TEST_NAME): New macro.
17345         * string/test-memchr.c (TEST_NAME): Likewise.
17346         * string/test-memcmp.c (TEST_NAME): Likewise.
17347         * string/test-memcpy.c (TEST_NAME): Likewise.
17348         * string/test-memmem.c (TEST_NAME): Likewise.
17349         * string/test-memmove.c (TEST_NAME): Likewise.
17350         * string/test-memset.c (TEST_NAME): Likewise.
17351         * string/test-rawmemchr.c (TEST_NAME): Likewise.
17352         * string/test-stpcpy.c (TEST_NAME): Likewise.
17353         * string/test-stpncpy.c (TEST_NAME): Likewise.
17354         * string/test-strcasecmp.c (TEST_NAME): Likewise.
17355         * string/test-strcasestr.c (TEST_NAME): Likewise.
17356         * string/test-strcat.c (TEST_NAME): Likewise.
17357         * string/test-strchr.c (TEST_NAME): Likewise.
17358         * string/test-strcmp.c(TEST_NAME): Likewise.
17359         * string/test-strcpy.c (TEST_NAME): Likewise.
17360         * string/test-strcspn.c (TEST_NAME): Likewise.
17361         * string/test-strlen.c (TEST_NAME): Likewise.
17362         * string/test-strncasecmp.c (TEST_NAME): Likewise.
17363         * string/test-strncmp.c (TEST_NAME): Likewise.
17364         * string/test-strncpy.c (TEST_NAME): Likewise.
17365         * string/test-strnlen.c (TEST_NAME): Likewise.
17366         * string/test-strpbrk.c (TEST_NAME): Likewise.
17367         * string/test-strrchr.c (TEST_NAME): Likewise.
17368         * string/test-strspn.c (TEST_NAME): Likewise.
17369         * string/test-strstr.c (TEST_NAME): Likewise.
17370         * string/test-bcopy-ifunc.c: New file.
17371         * string/test-bzero-ifunc.c: Likewise.
17372         * string/test-memccpy-ifunc.c: Likewise.
17373         * string/test-memchr-ifunc.c: Likewise.
17374         * string/test-memcmp-ifunc.c: Likewise.
17375         * string/test-memcpy-ifunc.c: Likewise.
17376         * string/test-memmem-ifunc.c: Likewise.
17377         * string/test-memmove-ifunc.c: Likewise.
17378         * string/test-mempcpy-ifunc.c: Likewise.
17379         * string/test-memset-ifunc.c: Likewise.
17380         * string/test-rawmemchr-ifunc.c: Likewise.
17381         * string/test-stpcpy-ifunc.c: Likewise.
17382         * string/test-stpncpy-ifunc.c: Likewise.
17383         * string/test-strcasecmp-ifunc.c: Likewise.
17384         * string/test-strcasestr-ifunc.c: Likewise.
17385         * string/test-strcat-ifunc.c: Likewise.
17386         * string/test-strchr-ifunc.c: Likewise.
17387         * string/test-strchrnul-ifunc.c: Likewise.
17388         * string/test-strcmp-ifunc.c: Likewise.
17389         * string/test-strcpy-ifunc.c: Likewise.
17390         * string/test-strcspn-ifunc.c: Likewise.
17391         * string/test-strlen-ifunc.c: Likewise.
17392         * string/test-strncasecmp-ifunc.c: Likewise.
17393         * string/test-strncat-ifunc.c: Likewise.
17394         * string/test-strncmp-ifunc.c: Likewise.
17395         * string/test-strncpy-ifunc.c: Likewise.
17396         * string/test-strnlen-ifunc.c: Likewise.
17397         * string/test-strpbrk-ifunc.c: Likewise.
17398         * string/test-strrchr-ifunc.c: Likewise.
17399         * string/test-strspn-ifunc.c: Likewise.
17400         * string/test-strstr-ifunc.c: Likewise.
17401
17402         * debug/Makefile (tests-ifunc): New variable.
17403         (tests): Add $(tests-ifunc).
17404         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
17405         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
17406         * debug/test-stpcpy_chk-ifunc.c: New file.
17407         * debug/test-strcpy_chk-ifunc.c: Likewise.
17408
17409 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
17410
17411         [BZ #13601]
17412         * elf/dl-load.c (open_verify): Retry read if the entire ELF
17413         header is not read in.
17414
17415 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
17416
17417         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
17418         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
17419         directly.  Pass built executable to script as
17420         $(built-program-cmd).
17421         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
17422         $testprogram without using LD_LIBRARY_PATH and $ldso.
17423
17424         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
17425         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
17426         $(rtld-installed-name).
17427         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
17428         (rtld_installed_name): Likewise.
17429         (library_path): Likewise.
17430         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
17431         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
17432         $(run-program-prefix) to tst-tables.sh.
17433         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
17434         it to run tst-table-from and tst-table-to.
17435         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
17436         Pass it to tst-table.sh.
17437         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
17438         $(run-program-prefix) to tst-gettext.sh.
17439         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
17440         tst-translit.sh.
17441         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
17442         tst-gettext2.sh.
17443         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
17444         to run tst-gettext.
17445         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
17446         to run tst-gettext2.
17447         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
17448         to run tst-translit.
17449         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
17450         $(run-program-prefix) to tst-mtrace.sh.
17451         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
17452         to run tst-mtrace.
17453         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
17454         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
17455         $(rtld-installed-name).
17456         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
17457         (rtld_installed_name): Likewise.
17458         (run_program_prefix): New variable.  Use it to run wordexp-test.
17459
17460         * Makeconfig (ARCH): Remove all definitions.
17461         (machine): Likewise.
17462         [ARCH]: Remove conditional code.
17463         [!objdir]: Give error.
17464         [!objdir] (objpfx): Remove.
17465         [!objdir] (common-objpfx): Likewise.
17466         [!objdir] (common-objdir): Likewise.
17467         * configure.in (config_makefile): Remove.  Hardcode Makefile in
17468         AC_CONFIG_FILES call.
17469         * configure: Regenerated.
17470
17471         [BZ #13888]
17472         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
17473         or TMPDIR.
17474         (testout): Likewise.
17475
17476         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
17477         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
17478         $(rtld-installed-name).
17479         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
17480         (rtld_installed_name): Likwise.
17481         (runit): Remove function.
17482         (run_getconf): New variable,  Use it for running getconf binary.
17483
17484 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
17485
17486         [BZ #14716]
17487         * string/test-memmem.c (check_result): New function.
17488         (do_one_test): Use it.
17489         (check1): New function.
17490         (test_main): Use it.
17491
17492 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
17493
17494         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
17495
17496 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
17497
17498         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
17499         (_G_LSEEK64): Likewise.
17500         (_G_MMAP64): Likewise.
17501         (_G_FSTAT64): Likewise.
17502         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
17503         (_G_LSEEK64): Likewise.
17504         (_G_MMAP64): Likewise.
17505         (_G_FSTAT64): Likewise.
17506         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
17507         unconditional.  Call __mmap64 directly.
17508         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
17509         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
17510         __lseek64 directly.
17511         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
17512         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
17513         __mmap64 directly.
17514         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
17515         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
17516         __lseek64 directly.
17517         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
17518         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
17519         __lseek64 directly.
17520         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
17521         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
17522         __lseek64 directly.
17523         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
17524         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
17525         __fxstat64 directly.
17526         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
17527         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
17528         unconditional.
17529         (freopen64) [!_G_OPEN64]: Remove conditional code.
17530         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
17531         unconditional.
17532         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
17533         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
17534         unconditional.
17535         (ftello64) [!_G_LSEEK64]: Remove conditional code.
17536         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
17537         unconditional.
17538         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
17539         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
17540         unconditional.
17541         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
17542         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
17543         unconditional.
17544         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
17545         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
17546         unconditional.
17547         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
17548         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
17549         unconditional.
17550         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
17551
17552 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
17553
17554         [BZ #12140]
17555         * manual/memory.texi (Malloc Tunable Parameters): Add note
17556         about free list pointers overwriting some perturb bytes.
17557         Wording suggested by Roland McGrath.
17558
17559 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
17560
17561         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
17562         (lgamma_test): Likewise.
17563         (tgamma_test): Likewise.
17564
17565 2012-10-16  Florian Weimer  <fweimer@redhat.com>
17566
17567         [BZ #14700]
17568         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
17569         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
17570
17571 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
17572
17573         * NEWS: Mention BZ #14716.
17574         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
17575         when removing AVAILABLE1_USES_J macro.
17576
17577 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
17578
17579         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
17580         (__bswap_64): __uint64_t for unsigned 64-bit int.
17581
17582 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
17583
17584         * include/string.h (memmem): Declare libc hidden alias.
17585         * string/memmem.c (memmem): Define libc hidden alias.
17586         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
17587         __read, __close instead of open, read, close.
17588
17589 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
17590
17591         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
17592         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
17593         global and hidden.
17594         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
17595         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
17596         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
17597         Likewise.
17598         (__rawmemchr_sse2): Likewise.
17599         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
17600         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
17601         (__strchr_sse2): Likewise.
17602         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
17603         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
17604         (__strcasecmp_sse2): Likewise.
17605         (__strncasecmp_sse2): Likewise.
17606         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
17607         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
17608         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
17609         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
17610         (__strrchr_sse2): Likewise.
17611         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
17612         ifunc-impl-list.c.
17613         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
17614         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
17615         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
17616         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
17617         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
17618         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
17619         * sysdeps/x86_64/multiarch/memset.S: Likewise.
17620         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
17621         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
17622         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
17623         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
17624         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
17625         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
17626         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
17627         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
17628         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
17629         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
17630         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
17631         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
17632         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
17633         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
17634         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
17635         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
17636         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
17637         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
17638         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17639         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
17640         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
17641         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
17642         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
17643
17644         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
17645         global and hidden.
17646         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
17647         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
17648         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
17649         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
17650         Likewise.
17651         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
17652         Likewise.
17653         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
17654         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
17655         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
17656         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
17657         ifunc-impl-list.c.
17658         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
17659         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
17660         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
17661         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
17662         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
17663         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
17664         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
17665         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
17666         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
17667         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
17668         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
17669         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
17670         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
17671         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
17672         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
17673         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
17674         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
17675         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
17676         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
17677         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
17678         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
17679         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
17680         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
17681         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
17682         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
17683         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
17684         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
17685         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
17686         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
17687         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
17688         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
17689         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
17690         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
17691         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
17692         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
17693         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
17694         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
17695         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
17696         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
17697         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
17698         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
17699
17700         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
17701         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
17702         * include/ifunc-impl-list.h: New file.
17703         * misc/ifunc-impl-list.c: Likewise.
17704         * misc/Makefile (routines): Add ifunc-impl-list.
17705         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
17706         * string/test-string.h: Include <ifunc-impl-list.h>.
17707         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
17708         impl_array): New variables.
17709         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
17710         are defined.
17711         (test_init): Call __libc_ifunc_impl_list to initialize
17712         func_list if TEST_IFUNC and TEST_NAME are defined.
17713
17714         * string/Makefile (strop-tests): Add bcopy and bzero.
17715         * string/test-bcopy.c: New file.
17716         * string/test-bzero.c: Likewise.
17717         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
17718         defined.
17719         * string/test-memset.c: Support bzero test if TEST_BZERO is
17720         defined.
17721         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
17722         __libc_memmove.
17723         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
17724         __libc_memset.
17725         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
17726         of memset.
17727
17728 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
17729
17730         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
17731         * configure: Regenerated.
17732
17733         * Makeconfig (+link-static-before-libc): Don't include
17734         $(link-static-libc).
17735
17736         * libio/libio.h (_IO_pos_t): Remove.
17737
17738 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
17739
17740         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
17741         McGrath.
17742
17743 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
17744
17745         * crypt/crypt-entry.c: Include fips-private.h.
17746         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
17747         * crypt/md5c-test.c (main): Tolerate disabled MD5.
17748         * sysdeps/unix/sysv/linux/fips-private.h: New file.
17749         * sysdeps/generic/fips-private.h: New file, dummy fallback.
17750
17751 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
17752
17753         * crypt/crypt-private.h: Include stdbool.h.
17754         (_ufc_setup_salt_r): Return bool.
17755         * crypt/crypt-entry.c: Include errno.h.
17756         (__crypt_r): Return NULL with EINVAL for bad salt.
17757         * crypt/crypt_util.c (bad_for_salt): New.
17758         (_ufc_setup_salt_r): Check that salt is long enough and within
17759         the specified alphabet.
17760         * crypt/badsalttest.c: New file.
17761         * crypt/Makefile (tests): Add it.
17762         ($(objpfx)badsalttest): New.
17763
17764 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
17765
17766         * NEWS: Add entry for BZ #14602.
17767
17768 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
17769
17770         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
17771         type-generic.
17772         * math/libm-test.inc: Update comment listing what functions and
17773         macros are tested.
17774         (isgreater_test): New function.
17775         (isgreaterequal_test): Likewise.
17776         (isless_test): Likewise.
17777         (islessequal_test): Likewise.
17778         (islessgreater_test): Likewise.
17779         (isunordered_test): Likewise.
17780         (main): Call the new functions.
17781
17782 2012-10-09  Roland McGrath  <roland@hack.frob.com>
17783
17784         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
17785         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
17786         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
17787         * sysdeps/i386/configure: Regenerated.
17788         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
17789         * sysdeps/mach/configure: Regenerated.
17790         * sysdeps/mach/hurd/configure: Regenerated.
17791         * sysdeps/powerpc/configure: Regenerated.
17792         * sysdeps/powerpc/powerpc32/configure: Regenerated.
17793         * sysdeps/powerpc/powerpc64/configure: Regenerated.
17794         * sysdeps/s390/s390-32/configure: Regenerated.
17795         * sysdeps/s390/s390-64/configure: Regenerated.
17796         * sysdeps/sh/configure: Regenerated.
17797         * sysdeps/sparc/configure: Regenerated.
17798         * sysdeps/unix/sysv/linux/configure: Regenerated.
17799         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
17800         * sysdeps/x86_64/configure: Regenerated.
17801
17802         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
17803         defined.  Don't check if MAP is NULL.
17804
17805 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
17806
17807         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
17808         (_G_stat64): Likewise.
17809         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
17810         (_G_stat64): Likewise.
17811         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
17812         instead of struct _G_stat64.
17813         * libio/fileops.c (mmap_remap_check): Likewise.
17814         (decide_maybe_mmap): Likewise.
17815         (_IO_new_file_seekoff): Likewise.
17816         (_IO_file_stat): Likewise.
17817         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
17818         _G_off64_t.
17819         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
17820         instead of struct _G_stat64.
17821         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
17822
17823 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
17824
17825         [BZ #14602]
17826         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
17827         Replace with ...
17828         (CHECK_EOL): New macro.
17829         (two_way_short_needle): Check beginning of haystack for EOL.  Use
17830         CHECK_EOL.
17831         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
17832         Replace with CHECK_EOL.
17833         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
17834         Replace with CHECK_EOL.
17835
17836 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
17837
17838         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
17839         type-generic.
17840         * math/libm-test.inc: Update comment listing what functions and
17841         macros are tested.
17842         (finite_test): New function.
17843         (isinf_test): Likewise.
17844         (isnan_test): Likewise.
17845         (fpclassify_test): Test subnormal input.
17846         (isfinite_test): Likewise.
17847         (isnormal_test): Likewise.
17848         (main): Call the new functions.
17849
17850 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
17851
17852         [BZ #14660]
17853         * Makerules (%.dynsym): Force C locale when running
17854         $(OBJDUMP) --dynamic-syms.
17855
17856 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
17857
17858         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
17859         <stdint.h>.
17860
17861 2012-10-06  David S. Miller  <davem@davemloft.net>
17862
17863         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
17864         upper 32-bits of the length value in %o2 since we use branch-on-register
17865         tests which consider the entire 64-bit register.
17866
17867 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
17868
17869         * string/test-strstr.c (check2): Add a test for page boundary.
17870
17871 2012-10-05  David S. Miller  <davem@davemloft.net>
17872
17873         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
17874         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
17875         file.
17876         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
17877         sysdep_routines.
17878         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
17879         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
17880         and bzero when HWCAP_SPARC_CRYPTO is present.
17881
17882 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
17883
17884         [BZ #14602]
17885         * string/test-strstr.c (check2): New function.
17886         (test_main): Call check2.
17887
17888         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
17889         and bug-strchr1.
17890         * string/bug-strcasestr1.c (do_test): Moved to ...
17891         * string/test-strcasestr.c (check1): Here.  New function.
17892         (do_one_test): Break out result checking code into ...
17893         (check_result): This.  New function.
17894         (do_one_test): Call check_result.
17895         (test_main): Call check1.
17896         * string/bug-strchr1.c (do_test): Moved to ...
17897         * string/test-strchr.c (check1): Here.  New function.
17898         (do_one_test): Break out result checking code into ...
17899         (check_result): This.  New function.
17900         (do_one_test): Call check_result.
17901         (test_main): Call check1.
17902         * string/bug-strstr1.c (main): Moved to ...
17903         * string/test-strstr.c (check1): Here.  New function.
17904         (do_one_test): Break out result checking code into ...
17905         (check_result): This.  New function.
17906         (do_one_test): Call check_result.
17907         (test_main): Call check1.
17908         * string/bug-strcasestr1.c: Removed.
17909         * string/bug-strchr1.c: Likewise.
17910         * string/bug-strstr1.c: Likewise.
17911
17912         * elf/Makefile (dl-routines): Add hwcaps.
17913         * elf/dl-support.c (_dl_important_hwcaps): Removed.
17914         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
17915         (_dl_important_hwcaps): Moved to ...
17916         * elf/dl-hwcaps.c: Here.  New file.
17917         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
17918
17919         [BZ #14557]
17920         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
17921         if IS_IN_rtld isn't defined.
17922
17923         * elf/dl-support.c (_dl_sysinfo_map): New.
17924         Include "get-dynamic-info.h" and "setup-vdso.h".
17925         (_dl_non_dynamic_init): Call setup_vdso.
17926         * elf/dynamic-link.h: Don't include <assert.h>.
17927         (elf_get_dynamic_info): Moved to ...
17928         * elf/get-dynamic-info.h: Here.  New file.
17929         * elf/dynamic-link.h: Include "get-dynamic-info.h".
17930         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
17931         * elf/setup-vdso.h: Here.  New file.
17932         * elf/rtld.c: Include "setup-vdso.h".
17933         (dl_main): Call setup_vdso.
17934
17935 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
17936
17937         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
17938         creal in comment listing functions tested.  List finite, isinf,
17939         isnan, isless, islessequal, isgreater, isgreaterequal,
17940         islessgreater, isunordered, lgamma_r and pow10 as functions and
17941         macros not tested.  Mention which functions not tested are aliases
17942         for other functions.  Fix typo.  Note that signs of NaNs are not
17943         tested.
17944
17945         * scripts/config.guess: Update from config.git.
17946         * scripts/config.sub: Likewise.
17947
17948 2012-10-04  Roland McGrath  <roland@hack.frob.com>
17949
17950         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
17951         * misc/madvise.c (madvise): Renamed to __madvise.
17952         Make madvise a weak alias.
17953         * include/sys/mman.h: Declare __madvise.
17954         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
17955         * sysdeps/unix/syscalls.list
17956         (madvise): Make __madvise the strong name, and madvise a weak alias.
17957         * sysdeps/unix/sysv/linux/syscalls.list
17958         (madvise, mmap): Remove redundant entries.
17959         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
17960         * malloc/malloc.c (mtrim): Likewise.
17961         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
17962
17963 2012-10-03  Roland McGrath  <roland@hack.frob.com>
17964
17965         * sysdeps/mach/hurd/dl-cache.c: File removed.
17966         * config.h.in (USE_LDCONFIG): New #undef.
17967         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
17968         * configure: Regenerated.
17969         * elf/Makefile (dl-routines): Add dl-cache only under
17970         [$(use-ldconfig) = yes].
17971         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
17972         cache on [USE_LDCONFIG].
17973         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
17974         [USE_LDCONFIG].
17975         * elf/rtld.c (dl_main): Likewise.
17976
17977 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
17978
17979         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
17980         _SC_LEVEL4_CACHE_LINESIZE.
17981
17982 2012-10-03  Roland McGrath  <roland@hack.frob.com>
17983
17984         * sysdeps/unix/bsd/confstr.h: File removed.
17985
17986 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
17987
17988         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
17989         sys/sdt-config.h.
17990
17991 2012-10-02  Roland McGrath  <roland@hack.frob.com>
17992
17993         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
17994         Make 'mapoff' field ElfW(Off) rather than off_t.
17995
17996 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
17997
17998         * nscd/Makefile: Remove nscd-cflags and all its users.
17999         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
18000         (CFLAGS-nonlib): Add compiler flags for nscd modules.
18001
18002         [BZ #10631]
18003         * malloc.c (malloc_printerr): Clarify error message.
18004
18005 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
18006
18007         [BZ #14648]
18008         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18009         Set bit_FMA_Usable if FMA is supported.
18010         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
18011         macro.
18012         (bit_FMA4_Usable): Updated.
18013         (index_FMA_Usable): New macro.
18014         (CPUID_FMA): Likewise
18015         (HAS_FMA): Defined with bit_FMA_Usable.
18016
18017 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18018
18019         * bits/types.h (__swblk_t): Type removed.
18020         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
18021         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
18022         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18023         (__SWBLK_T_TYPE): Likewise.
18024         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
18025         (__SWBLK_T_TYPE): Likewise.
18026         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18027         (__SWBLK_T_TYPE): Likewise.
18028         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18029         (__SWBLK_T_TYPE): Likewise.
18030
18031 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
18032             Honza Horak <hhorak@redhat.com>
18033
18034         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
18035         (xdr_mapname): Use YPMAXMAP as maxsize.
18036         (xdr_peername): Use YPMAXPEER as maxsize.
18037         (xdr_keydat): Use YPAXRECORD as maxsize.
18038         (xdr_valdat): Use YPMAXRECORD as maxsize.
18039
18040 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18041
18042         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
18043
18044         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
18045         * csu/init-first.c: ... here.
18046         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
18047         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18048         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
18049         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
18050         * sysdeps/i386/init-first.c: File removed.
18051         * sysdeps/sh/init-first.c: File removed.
18052
18053 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
18054
18055         [BZ #14645]
18056         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
18057         if x * y might underflow to zero and z is zero.
18058         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
18059         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18060         * math/libm-test.inc (min_subnorm_value): New variable.
18061         (fma_test): Add more tests.
18062         (fma_test_towardzero): Likewise.
18063         (fma_test_downward): Likewise
18064         (fma_test_upward): Likewise.
18065         (initialize): Set min_subnorm_value.
18066
18067 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
18068
18069         [BZ #14638]
18070         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
18071         0 + 0.
18072         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
18073         mode for addition resulting in exact zero.
18074         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
18075         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
18076         exact 0 + 0.
18077         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
18078         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18079         * math/libm-test.inc (fma_test): Add more tests.
18080         (fma_test_towardzero): New function.
18081         (fma_test_downward): Likewise.
18082         (fma_test_upward): Likewise.
18083         (main): Call the new functions.
18084
18085 2012-09-28  David S. Miller  <davem@davemloft.net>
18086
18087         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
18088
18089 2012-09-28  Roland McGrath  <roland@hack.frob.com>
18090
18091         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
18092         instead of SIGALRM.
18093
18094         * sysdeps/gnu/_G_config.h: Moved to ...
18095         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
18096         * sysdeps/mach/hurd/_G_config.h: Moved to ...
18097         * sysdeps/generic/_G_config.h: ... here.
18098
18099         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
18100
18101         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
18102
18103         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
18104         Conditionalize target on [libnss_test1.so-version].
18105
18106         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
18107
18108         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
18109         (elfobjdir): Move out of conditionals.
18110
18111         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
18112         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
18113         (__nss_lookup_function): Conditionalize label remove_from_tree on
18114         [!DO_STATIC_NSS || SHARED], matching its only use.
18115
18116 2012-09-28  David S. Miller  <davem@davemloft.net>
18117
18118         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
18119         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
18120         file.
18121         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18122         sysdep_routines.
18123         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18124         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
18125         when HWCAP_SPARC_CRYPTO is present.
18126
18127 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18128
18129         * io/tst-mknodat.c: Create a FIFO instead of a socket.
18130
18131 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
18132
18133         [BZ #6530]
18134         * stdio-common/vfprintf.c (process_string_arg): Revert
18135         2000-07-22 change.
18136
18137 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
18138
18139         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
18140         for testcase.
18141         * stdio-common/tst-sprintf.c: Include <locale.h>
18142         (main): Test sprintf's handling of incomplete multibyte
18143         characters.
18144
18145 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
18146
18147         * elf/dl-runtime.c (VERSYMIDX): Removed.
18148         * elf/dl-version.c (VERSYMIDX): Likewise.
18149         * elf/do-rel.h (VERSYMIDX): Likewise.
18150         (VALIDX): Likewise.
18151         * elf/dynamic-link.h (VERSYMIDX): Likewise.
18152         * elf/rtld.c (VALIDX): Likewise.
18153         (ADDRIDX): Likewise.
18154         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
18155         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
18156         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
18157         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
18158         (VALIDX): Likewise.
18159         (ADDRIDX): Likewise.
18160
18161 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18162
18163         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
18164
18165 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
18166
18167         [BZ #11438]
18168         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
18169         to global scope.
18170         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
18171         addresses are in the same scope as 192.0.2/24.
18172         * posix/gai.conf: Document new scope table defaults.
18173
18174 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18175
18176         [BZ #5298]
18177         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
18178         for ftell.  Compute offsets from write pointers instead.
18179         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18180
18181 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18182
18183         [BZ #14543]
18184         * libio/Makefile (tests): New test case tst-fseek.
18185         * libio/tst-fseek.c: New test case to verify that fseek/ftell
18186         combination works in wide mode.
18187         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
18188         state when the external buffer state changes.
18189
18190 2012-09-27  David S. Miller  <davem@davemloft.net>
18191
18192         [BZ #14376]
18193         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
18194         pass reloc->r_addend in as the 'high' argument to
18195         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
18196
18197         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18198
18199 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
18200
18201         * rt/tst-aio2.c: Include <pthread.h>.
18202         * rt/tst-aio3.c: Likewise.
18203
18204 2012-09-27  Steve Ellcey  <sellcey@mips.com>
18205
18206         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
18207
18208 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
18209
18210         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
18211         contents on [SHARED].
18212
18213 2012-09-26  Marek Polacek  <polacek@redhat.com>
18214
18215         [BZ #14530]
18216         [BZ #13741]
18217         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
18218         for C++ and GCC <4.3 as well as for non GCC compilers.
18219
18220 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
18221
18222         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18223
18224 2012-09-25  Roland McGrath  <roland@hack.frob.com>
18225
18226         * Makefile.in (all, install): Declare with .PHONY.
18227         Reported by Michael Hope <michael.hope@linaro.org>.
18228
18229 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18230
18231         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
18232         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
18233         system header.
18234         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
18235         Likewise.
18236         (sydep_routines): Add the new and the internal functions.
18237         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
18238         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
18239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
18240         (GLIBC_2.17): Add the new function.
18241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
18242         (GLIBC_2.17): Likewise.
18243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
18244         (GLIBC_2.17): Likewise.
18245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
18246         (GLIBC_2.17): Likewise.
18247         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
18248
18249 2012-09-25  Alan Modra  <amodra@gmail.com>
18250
18251         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
18252         Add release barrier before setting once_control to say
18253         initialisation is done.  Add hints on lwarx.  Use macro in
18254         place of isync.
18255         (clear_once_control): Add release barrier.
18256
18257 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
18258
18259         [BZ #13629]
18260         * math/s_clog.c (__clog): Handle more values close to |z| = 1
18261         specially.
18262         * math/s_clog10.c (__clog10): Likewise.
18263         * math/s_clog10f.c (__clog10f): Likewise.
18264         * math/s_clog10l.c (__clog10l): Likewise.
18265         * math/s_clogf.c (__clogf): Likewise.
18266         * math/s_clogl.c (__clogl): Likewise.
18267         * math/Makefile (libm-calls): Add x2y2m1.
18268         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
18269         (__x2y2m1): Likewise.
18270         (__x2y2m1l): Likewise.
18271         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
18272         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
18273         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
18274         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
18275         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
18276         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
18277         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
18278         * sysdeps/i386/fpu/libm-test-ulps: Update.
18279         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18280
18281         [BZ #14621]
18282         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
18283         int as type of variable DEPTH.
18284         (glob): Use size_t instead of int as type of variables NEWCOUNT
18285         and OLD_PATHC.
18286
18287 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18288
18289         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
18290         Add s_sincosf-sse2.
18291         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
18292         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
18293         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
18294         macros for using routine as __sincosf_ia32.
18295         Use macro for function declaration and weak_alias.
18296         * sysdeps/i386/fpu/libm-test-ulps: Update.
18297
18298         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
18299         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18300
18301         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
18302         subnormal argument.
18303         * math/s_cexpf.c (__cexpf): Likewise.
18304         * math/s_csinf.c (__csinf): Likewise.
18305         * math/s_csinhf.c (__csinhf): Likewise.
18306         * math/s_ctanf.c (__ctanf): Likewise.
18307         * math/s_ctanhf.c (__ctanhf): Likewise.
18308         * math/s_ccosh.c (__ccoshf): Likewise.
18309         * math/s_cexp.c (__cexpl): Likewise.
18310         * math/s_csin.c (__csin): Likewise.
18311         * math/s_csinh.c (__csinh): Likewise.
18312         * math/s_ctan.c (__ctan): Likewise.
18313         * math/s_ctanh.c (ctanh): Likewise.
18314         * math/s_ccoshl.c (__ccoshl): Likewise.
18315         * math/s_cexpl.c (__cexpl): Likewise.
18316         * math/s_csinl.c (__csinl): Likewise.
18317         * math/s_csinhl.c (__csinhl): Likewise.
18318         * math/s_ctanl.c (__ctanl): Likewise.
18319         * math/s_ctanhl.c (__ctanhl): Likewise.
18320
18321 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
18322
18323         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
18324         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
18325         (_IO_off_t): Define to __off_t, not _G_off_t.
18326         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
18327         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
18328         (_IO_wint_t): Define to wint_t, not _G_wint_t.
18329         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
18330         type of __dummy and __dummy2 fields.
18331         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
18332         (_G_ssize_t): Likewise.
18333         (_G_off_t): Likewise.
18334         (_G_pid_t): Likewise.
18335         (_G_uid_t): Likewise.
18336         (_G_wchar_t): Likewise.
18337         (_G_wint_t): Likewise.
18338         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
18339         (_G_ssize_t): Likewise.
18340         (_G_off_t): Likewise.
18341         (_G_pid_t): Likewise.
18342         (_G_uid_t): Likewise.
18343         (_G_wchar_t): Likewise.
18344         (_G_wint_t): Likewise.
18345         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
18346         (_G_ssize_t): Likewise.
18347         (_G_off_t): Likewise.
18348         (_G_pid_t): Likewise.
18349         (_G_uid_t): Likewise.
18350         (_G_wchar_t): Likewise.
18351         (_G_wint_t): Likewise.
18352
18353 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
18354
18355         * malloc/arena.c: Include malloc-sysdep.h.
18356         (shrink_heap): Use check_may_shrink_heap to decide if madvise
18357         is sufficient to shrink the heap or an unmap is needed.
18358         * sysdeps/generic/malloc-sysdep.h: New file.  Define
18359         new function check_may_shrink_heap.
18360         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
18361         new function check_may_shrink_heap.
18362
18363 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
18364
18365         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
18366         comments.
18367
18368 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
18369
18370         * catgets/test-gencat.sh: Add "set -e".
18371         * elf/tst-pathopt.sh: Likewise.
18372         * grp/tst_fgetgrent.sh: Likewise.
18373         * iconvdata/run-iconv-test.sh: Likewise.
18374         * intl/tst-gettext.sh: Likewise.
18375         * intl/tst-gettext2.sh: Likewise.
18376         * intl/tst-gettext4.sh: Likewise.
18377         * intl/tst-gettext6.sh: Likewise.
18378         * intl/tst-translit.sh: Likewise.
18379         * io/ftwtest-sh: Likewise.
18380         * libio/test-freopen.sh: Likewise.
18381         * malloc/tst-mtrace.sh: Likewise.
18382         * posix/globtest.sh: Likewise.
18383         * posix/tst-getconf.sh: Likewise.
18384         * posix/wordexp-tst.sh: Likewise.
18385         * stdio-common/tst-printf.sh: Likewise.
18386         * stdio-common/tst-unbputc.sh: Likewise.
18387         * stdlib/tst-fmtmsg.sh: Likewise.
18388         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
18389         * catgets/Makefile: Do not specify -e option when running
18390         testsuite shell scripts.
18391         * elf/Makefile: Likewise.
18392         * grp/Makefile: Likewise.
18393         * iconvdata/Makefile: Likewise.
18394         * intl/Makefile: Likewise.
18395         * io/Makefile: Likewise.
18396         * libio/Makefile: Likewise.
18397         * malloc/Makefile: Likewise.
18398         * posix/Makefile: Likewise.
18399         * stdio-common/Makefile: Likewise.
18400         * stdlib/Makefile: Likewise.
18401         * sysdeps/x86_64/Makefile: Likewise.
18402
18403         * io/ftwtest-sh: Add copyright header.
18404         * posix/globtest.sh: Likewise.
18405         * posix/tst-getconf.sh: Likewise.
18406         * posix/wordexp-tst.sh: Likewise.
18407         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
18408
18409 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
18410
18411         [BZ #13679]
18412         * Makeconfig (+link): Defined as $(+link-static) if
18413         $(build-shared) isn't yes.
18414         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
18415         isn't yes.
18416         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
18417
18418         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
18419
18420         [BZ #14562]
18421         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
18422         new chunk size with MALLOC_ALIGN_MASK.
18423
18424 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
18425
18426         [BZ #5044]
18427         * stdio-common/printf_fphex.c: Include <stdbool.h> and
18428         <rounding-mode.h>.
18429         (__printf_fphex): Determine rounding using get_rounding_mode and
18430         round_away.
18431         * stdio-common/tst-printf-round.c (struct hex_test): New
18432         structure.
18433         (hex_tests): New variable.
18434         (test_hex_in_one_mode): New function.
18435         (do_test): Also run tests for hex float output.
18436
18437 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
18438
18439         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
18440         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
18441         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
18442         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
18443         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
18444         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
18445         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
18446         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
18447
18448 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
18449
18450         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
18451         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
18452         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
18453         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
18454
18455 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
18456
18457         [BZ #14579]
18458         * elf/rtld.c (dl_main): Limit the check for self loading to normal
18459         mode only.
18460         * elf/tst-rtld-load-self.sh: New test.
18461         * elf/Makefile: Run it.
18462
18463 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
18464
18465         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
18466         (tst-writev-ENV): Remove.
18467         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
18468
18469 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
18470
18471         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
18472
18473 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
18474
18475         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
18476         unconditional.
18477         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
18478         Likewise.
18479         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
18480         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
18481         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
18482         Likewise.
18483
18484 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
18485
18486         [BZ #14587]
18487         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
18488         * config.make.in (have-cpp-asm-debuginfo): Removed.
18489         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
18490         * configure: Regenerated.
18491
18492 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
18493
18494         [BZ #5044]
18495         * stdio-common/printf_fp.c: Include <stdbool.h> and
18496         <rounding-mode.h>.
18497         (___printf_fp): Determine rounding using get_rounding_mode and
18498         round_away.
18499         * stdio-common/tst-printf-round.c: New file.
18500         * stdio-common/Makefile (tests): Add tst-printf-round.
18501         (link-libm): New variable.
18502         ($(objpfx)tst-printf-round): Depend in $(link-libm).
18503
18504 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
18505
18506         [BZ #14576]
18507         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
18508         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
18509         Likewise.
18510         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
18511         Likewise.
18512
18513 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
18514
18515         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
18516         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
18517         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
18518         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
18519
18520 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
18521
18522         [BZ #14518]
18523         * include/rounding-mode.h: New file.
18524         * sysdeps/generic/get-rounding-mode.h: Likewise.
18525         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
18526         * stdlib/strtod_l.c: Include <rounding-mode.h>.
18527         (MAX_VALUE): New macro.
18528         (MIN_VALUE): Likewise.
18529         (overflow_value): New function.
18530         (underflow_value): Likewise.
18531         (round_and_return): Use overflow_value and underflow_value to
18532         determine return values in overflow and underflow cases.  Use
18533         round_away to determine rounding depending on rounding mode.
18534         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
18535         determine return values in overflow and underflow cases.
18536         * stdlib/tst-strtod-round.c: Include <fenv.h>.
18537         (struct test_results): New structure.
18538         (struct test): Use struct test_results to store expected results
18539         for all rounding modes.
18540         (TEST): Include expected results for all rounding modes.
18541         (test_in_one_mode): New function.
18542         (do_test): Use test_in_one_mode to compute and check results.
18543         Check results for all rounding modes.
18544         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
18545         $(link-libm).
18546
18547 2012-12-09  Allan McRae  <allan@archlinux.org>
18548
18549         * sysdeps/i386/fpu/libm-test-ulps: Update
18550
18551 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
18552
18553         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
18554         (_G_int32_t): Likewise.
18555         (_G_uint16_t): Likewise.
18556         (_G_uint32_t): Likewise.
18557         (_G_HAVE_BOOL): Likewise.
18558         (_G_HAVE_ATEXIT): Likewise.
18559         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
18560         (_G_HAVE_IO_FILE_OPEN): Likewise.
18561         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
18562         (_G_int32_t): Likewise.
18563         (_G_uint16_t): Likewise.
18564         (_G_uint32_t): Likewise.
18565         (_G_HAVE_BOOL): Likewise.
18566         (_G_HAVE_ATEXIT): Likewise.
18567         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
18568         (_G_HAVE_IO_FILE_OPEN): Likewise.
18569         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
18570         (_G_int32_t): Likewise.
18571         (_G_uint16_t): Likewise.
18572         (_G_uint32_t): Likewise.
18573         (_G_HAVE_BOOL): Likewise.
18574         (_G_HAVE_ATEXIT): Likewise.
18575         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
18576         (_G_HAVE_IO_FILE_OPEN): Likewise.
18577
18578 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
18579
18580         * csu/libc-tls.c: Update copyright years.
18581
18582 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
18583
18584         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
18585         [!_G_USING_THUNKS]: Remove conditional code.
18586         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
18587         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
18588
18589         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
18590         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
18591         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
18592         (_G_VTABLE_LABEL_PREFIX): Likewise.
18593         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
18594         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
18595         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
18596         (_G_VTABLE_LABEL_PREFIX): Likewise.
18597         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
18598         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
18599         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
18600         (_G_VTABLE_LABEL_PREFIX): Likewise.
18601         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
18602
18603 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
18604
18605         * libio/Makefile: Include ../Makeconfig before tests.
18606         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
18607         only if $(build-shared) is yes.
18608
18609         * iconv/gconv_db.c: Update copyright years.
18610
18611 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18612
18613         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
18614         unwind info if defined PIC. Fix special cases description.
18615         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
18616
18617         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
18618         DP_HI_MASK entry.
18619         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
18620
18621 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
18622
18623         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
18624
18625         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
18626         is NULL.
18627
18628         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
18629         (LDLIBS-tst-chk4): This.
18630         (LDFLAGS-tst-chk5): Renamed to ...
18631         (LDLIBS-tst-chk5): This.
18632         (LDFLAGS-tst-chk6): Renamed to ...
18633         (LDLIBS-tst-chk6): This.
18634         (LDFLAGS-tst-lfschk4): Renamed to ...
18635         (LDLIBS-tst-lfschk4): This.
18636         (LDFLAGS-tst-lfschk5): Renamed to ...
18637         (LDLIBS-tst-lfschk5): This.
18638         (LDFLAGS-tst-lfschk6): Renamed to ...
18639         (LDLIBS-tst-lfschk6): This.
18640
18641         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
18642         on $(common-objpfx)soversions.mk.
18643
18644 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
18645
18646         [BZ #10014]
18647         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
18648         example host name.
18649
18650 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
18651
18652         * malloc/arena.c (arena_get_retry): New function that gets
18653         another arena for the caller to try its request on.
18654         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
18655         current arena cannot fulfill the request.
18656         (__libc_memalign): Likewise.
18657         (__libc_memalign): Likewise.
18658         (__libc_pvalloc): Likewise.
18659         (__libc_calloc): Likewise.
18660
18661 2012-09-05  John Tobey  <john.tobey@gmail.com>
18662
18663         [BZ #13542]
18664         * manual/arith.texi (Operations on Complex): Fix description
18665         of carg branch cut.
18666
18667 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
18668
18669         [BZ #10014]
18670         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
18671         host name.
18672
18673         [BZ #10038]
18674         * manual/memory.texi (Memory): Make order of menu items match
18675         order of sections.
18676
18677 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
18678
18679         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
18680         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
18681         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
18682
18683 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
18684
18685         * csu/libc-tls.c (static_dtv): Renamed to ...
18686         (_dl_static_dtv): This.  Make it global.
18687         (_dl_initial_dtv): Removed.
18688         (__libc_setup_tls): Updated.
18689         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
18690         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
18691         DL_INITIAL_DTV.
18692
18693 2012-09-06  Petr Machata  <pmachata@redhat.com>
18694
18695         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
18696         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
18697         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
18698         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
18699
18700 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
18701
18702         [BZ #14545]
18703         * csu/libc-tls.c (_dl_initial_dtv): New variable.
18704         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
18705         freeing dtv[-1].
18706
18707 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
18708
18709         [BZ #14544]
18710         * Makeconfig (link-static-before-libc): Replace $(+prector)
18711         with $(+prectorT).
18712         (link-static-after-libc): Replace $(+postctor) with
18713         $(+postctorT).
18714         (link-bounded): Replace $(+prector)/$(+postctor) with
18715         $(+prectorT)/$(+postctorT).
18716         (+prectorT): New macro.
18717         (+postctorT): Likewise.
18718
18719 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
18720
18721         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
18722         (round_str): Handle values above the maximum for IBM long double
18723         as inexact.
18724         * stdlib/tst-strtod-round.c (tests): Regenerated.
18725
18726 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18727
18728         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
18729         assembler flag.
18730         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
18731         zarch_nohighgprs around the zarch optimized routines.
18732         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
18733         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
18734         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
18735         for zarch.
18736
18737 2012-09-05  David S. Miller  <davem@davemloft.net>
18738
18739         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18740
18741         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
18742         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
18743         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
18744         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18745         entries.
18746
18747 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18748
18749         * malloc/arena.c: Fold copyright years.
18750         * malloc/mcheck.c, malloc/memusage.c: Likewise.
18751
18752 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18753
18754         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
18755
18756 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18757
18758         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
18759
18760 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18761
18762         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
18763         change internal state upon failure.
18764
18765 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18766
18767         * malloc/mcheck.c (mcheck_check_all): Fix typo.
18768         * malloc/memusage.c (mmap): Likewise.
18769         (mmap64, mremap): Likewise.  Adjust name in comment.
18770
18771 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
18772
18773         * libio/fileops.c: Fix typos in comments.
18774         * libio/oldfileops.c: Likewise.
18775         * libio/wfileops.c: Likewise.
18776
18777 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
18778
18779         [BZ #1349]
18780         * malloc/Makefile (tests): Add tst-malloc-usable test case.
18781         (tst-malloc-usable-ENV): Set environment for test case.
18782         * malloc/hooks.c (malloc_check_get_size): New function to get
18783         requested size.
18784         * malloc/malloc.c (musable): Use malloc_check_get_size.
18785         * malloc/tst-malloc-usable.c: New test case.
18786
18787 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18788
18789         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
18790
18791 2012-09-05  Allan McRae  <allan@archlinux.org>
18792
18793         [BZ #13966]
18794         * configure.in (CXX_SYSINCLUDES): Use compiler output to
18795         determine header location.
18796         * configure: Regenerated.
18797
18798 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18799
18800         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
18801         float format.
18802         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
18803         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
18804         format.
18805         (test): Regenerate.
18806
18807 2012-09-04  David S. Miller  <davem@davemloft.net>
18808
18809         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
18810         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
18811         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
18812
18813 2012-09-04  Florian Weimer  <fweimer@redhat.com>
18814
18815         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
18816         failures.
18817
18818         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
18819
18820 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
18821
18822         [BZ #9914]
18823         * libio/iogetdelim.c: Include <limits.h>.
18824         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
18825         + len + 1 would overflow.
18826
18827 2012-09-03  Andreas Jaeger  <aj@suse.de>
18828
18829         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18830         * sysdeps/i386/fpu/libm-test-ulps: Update.
18831
18832 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18833
18834         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
18835         Add s_sinf-sse2, s_conf-sse2.
18836
18837         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
18838         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
18839         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
18840         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
18841
18842         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
18843         for using routine as __sinf_ia32.
18844         Use macro for function declaration and weak_alias.
18845         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
18846         for using routine as __cosf_ia32.
18847         Use macro for function declaration and weak_alias.
18848
18849         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
18850         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
18851
18852         * sysdeps/x86_64/fpu/s_sinf.S: New file.
18853         * sysdeps/x86_64/fpu/s_cosf.S: New file.
18854         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18855
18856         * math/libm-test.inc (cos_test): Add more test cases.
18857         (sin_test): Likewise.
18858         (sincos_test): Likewise.
18859
18860 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18861
18862         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
18863         (IFUNC_RESOLVE): Make pointers to the specialized implementations
18864         hidden.
18865         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
18866
18867 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
18868
18869         [BZ #14538]
18870         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
18871         first element of the GOT.
18872         (elf_machine_load_address): Return the difference between
18873         the runtime address of _DYNAMIC and elf_machine_dynamic ().
18874
18875 2012-09-01  Allan McRae  <allan@archlinux.org>
18876
18877         [BZ #13412]
18878         * configure.in (AWK): Require gawk version 3.0 or later.
18879         * configure: Regenerated.
18880
18881 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
18882
18883         * sysdeps/unix/sysv/linux/kernel-features.h
18884         (__ASSUME_POSIX_CPU_TIMERS): Remove.
18885         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
18886         [__NR_clock_getres]: Make code unconditional.
18887         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
18888         (clock_getcpuclockid): Remove code left unreachable by removal of
18889         conditionals.
18890         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
18891         code unconditional.
18892         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
18893         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
18894         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
18895         Make code unconditional.
18896         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
18897         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
18898         * sysdeps/unix/sysv/linux/clock_settime.c
18899         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
18900         conditional code.
18901         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
18902         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
18903
18904 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
18905
18906         [BZ #14476]
18907         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
18908         scripts/test-installation.pl.
18909
18910         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
18911         and $ld_so_version if it is set.
18912
18913 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
18914
18915         [BZ #14516]
18916         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
18917         failure if reading from procfs failed.
18918         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
18919
18920 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
18921
18922         * sysdeps/unix/sysv/linux/kernel-features.h
18923         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
18924         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
18925         Remove conditional code.
18926         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18927         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
18928         Remove conditional code.
18929         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18930         * sysdeps/unix/sysv/linux/i386/fxstat.c
18931         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
18932         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18933         * sysdeps/unix/sysv/linux/i386/fxstatat.c
18934         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
18935         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18936         * sysdeps/unix/sysv/linux/i386/lxstat.c
18937         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
18938         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18939         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
18940         Remove conditional code.
18941         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18942         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
18943         Remove conditional code.
18944         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18945         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
18946         <kernel-features.h>.
18947         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
18948         Remove.
18949         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
18950         Remove conditional code.
18951         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18952         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
18953         Remove conditional.
18954
18955 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
18956
18957         [BZ #5400]
18958         * NEWS: Add fixed bug number.
18959
18960 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
18961
18962         [BZ #14519]
18963         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
18964         underflowing exponent in case of negative sign.
18965         * stdlib/tst-strtod-round-data: Add more tests.
18966         * stdlib/tst-strtod-round.c (tests): Regenerated.
18967
18968         [BZ #3479]
18969         * stdlib/strtod_l.c (NDIG): Remove.
18970         (HEXNDIG): Likewise.
18971         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
18972         smallest representable value.
18973         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
18974         lie within an exact representation of 1/2 ulp of the result.
18975         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
18976         unconditionally.
18977         (TENS_P9_IDX): Define unconditionally.
18978         (TENS_P9_SIZE): Likewise.
18979         (TENS_P10_IDX): Likewise.
18980         (TENS_P10_SIZE): Likewise.
18981         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
18982         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
18983         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
18984         entries for 10^2^13 and 10^2^14.
18985         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
18986         (TENS_P13_IDX): Define.
18987         (TENS_P13_SIZE): Likewise.
18988         (TENS_P14_IDX): Likewise.
18989         (TENS_P14_SIZE): Likewise.
18990         (_fpioconst_pow10): Change array size to
18991         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
18992         unconditional.
18993         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
18994         1024]: Add entries for 10^2^13 and 10^2^14.
18995         [LAST_POW10 > _LAST_POW10]: Remove #error.
18996         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
18997         (_fpioconst_pow10): Change array size to
18998         FPIOCONST_POW10_ARRAY_SIZE.
18999         * stdlib/gen-fpioconst.c: New file.
19000         * stdlib/gen-tst-strtod-round.c: Likewise.
19001         * stdlib/tst-strtod-round-data: Likewise.
19002         * stdlib/tst-strtod-round.c: Likewise.
19003         * stdlib/Makefile (tests): Add tst-strtod-round.
19004
19005         [BZ #14459]
19006         * stdlib/strtod_l.c: Include <stdint.h>.
19007         (NDEBUG): Do not define.
19008         (round_and_return): Change EXPONENT parameter to type intmax_t.
19009         Rearrange calculations to avoid internal overflow possibilities.
19010         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
19011         Rearrange calculations to avoid internal overflow possibilities.
19012         Assert that number fits inside MPNSIZE limbs.
19013         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
19014         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
19015         calculations and add assertions to avoid internal overflow
19016         possibilities.  Add casts to avoid signed/unsigned operations.
19017         * stdlib/tst-strtod-overflow.c: New file.
19018         * stdlib/Makefile (tests): Add tst-strtod-overflow.
19019
19020 2012-08-25  Marek Polacek  <polacek@redhat.com>
19021
19022         * time/time.h: Fix some typos in comments.
19023
19024 2012-08-23  Roland McGrath  <roland@hack.frob.com>
19025
19026         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
19027         * posix/tst-rfc3484-2.c: Likewise.
19028         * posix/tst-rfc3484-3.c: Likewise.
19029
19030 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
19031
19032         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
19033         (EF_ARM_ABI_FLOAT_HARD): Likewise.
19034
19035 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
19036
19037         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
19038         #include of fxstatat64.c.
19039
19040 2012-08-22  Roland McGrath  <roland@hack.frob.com>
19041
19042         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
19043         * shadow/getspent_r.c: Likewise.
19044         * shadow/getspnam.c: Likewise.
19045         * shadow/getspnam_r.c: Likewise.
19046         * gshadow/getsgent.c: Likewise.
19047         * gshadow/getsgent_r.c: Likewise.
19048         * gshadow/getsgnam.c: Likewise.
19049         * gshadow/getsgnam_r.c: Likewise.
19050         * inet/getnetbyad.c: Likewise.
19051         * inet/getnetbyad_r.c: Likewise.
19052         * inet/getnetbynm.c: Likewise.
19053         * inet/getnetbynm_r.c: Likewise.
19054         * inet/getnetent.c: Likewise.
19055         * inet/getnetent_r.c: Likewise.
19056         * inet/getproto.c: Likewise.
19057         * inet/getproto_r.c: Likewise.
19058         * inet/getprtent.c: Likewise.
19059         * inet/getprtent_r.c: Likewise.
19060         * inet/getprtname.c: Likewise.
19061         * inet/getprtname_r.c: Likewise.
19062         * inet/getrpcbyname.c: Likewise.
19063         * inet/getrpcbyname_r.c: Likewise.
19064         * inet/getrpcbynumber.c: Likewise.
19065         * inet/getrpcbynumber_r.c: Likewise.
19066         * inet/getrpcent.c: Likewise.
19067         * inet/getrpcent_r.c: Likewise.
19068         * inet/getaliasent.c: Likewise.
19069         * inet/getaliasent_r.c: Likewise.
19070         * inet/getaliasname.c: Likewise.
19071         * inet/getaliasname_r.c: Likewise.
19072         * nscd/getgrgid_r.c: Likewise.
19073         * nscd/getgrnam_r.c: Likewise.
19074         * nscd/gethstbyad_r.c: Likewise.
19075         * nscd/gethstbynm3_r.c: Likewise.
19076         * nscd/getpwnam_r.c: Likewise.
19077         * nscd/getpwuid_r.c: Likewise.
19078         * nscd/getsrvbynm_r.c: Likewise.
19079         * nscd/getsrvbypt_r.c: Likewise.
19080         * nscd/gai.c: Likewise.
19081
19082         * configure.in (build_nscd): New substituted variable, set
19083         by --disable-build-nscd and defaults to $use_nscd.
19084         * configure: Regenerated.
19085         * config.make.in (build-nscd): New substituted variable.
19086         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
19087         Change conditional to require [$(build-nscd) = yes] as well.
19088         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
19089
19090         [BZ# 13696]
19091         * configure.in (use_nscd): New substituted variable, set by
19092         --disable-nscd.  If enabled, define USE_NSCD.
19093         * configure: Regenerated.
19094         * config.h.in: Add USE_NSCD.
19095         * config.make.in (use-nscd): New substituted variable.
19096         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19097         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
19098         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
19099         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
19100         (CFLAGS-getgrnam_r.c): Likewise.
19101         (CFLAGS-initgroups.c): Likewise.
19102         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
19103         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
19104         Variables removed.
19105         * inet/getnetgrent_r.c
19106         (nscd_setnetgrent): New function, broken out of ...
19107         (setnetgrent): ... here.  Call it.
19108         (innetgr): Conditionalize nscd bits on [USE_NSCD].
19109         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
19110         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
19111         * nscd/Makefile (routines, aux): Move definitions after include of
19112         Makeconfig.  Conditionalize on [$(use-nscd) != no].
19113         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
19114         Conditionalize on [USE_NSCD].
19115         (is_nscd, nscd_init_cb): Likewise.
19116         (nss_load_library): Conditionalize init callback on [USE_NSCD].
19117         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
19118         * nss/nss_db/db-init.c: Likewise.
19119         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
19120         [USE_NSCD].
19121         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
19122         (make_request): Use it.
19123         (cache_valid_p): New function.
19124         (__check_pf): Use it.
19125         * NEWS: Add item for --disable-nscd.
19126
19127 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
19128
19129         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
19130         to support sed >= 4.2.1-20-ga9bf076.
19131         * configure: Regenerated.
19132
19133 2012-08-22  Roland McGrath  <roland@hack.frob.com>
19134
19135         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
19136         Conditionalize whole body on [IREL].
19137
19138 2012-08-22  Jeff Law <law@redhat.com>
19139
19140         [BZ #14505]
19141         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
19142         if the family is PF_UNSPEC.
19143
19144 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
19145
19146         * Makerules (lib-version): Rename from V.
19147         (install-lib-nosubdir): Change V to lib-version.
19148
19149 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
19150
19151         [BZ #14252]
19152         * powerpc32/power6/wcschr.c: New file.
19153         * powerpc32/power6/wcscpy.c: New file.
19154         * powerpc32/power6/wcsrchr.c: New file.
19155         * powerpc64/power6/wcschr.c: New file.
19156         * powerpc64/power6/wcscpy.c: New file.
19157         * powerpc64/power6/wcsrchr.c: New file.
19158
19159 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
19160
19161         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
19162         (two_way_short_needle): Use it.
19163         * string/strstr.c (AVAILABLE1_USES_J): Define.
19164         * string/strcasestr.c: Likewise.
19165
19166         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
19167         array references.
19168         * string/strcasestr.c (TOLOWER): Make side-effect safe.
19169
19170         [BZ #11607]
19171         * NEWS: Add an entry.
19172         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
19173         define their defaults.
19174         (two_way_short_needle): Detect end-of-string on-the-fly.
19175         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
19176         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
19177         * string/bug-strcasestr1.c: New test.
19178         * string/Makefile: Run it.
19179
19180 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
19181
19182         [BZ #11607]
19183         * string/str-two-way.h (two_way_short_needle): Optimize matching of
19184         the first character.
19185
19186 2012-08-21  Roland McGrath  <roland@hack.frob.com>
19187
19188         * csu/elf-init.c (__libc_csu_irel): Function removed.
19189         * csu/libc-start.c (apply_irel): New function.
19190         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
19191
19192 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
19193
19194         * sysdeps/unix/sysv/linux/kernel-features.h
19195         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
19196         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
19197         <kernel-features.h>.
19198         [__NR_fadvise64_64]: Make code unconditional.
19199         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
19200         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
19201         !__NR_fadvise64_64)]: Likewise.
19202         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
19203         !__NR_fadvise64_64))]: Likewise.
19204         [__NR_fadvise64]: Make code unconditional.
19205         [!__NR_fadvise64]: Remove conditional code.
19206         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
19207         <kernel-features.h>.
19208         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19209         unconditional.
19210         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19211         conditional code.
19212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
19213         not include <kernel-features.h>.
19214         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19215         unconditional.
19216         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19217         conditional code.
19218         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
19219         include <kernel-features.h>.
19220         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19221         unconditional.
19222         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19223         conditional code.
19224
19225 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
19226
19227         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
19228         slight instruction rearrangements per scrollpipe analysis.
19229         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
19230
19231 2012-08-20  Roland McGrath  <roland@hack.frob.com>
19232
19233         * manual/syslog.texi (syslog; vsyslog, closelog):
19234         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
19235         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
19236
19237         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
19238         DSOCAPS to match condition on defining it.
19239
19240 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
19241
19242         * sysdeps/unix/sysv/linux/kernel-features.h
19243         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
19244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
19245         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19246         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
19248         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19249         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
19251         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19252         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19253
19254         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
19255         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
19256
19257         * sysdeps/unix/sysv/linux/kernel-features.h
19258         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
19259         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
19260         unconditional.
19261         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19262         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
19263         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
19264         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19265         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
19266         Make code unconditional.
19267         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19268         (__mmap64) [!__NR_mmap2]: Likewise.
19269         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
19270         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
19271         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19272         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
19273         [__NR_mmap2]: Make code unconditional.
19274         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19275         (__mmap64) [!__NR_mmap2]: Likewise.
19276
19277 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19278
19279         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
19280
19281 2012-08-18  Andreas Jaeger  <aj@suse.de>
19282
19283         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
19284
19285 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
19286
19287         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
19288         * include/unistd.h (__have_sock_cloexec): Likewise.
19289         (__have_pipe2): Likewise.
19290         (__have_dup3): Likewise.
19291
19292 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
19293
19294         [BZ #9685]
19295         * include/unistd.h (__have_pipe2): Change define into an extern int.
19296         (__have_dup3): Likewise.
19297         * socket/have_sock_cloexec.c: Include fcntl.h.
19298         (__have_pipe2): New variable.
19299         (__have_dup3): Likewise.
19300
19301 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
19302
19303         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
19304
19305 2012-08-17  Marek Polacek  <polacek@redhat.com>
19306
19307         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
19308         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
19309
19310 2012-08-17  Roland McGrath  <roland@hack.frob.com>
19311
19312         * configure.in: Add AC_SUBST for sysheaders.
19313         * configure: Regenerated.
19314         * config.make.in (sysheaders): New substituted variable.
19315
19316         * sysdeps/unix/mkfifo.c: Moved ...
19317         * sysdeps/posix/mkfifo.c: ... here.
19318         * sysdeps/unix/mkfifoat.c: Moved ...
19319         * sysdeps/posix/mkfifoat.c: ... here.
19320
19321         * sysdeps/unix/utime.c: Moved ...
19322         * sysdeps/posix/utime.c: ... here.
19323
19324         * sysdeps/unix/time.c: Moved ...
19325         * sysdeps/posix/time.c: ... here.
19326         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
19327         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
19328
19329         * sysdeps/unix/nice.c: Moved ...
19330         * sysdeps/posix/nice.c: ... here.
19331
19332         * sysdeps/unix/alarm.c: Moved ...
19333         * sysdeps/posix/alarm.c: ... here.
19334
19335         * intl/Makefile ($(codeset_mo)): Depend on the input file.
19336
19337 2012-08-17  Jeff Law <law@redhat.com>
19338
19339         * intl/Makefile (codeset_mo): New variable.
19340         ($(codeset_mo)): New target.
19341         (tst-codeset.out): Depend on that.  Remove explicit rule.
19342         (tst-gettext3.out, tst-gettext5.out): Likewise.
19343         (LOCPATH-ENV, tst-codeset-ENV): New variables.
19344         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
19345         * intl/tst-codeset.sh: Remove.
19346         * intl/tst-gettext3.sh: Likewise.
19347         * intl/tst-gettext5.sh: Likewise.
19348
19349 2012-08-17  Roland McGrath  <roland@hack.frob.com>
19350
19351         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
19352         * sysdeps/unix/syscalls.list: ... here.
19353
19354         * sysdeps/posix/getaddrinfo.c
19355         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
19356         (gaiconf_init, gaiconf_reload): Use them.
19357         [!_STATBUF_ST_NSEC]
19358         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
19359         Define using time_t rather than struct timespec.
19360
19361         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
19362         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
19363         Macros removed.
19364         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
19365         [!NO_THREADS].
19366         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
19367         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
19368         Likewise.
19369
19370         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
19371         __libc_cleanup_push argument.
19372
19373         * bits/param.h: New file.
19374         * misc/sys/param.h: New file.
19375         * include/sys/param.h: New file.
19376         * misc/Makefile (headers): Add bits/param.h.
19377         * sysdeps/generic/sys/param.h: File removed.
19378         * sysdeps/unix/sysv/linux/bits/param.h: New file.
19379         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
19380         * sysdeps/mach/hurd/bits/param.h: New file.
19381         * sysdeps/mach/hurd/sys/param.h: File removed.
19382
19383         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
19384         last change.
19385
19386         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
19387         [_IO_MTSAFE_IO].
19388         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
19389         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
19390         New macros.
19391
19392         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
19393         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
19394         rather than -D_IO_MTSAFE_IO conditionally.
19395         * stdio-common/Makefile (CPPFLAGS): Likewise.
19396         * wcsmbs/Makefile (CPPFLAGS): Likewise.
19397         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
19398         Use $(libio-mtsafe).
19399         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
19400         of -D_IO_MTSAFE_IO.
19401         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
19402         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
19403         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
19404         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
19405         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
19406         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
19407         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
19408         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
19409         (CFLAGS-fread_u_chk.c): Likewise.
19410         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
19411         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
19412         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
19413         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
19414         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
19415         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
19416         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
19417         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
19418         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
19419
19420         * libio/Makefile: Test [$(libc-reentrant) = yes]
19421         instead of [$(filter %REENTRANT, $(defines)) nonempty].
19422
19423         * Makeconfig
19424         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
19425         * sysdeps/pthread/configure: File removed.
19426         * sysdeps/pthread/Makeconfig: New file.
19427         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
19428         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
19429
19430 2012-08-16  Gary Benson  <gbenson@redhat.com>
19431
19432         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
19433         unmapping the first object in a namespace.
19434
19435 2012-08-16  Roland McGrath  <roland@hack.frob.com>
19436
19437         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
19438         (__internal_setnetgrent): ... this.  Add internal_function to
19439         definition.  Add libc_hidden_def.
19440         (setnetgrent): Update caller.
19441         (internal_endnetgrent): Renamed to ...
19442         (__internal_endnetgrent): ... this.  Add internal_function to
19443         definition.  Add libc_hidden_def.
19444         (endnetgrent): Update caller.
19445         (internal_getnetgrent_r): Renamed to ...
19446         (__internal_getnetgrent_r): ... this.  Add internal_function to
19447         definition.  Add libc_hidden_def.
19448         (__getnetgrent_r): Update caller.
19449         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
19450
19451 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
19452
19453         * stdlib/longlong.h: Update from GCC.
19454
19455 2012-08-16  Roland McGrath  <roland@hack.frob.com>
19456
19457         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
19458         on _QL, which is set by umul_ppmm but never used.
19459         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
19460         variables, which are set by GMP macros but never used.
19461         * stdio-common/_itowa.c (_itowa): Likewise.
19462         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
19463         * stdlib/mod_1.c (mpn_mod_1): Likewise.
19464
19465 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
19466
19467         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
19468         struct La_sh_regs is not constant.
19469         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
19470         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
19471         and struct La_sparc64_regs are not constant.
19472
19473 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
19474
19475         * sysdeps/unix/sysv/linux/kernel-features.h
19476         (__ASSUME_POSIX_TIMERS): Remove.
19477         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19478         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19479         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
19480         Make code unconditional.
19481         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19482         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
19483         Make code unconditional.
19484         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19485         * sysdeps/unix/sysv/linux/clock_nanosleep.c
19486         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
19487         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19488         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
19489         Make code unconditional.
19490         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19491         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
19492         (__libc_missing_posix_timers): Remove.
19493
19494 2012-08-15  Roland McGrath  <roland@hack.frob.com>
19495
19496         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
19497         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
19498
19499         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
19500
19501         * elf/dl-sym.c: Include <stdlib.h>.
19502
19503         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
19504         constants, which avoids warnings in 32-bit builds.
19505
19506         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
19507         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
19508
19509         * misc/lseek.c: File moved to ...
19510         * io/lseek.c: ... here.
19511
19512         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
19513
19514         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
19515         shifting LEN more than 31 bits at once.
19516
19517 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19518
19519         [BZ #14195]
19520         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
19521         segmentation fault for a case of two empty input strings.
19522         * string/test-strncasecmp.c (check1): Renamed to...
19523         (bz12205): ...this.
19524         (bz14195): Add new testcase for two empty input strings and N > 0.
19525         (test_main): Call new testcase, adapt for renamed function.
19526
19527 2012-08-15  Andreas Jaeger  <aj@suse.de>
19528
19529         [BZ #14090]
19530         * crypt/md5test2.c: New test, based on test supplied by Serge
19531         Belyshev <belyshev@depni.sinp.msu.ru>.
19532         * crypt/Makefile (xtests): Add md5test-giant..
19533         * crypt/Makefile ($(objpfx)md5test-giant): Add.
19534
19535 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19536
19537         [BZ #14090]
19538         * crypt/md5.c (md5_process_block): Don't assume the buffer
19539         length is less than 2**32.
19540         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
19541         length is less than 2**64.
19542
19543 2012-08-15  Roland McGrath  <roland@hack.frob.com>
19544
19545         * string/str-two-way.h: Include <sys/param.h>.
19546         (MAX): Macro removed.
19547
19548         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
19549         Move #define and #undef of memmove to just before and after
19550         including <string.h>.
19551
19552         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
19553         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
19554         and after including <string.h>.  Move declarations of
19555         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
19556         to before #include "string/memmove.c".
19557
19558         * include/dirent.h: Declare __getdirentries.
19559
19560         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
19561         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
19562
19563 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
19564
19565         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
19566         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
19567         * sysdeps/i386/configure: Regenerated.
19568         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
19569         STABS_CURRENT_FILE, and STABS_FUN.
19570         (END): Remove call to STABS_FUN_END.
19571         (STABS_CURRENT_FILE1): Delete.
19572         (STABS_CURRENT_FILE): Likewise.
19573         (STABS_FUN): Likewise.
19574         (STABS_FUN_END): Likewise.
19575         (STABS_FUN2): Likewise.
19576         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
19577         * sysdeps/x86_64/configure: Regenerated.
19578
19579 2012-08-14  Roland McGrath  <roland@hack.frob.com>
19580
19581         * elf/dl-open.c: Include <atomic.h>.
19582         * elf/dl-lookup.c: Likewise.
19583
19584 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
19585
19586         * sysdeps/unix/sysv/linux/kernel-features.h
19587         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
19588         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
19589         unconditionally.
19590         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
19591         unconditionally.
19592         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
19593         condition on __ASSUME_CLONE_THREAD_FLAGS.
19594
19595 2012-08-14  Andreas Jaeger  <aj@suse.de>
19596
19597         * sysdeps/i386/fpu/libm-test-ulps: Update.
19598
19599 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
19600
19601         * include/atomic.h (atomic_exchange_and_add): Split into ...
19602         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
19603         New atomic macros.
19604
19605 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
19606
19607         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19608
19609 2012-08-13  Jeff Law <law@redhat.com>
19610
19611         * manual/stdio.texi (snprintf): Clarify handling of the trailing
19612         null byte in the output string.
19613
19614 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
19615
19616         * sysdeps/unix/sysv/linux/kernel-features.h
19617         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
19618         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
19619         (__ASSUME_ARG_MAX_STACK_BASED): Define.
19620         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
19621         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
19622         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
19623         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
19624
19625 2012-08-09  Jeff Law <law@redhat.com>
19626
19627         [BZ #13939]
19628         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
19629         When avoid_arena is set, don't retry in the that arena.  Pick the
19630         next one, whatever it might be.
19631         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
19632         (arena_lock): Pass in new parameter to arena_get2.
19633         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
19634         arena_get2.
19635         (__libc_malloc): Unify retrying after main arena failure with
19636         __libc_memalign version.
19637         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
19638
19639 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
19640
19641         [BZ #14166]
19642         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
19643         to __redirect_strstr.
19644         (__strstr_sse42): Use typeof __redirect_strstr.
19645         (__strstr_ia32): Likewise.
19646         (__libc_strstr): New prototype.
19647         (strstr): Renamed to ...
19648         (__libc_strstr): This.
19649         (strstr): New strong alias of __libc_strstr.
19650         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
19651         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
19652         __redirect_time.
19653         Include <time.h>.
19654         (__libc_time): New prototype.
19655         (time_ifunc): Replace time with __libc_time.
19656         (time): New strong alias and hidden definition of __libc_time.
19657         (__GI_time): Remove strong alias.
19658         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
19659         Include <stddef.h>.
19660         (memmove): Redefined to __redirect_memmove.
19661         (__memmove_sse2): Use typeof __redirect_memmove.
19662         (__memmove_ssse3): Likewise.
19663         (__memmove_ssse3_back): Likewise.
19664         (__libc_memmove): New prototype.
19665         (memmove): Renamed to ...
19666         (__libc_memmove): This.
19667         (memmove): New strong alias of __libc_memmove.
19668
19669 2012-08-08  Mark Salter  <msalter@redhat.com>
19670
19671         * elf/elf.h
19672         (R_MN10300_TLS_GD): Define.
19673         (R_MN10300_TLS_LD): Likewise.
19674         (R_MN10300_TLS_LDO): Likewise.
19675         (R_MN10300_TLS_GOTIE): Likewise.
19676         (R_MN10300_TLS_IE): Likewise.
19677         (R_MN10300_TLS_LE): Likewise.
19678         (R_MN10300_TLS_DTPMOD): Likewise.
19679         (R_MN10300_TLS_DTPOFF): Likewise.
19680         (R_MN10300_TLS_TPOFF): Likewise.
19681         (R_MN10300_SYM_DIFF): Likewise.
19682         (R_MN10300_ALIGN): Likewise.
19683         (R_MN10300_NUM): Update.
19684
19685 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
19686
19687         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
19688         Remove.
19689
19690 2012-08-08  Roland McGrath  <roland@hack.frob.com>
19691
19692         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
19693
19694         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
19695         sysdeps/unix -> sysdeps/posix move.
19696         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
19697
19698 2012-08-07      Allan McRae     <allan@archlinux.org>
19699
19700         [BZ #14303]
19701         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
19702         (SUNOS_CPP): Likewise.
19703         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
19704         not found.
19705         (open_input): Call CPP using execvp.
19706
19707 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
19708
19709         * sysdeps/unix/sysv/linux/kernel-features.h
19710         (__ASSUME_PROT_GROWSUPDOWN): Remove.
19711         (__ASSUME_NO_CLONE_DETACHED): Likewise.
19712         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
19713         (__ASSUME_WAITID_SYSCALL): Likewise.
19714         * sysdeps/unix/sysv/linux/dl-execstack.c
19715         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
19716         code unconditional.
19717         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
19718         conditional code.
19719         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
19720         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
19721         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
19722         code.
19723         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
19724         unconditional.
19725         [__ASSUME_WAITID_SYSCALL]: Likewise.
19726         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
19727
19728 2012-08-07  Roland McGrath  <roland@hack.frob.com>
19729
19730         * sysdeps/unix/closedir.c: Renamed to ...
19731         * sysdeps/posix/closedir.c: ... here.
19732         * sysdeps/unix/dirfd.c: Renamed to ...
19733         * sysdeps/posix/dirfd.c: ... here.
19734         * sysdeps/unix/dirstream.h: Renamed to ...
19735         * sysdeps/posix/dirstream.h: ... here.
19736         * sysdeps/unix/fdopendir.c: Renamed to ...
19737         * sysdeps/posix/fdopendir.c: ... here.
19738         * sysdeps/unix/opendir.c: Renamed to ...
19739         * sysdeps/posix/opendir.c: ... here.
19740         * sysdeps/unix/readdir.c: Renamed to ...
19741         * sysdeps/posix/readdir.c: ... here.
19742         * sysdeps/unix/readdir_r.c: Renamed to ...
19743         * sysdeps/posix/readdir_r.c: ... here.
19744         * sysdeps/unix/rewinddir.c: Renamed to ...
19745         * sysdeps/posix/rewinddir.c: ... here.
19746         * sysdeps/unix/seekdir.c: Renamed to ...
19747         * sysdeps/posix/seekdir.c: ... here.
19748         * sysdeps/unix/telldir.c: Renamed to ...
19749         * sysdeps/posix/telldir.c: ... here.
19750         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
19751         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
19752         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
19753         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
19754
19755         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
19756         * bits/fcntl.h: ... here.
19757
19758         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
19759         not 0.
19760         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
19761         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
19762         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
19763         (struct flock): Move l_start, l_len to the beginning.
19764         Use __pid_t for l_pid.
19765         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
19766         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
19767         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
19768         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
19769         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
19770         [__USE_LARGEFILE64] (struct flock64): New type.
19771         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
19772
19773         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
19774         * bits/dirent.h: ... here.
19775
19776         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
19777         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
19778
19779 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
19780
19781         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
19782         Change from 2.6.0 to 2.6.16.
19783         * sysdeps/unix/sysv/linux/configure: Regenerated.
19784         * sysdeps/unix/sysv/linux/kernel-features.h
19785         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
19786         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
19787         version.
19788         (__ASSUME_UTIMES): Likewise.
19789         (__ASSUME_CLONE_STOPPED): Remove.
19790         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
19791         architectures, not kernel version.
19792         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
19793         (__ASSUME_NO_CLONE_DETACHED): Likewise.
19794         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
19795         (__ASSUME_WAITID_SYSCALL): Likewise.
19796         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
19797         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
19798         * README: State 2.6.16 as minimum Linux kernel version.  Do not
19799         refer to older versions.
19800
19801 2012-08-06  Roland McGrath  <roland@hack.frob.com>
19802
19803         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
19804         Define alphasort64 as an alias.
19805         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
19806         Define versionsort64 as an alias.
19807         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
19808         Define scandir64 as an alias.
19809         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
19810         Define scandirat64 as an alias.
19811         * dirent/alphasort64.c (alphasort64):
19812         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
19813         * dirent/versionsort64.c: Likewise.
19814         * dirent/scandir64.c: Likewise.
19815         * dirent/scandirat64.c: Likewise.
19816         * sysdeps/wordsize-64/alphasort.c: File removed.
19817         * sysdeps/wordsize-64/alphasort64.c: File removed.
19818         * sysdeps/wordsize-64/scandir.c: File removed.
19819         * sysdeps/wordsize-64/scandir64.c: File removed.
19820         * sysdeps/wordsize-64/scandirat.c: File removed.
19821         * sysdeps/wordsize-64/scandirat64.c: File removed.
19822         * sysdeps/wordsize-64/versionsort.c: File removed.
19823         * sysdeps/wordsize-64/versionsort64.c: File removed.
19824         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
19825         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
19826         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
19827         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
19828         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
19829         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
19830         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
19831         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
19832
19833         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
19834         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
19835         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
19836         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19837         [defined __arch64__ || defined __sparcv9]
19838         (__INO_T_MATCHES_INO64_T): New macro.
19839         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
19840         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
19841         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
19842         * sysdeps/unix/sysv/linux/bits/dirent.h
19843         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
19844         (_DIRENT_MATCHES_DIRENT64): New macro.
19845
19846         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
19847         Define lockf64 as an alias.
19848         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
19849         Define fseeko64 as an alias.
19850         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
19851         Define ftello64 as an alias.
19852         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
19853         Define _IO_fgetpos64 and fgetpos64 as aliases.
19854         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
19855         Define _IO_fsetpos64 and fsetpos64 as aliases.
19856         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
19857         Conditionalize body on this.
19858         * libio/fseeko64.c: Likewise.
19859         * libio/ftello64.c: Likewise.
19860         * libio/iofgetpos64.c: Likewise.
19861         * libio/iofsetpos64.c: Likewise.
19862         * sysdeps/wordsize-64/lockf.c: File removed.
19863         * sysdeps/wordsize-64/lockf64.c: File removed.
19864         * sysdeps/wordsize-64/fseeko.c: File removed.
19865         * sysdeps/wordsize-64/fseeko64.c: File removed.
19866         * sysdeps/wordsize-64/ftello.c: File removed.
19867         * sysdeps/wordsize-64/ftello64.c: File removed.
19868         * sysdeps/wordsize-64/iofgetpos.c: File removed.
19869         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
19870         * sysdeps/wordsize-64/iofsetpos.c: File removed.
19871         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
19872         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
19873         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
19874         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
19875         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
19876         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
19877         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
19878         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
19879         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
19880         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
19881         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
19882
19883         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
19884         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
19885         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
19886         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19887         [defined __arch64__ || defined __sparcv9]
19888         (__OFF_T_MATCHES_OFF64_T): New macro.
19889         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
19890         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
19891         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19892         (__OFF_T_MATCHES_OFF64_T): New macro.
19893
19894 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
19895
19896         * stdlib/secure-getenv.c (__secure_getenv): Replace
19897         GLIBC_2_16 with GLIBC_2_17.
19898
19899 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
19900
19901         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
19902         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
19903
19904 2012-08-03  David S. Miller  <davem@davemloft.net>
19905
19906         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19907
19908 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
19909
19910         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
19911         Remove.
19912         (__ASSUME_CORRECT_SI_PID): Likewise.
19913         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
19914         (__ASSUME_TMPFS_NAME): Likewise.
19915         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
19916         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
19917         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
19918         (HAVE_AUX_SECURE): Make definition unconditional.
19919         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
19920         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
19921
19922 2012-08-03  Roland McGrath  <roland@hack.frob.com>
19923
19924         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
19925         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
19926         * sysdeps/mach/hurd/eloop-threshold.h: New file.
19927         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
19928         __eloop_threshold instead of SYMLOOP_MAX.
19929
19930         * sysdeps/generic/eloop-threshold.h: New file.
19931         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
19932         of MAXSYMLINKS.
19933         * elf/chroot_canon.c (chroot_canon): Likewise.
19934
19935 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
19936
19937         [BZ #13717]
19938         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
19939         Change to 2.6.0 everywhere.
19940         * sysdeps/unix/sysv/linux/configure: Regenerated.
19941         * sysdeps/unix/sysv/linux/kernel-features.h
19942         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
19943         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
19944         kernel versions.
19945         (__ASSUME_POSIX_TIMERS): Define unconditionally.
19946         (__ASSUME_FUTEX_REQUEUE): Remove.
19947         (__ASSUME_STATFS64): Define unconditionally.
19948         (__ASSUME_AT_SECURE): Likewise.
19949         (__ASSUME_CORRECT_SI_PID): Likewise.
19950         (__ASSUME_TGKILL): Define without depending on kernel version for
19951         i386.
19952         (__ASSUME_UTIMES): Likewise.
19953         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
19954         kernel version.
19955         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
19956         (__ASSUME_TMPFS_NAME): Likewise.
19957         * README: Update reference to Linux kernel versions.
19958
19959 2012-08-02  Marek Polacek  <polacek@redhat.com>
19960
19961         [BZ# 14150]
19962         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
19963         libc_cv_asm_type_prefix with %.
19964         * configure: Regenerated.
19965         * include/libc-symbols.h: Remove comment about
19966         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
19967         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
19968         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
19969         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
19970         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
19971         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
19972         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
19973         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
19974         * elf/tst-unique2mod1.c: Likewise.
19975         * elf/tst-unique1mod2.c: Likewise.
19976         * elf/tst-unique1mod1.c: Likewise.
19977         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
19978         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
19979         Replace ASM_TYPE_DIRECTIVE with .type.
19980         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19981         * sysdeps/i386/sysdep.h: Likewise.
19982         * sysdeps/x86_64/sysdep.h: Likewise.
19983         * sysdeps/sh/sysdep.h: Likewise.
19984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19985         Do not define ASM_TYPE_DIRECTIVE.
19986         * sysdeps/powerpc/sysdep.h: Likewise.
19987         * sysdeps/powerpc/powerpc32/sysdep.h:
19988         Replace ASM_TYPE_DIRECTIVE with .type.
19989         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
19990         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
19991         * sysdeps/i386/fpu/e_powf.S: Likewise.
19992         * sysdeps/i386/fpu/e_expl.S: Likewise.
19993         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
19994         * sysdeps/i386/fpu/e_acosh.S: Likewise.
19995         * sysdeps/i386/fpu/e_pow.S: Likewise.
19996         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
19997         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
19998         * sysdeps/i386/fpu/s_expm1.S: Likewise.
19999         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
20000         * sysdeps/i386/fpu/e_log2.S: Likewise.
20001         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20002         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20003         * sysdeps/i386/fpu/e_powl.S: Likewise.
20004         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20005         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
20006         * sysdeps/i386/fpu/e_logl.S: Likewise.
20007         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
20008         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
20009         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
20010         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20011         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20012         * sysdeps/i386/fpu/e_log.S: Likewise.
20013         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20014         * sysdeps/i386/fpu/e_logf.S: Likewise.
20015         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20016         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20017         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20018         * sysdeps/i386/fpu/e_log10.S: Likewise.
20019         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20020         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20021         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20022         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20023         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20024         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
20025         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
20026         * sysdeps/i386/i686/strtok.S: Likewise.
20027         * sysdeps/i386/i386-mcount.S: Likewise.
20028         * sysdeps/i386/strtok.S: Likewise.
20029         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
20030         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20031         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20032         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20033         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
20034         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20035         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
20036         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
20037         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20038         * sysdeps/x86_64/_mcount.S: Likewise.
20039         * sysdeps/x86_64/strtok.S: Likewise.
20040         * sysdeps/sh/_mcount.S: Likewise.
20041
20042 2012-08-01  Roland McGrath  <roland@hack.frob.com>
20043
20044         * libio/iofopen.c: Include <fcntl.h>.
20045         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
20046         (_IO_fopen64, fopen64): Define as aliases.
20047         * libio/iofopen64.c: Include <fcntl.h>.
20048         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
20049         Conditionalize body on this.
20050         * sysdeps/wordsize-64/iofopen.c: File removed.
20051         * sysdeps/wordsize-64/iofopen64.c: File removed.
20052
20053 2012-08-01  Marek Polacek  <polacek@redhat.com>
20054
20055         * libc/Makeconfig: Use elf in place of binfmt-subdir.
20056         Use dlfcn directly instead of a variable.
20057         (binfmt-subdir): Do not define.
20058         (dlfcn): Likewise.
20059
20060 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
20061
20062         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
20063         Remove all definitions.
20064         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
20065         <kernel-features.h>.
20066         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
20067         (miss_F_GETOWN_EX): Remove all definitions.
20068         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
20069         macro definition.
20070         [!__ASSUME_FCNTL64]: Remove conditional code.
20071         [__ASSUME_FCNTL64]: Make code unconditional.
20072         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
20073         <kernel-features.h>.
20074         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
20075         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
20076         (lockf64) [__NR_fcntl64]: Make code unconditional.
20077         (lockf64) [__ASSUME_FCNTL64]: Likewise.
20078
20079         * sysdeps/unix/sysv/linux/kernel-features.h
20080         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
20081         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
20082         Make code unconditional.
20083         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20084         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
20086         [__NR_vfork]: Make code unconditional.
20087         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20088         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
20090         [__NR_vfork]: Make code unconditional.
20091         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20092         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20093
20094 2012-08-01  Roland McGrath  <roland@hack.frob.com>
20095
20096         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
20097         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
20098
20099         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20100         Define mkstemp64 as an alias.
20101         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20102         Define mkstemps64 as an alias.
20103         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20104         Define mkostemp64 as an alias.
20105         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20106         Define mkostemps64 as an alias.
20107         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
20108         Conditionalize body on this.
20109         * misc/mkostemp64.c: Likewise.
20110         * misc/mkostemps64.c: Likewise.
20111         * misc/mkstemps64.c: Likewise.
20112         * sysdeps/wordsize-64/mkstemp64.c: File removed.
20113         * sysdeps/wordsize-64/mkostemp64.c: File removed.
20114         * sysdeps/wordsize-64/mkostemp.c: File removed.
20115         * sysdeps/wordsize-64/mkstemp.c: File removed.
20116         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
20117         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
20118         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
20119         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
20120
20121         [BZ #14138]
20122         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
20123         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
20124         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
20125         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
20126
20127         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
20128         compat_symbol macros from <shlib-compat.h> rather than the underlying
20129         default_symbol_version and symbol_version macros, so that DEFAULT
20130         lines in shlib-versions are respected.
20131         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
20132
20133 2012-08-01  Florian Weimer  <fweimer@redhat.com>
20134
20135         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
20136         Declare with warn_unused_result.
20137         (setgid, setregid, setegid, setresgid): Likewise.
20138         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
20139         Likewise.
20140         * WUR-REPORT: Remove set*id functions.
20141
20142 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
20143
20144         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
20145
20146 2012-07-31  Roland McGrath  <roland@hack.frob.com>
20147
20148         [BZ #10191]
20149         * include/sys/socket.h (__libc_accept, __libc_accept4):
20150         Add attribute_hidden.
20151         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
20152
20153         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
20154         use of PTR_MANGLE.
20155         * inet/getnetgrent_r.c (setup): Likewise.
20156
20157         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
20158
20159 2012-07-31  David S. Miller  <davem@davemloft.net>
20160
20161         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20162
20163 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
20164
20165         [BZ #13629]
20166         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
20167         value between 1.0 and 2.0 and smaller part has absolute value less
20168         than 1.0.
20169         * math/s_clog10.c (__clog10): Likewise.
20170         * math/s_clog10f.c (__clog10f): Likewise.
20171         * math/s_clog10l.c (__clog10l): Likewise.
20172         * math/s_clogf.c (__clogf): Likewise.
20173         * math/s_clogl.c (__clogl): Likewise.
20174         * math/libm-test.inc (clog_test): Add more tests.
20175         (clog10_test): Likewise.
20176         * sysdeps/i386/fpu/libm-test-ulps: Update.
20177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20178
20179 2012-07-31  Florian Weimer  <fweimer@redhat.com>
20180
20181         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
20182         Exit with zero in case no suitable GID is found, and write a
20183         message to standard error.
20184
20185 2012-07-30  Roland McGrath  <roland@hack.frob.com>
20186
20187         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
20188         rather than to 1.
20189         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
20190         (MAXPATHLEN): Removed.
20191         (NOGROUP, NODEV): New macros.
20192         (setbit, clrbit, isset, isclr): New macros.
20193         (howmany, roundup, powerof2): New macros.
20194         (DEV_BSIZE): New macro.
20195
20196         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
20197         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
20198
20199         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
20200         definition on [!__NO_LONG_DOUBLE_MATH].
20201
20202         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
20203         PTR_MANGLE and PTR_DEMANGLE.
20204
20205         * socket/accept4.c (accept4): Rename to __libc_accept4.
20206         Define accept4 as a weak alias.
20207
20208         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
20209         on [_DIRENT_HAVE_D_TYPE].
20210         * io/ftw.c (ftw_dir): Likewise.
20211
20212         * io/xmknod.c (__xmknod): Don't check PATH for being null.
20213
20214         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
20215
20216         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
20217         Use the BSD numbers rather than the arbitrary ones we had.
20218         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
20219         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
20220         (SIGXCPU, SIGXFSZ): New macros.
20221         (_NSIG): Now 32.
20222
20223         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
20224         initializer on [_LIBC_REENTRANT].
20225
20226         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
20227         definitions inside [_POSIX_MAPPED_FILES].
20228
20229         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
20230
20231         * dirent/opendir.c: Include <fcntl.h>.
20232
20233         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
20234         (__libc_getspecific): Likewise.
20235         (__libc_key_create): Likewise.
20236
20237         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
20238         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
20239         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
20240         (tmpfile64): Define as alias.
20241         * sysdeps/wordsize-64/tmpfile.c: File removed.
20242         * sysdeps/wordsize-64/tmpfile64.c: File removed.
20243         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
20244         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
20245
20246         * stdio-common/vfscanf.c: Include <stdbool.h>.
20247         * nss/makedb.c: Likewise.
20248         * stdio-common/_i18n_number.h: Likewise.
20249         * argp/argp-help.c: Likewise.
20250         * posix/wordexp.c: Likewise.
20251         * sysdeps/posix/spawni.c: Likewise.
20252         * nss/nss_files/files-initgroups.c: Likewise.
20253         * stdio-common/reg-modifier.c: Include <stdlib.h>.
20254         * nss/nss_files/files-initgroups.c: Likewise.
20255         * nss/nss_db/db-netgrp.c: Likewise.
20256         * nss/nss_db/db-initgroups.c: Likewise.
20257         * io/fchmodat.c: Include <sys/stat.h>.
20258
20259         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
20260         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
20261
20262         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
20263         [HAVE_MMAP].
20264
20265         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
20266         Add multiple inclusion protection.
20267
20268 2012-07-27  David S. Miller  <davem@davemloft.net>
20269
20270         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20271
20272 2012-07-27  Gary Benson  <gbenson@redhat.com>
20273
20274         [BZ #14298]
20275         * elf/rtld.c: Include <stap-probe.h>.
20276         (dl_main): Added static probes "init_start" and "init_complete".
20277         * elf/dl-load.c: Include <stap-probe.h>.
20278         (lose): Take new parameter "nsid".
20279         Added static probe "map_failed".
20280         (_dl_map_object_from_fd): Pass namespace id to lose.
20281         Added static probe "map_start".
20282         (open_verify): Pass namespace id to lose.
20283         * elf/dl-open.c: Include <stap-probe.h>.
20284         (dl_open_worker) Added static probes "map_complete", "reloc_start"
20285         and "reloc_complete".
20286         * elf/dl-close.c: Include <stap-probe.h>.
20287         (_dl_close_worker): Added static probes "unmap_start" and
20288         "unmap_complete".
20289         * elf/rtld-debugger-interface.txt: New file documenting the above.
20290
20291 2012-07-26  Roland McGrath  <roland@hack.frob.com>
20292
20293         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
20294         rather than a string variable.
20295         * sunrpc/rpc_main.c (h_output): Likewise.
20296         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
20297
20298 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
20299
20300         * inet/check_native.c: New file.
20301
20302 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
20303
20304         [BZ #13629]
20305         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
20306         if larger part has absolute value 1.0.
20307         * math/s_clog10.c (__clog10): Likewise.
20308         * math/s_clog10f.c (__clog10f): Likewise.
20309         * math/s_clog10l.c (__clog10l): Likewise.
20310         * math/s_clogf.c (__clogf): Likewise.
20311         * math/s_clogl.c (__clogl): Likewise.
20312         * math/libm-test.inc (clog_test): Add more tests.
20313         (clog10_test): Likewise.
20314         * sysdeps/i386/fpu/libm-test-ulps: Update.
20315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20316
20317         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
20318         (pltexit): Likewise.
20319         (La_regs): Likewise.
20320         (La_retval): Likewise.
20321         (int_retval): Likewise.
20322         Update #error for removed macros to refer only to definitions in
20323         tst-audit.h.
20324         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
20325         macro.
20326         (pltexit): Likewise.
20327         (La_regs): Likewise.
20328         (La_retval): Likewise.
20329         (int_retval): Likewise.
20330         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
20331         macro.
20332         (pltexit): Likewise.
20333         (La_regs): Likewise.
20334         (La_retval): Likewise.
20335         (int_retval): Likewise.
20336         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
20337         macro.
20338         (pltexit): Likewise.
20339         (La_regs): Likewise.
20340         (La_retval): Likewise.
20341         (int_retval): Likewise.
20342         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
20343         macro.
20344         (pltexit): Likewise.
20345         (La_regs): Likewise.
20346         (La_retval): Likewise.
20347         (int_retval): Likewise.
20348         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
20349         macro.
20350         (pltexit): Likewise.
20351         (La_regs): Likewise.
20352         (La_retval): Likewise.
20353         (int_retval): Likewise.
20354         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
20355         macro.
20356         (pltexit): Likewise.
20357         (La_regs): Likewise.
20358         (La_retval): Likewise.
20359         (int_retval): Likewise.
20360         * sysdeps/generic/tst-audit.h: Update comment to refer only to
20361         macro definitions in tst-audit.h.
20362         * sysdeps/i386/tst-audit.h: New file.
20363         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
20364         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
20365         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
20366         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
20367         * sysdeps/sh/tst-audit.h: Likewise.
20368         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
20369         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
20370         * sysdeps/x86_64/tst-audit.h: Likewise.
20371
20372 2012-07-26  Andreas Jaeger  <aj@suse.de>
20373
20374         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
20375         ptrace.
20376
20377         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
20378         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
20379         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
20380         PTRACE_O_MASK.
20381         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
20382         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
20383         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
20384
20385         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
20386         value.
20387
20388         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
20389         _sigsys.
20390         (si_call_addr, si_syscall, si_arch): Define new macro.
20391         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
20392         _sigsys.
20393         (si_call_addr, si_syscall, si_arch): Define new marcro.
20394         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
20395         _sigsys.
20396         (si_call_addr, si_syscall, si_arch): Define new macro.
20397         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
20398         _sigsys.
20399         (si_call_addr, si_syscall, si_arch): Define new macro.
20400
20401 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
20402
20403         [BZ #13717]
20404         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20405         Change to 2.4.21 where previously 2.4.1.
20406         * sysdeps/unix/sysv/linux/configure: Regenerated.
20407         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
20408         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
20409         Linux kernel version.
20410         (__ASSUME_STD_AUXV): Remove.
20411         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
20412         kernel version.
20413         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
20414         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
20415         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
20416         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
20417         (__ASSUME_NETLINK_SUPPORT): Likewise.
20418         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
20419         (__no_netlink_support): Remove conditional definition.
20420         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
20421         Remove.
20422         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
20423         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
20424         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
20425         (if_nameindex_ioctl): Remove.
20426         (if_nameindex_netlink): Do not handle __no_netlink_support.
20427         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
20428         code.
20429         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
20430         Remove conditional code.
20431         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
20432         code.
20433         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
20434         unconditional.
20435         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
20436         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
20437         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
20438         Remove.
20439         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
20440         [!__ASSUME_STD_AUXV]: Remove conditional code.
20441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
20442         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
20443         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
20444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
20445         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
20446         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
20447         code.
20448         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
20449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
20450         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
20451         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
20452         conditional code.
20453         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
20454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
20455         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
20456         code.
20457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
20458         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
20459         conditional code.
20460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
20461         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
20462         code unconditional.
20463         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20464         conditional code.
20465         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20466         unconditional.
20467         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20468         conditional code.
20469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20470         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20471         unconditional.
20472         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20473         conditional code.
20474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
20475         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
20476         code unconditional.
20477         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20478         conditional code.
20479         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20480         unconditional.
20481         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20482         conditional code.
20483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
20484         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
20485         code unconditional.
20486         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20487         conditional code.
20488         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20489         unconditional.
20490         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20491         conditional code.
20492
20493 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
20494
20495         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
20496         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
20497         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
20498         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
20499         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
20500         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
20501         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
20502         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
20503         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
20504         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
20505         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
20506         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
20507         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
20508         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
20509         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
20510         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
20511         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
20512         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
20513         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
20514         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
20515         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
20516         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
20517         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
20518
20519 2012-07-25  Florian Weimer  <fweimer@redhat.com>
20520
20521         * Versions.def: Add GLIBC_2.17.
20522         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
20523         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
20524         Introduce __libc_secure_getenv.
20525         * stdlib/Versions (2.17): Add secure_getenv
20526         (GLIBC_PRIVATE): Add __libc_secure_getenv.
20527         * stdlib/secure-getenv.c: Rename __secure_getenv to
20528         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
20529         symbol __secure_getenv for GLIBC_2.0.
20530         * stdlib/tst-secure-getenv.c: New.
20531         * stdlib/Makefile (tests): Add testcase.
20532         * manual/startup.texi (Environment Access): Document
20533         secure_getenv.
20534         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
20535         __libc_secure_getenv.
20536         * inet/ruserpass.c (ruserpass): Likewise.
20537         * malloc/mtrace.c (mtrace): Likewise.
20538         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
20539         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
20540         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
20541         * sysdeps/posix/tempname.c: Likewise.  Evaluate
20542         HAVE_SECURE_GETENV.
20543         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
20544         __secure_getenv to __libc_secure_getenv.
20545         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
20546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
20547         Likewise.
20548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
20549         Likewise.
20550         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
20551         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
20552         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
20553         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
20554         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
20555         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
20556         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
20557
20558 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
20559
20560         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
20561         (struct La_i86_retval): Likewise.
20562         (struct La_x86_64_regs): Likewise.
20563         (struct La_x86_64_retval): Likewise.
20564         (struct La_x32_regs): Likewise.
20565         (struct La_x32_retval): Likewise.
20566         (struct La_ppc32_regs): Likewise.
20567         (struct La_ppc32_retval): Likewise.
20568         (struct La_ppc64_regs): Likewise.
20569         (struct La_ppc64_retval): Likewise.
20570         (struct La_sh_regs): Likewise.
20571         (struct La_sh_retval): Likewise.
20572         (struct La_s390_32_regs): Likewise.
20573         (struct La_s390_32_retval): Likewise.
20574         (struct La_s390_64_regs): Likewise.
20575         (struct La_s390_64_retval): Likewise.
20576         (struct La_sparc32_regs): Likewise.
20577         (struct La_sparc32_retval): Likewise.
20578         (struct La_sparc64_regs): Likewise.
20579         (struct La_sparc64_retval): Likewise.
20580         (struct audit_ifaces): Remove architecture-specific pltenter and
20581         pltexit members.
20582         * sysdeps/i386/ldsodefs.h: New file.
20583         * sysdeps/powerpc/ldsodefs.h: Likewise.
20584         * sysdeps/s390/ldsodefs.h: Likewise.
20585         * sysdeps/sh/ldsodefs.h: Likewise.
20586         * sysdeps/sparc/ldsodefs.h: Likewise.
20587         * sysdeps/x86_64/ldsodefs.h: Likewise.
20588
20589 2012-07-25  Marek Polacek  <polacek@redhat.com>
20590
20591         [BZ #6808]
20592         * math/libm-test.inc (yn_test): Add another test.
20593         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
20594         to ERANGE when the result is +-Inf.
20595         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
20596         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
20597         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
20598         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
20599
20600 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
20601
20602         * conform/data/time.h-data (NULL): Use macro-constant.  Require
20603         equal to 0.
20604         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
20605         clock_t.
20606         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
20607
20608 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
20609
20610         * configure.in <sysdeps resolving>: Correct printing
20611         Implies_before.
20612         * configure: Regenerate.
20613
20614 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
20615
20616         * math/w_ilogb.c: Include <limits.h>.
20617         * math/w_ilogbl.c: Likewise.
20618
20619 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
20620
20621         * manual/lang.texi (__va_copy): Document primarily as ISO C99
20622         va_copy.  Document allowing for unavailable va_copy only as
20623         pre-C99 compatibility.
20624         * manual/string.texi (Copying and Concatenation): Use va_copy
20625         instead of __va_copy in concat example.
20626
20627 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
20628
20629         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
20630         (__sendto): Use create_address_port.  Initialize APORT and deallocate
20631         it if not null.
20632
20633         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
20634         with O_NOLINK passed to __file_name_lookup.
20635
20636         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
20637         with O_NOLINK passed to __file_name_lookup.
20638
20639         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
20640         negative N or less than NGIDS.
20641
20642         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
20643         type to string_t.  Set ERANGE as errno and return it if NAME is not big
20644         enough.  Use memcpy instead of strncpy.
20645
20646 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
20647
20648         * elf/Makefile (check-data): Remove.
20649         (localplt.data): New vpath directive.
20650         ($(objpfx)check-localplt.out): Use localplt.data from vpath
20651         instead of $(check-data).
20652         * scripts/data/localplt-generic.data: Move to ...
20653         * sysdeps/generic/localplt.data: ... here.
20654         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
20655         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
20656         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
20657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
20658         ... here.
20659         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
20660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
20661         ... here.
20662         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
20663         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
20664         ... here.
20665         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
20666         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
20667         ... here.
20668         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
20669         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
20670         ... here.
20671         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
20672         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
20673         ... here.
20674
20675 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20676
20677         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
20678         PPC32 and PPC64 files.
20679         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
20680         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
20681
20682 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20683
20684         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
20685         __makecontext_ret to ...
20686         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
20687         ... here and call exit if uc_link is NULL.  New file.
20688         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
20689         __makecontext_ret.S.
20690         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
20691         __makecontext_ret to ...
20692         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
20693         ... here and call exit if uc_link is NULL.  New file.
20694         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
20695         __makecontext_ret.S.
20696
20697 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20698
20699         * elf/elf.h (R_390_IRELATIVE): New definition.
20700         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
20701         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
20702         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
20703         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
20704         (elf_machine_lazy_rel): Likewise.
20705         * sysdeps/s390/dl-irel.h: New file.
20706         * sysdeps/s390/s390-64/memcpy.S: New asm code.
20707         * sysdeps/s390/s390-64/memset.S: New asm code.
20708         * sysdeps/s390/s390-64/memcmp.S: New asm code.
20709         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
20710         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
20711         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
20712         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
20713         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
20714         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
20715         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
20716         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
20717         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
20718         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
20719         * sysdeps/s390/s390-32/memcpy.S: New asm code.
20720         * sysdeps/s390/s390-32/memset.S: New asm code.
20721         * sysdeps/s390/s390-32/memcmp.S: New asm code.
20722
20723 2012-07-17  Marek Polacek  <polacek@redhat.com>
20724
20725         [BZ #14349]
20726         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
20727         * sysdeps/s390/s390-64/configure.in: Likewise.
20728         * sysdeps/sparc/configure.in: Likewise.
20729         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
20730         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
20731         * sysdeps/i386/configure.in: Likewise.
20732         * sysdeps/x86_64/configure.in: Likewise.
20733         * sysdeps/sh/configure.in: Likewise.
20734         * sysdeps/s390/s390-32/configure: Regenerated.
20735         * sysdeps/s390/s390-64/configure: Likewise.
20736         * sysdeps/x86_64/configure: Likewise.
20737         * sysdeps/sh/configure: Likewise.
20738         * sysdeps/powerpc/powerpc64/configure: Likewise.
20739         * sysdeps/powerpc/powerpc32/configure: Likewise.
20740         * sysdeps/sparc/configure: Likwise.
20741         * sysdeps/i386/configure: Likewise.
20742
20743         * elf/dl-open.c: Comment fixes.
20744
20745 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
20746
20747         * Makefile [CXX] (check-data): Remove.
20748         [CXX] (c++-types.data): New vpath directive.
20749         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
20750         vpath.  Do not allow for C++ type data being missing.
20751         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
20752         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
20753         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
20754         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
20755         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
20756         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
20757         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
20758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
20759         ... here.
20760         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
20761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
20762         ... here.
20763         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
20764         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
20765         ... here.
20766         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
20767         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
20768         ... here.
20769         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
20770         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
20771         ... here.
20772         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
20773         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
20774         ... here.
20775         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
20776         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
20777         ... here.
20778         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
20779         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
20780
20781         * elf/tls-macros.h (TLS_LE): Move architecture-specific
20782         definitions to architecture-specific files.
20783         (TLS_IE): Likewise.
20784         (TLS_LD): Likewise.
20785         (TLS_GD): Likewise.
20786         * sysdeps/i386/tls-macros.h: New file.
20787         * sysdeps/powerpc/tls-macros.h: Likewise.
20788         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
20789         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
20790         * sysdeps/sh/tls-macros.h: Likewise.
20791         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
20792         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
20793         * sysdeps/x86_64/tls-macros.h: Likewise.
20794
20795 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
20796
20797         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
20798         zero value for regular exit case.
20799
20800         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
20801         (__start_context): Preserve zero value for regular exit case.
20802
20803 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
20804             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20805
20806         * manual/setjmp.texi (setcontext): Clarify normal process
20807         termination when uc_link is the null pointer.
20808         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
20809         exit call.
20810
20811 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
20812
20813         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
20814         preprocessor.  Test for each exception mask separately.
20815
20816 2012-07-16  Andreas Jaeger  <aj@suse.de>
20817
20818         * po/ru.po: Update from translation team.
20819
20820 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
20821
20822         * conform/data/string.h-data (NULL): Use macro-constant.  Require
20823         equal to 0.
20824         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
20825         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
20826         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
20827         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
20828         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20829
20830 2012-07-13  Andreas Jaeger  <aj@suse.de>
20831
20832         * po/fr.po: Update from translation team.
20833
20834 2012-07-12  Marek Polacek  <polacek@redhat.com>
20835
20836         [BZ #14173]
20837         * math/libm-test.inc (yn_test): Add test for BZ #14173.
20838         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
20839         loop condition.
20840
20841 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
20842
20843         [BZ #13717]
20844         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20845         Change to 2.4.1 where previously 2.4.0.
20846         * sysdeps/unix/sysv/linux/configure: Regenerated.
20847         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
20848         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
20849         version.
20850         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
20851         (__ASSUME_AT_CLKTCK): Remove.
20852         (__ASSUME_AT_PAGESIZE): Likewise.
20853         (__ASSUME_AT_XID): Likewise.
20854         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
20855         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
20856         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
20857         unconditionally.
20858         (HAVE_AUX_PAGESIZE): Likewise.
20859         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
20860         [__ASSUME_AT_CLKTCK]: Make code unconditional.
20861         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
20862
20863 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
20864
20865         [BZ #14307]
20866         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
20867         the temporary buffer used to invoke __gethostbyname2_r,
20868         __gethostbyaddr_r and gethostbyname4_r to make room for struct
20869         host_data / struct gaih_addrtuple.
20870         * resolv/nss_dns/dns-host.c (global scope): Move definition of
20871         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
20872         header file nss/nsswitch.h.
20873         * nss/nsswitch.h (global scope): Add definition of implementation
20874         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
20875         resolv/nss_dns/dns-host.c).
20876
20877 2012-07-11  Andreas Jaeger  <aj@suse.de>
20878
20879         * po/fr.po: Update from translation team.
20880
20881         * po/sv.po: Update from translation team
20882         * po/fr.po: Another update from translation team.
20883
20884 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20885
20886         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
20887         for subnormals or multiply small sinh result by itself.
20888         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
20889         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20890
20891 2012-07-11  David S. Miller  <davem@davemloft.net>
20892
20893         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20894
20895 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
20896
20897         [BZ #14347]
20898         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
20899         (INTERNAL_MARK): Shift it here.
20900
20901 2012-07-10  Marek Polacek  <polacek@redhat.com>
20902
20903         [BZ #14151]
20904         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
20905         libc_cv_asm_global_directive with .globl.
20906         * configure: Regenerated.
20907         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
20908         with .globl.
20909         * sysdeps/i386/configure: Regenerated.
20910         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
20911         with .globl.
20912         * sysdeps/x86_64/configure: Regenerated.
20913         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
20914         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
20915         * elf/tst-unique2mod2.c: Likewise.
20916         * elf/tst-unique2mod1.c: Likewise.
20917         * elf/tst-unique1mod2.c: Likewise.
20918         * elf/tst-unique1mod1.c: Likewise.
20919         * sysdeps/s390/s390-32/sysdep.h: Likewise.
20920         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
20921         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20922         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
20923         * sysdeps/mach/sysdep.h: Likewise.
20924         * sysdeps/i386/sysdep.h: Likewise.
20925         * sysdeps/i386/i386-mcount.S: Likewise.
20926         * sysdeps/x86_64/_mcount.S: Likewise.
20927         * sysdeps/x86_64/sysdep.h: Likewise.
20928         * sysdeps/sh/_mcount.S: Likewise.
20929         * sysdeps/sh/sysdep.h: Likewise.
20930         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
20931         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
20932         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
20933         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
20934         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
20935         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
20936         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
20937         * locale/localeinfo.h: Likewise.
20938         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
20939         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
20940
20941 2012-07-09  Roland McGrath  <roland@hack.frob.com>
20942
20943         [BZ #14336]
20944         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
20945         system".
20946         * manual/message.texi (The Uniforum approach): Likewise.
20947         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
20948         (glibc iconv Implementation): Likewise.
20949
20950 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
20951
20952         [BZ #14337]
20953         * math/s_clog.c (__clog): Avoid scaling a value down where that
20954         could result in underflow.
20955         * math/s_clog10.c (__clog10): Likewise.
20956         * math/s_clog10f.c (__clog10f): Likewise.
20957         * math/s_clog10l.c (__clog10l): Likewise.
20958         * math/s_clogf.c (__clogf): Likewise.
20959         * math/s_clogl.c (__clogl): Likewise.
20960         * math/libm-test.inc (clog_test): Add more tests.
20961         (clog10_test): Likewise.
20962         * sysdeps/i386/fpu/libm-test-ulps: Update.
20963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20964
20965 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
20966
20967         [BZ #14283]
20968         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
20969         by 7 not 8 to examine high bit of fractional part.
20970
20971         [BZ #14042]
20972         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
20973         for call to __mcount_internal.
20974         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
20975         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
20976         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
20977
20978 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
20979
20980         [BZ #14154]
20981         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
20982         approximation for values within 0x1p-13f of an odd multiple of
20983         pi/4.
20984         * math/libm-test.inc (tan_test): Do not allow spurious underflow
20985         exception.  Add more tests.
20986         * sysdeps/i386/fpu/libm-test-ulps: Update.
20987
20988         [BZ #6778]
20989         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
20990         inputs and return -1 for them.  Do not check for +Inf in case not
20991         reachable for +Inf.
20992         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
20993         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
20994         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
20995         and return -1 for them.  Do not check for +Inf in case not
20996         reachable for +Inf.
20997         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
20998         define.
20999         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21000         and return -1 for them.  Do not check for +Inf in case not
21001         reachable for +Inf.
21002         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
21003         spurious underflow.
21004         * sysdeps/i386/fpu/libm-test-ulps: Update.
21005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21006
21007 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
21008
21009         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
21010
21011 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
21012
21013         [BZ #14157]
21014         [BZ #14331]
21015         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
21016         could result in spurious underflow.  Scale down values above
21017         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
21018         * math/s_csqrtf.c (__csqrtf): Likewise.
21019         * math/s_csqrtl.c (__csqrtl): Likewise.
21020         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
21021         spurious underflow.
21022         * sysdeps/i386/fpu/libm-test-ulps: Update.
21023         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21024
21025 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
21026
21027         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
21028         xopen-msg.sed.
21029         * catgets/xopen-msg.awk: New file.
21030         * catgets/xopen-msg.sed: Removed.
21031
21032         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
21033         po2text.sed.
21034         * intl/po2test.awk: New file.
21035         * intl/po2test.sed: Removed.
21036
21037 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
21038
21039         [BZ #14328]
21040         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
21041         or multiply small sinh result by itself.
21042         * math/s_ctanf.c (__ctanf): Likewise.
21043         * math/s_ctanh.c (__ctanh): Likewise.
21044         * math/s_ctanhf.c (__ctanhf): Likewise.
21045         * math/s_ctanhl.c (__ctanhl): Likewise.
21046         * math/s_ctanl.c (__ctanl): Likewise.
21047         * math/libm-test.inc (ctan_test_tonearest): New function.
21048         (ctan_test_towardzero): Likewise.
21049         (ctan_test_downward): Likewise.
21050         (ctan_test_upward): Likewise.
21051         (ctanh_test_tonearest): Likewise.
21052         (ctanh_test_towardzero): Likewise.
21053         (ctanh_test_downward): Likewise.
21054         (ctanh_test_upward): Likewise.
21055         (main): Call these new functions.
21056         * sysdeps/i386/fpu/libm-test-ulps: Update.
21057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21058
21059 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
21060
21061         * .gitignore: Delete /ports entry.
21062
21063 2012-07-03  Andreas Jaeger  <aj@suse.de>
21064
21065         * po/bg.po: Update from translation team.
21066         * po/cs.po: Likewise.
21067         * po/de.po: Likewise.
21068         * po/hr.po: Likewise.
21069         * po/nl.pl: Likewise.
21070         * po/pl.po: Likewise.
21071         * po/vi.po: Likewise.
21072
21073 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
21074
21075         * Makeconfig [!+link] (+link-before-libc): New variable.
21076         [!+link] (+link-after-libc): Likewise.
21077         [!+link] (+link-tests): Likewise.
21078         [!+link] (+link): Define in terms of $(+link-before-libc) and
21079         $(+link-after-libc).
21080         [!+link-static] (+link-static-before-libc): New variable.
21081         [!+link-static] (+link-static-after-libc): Likewise.
21082         [!+link-static] (+link-static-tests): Likewise.
21083         [!+link-static] (+link-static): Define in terms of
21084         $(+link-static-before-libc) and $(+link-static-after-libc).
21085         [build-shared] (link-libc-before-gnulib): New variable.
21086         [build-shared] (link-libc-tests): Likewise.
21087         [build-shared] (link-libc): Define in terms of
21088         $(link-libc-before-gnulib).
21089         [!build-shared] (link-libc-tests): New variable.
21090         (link-libc-static-tests): New variable.
21091         [!gnulib] (gnulib-arch): New variable.
21092         [!gnulib] (gnulib-tests): Likewise.
21093         [!gnulib] (static-gnulib-arch): Likewise.
21094         [!gnulib] (static-gnulib-tests): Likewise.
21095         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
21096         Define with "=" instead of ":=".
21097         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
21098         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
21099         * Rules (binaries-all-notests): New variable.
21100         (binaries-all-tests): Likewise.
21101         (binaries-static-notests): Likewise.
21102         (binaries-static-tests): Likewise.
21103         (binaries-all): Define using $(binaries-all-notests) and
21104         $(binaries-all-tests).
21105         (binaries-static): Define using $(binaries-static-notests) and
21106         $(binaries-static-tests).
21107         (binaries-shared-tests): New variable.
21108         (binaries-shared-notests): Likewise.
21109         (binaries-shared): Remove variable.
21110         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
21111         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
21112         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
21113         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
21114         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
21115         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
21116         * elf/Makefile (sln-modules): New variable.
21117         (extra-objs): Add $(sln-modules:=.o).
21118         (ldconfig-modules): Add static-stubs.
21119         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
21120         * elf/static-stubs.c: New file.
21121
21122         [BZ #14283]
21123         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
21124         by 7 not 8 to examine high bit of fractional part.  Use volatile
21125         variables when splitting into final array of floats if
21126         __FLT_EVAL_METHOD__ != 0.
21127         * math/libm-test.inc (cos_test): Add another test.
21128         (sin_test): Likewise.
21129         * sysdeps/i386/fpu/libm-test-ulps: Update.
21130
21131         [BZ #14273]
21132         * math/libm-test.inc (cosh_test): Add more tests.
21133
21134         * version.h (RELEASE): Set to "development".
21135         (VERSION): Set to "2.16.90".
21136
21137 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
21138
21139         * NEWS: Update copyright. Remove last-updated date.
21140         Mention math library bug fixes and timezone data changes.
21141         * README: Mention GNU/Hurd, x32, and HPPA support status.
21142
21143 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
21144
21145         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
21146
21147 2012-06-27  Andreas Jaeger  <aj@suse.de>
21148
21149         * manual/contrib.texi (Contributors): Add Samuel Thibault.
21150
21151 2012-06-25  Andreas Jaeger  <aj@suse.de>
21152
21153         * sysdeps/s390/fpu/libm-test-ulps: Update.
21154
21155 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
21156             Thomas Schwinge  <thomas@codesourcery.com>
21157
21158         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
21159         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
21160         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
21161         fanotify_mark.
21162
21163 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
21164
21165         * sysdeps/mach/start.c: Remove file.
21166         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
21167         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
21168         * sysdeps/sh/init-first.c: Likewise.
21169
21170         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
21171         registers for frame unwinding purposes, add CFI directives.
21172         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
21173         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
21174         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
21175         Likewise.
21176
21177         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
21178         __fortify_fail returning.
21179         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
21180
21181         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
21182         sysdeps/sh/____longjmp_chk.S.
21183         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
21184         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
21185         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
21186         (gen-as-const-headers): Append sigaltstack-offsets.sym.
21187
21188         * sysdeps/sh/abort-instr.h: New file.
21189         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
21190         process in case exit returns.
21191
21192         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
21193         initialize the GOT register before use.
21194
21195         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
21196         calculation of ARGC > 4.
21197
21198         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
21199         meaningful names to some local labels.
21200
21201 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21202             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21203
21204         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
21205         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
21206         (__arch_compare_and_exchange_val_16_acq): Likewise.
21207         (__arch_compare_and_exchange_val_32_acq): Likewise.
21208         (atomic_exchange_and_add): Fix gUSA sequence.
21209         (atomic_add): Likewise.
21210         (atomic_add_negative): Likewise.
21211         (atomic_add_zero): Likewise.
21212         (atomic_bit_test_set): Likewise.
21213
21214 2012-06-22  Andreas Schwab  <schwab@redhat.com>
21215
21216         [BZ #13579]
21217         * include/link.h (struct link_map): Add l_free_initfini.
21218         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
21219         l_initfini.
21220         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
21221         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
21222         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
21223         set.
21224
21225 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
21226
21227         * configure.in: Use AC_LANG_SOURCE.
21228         * configure: Regenerate.
21229
21230 2012-06-22  Roland McGrath  <roland@hack.frob.com>
21231
21232         * configure.in (libc_cv_localstatedir): New substituted variable.
21233         * configure: Regenerated.
21234         * config.make.in (localstatedir): New variable, substituted from
21235         libc_cv_localstatedir.
21236         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
21237         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
21238         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
21239         * sysdeps/gnu/configure: Regenerated.
21240
21241 2012-06-21  Jeff Law  <law@redhat.com>
21242
21243         [BZ #14277]
21244         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
21245         free.  Simplify list management for _LIBC case.
21246
21247 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
21248
21249         [BZ #14273]
21250         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
21251         Clear sign bit of 64-bit integer value before comparing against
21252         overflow value.
21253
21254         * sysdeps/mach/configure: Regenerated.
21255
21256 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
21257
21258         [BZ #14278]
21259         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
21260
21261 2012-06-21  Jeff Law  <law@redhat.com>
21262
21263         [BZ #13882]
21264         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
21265         uint16_t for elements in the "seen" array to avoid char overflows.
21266         * elf/dl-fini.c (_dl_sort_fini): Likewise.
21267         * elf/dl-open.c (dl_open_worker): Likewise.
21268
21269 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
21270
21271         * scripts/list-sources.sh: Scan PORTS for translations.
21272         * po/libc.pot: Regenerated.
21273
21274 2012-06-21  Andreas Jaeger  <aj@suse.de>
21275
21276         [BZ #12194]
21277         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
21278         warning.
21279         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
21280         * bits/byteswap-16.h (__bswap_16): Likewise.
21281         * bits/byteswap.h (__bswap_constant_16): Likewise.
21282
21283 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
21284
21285         [BZ #14117]
21286         * sysdeps/i386/fpu_control.h: Removed.
21287         * sysdeps/x86_64/fpu_control.h: Moved to ...
21288         * sysdeps/x86/fpu_control.h: Here.
21289
21290         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
21291         (_FPU_SETCW): Likewise.
21292
21293 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
21294
21295         [BZ #14117]
21296         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
21297         * sysdeps/x86/fpu/bits/mathinline.h: This.
21298         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
21299
21300         [BZ #14050]
21301         [BZ #14117]
21302         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
21303         functions if __x86_64__ is defined.
21304
21305 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
21306
21307         * string/endian.h: Add !__ASSEMBLER__ condition for including
21308         conversion interfaces.
21309
21310 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
21311
21312         [BZ #14241]
21313         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
21314         of ABS(x) in calculating zero to negative powers other than odd
21315         integers.
21316         * math/libm-test.inc (pow_test): Add more tests.
21317
21318 2012-06-15  Andreas Jaeger  <aj@suse.de>
21319
21320         * manual/contrib.texi (Contributors): Update entry of Liubov
21321         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
21322         Machado Filho.
21323
21324 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
21325
21326         * string/string.h: Add __wur to GNU version of strerror_r.
21327
21328 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
21329
21330         [BZ #14229]
21331         * string/Makefile (tests): Add tst-strtok_r.
21332         * string/tst-strtok_r.c: New file.
21333         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
21334         RAX_LP/RDX_LP on SAVE_PTR.
21335
21336 2012-06-14  Roland McGrath  <roland@hack.frob.com>
21337
21338         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
21339
21340 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
21341
21342         * libm_test.inc (csqrt_test): Allow more spurious underflow
21343         exceptions.
21344         (j0_test): Likewise.
21345         (j1_test): Likewise.
21346         (y0_test): Likewise.
21347         (y1_test): Likewise.
21348
21349 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
21350
21351         * po/Makefile (libc.pot): Use UTF-8 charset.
21352
21353 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
21354
21355         [BZ #14210]
21356         Suppress sign-conversion warning from FD_SET.
21357         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
21358         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
21359         not unsigned long int.
21360         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
21361
21362 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
21363
21364         [BZ #14050]
21365         [BZ #14117]
21366         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
21367         __extern_always_inline instead of __extern_inline.
21368         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
21369         (__signbit): Likewise.
21370         (__signbitl): Support C++ namespace.
21371         (lrintf): New inline function.
21372         (lrint): Likewise.
21373         (llrintf): Likewise.
21374         (llrint): Likewise.
21375         (fmaxf): Likewise.
21376         (fmax): Likewise.
21377         (fminf): Likewise.
21378         (fmin): Likewise.
21379         (rint): Likewise.
21380         (rintf): Likewise.
21381         (ceil): Likewise.
21382         (ceilf): Likewise.
21383         (floor): Likewise.
21384         (floorf): Likewise.
21385         (nearbyint): Likewise.
21386         (nearbyintf): Likewise.
21387
21388 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
21389
21390         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
21391         non-default versions.
21392
21393 2012-06-11  Roland McGrath  <roland@hack.frob.com>
21394
21395         [BZ #14218]
21396         * manual/argp.texi (Argp): Reword argp_parse description slightly.
21397
21398 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
21399
21400         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
21401         (FE_UPWARD, FE_DOWNWARD): Don't define.
21402         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
21403         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21404
21405         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
21406         reading it.
21407         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
21408         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21409
21410 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21411
21412         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
21413         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
21414         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
21415         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
21416
21417 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
21418
21419         [BZ #14117]
21420         * sysdeps/i386/fpu/bits/fenv.h: Removed.
21421         * sysdeps/i386/fpu/Implies: New file.
21422         * sysdeps/x86_64/fpu/Implies: Likewise.
21423         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
21424         * sysdeps/x86/fpu/bits/fenv.h: This.
21425
21426         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
21427         __SSE_MATH__.
21428
21429 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
21430
21431         [BZ #14134]
21432         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
21433         character 0xffff that matches the last element of the
21434         conversion table.
21435
21436 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21437
21438         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
21439         fmodl commit.
21440
21441 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21442
21443         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
21444         values higher than 25.6283.
21445
21446 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21447
21448         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
21449         subnormal exponent extraction and add some __builtin_expect.
21450         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
21451         Fix for subnormal mantissa calculation.
21452
21453 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
21454
21455         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
21456         cpu2 is -1 and errno is not ENOSYS.
21457
21458 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
21459
21460         [BZ #14117]
21461         * sysdeps/i386/i486/bits/string.h: Renamed to ...
21462         * sysdeps/x86/bits/string.h: This.
21463         * sysdeps/x86_64/bits/string.h: Removed.
21464
21465         * sysdeps/i386/i486/bits/string.h: Define inline functions only
21466         if not compiling for x86-64, but compiling for >= i486.
21467
21468         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
21469         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
21470
21471         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
21472         New macro from Linux kernel 3.4.0.
21473         (FP_XSTATE_MAGIC2): Likewise.
21474         (FP_XSTATE_MAGIC2_SIZE): Likewise.
21475         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
21476         (struct _fpx_sw_bytes): New struct.
21477         (struct _xsave_hdr): Likewise.
21478         (struct _ymmh_state): Likewise.
21479         (struct _xstate): Likewise.
21480
21481         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
21482         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
21483         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
21484         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
21485         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
21486         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
21487
21488         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
21489         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
21490         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
21491         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
21492         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
21493         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
21494
21495 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21496
21497         [BZ #13743]
21498         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
21499         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
21500         (sysdep_headers): Include sys/platform/ppc.h.
21501         * sysdeps/powerpc/test-gettimebase.c: Test for
21502         __ppc_get_timebase() to catch future ISA opcode/insn changes.
21503         * manual/Makefile (appendices): Include platform.texi.
21504         * manual/contrib.texi (Contributors): Update @node pointers.
21505         * manual/maint.texi (Maintenance): Likewise.
21506         (Platform): New node.
21507         * manual/platform.texi: New file.  Document the new features.
21508
21509 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
21510             Jakub Jelinek  <jakub@redhat.com>
21511
21512         [BZ #14188]
21513         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
21514         where __builtin_expect is unavailable.
21515
21516 2012-06-03  David S. Miller  <davem@davemloft.net>
21517
21518         * stdlib/longlong.h: Updated from GCC.
21519
21520 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
21521
21522         [BZ #14042]
21523         * sysdeps/powerpc/powerpc32/mcount.c: New file.
21524         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
21525         __mcount_internal.
21526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
21527         (GLIBC_2.16): Likewise.
21528
21529 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
21530
21531         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
21532
21533 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
21534
21535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
21536         (default-abi): New variable.
21537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
21538         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
21539         variable.
21540         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
21541         Likewise.
21542         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
21543         Likewise.
21544         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
21545         Likewise.
21546
21547         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
21548         definition.  Document in comment.
21549
21550 2012-06-01  David S. Miller  <davem@davemloft.net>
21551
21552         * stdlib/longlong.h: Updated from GCC.
21553
21554 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
21555
21556         [BZ #14117]
21557         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
21558         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
21559         sys/debugreg.h sys/io.h here.
21560         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
21561         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
21562         sys/io.h.
21563         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
21564         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
21565         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
21566         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
21567         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
21568         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
21569
21570         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
21571         Define only if __x86_64__ is defined.
21572
21573 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
21574
21575         [BZ #14048]
21576         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
21577         Use int64_t for variable i.
21578         * math/libm-test.inc (fmod_test): Add more tests.
21579
21580         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
21581         z computation is not scheduled after fetestexcept.
21582         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
21583         Use math_force_eval instead of asm to ensure calculation scheduled
21584         before exception test.
21585         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
21586         Ensure a1 + u.d computation is not scheduled after fetestexcept.
21587
21588 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
21589
21590         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
21591         computation is not scheduled after fetestexcept.
21592
21593 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
21594
21595         [BZ #14117]
21596         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
21597         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
21598
21599 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21600
21601         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
21602         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
21603
21604 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
21605
21606         [BZ #14117]
21607         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
21608         <bits/wordsize.h>.
21609         (__WCHAR_MIN): Support __WORDSIZE == 64.
21610         (__WCHAR_MAX): Likewise.
21611
21612         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
21613         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
21614
21615         [BZ #14183]
21616         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
21617         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
21618
21619         [BZ #14117]
21620         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
21621         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
21622
21623         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
21624         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
21625
21626         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
21627         Defined to 1 if __x86_64__ isn't defined.
21628         (_STAT_VER_LINUX_OLD): New.
21629         (st_atime): Remove duplicate.
21630         (st_mtime): Likewise.
21631         (st_ctime): Likewise.
21632
21633 2012-05-31  David S. Miller  <davem@davemloft.net>
21634
21635         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
21636         entries.
21637
21638 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
21639
21640         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
21641         gen-libm-test.pl.
21642
21643         [BZ #14132]
21644         * elf/dl-reloc.c: Include <_itoa.h>.
21645         (_dl_reloc_bad_type): Remove use of INTUSE.
21646         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
21647         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
21648         * stdio-common/psiginfo.c (psiginfo): Likewise.
21649         * stdio-common/psignal.c (psignal): Likewise.
21650         * string/strsignal.c (strsignal): Likewise.
21651         * include/signal.h (_sys_siglist): Declare hidden proto.
21652         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
21653         INTVARDEF with libc_hidden_data_def.
21654         * stdio-common/itoa-udigits.c: Likewise.
21655         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
21656         (_itoa_lower_digits_internal): Remove declaration.
21657         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
21658         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
21659         (_sys_sigabbrev_internal): Remove aliases.
21660         (_sys_siglist): Define hidden alias.
21661
21662 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
21663
21664         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21665         bits/sysctl.h.
21666
21667 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
21668
21669         [BZ #14117]
21670         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
21671         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
21672
21673         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
21674         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
21675         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
21676         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
21677         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
21678         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
21679
21680         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
21681         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
21682         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
21683
21684         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
21685         with __addr.
21686         (insw): Likewise.
21687         (insl): Likewise.
21688         (outsb): Likewise.
21689         (outsw): Likewise.
21690         (outsl): Likewise.
21691
21692         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
21693         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
21694         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
21695
21696         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
21697         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
21698         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
21699         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
21700         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
21701         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
21702
21703         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
21704         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
21705
21706         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
21707         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
21708
21709         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
21710         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
21711         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
21712
21713         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
21714         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
21715         to ...
21716         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
21717
21718         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
21719         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
21720         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
21721
21722         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
21723         for x86-64.
21724         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
21725
21726 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
21727
21728         * math/math.h (M_El): Use two more decimal places.
21729         (M_LOG2El): Likewise.
21730         (M_LOG10El): Likewise.
21731         (M_LN2l): Likewise.
21732         (M_LN10l): Likewise.
21733         (M_PIl): Likewise.
21734         (M_PI_2l): Likewise.
21735         (M_PI_4l): Likewise.
21736         (M_1_PIl): Likewise.
21737         (M_2_PIl): Likewise.
21738         (M_2_SQRTPIl): Likewise.
21739         (M_SQRT2l): Likewise.
21740         (M_SQRT1_2l): Likewise.
21741
21742 2012-05-31  David S. Miller  <davem@davemloft.net>
21743
21744         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
21745         values between float registers.
21746         * sysdeps/sparc/sparc64/memset.S: Likewise.
21747         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
21748
21749 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
21750
21751         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
21752         -D_FORTIFY_SOURCE=1.
21753         (CPPFLAGS-tst-longjmp_chk.c): Define.
21754         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
21755         (CPPFLAGS-tst-longjmp_chk2.c): Define.
21756         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
21757         CFLAGS-tst-wchar-h.c.
21758
21759 2012-05-31  Marek Polacek  <polacek@redhat.com>
21760
21761         [BZ #14132]
21762         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
21763         __endmntent_internal): Remove declaration.
21764         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
21765         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
21766         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
21767
21768 2012-05-30  David S. Miller  <davem@davemloft.net>
21769
21770         * sysdeps/sparc/sparc32/soft-fp/q_util.c
21771         (___Q_simulate_exceptions): Use real FP ops rather than writing
21772         into the %fsr.
21773         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
21774         Likewise.
21775
21776 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21777
21778         [BZ #14117]
21779         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
21780         * sysdeps/x86/bits/xtitypes.h: This.
21781
21782         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
21783         * sysdeps/x86/bits/wordsize.h: This.
21784
21785         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
21786         * sysdeps/x86/bits/huge_vall.h: This.
21787
21788         * sysdeps/i386/bits/select.h: Removed.
21789         * sysdeps/x86_64/bits/select.h: Renamed to ...
21790         * sysdeps/x86/bits/select.h: This.
21791
21792         * sysdeps/i386/bits/setjmp.h: Removed.
21793         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
21794         * sysdeps/x86/bits/setjmp.h: This.
21795
21796         * sysdeps/i386/bits/mathdef.h: Removed.
21797         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
21798         * sysdeps/x86/bits/mathdef.h: This.
21799
21800 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
21801
21802         [BZ #14132]
21803         * include/sys/socket.h (__connect_internal)
21804         (__libc_sa_len_internal): Remove declaration.
21805         (__connect, __libc_sa_len): Declare hidden_proto.
21806         (SA_LEN): Remove use of INTUSE.
21807         * socket/connect.c: Add libc_hidden_def.
21808         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
21809         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
21810         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
21811         alias.
21812         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
21813         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
21814         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
21815         of adding _internal alias.
21816
21817 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21818
21819         [BZ #14117]
21820         * sysdeps/i386/bits/link.h: Removed.
21821         * sysdeps/i386/bits/linkmap.h: Likewise.
21822         * sysdeps/x86_64/bits/link.h: Renamed to ...
21823         * sysdeps/x86/bits/link.h: This.
21824         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
21825         * sysdeps/x86/bits/linkmap.h: This.
21826
21827         * sysdeps/i386/bits/endian.h: Removed.
21828         * sysdeps/x86_64/bits/endian.h: Renamed to ...
21829         * sysdeps/x86/bits/endian.h: This.
21830
21831         * sysdeps/i386/bits/byteswap.h: Removed.
21832         * sysdeps/i386/bits/byteswap-16.h: Likewise.
21833         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
21834         * sysdeps/x86/bits/byteswap.h: This.
21835         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
21836         * sysdeps/x86/bits/byteswap-16.h: This.
21837         * sysdeps/i386/Implies: Add x86.
21838         * sysdeps/x86_64/Implies: Likewise.
21839
21840 2012-05-30  David S. Miller  <davem@davemloft.net>
21841
21842         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
21843         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
21844         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
21845         (FP_TRAPPING_EXCEPTIONS): Define.
21846         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
21847         (FP_TRAPPING_EXCEPTIONS): Define.
21848         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
21849         subnormals only when inexact has been signalled or underflow
21850         exceptions are enabled.
21851         (_FP_PACK_CANONICAL): Likewise.
21852
21853 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21854
21855         [BZ #14183]
21856         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
21857         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
21858
21859 2012-05-30  Richard Henderson  <rth@twiddle.net>
21860
21861         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
21862         with #ifndef NOT_IN_libc.
21863
21864         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
21865         marked to avoid plt entry.
21866
21867 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21868
21869         [BZ #14112]
21870         * Makeconfig (default-abi): New macro.
21871         (abi-includes): Likewise.
21872         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
21873         $(abi-$(default-abi)-lib-soname) for soname if defined.
21874         ($(common-objpfx)gnu/lib-names.stmp): Generate from
21875         abi-variants.
21876         * Makefile (installed-stubs): Likewise.
21877         * include/stubs-biarch.h: Removed.
21878         * scripts/lib-names.awk: Only handle one library at a time.
21879         * scripts/soversions.awk: Remove WORDSIZE support.
21880         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
21881         entries.
21882         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
21883         Removed.
21884         (syscall-list-default-condition): Likewise.
21885         (syscall-list-default-condition): Likewise.
21886         (syscall-list-includes): Likewise.
21887         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
21888         syscall-list-* with abi-*.  Handle undefined abi-variants.
21889         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
21890         * sysdeps/unix/sysv/linux/i386/Implies: New file.
21891         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
21892         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
21893         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
21894         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
21895         Removed.
21896         (syscall-list-32-options): Likewise.
21897         (syscall-list-32-condition): Likewise.
21898         (syscall-list-64-options): Likewise.
21899         (syscall-list-64-condition): Likewise.
21900         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
21901         macro.
21902         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
21903         Renamed to ...
21904         (abi-*): This.
21905         (abi-64-ld-soname): New macro.
21906         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
21907         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
21908         Renamed to ...
21909         (abi-*): This.
21910         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
21911         * sysdeps/x86_64/x32/shlib-versions: Likewise.
21912
21913 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
21914
21915         * sysdeps/unix/sysv/linux/kernel-features.h
21916         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
21917         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
21918         include <kernel-features.h>.
21919         [!__NR_ftruncate64]: Remove conditional code.
21920         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21921         [__NR_ftruncate64]: Make code unconditional.
21922         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21923         * sysdeps/unix/sysv/linux/truncate64.c: Do not
21924         include <kernel-features.h>.
21925         [!__NR_ftruncate64]: Remove conditional code.
21926         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21927         [__NR_ftruncate64]: Make code unconditional.
21928         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
21930         include <kernel-features.h>.
21931         [!__NR_ftruncate64]: Remove conditional code.
21932         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21933         [__NR_ftruncate64]: Make code unconditional.
21934         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
21936         include <kernel-features.h>.
21937         [!__NR_ftruncate64]: Remove conditional code.
21938         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21939         [__NR_ftruncate64]: Make code unconditional.
21940         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21941
21942         * configure.in (libc_cv_fpie): Weaken to a compile test using
21943         LIBC_TRY_CC_OPTION.
21944         * configure: Regenerated.
21945
21946 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21947
21948         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
21949         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
21950         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
21951         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
21952         Refreshed.
21953         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
21954         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
21955         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
21956         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
21957         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
21958         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
21959         Refreshed.
21960
21961 2012-05-27  David S. Miller  <davem@davemloft.net>
21962
21963         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
21964         (___Q_zero): New.
21965         (__Q_simulate_exceptions): Return void.  Change to simulate
21966         exceptions by writing into the %fsr.
21967         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
21968         (__Qp_handle_exceptions): Likewise.
21969         (numbers): Delete.
21970         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
21971         __Qp_handle_exceptions.
21972         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
21973         __Qp_handle_exceptions.
21974         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
21975         as unused and give dummy FP_RND_NEAREST initializer.
21976         (FP_INHIBIT_RESULTS): Define.
21977         (___Q_simulate_exceptions): Update declaration.
21978         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
21979         formatting.
21980         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
21981         as unused and give dummy FP_RND_NEAREST initializer.
21982         (__Qp_handle_exceptions): Update declaration.
21983         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
21984         formatting.
21985
21986 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
21987
21988         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
21989         the temporary FPU control word.
21990         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
21991         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
21992         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
21993         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
21994         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
21995         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21996         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21997         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21998         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21999         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
22000         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22001
22002 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22003
22004         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
22005         fields.
22006
22007 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
22008
22009         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
22010         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
22011         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
22012         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
22013         Likewise.
22014         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
22015         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
22016         Likewise.
22017
22018 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
22019
22020         * po/h.po: Update from translation team.
22021
22022 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
22023
22024         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
22025
22026         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
22027         handling of denormals.
22028         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
22029         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
22030         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
22031         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
22032         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
22033         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
22034         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
22035         Likewise.
22036
22037 2012-05-26  Marek Polacek  <polacek@redhat.com>
22038
22039         [BZ #14152]
22040         * math/libm-test.inc (fma_test): Don't always expect underflow
22041         exception.
22042
22043 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22044
22045         [BZ #12416]
22046         * elf/tst-execstack.c: Include stackinfo.h.
22047         (do_test): Adjust test case to ensure that pthread_getattr_np
22048         behaviour remains the same after marking stack executable.
22049
22050 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
22051
22052         * sysdeps/unix/sysv/linux/kernel-features.h
22053         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
22054         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
22055         kernel-features.h.
22056         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
22057         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
22058         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
22059         kernel-features.h.
22060         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
22061         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
22062
22063 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
22064
22065         * configure.in: Define the default includes to being none.
22066         * configure: Regenerated.
22067
22068 2012-05-25  Roland McGrath  <roland@hack.frob.com>
22069
22070         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
22071         * sysdeps/x86_64/setjmp.S: Likewise.
22072         * sysdeps/i386/bsd-setjmp.S: Likewise.
22073         * sysdeps/i386/bsd-_setjmp.S: Likewise.
22074         * sysdeps/i386/setjmp.S: Likewise.
22075         * sysdeps/i386/__longjmp.S: Likewise.
22076         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
22077         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
22078
22079         * include/stap-probe.h: New file.
22080         * configure.in: Handle --enable-systemtap.
22081         * configure: Regenerated.
22082         * config.h.in (USE_STAP_PROBE): New #undef.
22083         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
22084         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
22085         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
22086
22087 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
22088
22089         [BZ #13717]
22090         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
22091         to 2.4.0 where earlier.
22092         * sysdeps/unix/sysv/linux/configure: Regenerated.
22093         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22094         <kernel-features.h>.
22095         [__ASSUME_32BITUIDS]: Make code unconditional.
22096         [!__ASSUME_32BITUIDS]: Remove conditional code.
22097         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
22098         <kernel-features.h>.
22099         [__ASSUME_32BITUIDS]: Make code unconditional.
22100         [!__ASSUME_32BITUIDS]: Remove conditional code.
22101         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
22102         [__ASSUME_32BITUIDS]: Make code unconditional.
22103         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
22104         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
22105         <kernel-features.h>.
22106         [__ASSUME_32BITUIDS]: Make code unconditional.
22107         [!__ASSUME_32BITUIDS]: Remove conditional code.
22108         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
22109         <kernel-features.h>.
22110         [__ASSUME_32BITUIDS]: Make code unconditional.
22111         [!__ASSUME_32BITUIDS]: Remove conditional code.
22112         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
22113         <kernel-features.h>.
22114         [__ASSUME_32BITUIDS]: Make code unconditional.
22115         [!__ASSUME_32BITUIDS]: Remove conditional code.
22116         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
22117         <kernel-features.h>.
22118         [__ASSUME_32BITUIDS]: Make code unconditional.
22119         [!__ASSUME_32BITUIDS]: Remove conditional code.
22120         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22121         <kernel-features.h>.
22122         [__ASSUME_32BITUIDS]: Make code unconditional.
22123         [!__ASSUME_32BITUIDS]: Remove conditional code.
22124         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22125         <kernel-features.h>.
22126         [__ASSUME_32BITUIDS]: Make code unconditional.
22127         [!__ASSUME_32BITUIDS]: Remove conditional code.
22128         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
22129         <kernel-features.h>.
22130         [__ASSUME_32BITUIDS]: Make code unconditional.
22131         [!__ASSUME_32BITUIDS]: Remove conditional code.
22132         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22133         <kernel-features.h>.
22134         [__ASSUME_32BITUIDS]: Make code unconditional.
22135         [!__ASSUME_32BITUIDS]: Remove conditional code.
22136         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22137         <kernel-features.h>.
22138         [__ASSUME_32BITUIDS]: Make code unconditional.
22139         [!__ASSUME_32BITUIDS]: Remove conditional code.
22140         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
22141         <kernel-features.h>.
22142         [__ASSUME_32BITUIDS]: Make code unconditional.
22143         [!__ASSUME_32BITUIDS]: Remove conditional code.
22144         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
22145         <kernel-features.h>.
22146         [__NR_setresgid] (__setresgid): Do not declare.
22147         [__ASSUME_32BITUIDS]: Make code unconditional.
22148         [!__ASSUME_32BITUIDS]: Remove conditional code.
22149         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
22150         <kernel-features.h>.
22151         [__NR_setresuid] (__setresuid): Do not declare.
22152         [__ASSUME_32BITUIDS]: Make code unconditional.
22153         [!__ASSUME_32BITUIDS]: Remove conditional code.
22154         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
22155         <kernel-features.h>.
22156         [__ASSUME_32BITUIDS]: Make code unconditional.
22157         [!__ASSUME_32BITUIDS]: Remove conditional code.
22158         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
22159         <kernel-features.h>.
22160         [__ASSUME_32BITUIDS]: Make code unconditional.
22161         [!__ASSUME_32BITUIDS]: Remove conditional code.
22162         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
22163         <kernel-features.h>.
22164         [__ASSUME_32BITUIDS]: Make code unconditional.
22165         [!__ASSUME_32BITUIDS]: Remove conditional code.
22166         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
22167         <kernel-features.h>.
22168         [__ASSUME_32BITUIDS]: Make code unconditional.
22169         [!__ASSUME_32BITUIDS]: Remove conditional code.
22170         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
22171         <kernel-features.h>.
22172         [__ASSUME_32BITUIDS]: Make code unconditional.
22173         [!__ASSUME_32BITUIDS]: Remove conditional code.
22174         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
22175         <kernel-features.h>.
22176         [__ASSUME_32BITUIDS]: Make code unconditional.
22177         [!__ASSUME_32BITUIDS]: Remove conditional code.
22178         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
22179         <kernel-features.h>.
22180         [__ASSUME_32BITUIDS]: Make code unconditional.
22181         [!__ASSUME_32BITUIDS]: Remove conditional code.
22182         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
22183         <kernel-features.h>.
22184         [__ASSUME_32BITUIDS]: Make code unconditional.
22185         [!__ASSUME_32BITUIDS]: Remove conditional code.
22186         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
22187         <kernel-features.h>.
22188         [__ASSUME_32BITUIDS]: Make code unconditional.
22189         [!__ASSUME_32BITUIDS]: Remove conditional code.
22190         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
22191         <kernel-features.h>.
22192         [__ASSUME_32BITUIDS]: Make code unconditional.
22193         [!__ASSUME_32BITUIDS]: Remove conditional code.
22194         * sysdeps/unix/sysv/linux/kernel-features.h
22195         (__ASSUME_SETRESUID_SYSCALL): Remove.
22196         (__ASSUME_SETRESGID_SYSCALL): Likewise.
22197         (__ASSUME_32BITUIDS): Likewise.
22198         (__ASSUME_LDT_WORKS): Likewise.
22199         (__ASSUME_O_DIRECTORY): Likewise.
22200         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
22201         architecture but not kernel version.
22202         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
22203         (__ASSUME_MMAP2_SYSCALL): Likewise.
22204         (__ASSUME_STAT64_SYSCALL): Likewise.
22205         (__ASSUME_IPC64): Likewise.
22206         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
22207         <kernel-features.h>.
22208         [__ASSUME_32BITUIDS]: Make code unconditional.
22209         [!__ASSUME_32BITUIDS]: Remove conditional code.
22210         * sysdeps/unix/sysv/linux/opendir.c: Do not include
22211         <kernel-features.h>.
22212         [__ASSUME_O_DIRECTORY]: Make code unconditional.
22213         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
22214         132096]: Remove conditional code.
22215         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
22216         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
22217         <kernel-features.h>.
22218         [__ASSUME_32BITUIDS]: Make code unconditional.
22219         [!__ASSUME_32BITUIDS]: Remove conditional code.
22220         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
22221         <kernel-features.h>.
22222         [__ASSUME_32BITUIDS]: Make code unconditional.
22223         [!__ASSUME_32BITUIDS]: Remove conditional code.
22224         * sysdeps/unix/sysv/linux/setegid.c: Do not include
22225         <kernel-features.h>.
22226         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
22227         unconditional.
22228         (__setresgid): Do not declare.
22229         [__ASSUME_32BITUIDS]: Make code unconditional.
22230         [!__ASSUME_32BITUIDS]: Remove conditional code.
22231         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
22232         <kernel-features.h>.
22233         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
22234         unconditional.
22235         (__setresuid): Do not declare.
22236         [__ASSUME_32BITUIDS]: Make code unconditional.
22237         [!__ASSUME_32BITUIDS]: Remove conditional code.
22238         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22239         <kernel-features.h>.
22240         [__ASSUME_32BITUIDS]: Make code unconditional.
22241         [!__ASSUME_32BITUIDS]: Remove conditional code.
22242         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
22243         <kernel-features.h>.
22244         [__ASSUME_32BITUIDS]: Make code unconditional.
22245         [!__ASSUME_32BITUIDS]: Remove conditional code.
22246
22247 2012-05-25  Richard Henderson  <rth@twiddle.net>
22248
22249         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
22250         dl_hwcap to ifunc resolver.
22251         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
22252         elf_ifunc_invoke.
22253         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
22254         dl_hwcap to ifunc resolver.
22255         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
22256
22257 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22258
22259         [BZ #14153]
22260         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
22261         for |x| <= 2**-26, not 2**-57.
22262         * math/libm-test.inc (acos_test): Do not allow spurious underflow
22263         exception.
22264
22265 2012-05-24  Jeff Law  <law@redhat.com>
22266
22267         * stdio-common/Makefile (tests): Add bug25.
22268         * stdio-common/bug25.c: New test.
22269
22270 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
22271
22272         [BZ #13576]
22273         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
22274         multiple of MALLOC_ALIGNMENT in size.
22275         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
22276
22277 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22278
22279         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
22280         Require >= 256.
22281         (FILENAME_MAX): Use macro-int-constant.
22282         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
22283         (_IOFBF): Use macro-int-constant.
22284         (_IOLBF): Likewise.
22285         (_IONBF): Likewise.
22286         (SEEK_CUR): Likewise.
22287         (SEEK_END): Likewise.
22288         (SEEK_SET): Likewise.
22289         (TMP_MAX): Likewise.
22290         (EOF): Use macro-int-constant.  Require < 0.
22291         (NULL): Use macro-constant.  Require == 0.
22292         (stdin): Require type to be FILE *.
22293         (stdout): Likewise.
22294         (stderr): Likewise.
22295         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
22296         macro-int-constant.
22297         (EXIT_SUCCESS): Likewise.
22298         (NULL): Use macro-constant.  Require == 0.
22299         (RAND_MAX): Use macro-int-constant.
22300         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
22301         [C99-based standards] (strtof): Require function.
22302         [C99-based standards] (strtold): Likewise.
22303         [C99-based standards] (strtoll): Likewise.
22304         [C99-based standards] (strtoull): Likewise.
22305         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
22306         [ISO || ISO99 || ISO11] (limits.h): Likewise.
22307         [ISO || ISO99 || ISO11] (math.h): Likewise.
22308         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
22309         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
22310         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22311
22312 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
22313
22314         [BZ #14132]
22315         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
22316         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
22317         * intl/dgettext.c (DCGETTEXT): Likewise.
22318         * intl/gettext.c (DCGETTEXT): Likewise.
22319         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
22320         * posix/regex_internal.h (gettext): Likewise.
22321         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
22322         Remove declaration.
22323         * include/argz.h (__argz_count_internal)
22324         (__argz_stringify_internal): Remove declaration.
22325         (__argz_count, __argz_stringify): Declare hidden proto.
22326         * intl/dcgettext.c: Remove use of INTDEF.
22327         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
22328         * string/argz-stringify.c: Likewise.
22329         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
22330         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
22331         Declare hidden proto.
22332         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
22333         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
22334         Declare hidden proto.
22335         * include/stdio.h (__asprintf_internal): Don't declare.
22336         (__asprintf): Don't define as macro.  Declare hidden proto.
22337         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
22338         (__fsetlocking): Declare hidden proto.
22339         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
22340         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
22341         hidden proto.
22342         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
22343         (_IO_setlinebuf): Remove use of INTUSE.
22344         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
22345         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
22346         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
22347         Remove declaration.
22348         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
22349         (_IO_do_flush): Remove use of INTUSE.
22350         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
22351         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
22352         (_IO_adjust_column, _IO_least_wmarker)
22353         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
22354         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
22355         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
22356         (_IO_default_doallocate, _IO_wdefault_doallocate)
22357         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
22358         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
22359         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
22360         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
22361         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
22362         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
22363         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
22364         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
22365         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
22366         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
22367         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
22368         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
22369         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
22370         proto.
22371         (_IO_flush_all_internal, _IO_adjust_column_internal)
22372         (_IO_default_uflow_internal, _IO_default_finish_internal)
22373         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
22374         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
22375         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
22376         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
22377         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
22378         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
22379         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
22380         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
22381         (_IO_file_close_internal, _IO_file_close_it_internal)
22382         (_IO_file_underflow_internal, _IO_file_overflow_internal)
22383         (_IO_file_init_internal, _IO_file_attach_internal)
22384         (_IO_file_fopen_internal, _IO_file_read_internal)
22385         (_IO_file_sync_internal, _IO_file_seek_internal)
22386         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
22387         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
22388         (_IO_str_underflow_internal, _IO_str_overflow_internal)
22389         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
22390         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
22391         (_IO_list_all_internal, _IO_link_in_internal)
22392         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
22393         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
22394         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
22395         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
22396         (_IO_do_write_internal, _IO_padn_internal)
22397         (_IO_getline_info_internal, _IO_getline_internal)
22398         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
22399         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
22400         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
22401         (_IO_vfscanf_internal, _IO_vfprintf_internal)
22402         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
22403         (_IO_init_internal, _IO_un_link_internal): Don't declare.
22404         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
22405         with libc_hidden_ver, remove use of INTUSE.
22406         * libio/genops.c: Likewise.
22407         * libio/freopen.c: Likewise.
22408         * libio/freopen64.c: Likewise.
22409         * libio/iofclose.c: Likewise.
22410         * libio/iofdopen.c: Likewise.
22411         * libio/iofflush.c: Likewise.
22412         * libio/iofflush_u.c: Likewise.
22413         * libio/iofgets.c: Likewise.
22414         * libio/iofgets_u.c: Likewise.
22415         * libio/iofopen.c: Likewise.
22416         * libio/iofopncook.c: Likewise.
22417         * libio/iofread.c: Likewise.
22418         * libio/iofread_u.c: Likewise.
22419         * libio/ioftell.c: Likewise.
22420         * libio/iofwrite.c: Likewise.
22421         * libio/iogetline.c: Likewise.
22422         * libio/iogets.c: Likewise.
22423         * libio/iogetwline.c: Likewise.
22424         * libio/iopadn.c: Likewise.
22425         * libio/iopopen.c: Likewise.
22426         * libio/ioseekoff.c: Likewise.
22427         * libio/ioseekpos.c: Likewise.
22428         * libio/iosetbuffer.c: Likewise.
22429         * libio/iosetvbuf.c: Likewise.
22430         * libio/ioungetc.c: Likewise.
22431         * libio/ioungetwc.c: Likewise.
22432         * libio/iovdprintf.c: Likewise.
22433         * libio/iovsprintf.c: Likewise.
22434         * libio/iovsscanf.c: Likewise.
22435         * libio/memstream.c: Likewise.
22436         * libio/obprintf.c: Likewise.
22437         * libio/oldfileops.c: Likewise.
22438         * libio/oldiofclose.c: Likewise.
22439         * libio/oldiofdopen.c: Likewise.
22440         * libio/oldiofopen.c: Likewise.
22441         * libio/oldiopopen.c: Likewise.
22442         * libio/oldstdfiles.c: Likewise.
22443         * libio/putc.c: Likewise.
22444         * libio/setbuf.c: Likewise.
22445         * libio/setlinebuf.c: Likewise.
22446         * libio/stdfiles.c: Likewise.
22447         * libio/strops.c: Likewise.
22448         * libio/vasprintf.c: Likewise.
22449         * libio/vscanf.c: Likewise.
22450         * libio/vsnprintf.c: Likewise.
22451         * libio/vswprintf.c: Likewise.
22452         * libio/wfiledoalloc.c: Likewise.
22453         * libio/wfileops.c: Likewise.
22454         * libio/wgenops.c: Likewise.
22455         * libio/wmemstream.c: Likewise.
22456         * libio/wstrops.c: Likewise.
22457         * libio/__fpurge.c: Likewise.
22458         * libio/__fsetlocking.c: Likewise.
22459         * assert/assert.c: Likewise.
22460         * debug/fgets_chk.c: Likewise.
22461         * debug/fgets_u_chk.c: Likewise.
22462         * debug/fread_chk.c: Likewise.
22463         * debug/fread_u_chk.c: Likewise.
22464         * debug/gets_chk.c: Likewise.
22465         * debug/obprintf_chk.c: Likewise.
22466         * debug/vasprintf_chk.c: Likewise.
22467         * debug/vdprintf_chk.c: Likewise.
22468         * debug/vsnprintf_chk.c: Likewise.
22469         * debug/vsprintf_chk.c: Likewise.
22470         * malloc/mtrace.c: Likewise.
22471         * misc/error.c: Likewise.
22472         * misc/syslog.c: Likewise.
22473         * stdio-common/asprintf.c: Likewise.
22474         * stdio-common/fxprintf.c: Likewise.
22475         * stdio-common/getw.c: Likewise.
22476         * stdio-common/isoc99_fscanf.c: Likewise.
22477         * stdio-common/isoc99_scanf.c: Likewise.
22478         * stdio-common/isoc99_vfscanf.c: Likewise.
22479         * stdio-common/isoc99_vscanf.c: Likewise.
22480         * stdio-common/isoc99_vsscanf.c: Likewise.
22481         * stdio-common/printf-prs.c: Likewise.
22482         * stdio-common/printf_fp.c: Likewise.
22483         * stdio-common/printf_fphex.c: Likewise.
22484         * stdio-common/printf_size.c: Likewise.
22485         * stdio-common/putw.c: Likewise.
22486         * stdio-common/scanf.c: Likewise.
22487         * stdio-common/sprintf.c: Likewise.
22488         * stdio-common/tmpfile.c: Likewise.
22489         * stdio-common/vfprintf.c: Likewise.
22490         * stdio-common/vfscanf.c: Likewise.
22491         * stdlib/strfmon_l.c: Likewise.
22492         * sunrpc/openchild.c: Likewise.
22493         * sunrpc/xdr_stdio.c: Likewise.
22494         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
22495         * sysdeps/mach/hurd/tmpfile.c: Likewise.
22496
22497 2012-05-24  Roland McGrath  <roland@hack.frob.com>
22498
22499         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
22500
22501         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
22502         in the third column, to generate for the shared library an IFUNC
22503         that uses _dl_vdso_vsym.
22504         * Makerules (COMPILE.c, compile-stdin.c): New variables.
22505         * Makeconfig (object-suffixes-noshared): New variable.
22506
22507         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
22508         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
22509         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
22510         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
22511
22512         [BZ #14132]
22513         * include/sys/time.h (__gettimeofday): Remove macro.
22514         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
22515         * time/gettimeofday.c (__gettimeofday): Remove #undef.
22516         Remove INTDEF.
22517         (__gettimeofday): Add libc_hidden_def.
22518         (gettimeofday): Add libc_hidden_weak.
22519         * sysdeps/mach/gettimeofday.c: Likewise.
22520         * sysdeps/posix/gettimeofday.c: Likewise.
22521         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
22522         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
22523         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
22524         (__gettimeofday_internal): Remove strong_alias.
22525         (__gettimeofday): Add libc_hidden_def.
22526         (gettimeofday): Add libc_hidden_weak.
22527         * sysdeps/unix/syscalls.list (gettimeofday):
22528         Remove __gettimeofday_internal alias.
22529
22530 2012-05-24  Daniel Jacobowitz  <drow@false.org>
22531             H.J. Lu  <hongjiu.lu@intel.com>
22532
22533         [BZ #12495]
22534         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
22535         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
22536         (largebin_index_32_big): New.
22537         (largebin_index): Use it for 16-byte alignment.
22538         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
22539         correction with front_misalign.
22540
22541 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
22542
22543         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
22544         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
22545         Likewise.
22546         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
22547         Likewise.
22548         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
22549         Likewise.
22550         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
22551         Likewise.
22552         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
22553         Likewise.
22554         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
22555         Likewise.
22556         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
22557         Likewise.
22558         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
22559         Likewise.
22560         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
22561         Likewise.
22562         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
22563         Likewise.
22564         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
22565         Likewise.
22566         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
22567         Likewise.
22568
22569         * scripts/data/c++-types-x32-linux-gnu.data: New file.
22570         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
22571
22572 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22573
22574         [BZ #10846]
22575         [BZ #14036]
22576         * math/libm-test.inc (exp_test): Add test from bug 14036.
22577         (pow_test): Add test from bug 10846.
22578
22579         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
22580         and other flags.
22581         (special_function): Do not include flags in test name.
22582         (parse_args): Likewise.
22583         * sysdeps/i386/fpu/libm-test-ulps: Update.
22584         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
22585         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
22586         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
22587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22588
22589         * math/gen-libm-test.pl (%beautify): Add entries for underflow
22590         exceptions.
22591         * math/libm-test.inc ("Philosophy"): Update comment about
22592         exception testing.
22593         (UNDERFLOW_EXCEPTION): New macro.
22594         (UNDERFLOW_EXCEPTION_OK): Likewise.
22595         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
22596         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
22597         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
22598         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
22599         (INVALID_EXCEPTION_OK): Update value.
22600         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
22601         (OVERFLOW_EXCEPTION_OK): Likewise.
22602         (IGNORE_ZERO_INF_SIGN): Likewise.
22603         (test_exceptions): Handle underflow exceptions.
22604         (acos_test): Update for underflow exception expectations.
22605         (cexp_test): Likewise.
22606         (clog_test): Likewise.
22607         (clog10_test): Likewise.
22608         (csqrt_test): Likewise.
22609         (ctan_test): Likewise.
22610         (ctanh_test): Likewise.
22611         (exp_test): Likewise.
22612         (exp10_test): Likewise.
22613         (exp2_test): Likewise.
22614         (expm1_test): Likewise.
22615         (fma_test): Likewise.
22616         (j0_test): Likewise.
22617         (jn_test): Likewise.
22618         (nexttoward_test): Likewise.
22619         (pow_test): Likewise.
22620         (scalbn_test): Likewise.
22621         (scalbln_test): Likewise.
22622         (tan_test): Likewise.
22623         (y1_test): Likewise.
22624         * sysdeps/i386/fpu/libm-test-ulps: Update.
22625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22626
22627 2012-05-23  David S. Miller  <davem@davemloft.net>
22628
22629         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
22630         (__libc_sigaction): Remove unused local variables.
22631
22632 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
22633
22634         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
22635
22636 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
22637
22638         mktime: avoid signed integer overflow
22639         * time/mktime.c (__mktime_internal): Do not mishandle the case
22640         where diff == INT_MIN.
22641
22642         mktime: simplify computation of average
22643         * time/mktime.c (ranged_convert): Use new time_t_avg function
22644         instead of rolling our own (probably-slower) code.
22645
22646         mktime: do not assume signed right shift propagates sign bit
22647         * time/mktime.c (isdst_differ): New static function.
22648         (__mktime_internal): No need to normalize tm_isdst now.
22649         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
22650         tm_isdst values.
22651
22652         mktime: merge another wrapv change from gnulib
22653         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
22654         from some compilers.
22655
22656         mktime: remove incorrect attempt at unusual arithmetics
22657         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
22658         The code didn't really work on such machines anyway.
22659         (TYPE_MINIMUM): Assume two's complement.
22660         (twos_complement_arithmetic): Verify that long_int and time_t
22661         are two's complement (or unsigned, in the latter case).
22662
22663         mktime: check signed shifts on long_int and time_t, too
22664         * time/mktime.c (SHR): Check that shifts work as desired
22665         on the types long_int and time_t too, as SHR is used on
22666         such types.
22667
22668         mktime: do not assume 'long' is wide enough
22669         * time/mktime.c (verify): Move decl up.
22670         (long_int): New type.
22671         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
22672         to remove assumption in the code that 'long' is wide enough to
22673         store year values.  This assumption is not true on x32 and on
22674         some non-glibc platforms.
22675
22676         mktime: merge wrapv change from gnulib
22677         * time/mktime.c (WRAPV): New macro.
22678         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
22679         (guess_time_tm, __mktime_internal): Do not assume that signed
22680         integer overflow wraps around; modern compilers generate code
22681         where this assumption is no longer valid.
22682
22683 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
22684
22685         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
22686         Replace "jmp L(pseudo_end)" with "ret".
22687         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
22688         Likewise.
22689
22690 2012-05-23  Andreas Jaeger  <aj@suse.de>
22691
22692         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
22693         * sysdeps/unix/sysv/linux/poll.c: Remove file.
22694
22695 2012-05-23  Andreas Jaeger  <aj@suse.de>
22696             Maximilian Attems  <max@stro.at>
22697
22698         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
22699         New macros.
22700
22701 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
22702
22703         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
22704         code so that pseudo_end is just ret and the stack pointer is
22705         correct also for static library in error case.
22706
22707 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
22708
22709         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
22710         move to syscalls.list.
22711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
22712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
22713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
22714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
22715
22716         * manual/install.texi (Running make install): Do not mention Linux
22717         kernel version for which pt_chown is not needed.
22718         (Linux): Do not mention problems with nscd with 2.0 kernels.
22719         * INSTALL: Regenerated.
22720
22721 2012-05-23  Andreas Jaeger  <aj@suse.de>
22722
22723         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
22724         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
22725         macro.
22726         * sysdeps/unix/sysv/linux/s390/bits/mman.h
22727         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22728         * sysdeps/unix/sysv/linux/sh/bits/mman.h
22729         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22730         * sysdeps/unix/sysv/linux/i386/bits/mman.h
22731         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22732         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
22733         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22734         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
22735         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22736         * sysdeps/unix/sysv/linux/bits/in.h
22737         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
22738
22739 2012-05-22  Roland McGrath  <roland@hack.frob.com>
22740
22741         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
22742         (PREPARE_VERSION): Just use assert instead, it will be elided
22743         under [NDEBUG] anyway.
22744
22745 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
22746
22747         * sysdeps/unix/sysv/linux/Makefile: Include
22748         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
22749         (sysdep_routines): Remove sysctl.
22750         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
22751         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
22752         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
22753         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
22754         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
22755
22756 2012-05-22  Andreas Jaeger  <aj@suse.de>
22757
22758         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
22759         that pseudo_end is just ret and the stack pointer is correct also
22760         for static library in error case.
22761
22762 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
22763
22764         [BZ #14122]
22765         * nss/nsswitch.c (defconfig_entries): New variable.
22766         (__nss_database_lookup): Don't leak defconfig entries.
22767         (nss_parse_service_list): Don't leak on error paths.
22768         (free_database_entries): New function.
22769         (free_defconfig): New function.
22770         (free_mem): Move common code to free_database_entries.
22771
22772 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
22773
22774         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
22775         Add arch_prctl.
22776         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
22777
22778         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22779         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
22780         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
22781         New macro.
22782         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
22783         (INTERNAL_SYSCALL_TYPES): Likewise.
22784         (LOAD_ARGS_TYPES_[1-6]): Likewise.
22785         (LOAD_REGS_TYPES_[1-6]): Likewise.
22786         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
22787         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
22788
22789 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22790
22791         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
22792         copysignl for GLIBC_2_0.
22793         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
22794         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
22795         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
22796         logbl for GLIBC_2_0.
22797         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
22798         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
22799
22800 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
22801
22802         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
22803         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
22804
22805         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
22806         Use "neg %eax".
22807
22808         * time/mktime.c: Update copyright years.
22809
22810 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
22811
22812         mktime: merge comment-quoting-style change from gnulib
22813         * time/mktime.c: Quote 'like this' in comments.
22814         The GNU coding standards suggest that we no longer quote `like this',
22815         as "`" and "'" are typically rendered asymmetrically nowadays.
22816         The typical gnulib style is to quote 'like this' when quoting
22817         code, and "like this" when quoting English.
22818
22819         * time/mktime.c (compile-command): Add "-I.".
22820
22821         mktime: merge mktime-internal.h change from gnulib
22822         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
22823
22824         mktime: merge time_r change from gnulib
22825         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
22826
22827         mktime: merge DEBUG change from gnulib
22828         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
22829         case system <time.h> has a #define.
22830
22831         mktime: merge <sys/types.h> change from gnulib
22832         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
22833         since <time.t> is now guaranteed to define time_t.
22834
22835         mktime: merge HAVE_CONFIG_H change from gnulib
22836         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
22837
22838 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
22839
22840         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
22841         Use "neg %eax".
22842
22843         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
22844         __rlim_t cast.
22845         (struct rusage): Use anonymous union to pad each field to
22846         __syscall_slong_t.
22847
22848 2012-05-21  David S. Miller  <davem@davemloft.net>
22849
22850         * Makefules (o-iterator): Remove .s cases.
22851         (compile-command.s): Delete.
22852         (COMPILE.s): Delete.
22853         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
22854
22855 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
22856
22857         * configure.in (libc_cv_predef_stack_protector): Only consider
22858         "foobar" and "__stack_chk_fail" lines in libc_undefs.
22859         * configure: Regenerated.
22860
22861 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
22862
22863         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
22864         New macro.  Use R*LP on int and pointer.
22865         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
22866         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
22867         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
22868         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
22869
22870         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
22871         [__WORDSIZE_TIME64_COMPAT32] instead of
22872         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
22873         (struct utmp): Likewise.
22874         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
22875         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
22876         Renamed to ...
22877         (__WORDSIZE_TIME64_COMPAT32): This.
22878         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
22879         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
22880         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
22881         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
22882         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
22883         (__WORDSIZE_TIME64_COMPAT32): New macro.
22884
22885 2012-05-21  Andreas Jaeger  <aj@suse.de>
22886
22887         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
22888         only if [SHARED]. Add prototype for __wcschr_ia32.
22889
22890 2012-05-21  Roland McGrath  <roland@hack.frob.com>
22891
22892         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
22893         of %rbp unmolested in the jmp_buf while mangling the low bits.
22894         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
22895         unmolested high bits of %rbp while demangling the low bits.
22896         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
22897
22898 2012-05-21  Andreas Jaeger  <aj@suse.de>
22899
22900         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
22901         * sunrpc/svc_simple.c: Use it for registerrpc.
22902         * sunrpc/xcrypt.c: Use it for passwd2des.
22903
22904         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
22905
22906 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
22907
22908         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
22909         Don't define if [__SYSCALL_WORDSIZE != 32].
22910         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
22911         New macro.
22912
22913 2012-05-21  Bruno Haible  <bruno@clisp.org>
22914             Andreas Jaeger  <aj@suse.de>
22915
22916         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
22917         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
22918         inptr and inend for must_buffer_ch.
22919         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
22920         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
22921         * stdio-common/Makefile (tests): Remove bug15.
22922         (bug15-ENV): Remove macro.
22923         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
22924         anymore.
22925
22926 2012-05-19  Andreas Jaeger  <aj@suse.de>
22927             Roland McGrath  <roland@hack.frob.com>
22928
22929         * manual/contrib.texi: Completely rewritten. It contains now an
22930         alphabetical list of contributors and their contributions.
22931
22932 2012-05-21  Richard Henderson  <rth@twiddle.net>
22933
22934         * misc/getauxval.c (__getauxval): Use unsigned long int.
22935         * misc/sys/auxv.h: Include <sys/cdefs.h>.
22936         (getauxval): Use unsigned long int.
22937
22938 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
22939
22940         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
22941
22942 2012-05-21  Roland McGrath  <roland@hack.frob.com>
22943
22944         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
22945         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
22946         __alignof__ (long double).
22947
22948 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22949
22950         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22951
22952 2012-05-20  Richard Henderson  <rth@twiddle.net>
22953
22954         * misc/getauxval.c: New file.
22955         * misc/sys/auxv.h: New file.
22956         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
22957         (routines): Add getauxval.
22958         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
22959         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
22960         * elf/dl-sysdep.c (_dl_auxv): Remove.
22961         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
22962         * elf/dl-support.c (_dl_auxv): New variable.
22963         (_dl_aux_init): Initialize it.
22964         * manual/startup.texi (Auxiliary Vector): New node.
22965         * sysdeps/generic/bits/hwcap.h: New file.
22966         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
22967         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
22968         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
22969         * sysdeps/sparc/sysdep.h: ... here.  Include it.
22970         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
22971         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
22972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
22973         Update.
22974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
22975         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
22976         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
22977         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
22978         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
22979         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
22980         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
22981         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
22982
22983 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22984
22985         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22986
22987 2012-05-19  David S. Miller  <davem@davemloft.net>
22988
22989         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22990
22991 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
22992
22993         [BZ #14123]
22994         * math/s_ccosh.c: Include <float.h>
22995         (__ccosh): Avoid internal overflow calculating sinh and cosh
22996         values before multiplying by sin and cos values.
22997         * math/s_ccoshf.c: Likewise.
22998         * math/s_ccoshl.c: Likewise.
22999         * math/s_csin.c: Likewise.
23000         * math/s_csinf.c: Likewise.
23001         * math/s_csinl.c: Likewise.
23002         * math/s_csinh.c: Likewise.
23003         * math/s_csinhf.c: Likewise.
23004         * math/s_csinhl.c: Likewise.
23005         * math/libm-test.inc (ccos_test): Add more tests.
23006         (ccosh_test): Likewise.
23007         (csin_test): Likewise.
23008         (csinh_test): Likewise.
23009         * sysdeps/i386/fpu/libm-test-ulps: Update.
23010         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23011
23012 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
23013
23014         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
23015         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
23016
23017         * sysdeps/x86_64/x32/_itoa.h: Add comment.
23018
23019 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23020
23021         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
23022         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
23023         * sysdeps/powerpc/soft-fp/Versions: Likewise.
23024         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
23025         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
23026         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
23027         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
23028         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
23029         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
23030         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
23031         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
23032         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
23033         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
23034         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
23035         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
23036         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
23037         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
23038         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
23039         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
23040         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
23041         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
23042         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
23043         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
23044         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
23045         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
23046         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
23047         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
23048         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
23049         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
23050         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
23051         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
23052
23053 2012-05-18  Andreas Jaeger  <aj@suse.de>
23054
23055         * csu/.gitignore: Delete.
23056
23057 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23058
23059         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
23060         (timex): Use __syscall_slong_t.
23061
23062 2012-05-18  Andreas Jaeger  <aj@suse.de>
23063             Carlos O'Donell  <carlos_odonell@mentor.com>
23064
23065         * manual/install.texi (Configuring and compiling): Update
23066         description about files modified in the source directory.
23067         * INSTALL: Regenerated.
23068
23069 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23070
23071         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
23072         value.  Use "or" to set return value to -1.
23073         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
23074         negate return value.
23075
23076 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23077
23078         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
23079         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
23080         failure if the compiler has Graphite support disabled.
23081         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
23082         Likewise.
23083         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
23084         CFLAGS-memmove.c): Likewise.
23085         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
23086         Likewise.
23087
23088 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23089
23090         * sysdeps/x86_64/x32/_itoa.h: New file.
23091
23092         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
23093         getdents system call only if kernel and user dirents have the
23094         same d_ino and d_off.
23095
23096         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
23097         LLONG_MAX != LONG_MAX.
23098         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23099         (_fitoa_word): Likewise.
23100
23101         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
23102         years.
23103         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
23104         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
23105         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
23106
23107         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
23108         include <bits/wordsize.h>.  Check __x86_64__ instead of
23109         __WORDSIZE.
23110         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
23111         if __x86_64__ is defined.  Use anonymous union on fpstate.
23112
23113         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
23114         anonymous union.
23115
23116 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
23117
23118         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
23119         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
23120         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
23121         Refer to _rtld_local_ro instead of _rtld_global_ro.
23122         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
23123         Likewise.
23124         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
23125         Likewise.
23126         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
23127         Likewise.
23128         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
23129         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
23130         of _rtld_global, and rtld_progname instead of _dl_argv[0].
23131
23132         * sysdeps/powerpc/powerpc32/dl-machine.c
23133         (__elf_machine_runtime_setup) [PROF]: Don't reference
23134         _dl_prof_resolve.
23135
23136 2012-05-18  Andreas Jaeger  <aj@suse.de>
23137
23138         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
23139         function only available for GCCs before 3.4 since GCC 3.4
23140         introduced a builtin.
23141         (lrint): Likewise.
23142         (llrintf): Likewise.
23143         (llrint): Likewise.
23144         (fmaxf): Likewise.
23145         (fmax): Likewise.
23146         (fminf): Likewise.
23147         (fmin): Likewise.
23148         (rint): Likewise.
23149         (rintf): Likewise.
23150         (nearbyint): Likewise.
23151         (nearbyintf): Likewise.
23152         (ceil): Likewise.
23153         (ceilf): Likewise.
23154         (floor): Likewise.
23155         (floorf): Likewise.
23156
23157 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23158
23159         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
23160         on both fields and cast pointer to __syscall_ulong_t.
23161
23162         * bits/types.h (__fsword_t): New type.
23163         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
23164         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
23165         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23166         (__FSWORD_T_TYPE): Likewise.
23167         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23168         (__FSWORD_T_TYPE): Likewise.
23169         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23170         (__FSWORD_T_TYPE): Likewise.
23171         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
23172         (__FSWORD_T_TYPE): Likewise.
23173         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
23174         __SWORD_TYPE with __fsword_t.
23175         (statfs64): Likewise.
23176
23177 2012-05-17  David S. Miller  <davem@davemloft.net>
23178
23179         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
23180
23181 2012-05-17  Andreas Jaeger  <aj@suse.de>
23182
23183         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
23184         warning.
23185
23186 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23187
23188         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
23189
23190 2012-05-17  Andreas Jaeger  <aj@suse.de>
23191
23192         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
23193         when it is used.
23194
23195 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
23196
23197         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
23198
23199 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23200
23201         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
23202         * sysdeps/x86_64/tst-mallocalign1.c: New file.
23203
23204 2012-05-17  Andreas Jaeger  <aj@suse.de>
23205             Carlos O'Donell  <carlos_odonell@mentor.com>
23206
23207         [BZ #14059]
23208         * sysdeps/x86_64/multiarch/init-arch.h
23209         (bit_YMM_Usable): Rename to...
23210         (bit_AVX_Usable): ... this.
23211         (bit_FMA4_Usable): New macro.
23212         (bit_XMM_state): New macro.
23213         (bit_YMM_state): New macro.
23214         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
23215         [__ASSEMBLER__] (index_AVX_Usable): ... this.
23216         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
23217         (CPUID_OSXSAVE): New macro.
23218         (CPUID_AVX): New macro.
23219         (CPUID_FMA4): New macro.
23220         (index_YMM_Usable): Rename to...
23221         (index_AVX_Usable): ... this.
23222         (HAS_AVX): Use HAS_ARCH_FEATURE.
23223         (HAS_FMA4): Likewise.
23224         (HAS_YMM_USABLE): Remove.
23225         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23226         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
23227         are present.
23228         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
23229         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
23230         * sysdeps/x86_64/multiarch/Makefile: Likewise.
23231         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
23232         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
23233
23234 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
23235
23236         * math/libm-test.c: Support platforms without multiple rounding modes.
23237         * math/bug-nextafter.c: Support platforms without FP exceptions.
23238         * math/bug-nexttoward.c: Likewise.
23239         * math/test-fenv.c: Likewise.
23240         * math/test-misc.c: Likewise.
23241         * stdlib/bug-getcontext.c: Likewise.
23242
23243 2012-05-17  Andreas Jaeger  <aj@suse.de>
23244
23245         * manual/examples/search.c (critter_cmp): Change signature to
23246         avoid warnings.
23247         * manual/string.texi (Collation Functions): Likewise.
23248
23249 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23250
23251         * bits/types.h: Fold copyright years.
23252         * bits/typesizes.h: Likewise.
23253         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
23254         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
23255         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
23256         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
23257         * time/time.h: Likewise.
23258
23259 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
23260
23261         [BZ #208]
23262         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
23263         in instead of returning them.  Return void.
23264         (__libc_mallinfo): Accumulate over all arenas.
23265         (__malloc_stats): Adjust for change in int_mallinfo interface.
23266
23267 2012-05-16  Roland McGrath  <roland@hack.frob.com>
23268
23269         [BZ #10375]
23270         * configure.in (NM): Add AC_CHECK_TOOL for it.
23271         (libc_extra_cflags): New substituted variable.
23272         Check for -fstack-protector being used implicitly.
23273         * configure: Regenerated.
23274         * config.make.in (config-extra-cflags): New variable,
23275         gets @libc_extra_cflags@.
23276         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
23277
23278         [BZ #10375]
23279         * configure.in: Check for _FORTIFY_SOURCE being predefined.
23280         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
23281         * configure: Regenerated.
23282         * config.make.in (CPPUNDEFS): New substituted variable.
23283         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
23284         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
23285         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
23286
23287 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23288
23289         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
23290         (mq_attr): Use __syscall_slong_t.
23291
23292 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23293
23294         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
23295         Check __x86_64__ instead of __WORDSIZE.
23296         (_STAT_VER_LINUX): Likewise.
23297         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
23298         __syscall_ulong_t and __syscall_slong_t.
23299         (stat64): Likewise.
23300
23301 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23302
23303         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
23304
23305 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23306
23307         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
23308
23309 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23310
23311         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
23312         __syscall_ulong_t.
23313
23314         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
23315         include <bits/wordsize.h>.  Check __x86_64__ instead of
23316         __WORDSIZE.
23317         (greg_t): Use "__extension__ long long int" if __x86_64__ is
23318         defined.
23319         (mcontext_t): Replace "unsigned long" with "unsigned long long".
23320
23321         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
23322         include <bits/wordsize.h>.  Check __x86_64__ instead of
23323         __WORDSIZE.
23324         (user_regs_struct): Use "__extension__ unsigned long long"
23325         instead of "unsigned long" if __x86_64__ is defined.
23326         (user): Likewise.  Pad after pointer field if __ILP32__ is
23327         defined.
23328
23329 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
23330
23331         * configure.in (makeinfo): Require version 4.5 or later.  Allow
23332         versions 5 to 9.
23333         * configure: Regenerated.
23334         * manual/install.texi (texinfo): Increase version requirement to
23335         4.5 or later.
23336         * INSTALL: Regenerated.
23337
23338         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
23339
23340 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23341
23342         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
23343
23344         * sysdeps/x86_64/x32/ffs.c: New file.
23345
23346         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
23347         __syscall_ulong_t.
23348         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
23349         defined.  Use __syscall_ulong_t.
23350         (shminfo): Use __syscall_ulong_t.
23351         (shm_info): Likewise.
23352
23353         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
23354         __syscall_ulong_t.
23355
23356         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
23357         <bits/wordsize.h>.
23358         (msgqnum_t): Use __syscall_ulong_t.
23359         (msglen_t): Likewise.
23360         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
23361         __syscall_ulong_t.
23362
23363         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
23364         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23365
23366         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
23367
23368         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
23369         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
23370
23371         * sysvipc/sys/msg.h (msgbuf): Replace long int with
23372         __syscall_slong_t.
23373
23374         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
23375         include <bits/wordsize.h>.  Check __x86_64__ instead of
23376         __WORDSIZE.
23377
23378         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
23379         "unsigned long long int" if __x86_64__ is defined.
23380         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
23381
23382         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
23383         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23384         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
23385
23386         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
23387         <stdint.h>.
23388         (GET_PC): Cast to uintptr_t first.
23389         (GET_FRAME): Likewise.
23390         (GET_STACK): Likewise.
23391
23392         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
23393         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
23394         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
23395         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
23396         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
23397         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
23398         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
23399         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
23400         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
23401         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
23402         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
23403         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
23404         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
23405         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
23406         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
23407         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
23408         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
23409         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
23410         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
23411         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
23412         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
23413         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
23414         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
23415         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
23416         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
23417         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
23418         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
23419         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
23420         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
23421
23422 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
23423
23424         * Makerules (+depfiles): Also collect depfiles from .oS in
23425         $(extra-objs).
23426         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
23427         .oS, $(libnldbl-routines)).
23428
23429         * Makerules (native-compile-mkdep-flags): Define.
23430         * sunrpc/Makefile (extra-objs): Add $(addprefix
23431         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
23432         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
23433         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
23434         calling $(make-target-directory).
23435
23436 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23437
23438         * bits/types.h (__snseconds_t): Removed.
23439         * time/time.h (struct timespec): Replace __snseconds_t with
23440         __syscall_slong_t.
23441         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
23442         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
23443         Likewise.
23444         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23445         (__SNSECONDS_T_TYPE): Likewise.
23446         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23447         (__SNSECONDS_T_TYPE): Likewise.
23448         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23449         (__SNSECONDS_T_TYPE): Likewise.
23450
23451 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23452
23453         * sysdeps/mach/hurd/bits/typesizes.h
23454         (__SYSCALL_SLONG_TYPE): New macro.
23455         (__SYSCALL_ULONG_TYPE): Likewise.
23456
23457 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23458
23459         * bits/types.h (__syscall_slong_t): New type.
23460         (__syscall_ulong_t): Likewise.
23461
23462         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
23463         (__SYSCALL_ULONG_TYPE): Likewise.
23464         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23465         (__SYSCALL_SLONG_TYPE): Likewise.
23466         (__SYSCALL_ULONG_TYPE): Likewise.
23467         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23468         (__SYSCALL_SLONG_TYPE): Likewise.
23469         (__SYSCALL_ULONG_TYPE): Likewise.
23470         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23471         (__SYSCALL_SLONG_TYPE): Likewise.
23472         (__SYSCALL_ULONG_TYPE): Likewise.
23473
23474 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23475
23476         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
23477         Add sigaltstack-offsets.sym.
23478         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
23479         <sigaltstack-offsets.h>.
23480         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
23481         longjmp_msg pointer.
23482         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
23483         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
23484         signal stack.
23485         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
23486
23487 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
23488
23489         * elf/stackguard-macros.h: Remove file.
23490         * sysdeps/generic/stackguard-macros.h: New file.
23491         * sysdeps/i386/stackguard-macros.h: Likewise.
23492         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
23493         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
23494         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
23495         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
23496         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
23497         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
23498         * sysdeps/x86_64/stackguard-macros.h: Likewise.
23499         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
23500         <elf/stackguard-macros.h>.
23501
23502         [BZ #14109]
23503         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
23504         __aligned__ in attribute.
23505         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
23506         (gregset_t): Likewise.
23507
23508 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23509
23510         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
23511         * sysdeps/x86_64/64/Implies-after: Here.  New file.
23512         * sysdeps/x86_64/x32/Implies-after: New file.
23513
23514 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23515
23516         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
23517         and access return value for _dl_profile_fixup.  Use R10_LP to
23518         load frame size.
23519
23520 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23521
23522         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
23523
23524 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23525
23526         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
23527         * sysdeps/x86_64/x32/sysdep.h: New file.
23528
23529 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23530
23531         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
23532         * sysdeps/x86_64/setjmp.S: Likewise.
23533
23534 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23535
23536         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
23537         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
23538         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
23539         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
23540         remove unused global constant.
23541
23542 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
23543
23544         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
23545         include of <not-cancel.h>.
23546
23547 2012-05-15  Roland McGrath  <roland@hack.frob.com>
23548
23549         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
23550
23551 2012-05-15  Jeff Law  <law@redhat.com>
23552             Andreas Jaeger  <aj@suse.de>
23553
23554         [BZ #13594]
23555         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
23556         out from...
23557         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
23558         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
23559         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
23560         code changing __hst_map_handle.map.
23561
23562 2012-05-15  Roland McGrath  <roland@hack.frob.com>
23563
23564         * configure.in (sysnames): Look for Implies-before and Implies-after
23565         files.
23566         * configure: Regenerated.
23567
23568 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23569
23570         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
23571         8-byte data alignment with LP_SIZE alignment.
23572
23573 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23574
23575         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
23576         into R10_LP.
23577
23578 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23579
23580         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
23581
23582 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23583
23584         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
23585         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
23586         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
23587         Likewise.
23588         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
23589
23590 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23591
23592         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
23593         (stackinfo_sub_sp): Likewise.
23594
23595 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23596
23597         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
23598         RAX_LP.
23599
23600 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23601
23602         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
23603         into R*_LP.
23604
23605 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23606
23607         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
23608         sizes into R*_LP.
23609
23610 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23611
23612         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
23613
23614 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23615
23616         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
23617         into R11_LP and load __x86_64_shared_cache_size_half into
23618         R8_LP.
23619
23620 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23621
23622         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
23623         R8_LP.
23624
23625 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23626
23627         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
23628         logb for POWER7.
23629         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
23630         logbf for POWER7.
23631         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
23632         logbl for POWER7.
23633         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
23634         powerpc32/power7/fpu/s_logb.c via #include.
23635         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
23636         powerpc32/power7/fpu/s_logbf.c via #include.
23637         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
23638         powerpc32/power7/fpu/s_logbl.c via #include.
23639
23640 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
23641
23642         * README.libm: Remove file.
23643
23644 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23645
23646         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
23647         count for x32.  Use R*_LP and omit operand-size suffix.
23648
23649 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23650
23651         * shlib-versions: Move x86_64-.*-linux.* entries to ...
23652         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
23653         * sysdeps/x86_64/x32/shlib-versions: New file.
23654
23655 2012-05-14  Roland McGrath  <roland@hack.frob.com>
23656
23657         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
23658         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
23659         Use _dl_fatal_printf instead.
23660
23661 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
23662
23663         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
23664         set if not set by the user.  Do not allow for being unset.
23665         * sysdeps/unix/sysv/linux/configure: Regenerated.
23666
23667 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23668
23669         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
23670         the `q' suffix from lea and replace .quad with ASM_ADDR.
23671
23672 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23673
23674         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
23675         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
23676         instead of $17.
23677         (PTR_DEMANGLE): Likewise.
23678
23679 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23680
23681         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
23682         (LP_OP): Likewise.
23683         (ASM_ADDR): Likewise.
23684         (RAX_LP): Likewise.
23685         (RBP_LP): Likewise.
23686         (RBX_LP): Likewise.
23687         (RCX_LP): Likewise.
23688         (RDI_LP): Likewise.
23689         (RSI_LP): Likewise.
23690         (RSP_LP): Likewise.
23691         (R8_LP): Likewise.
23692         (R9_LP): Likewise.
23693         (R10_LP): Likewise.
23694         (R10_LP): Likewise.
23695         (R11_LP): Likewise.
23696         (R12_LP): Likewise.
23697         (R13_LP): Likewise.
23698         (R14_LP): Likewise.
23699         (R15_LP): Likewise.
23700
23701 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23702
23703         * sysdeps/x86_64/x32/dl-machine.h: New file.
23704
23705 2012-05-14  Andreas Jaeger  <aj@suse.de>
23706
23707         * manual/Makefile (subdir): Remove export of subdir.
23708         (all): Remove target.
23709         (.PHONY): Remove all from list.
23710         (mkinstalldirs): Remove.
23711         (.PHONY): Remove installdirs from list.
23712         ($(inst_infodir)/libc.info): Use make-target-directory.
23713         (installdirs): Remove.
23714         (subdir_%): Remove.
23715         (glibc-targets): Remove.
23716         (lib): Remove.
23717         (stubs): Remove.
23718         ($(objpfx)stubs ../po/manual.pot): Remove.
23719         ($(objpfx)stamp%): Remove.
23720         (make-target-directory): Remove.
23721         (subdir_install): Remove.
23722         (routines): Remove.
23723         (aux): Remove.
23724         (sources): Remove.
23725         (objects): Remove.
23726         (headers): Remove.
23727
23728         [BZ #13750]
23729         * manual/.gitignore: Remove, it's not needed anymore.
23730         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
23731         all files in it.
23732         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
23733         directory.
23734         (texis): Renamed to $(objpfx)texis.
23735         (texis-path): New, contains path to generated files.
23736         (chapters.%): Use texis-path for complete path, add extra argument
23737         libc-texinfo.sh.
23738         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
23739         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
23740         (summary,texi, stamp-summary): Use complete path of
23741         files. Generate files in build dir.
23742         (dir-add.texi): Build in build dir.
23743         (libm-err.texi,stamp-libm-err): Likewise.
23744         (version.texi, stamp-version): Likewise.
23745         (.%c.texi): Likewise.
23746         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
23747         (mostlyclean): Remove target.
23748         (realclean): Remove target.
23749         (generated): Add new variable with contents from mostlyclean and
23750         realclean, remove entries duplicated in common-mostlyclean, add
23751         stamp-libm-err and stamp-version.
23752         (generated-dirs): Add libc directory.
23753         ($(inst_infodir)/libc.info): Install files from build dir.
23754
23755         * manual/install.texi (Configuring and compiling): Adjust since
23756         the info files are not part of the tar ball anymore.
23757
23758 2012-05-14  Andreas Jaeger  <aj@suse.de>
23759
23760         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
23761         variable.
23762
23763 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
23764
23765         [BZ #13717]
23766         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
23767         to 2.2.0 where earlier.
23768         * sysdeps/unix/sysv/linux/configure: Regenerated.
23769         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
23770         Remove conditional code.
23771         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
23772         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
23773         Remove conditional code.
23774         [!__NR_lchown]: Likewise.
23775         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
23776         [__NR_lchown]: Likewise.
23777         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
23778         comment referencing __ASSUME_LCHOWN_SYSCALL.
23779         * sysdeps/unix/sysv/linux/i386/sigaction.c
23780         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23781         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23782         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
23783         Remove conditional code.
23784         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
23785         (__protocol_available): Remove #if 0 code.
23786         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
23787         conditional code.
23788         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
23789         * sysdeps/unix/sysv/linux/kernel-features.h
23790         (__ASSUME_GETCWD_SYSCALL): Don't define.
23791         (__ASSUME_REALTIME_SIGNALS): Likewise.
23792         (__ASSUME_PREAD_SYSCALL): Likewise.
23793         (__ASSUME_PWRITE_SYSCALL): Likewise.
23794         (__ASSUME_POLL_SYSCALL): Likewise.
23795         (__ASSUME_LCHOWN_SYSCALL): Likewise.
23796         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
23797         non-SPARC.
23798         (__ASSUME_SIOCGIFNAME): Don't define.
23799         (__ASSUME_MSG_NOSIGNAL): Likewise.
23800         (__ASSUME_SENDFILE): Define unconditionally.
23801         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
23802         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
23803         conditional code.
23804         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
23805         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
23806         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
23807         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
23808         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
23809         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
23810         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
23811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
23812         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
23813         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
23815         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
23816         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
23818         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23819         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
23821         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23822         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
23824         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
23825         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
23827         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
23828         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
23830         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23831         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
23833         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23834         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23835         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
23836         Remove conditional code.
23837         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23838         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
23839         Remove conditional code.
23840         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23841         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
23842         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
23843         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
23844         Remove conditional code.
23845         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23846         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
23847         Remove conditional code.
23848         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23849         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
23850         Remove conditional code.
23851         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23852         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
23853         Remove conditional code.
23854         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23855         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
23856         Remove conditional code.
23857         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23858         * sysdeps/unix/sysv/linux/sh/pwrite64.c
23859         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23860         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23861         * sysdeps/unix/sysv/linux/sigaction.c
23862         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23863         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23864         * sysdeps/unix/sysv/linux/sigpending.c
23865         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23866         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23867         * sysdeps/unix/sysv/linux/sigprocmask.c
23868         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23869         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23870         * sysdeps/unix/sysv/linux/sigsuspend.c
23871         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23872         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23873         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
23874         (__libc_missing_rt_sigs): Remove.
23875         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
23876         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
23877         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
23878         Remove conditional code.
23879         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
23880         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
23881         return 1.
23882         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
23883         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
23884         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
23885         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
23886
23887 2012-05-14  Andreas Jaeger  <aj@suse.de>
23888
23889         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
23890         it's not used in glibc.
23891         (__coshm1): Likewise.
23892         (__acosh1p): Likewise.
23893         (__sgn): Likewise.
23894
23895         * manual/string.texi (Copying and Concatenation): Add missing
23896         variable in concat example.
23897         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
23898
23899 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23900
23901         [BZ #14103]
23902         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
23903         __builtin_clzl with __builtin_clzll.
23904
23905 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23906
23907         [BZ #14104]
23908         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
23909         libc_freeres_ptr.
23910
23911 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23912
23913         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
23914         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
23915         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
23916         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
23917
23918 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
23919
23920         * NEWS: Update ia64 info.
23921
23922 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
23923
23924         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
23925         used as bcopy.
23926
23927 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
23928
23929         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
23930         * sysdeps/unix/syscalls.list (dup3): Likewise.
23931         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
23932         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
23933
23934 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
23935
23936         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
23937         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
23938
23939 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
23940
23941         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
23942         thread pointer.
23943         (TLS_IE): Use mov/add instead of movq/addq to load thread
23944         pointer.
23945         (TLS_GD_PREFIX): New.
23946         (TLS_GD): Use it.
23947
23948 2012-05-11  David S. Miller  <davem@davemloft.net>
23949
23950         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
23951         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
23952         (_FPU_SETCW): Likewise.
23953
23954 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
23955
23956         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
23957         is 32-byte aligned.
23958
23959 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
23960
23961         [BZ #11837]
23962         * iconvdata/gb18030.c: Update tables.
23963         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
23964         characters specially.
23965         (BODY for TO_LOOP): Add encoding of missing ranges.
23966
23967 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
23968
23969         [BZ #13673]
23970         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
23971         * sysdeps/mach/hurd/dup3.c: Likewise.
23972         * sysdeps/mach/hurd/readlinkat.c: Likewise.
23973         * sysdeps/powerpc/memmove.c:: Likewise.
23974
23975 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
23976
23977         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
23978         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
23979
23980 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
23981
23982         * elf/elf.h (R_X86_64_RELATIVE64): New.
23983         (R_X86_64_NUM): Updated.
23984         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
23985         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
23986         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
23987         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
23988         tst-quad1pie tst-quad2pie
23989         (modules-names): Add tst-quadmod1 tst-quadmod2.
23990         ($(objpfx)tst-quad1): New dependency.
23991         ($(objpfx)tst-quad2): Likewise.
23992         ($(objpfx)tst-quad1pie): Likewise.
23993         ($(objpfx)tst-quad2pie): Likewise.
23994         * sysdeps/x86_64/tst-quad1.c: New file.
23995         * sysdeps/x86_64/tst-quad1pie.c: New file.
23996         * sysdeps/x86_64/tst-quad2.c: Likewise.
23997         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
23998         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
23999         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
24000         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
24001         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
24002
24003 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24004
24005         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
24006         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
24007         * streams/stropts.h (t_scalar_t): Define type.
24008
24009         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
24010         (_PATH_PRESERVE): Set to "/var/lib".
24011         (_PATH_RWHODIR): Set to "/var/spool/rwho".
24012
24013         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
24014         instead of int.
24015
24016         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
24017         if __dir_mkfile succeeded.
24018
24019         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
24020         checking for _hurd_dtablesize.  Unlock it right after having
24021         finished _hurd_dtable allocation.
24022
24023 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24024
24025         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
24026         * sysdeps/mach/hurd/configure: Regenerated.
24027         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
24028         special-casing to...
24029         * sysdeps/gnu/configure.in: ... this new file.
24030         * sysdeps/unix/sysv/linux/configure: Regenerated.
24031         * sysdeps/gnu/configure: New generated file.
24032
24033         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
24034         for Linux: use nsec instead of usec, as well as:
24035         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
24036         members of type struct timespec.
24037         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
24038         New macros.
24039         (struct stat64): Likewise.
24040         (_STATBUF_ST_NSEC): New macro.
24041         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
24042
24043         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
24044         __strtoul_internal rather than strtoul.
24045
24046 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24047
24048         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
24049         and reject them.
24050
24051 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24052
24053         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
24054         which preserves existing values.
24055         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
24056
24057 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24058
24059         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
24060         TIMEOUT values.  Return EINVAL for NFDS values either negative or
24061         greater than FD_SETSIZE.
24062
24063 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24064
24065         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
24066         allocated, call __vm_protect to finish enabling the existing space, and
24067         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
24068         allocate the remainder.
24069
24070 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24071
24072         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
24073         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
24074
24075 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24076
24077         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
24078         sysdeps/mach/hurd/readlink.c.
24079
24080         * posix/tst-sysconf.c (posix_options): Only use
24081         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
24082         _POSIX_SYNCHRONIZED_IO when they are defined
24083         * sysdeps/mach/hurd/bits/posix_opt.h:
24084         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
24085         (_XOPEN_REALTIME): Undefine macro.
24086         (_XOPEN_REALTIME_THREADS): Undefine macro.
24087         (_XOPEN_SHM): Undefine macro.
24088         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
24089         macro to -1.
24090         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
24091         macro to -1.
24092         (_POSIX_ASYNC_IO): Undefine macro.
24093         (_POSIX_PRIORITIZED_IO): Undefine macro.
24094         (_POSIX_SPIN_LOCKS): Define macro to -1.
24095
24096         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
24097         SA_NODEFER, SA_RESETHAND.
24098         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
24099         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
24100         F_DUPFD_CLOEXEC.
24101
24102 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24103
24104         * elf/Makefile (pldd-modules): Define unconditionally.
24105
24106 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24107
24108         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
24109
24110 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24111
24112         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
24113         Return ENOENT when name is empty.
24114         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
24115
24116 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24117
24118         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
24119
24120         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
24121
24122 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24123
24124         Fix mlock in all cases except non-readable pages.
24125         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
24126         instead of VM_PROT_ALL as parameter to __vm_wire function.
24127
24128         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
24129         (__mkdir): When path is `/', just fail with EEXIST.
24130         * sysdeps/mach/hurd/mkdirat.c: Likewise.
24131
24132 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24133
24134         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
24135         <sys/uio.h> (for writev).
24136         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
24137         and <sys/param.h> (for MIN).
24138
24139 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24140
24141         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
24142         REQUESTED_TIME.  Properly set the remaining time and return EINTR
24143         if interrupted.
24144
24145 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24146
24147         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
24148         Depend on against $(link-rpcuserlibs).
24149
24150 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24151
24152         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
24153         (__libc_stack_end): Do not use attribute_relro.
24154         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
24155         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
24156         to libthread-provided value.
24157         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
24158         attribute_relro.
24159
24160 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24161
24162         [BZ #3748]
24163         * bits/libc-lock.h (__libc_once_get): New macro.
24164         * sysdeps/mach/bits/libc-lock.h: Likewise.
24165         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
24166         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
24167         instead of using implementation details.
24168
24169         * libio/fileops.c: Unconditionally include <kernel-features.h>.
24170         * libio/freopen.c: Likewise.
24171         * libio/freopen64.c: Likewise.
24172         * misc/syslog.c: Likewise.
24173         * nscd/connections.c: Likewise.
24174         * nscd/netgroupcache.c: Likewise.
24175         * sysdeps/posix/getcwd.c: Likewise.
24176
24177 2012-05-10  Roland McGrath  <roland@hack.frob.com>
24178
24179         * math/w_ilogbf.c: Add #include <limits.h>.
24180
24181 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24182
24183         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
24184         path instead of returning without unlocking.
24185
24186         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
24187         immediate-write ioctls.
24188         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
24189
24190 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24191
24192         * sysdeps/mach/hurd/i386/init-first.c (init): Use
24193         __builtin_frame_address instead of making assumptions about the
24194         location of the return address relative to DATA.  Force early load of
24195         the return address.
24196         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
24197         __builtin_frame_address.
24198
24199         dup3 for GNU Hurd.
24200         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
24201         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
24202         implement dup3 and do some further code clean-ups.
24203         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
24204         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
24205
24206 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24207
24208         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
24209
24210         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
24211         HURD_CRITICAL_END around holding _hurd_dtable_lock.
24212         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
24213         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
24214         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
24215         d->port.lock.
24216
24217         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
24218         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
24219         when handler == SIG_ERR, not when handler != SIG_ERR.
24220
24221 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24222
24223         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
24224         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
24225         definitions.
24226
24227         accept4 for GNU Hurd.
24228         * include/sys/socket.h (__libc_accept4): New prototype.
24229         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
24230         to implement __libc_accept4.
24231         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
24232         __libc_accept4.
24233         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
24234
24235         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
24236         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
24237         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
24238         signal-defines.sym.
24239
24240 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24241
24242         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
24243
24244 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24245
24246         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
24247         assertion on O_CLOEXEC flag.
24248         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
24249         * hurd/intern-fd.c: Likewise.
24250         * hurd/port2fd.c: Likewise.
24251
24252 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24253
24254         [BZ #3906]
24255         * bits/in.h (IPV6_PKTINFO): Define new macro.
24256         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
24257
24258 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24259
24260         [BZ #13954]
24261         [BZ #13955]
24262         [BZ #13956]
24263         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
24264         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
24265         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
24266         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
24267         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24268         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
24269         * math/libm-test.inc (logb_test) : Additional logb tests.
24270
24271 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
24272             Andreas Jaeger  <aj@suse.de>
24273
24274         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
24275         * configure: Regenerated.
24276         * config.h.in (LINK_OBSOLETE_RPC): New macro.
24277         * config.make.in (link-obsolete-rpc): New substituted variable.
24278         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
24279         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
24280         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
24281         (shared-only-routines): Don't set it under [link-obsolete-rpc],
24282         so that libc.a contains the symbols.
24283         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
24284         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
24285         * sunrpc/auth_none.c: Likewise.
24286         * sunrpc/auth_unix.c: Likewise.
24287         * sunrpc/authdes_prot.c: Likewise.
24288         * sunrpc/authuxprot.c: Likewise.
24289         * sunrpc/clnt_gen.c: Likewise.
24290         * sunrpc/clnt_perr.c: Likewise.
24291         * sunrpc/clnt_raw.c: Likewise.
24292         * sunrpc/clnt_simp.c: Likewise.
24293         * sunrpc/clnt_tcp.c: Likewise.
24294         * sunrpc/clnt_udp.c: Likewise.
24295         * sunrpc/clnt_unix.c: Likewise.
24296         * sunrpc/des_crypt.c: Likewise.
24297         * sunrpc/des_soft.c: Likewise.
24298         * sunrpc/get_myaddr.c: Likewise.
24299         * sunrpc/key_call.c: Likewise.
24300         * sunrpc/key_prot.c: Likewise.
24301         * sunrpc/netname.c: Likewise.
24302         * sunrpc/pm_getmaps.c: Likewise.
24303         * sunrpc/pm_getport.c: Likewise.
24304         * sunrpc/pmap_clnt.c: Likewise.
24305         * sunrpc/pmap_prot.c: Likewise.
24306         * sunrpc/pmap_prot2.c: Likewise.
24307         * sunrpc/pmap_rmt.c: Likewise.
24308         * sunrpc/publickey.c: Likewise.
24309         * sunrpc/rpc_cmsg.c: Likewise.
24310         * sunrpc/rpc_common.c: Likewise.
24311         * sunrpc/rpc_dtable.c: Likewise.
24312         * sunrpc/rpc_prot.c: Likewise.
24313         * sunrpc/rpc_thread.c: Likewise.
24314         * sunrpc/rtime.c: Likewise.
24315         * sunrpc/svc.c: Likewise.
24316         * sunrpc/svc_auth.c: Likewise.
24317         * sunrpc/svc_raw.c: Likewise.
24318         * sunrpc/svc_run.c: Likewise.
24319         * sunrpc/svc_tcp.c: Likewise.
24320         * sunrpc/svc_udp.c: Likewise.
24321         * sunrpc/svc_unix.c: Likewise.
24322         * sunrpc/svcauth_des.c: Likewise.
24323         * sunrpc/xcrypt.c: Likewise.
24324         * sunrpc/xdr.c: Likewise.
24325         * sunrpc/xdr_array.c: Likewise.
24326         * sunrpc/xdr_float.c: Likewise.
24327         * sunrpc/xdr_intXX_t.c: Likewise.
24328         * sunrpc/xdr_mem.c: Likewise.
24329         * sunrpc/xdr_rec.c: Likewise.
24330         * sunrpc/xdr_ref.c: Likewise.
24331         * sunrpc/xdr_sizeof.c: Likewise.
24332         * sunrpc/xdr_stdio.c: Likewise.
24333
24334 2012-05-10  Roland McGrath  <roland@hack.frob.com>
24335
24336         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
24337         change.  Update copyright years.
24338
24339 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
24340
24341         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
24342
24343 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
24344             Joseph Myers  <joseph@codesourcery.com>
24345             Paul Pluzhnikov  <ppluzhnikov@google.com>
24346
24347         [BZ #14012]
24348         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
24349         requiring rpcgen.
24350         [cross-compiling] (extra-libs): Likewise.
24351         [cross-compiling] (extra-libs-others): Likewise.
24352         [cross-compiling] (librpcsvc-routines): Likewise.
24353         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
24354         [cross-compiling] (omit-deps): Likewise.
24355         (sunrpc-CPPFLAGS): New variable.
24356         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
24357         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
24358         (cross-rpcgen-objs): New variable.
24359         (extra-objs): Append $(cross-rpcgen-objs).
24360         ($(cross-rpcgen-objs)): New rule.
24361         ($(objpfx)cross-rpcgen): Likewise.
24362         (rpcgen-cmd): Define to use $(built-program-file).  Expand
24363         comment.
24364         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
24365         ($(objpfx)x%.stmp): Likewise.
24366         * sunrpc/proto.h [IS_IN_build] (_): Define.
24367         [IS_IN_build] (_libc_intl_domainname): Likewise.
24368
24369 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24370
24371         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
24372         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
24373         and R_X86_64_TPOFF64.
24374
24375 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
24376
24377         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
24378         sysdeps/unix/sysv/syscalls.list.
24379         (stime): Likewise.
24380         (utime): Likewise.
24381         * sysdeps/unix/sysv/syscalls.list: Remove file.
24382
24383 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
24384
24385         [BZ #3440]
24386         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
24387         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
24388         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
24389         (__LC_IDENTIFICATION): Make these macros useful in #if
24390         expressions, as required by C99.
24391
24392 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
24393
24394         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
24395         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
24396         after this.
24397
24398 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
24399
24400         * stdlib/longlong.h: Updated from GCC.
24401
24402 2012-05-09  Andreas Jaeger  <aj@suse.de>
24403
24404         * nscd/nscd.c (run_modes): Make named enum, reorder so that
24405         default is first entry.
24406         (run_mode): Set type.
24407         (main): Remove informal message about syslog.
24408         (options): Fix typo.
24409
24410         [BZ #14053]
24411         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
24412         to asm.
24413         (lrint): Likewise.
24414         (llrintf): Likewise.
24415         (llrint): Likewise.
24416         (rint): Likewise.
24417         (rintf): Likewise.
24418         (nearbyint): Likewise.
24419         (nearbyintf): Likewise.
24420
24421 2012-05-09  Andreas Jaeger  <aj@suse.de>
24422             Pedro Alves  <palves@redhat.com>
24423
24424         * nscd/nscd.c (run_mode): Use enum.
24425         (main): Cleanup coding style issue.
24426
24427 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
24428             Andreas Jaeger  <aj@suse.de>
24429
24430         * nscd/nscd.c (go_background): Replaced with...
24431         (run_mode): ... this.
24432         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
24433         (options): Add -F --foreground.
24434         (main): Implement it.
24435         (parse_opt): Parse it.
24436
24437 2012-05-09  Andreas Jaeger  <aj@suse.de>
24438
24439         [BZ #14083]
24440         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
24441         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
24442         -Wconversion warning.
24443         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
24444         Likewise.
24445
24446 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
24447
24448         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
24449         == 0.
24450         (LC_ALL): Use macro-int-constant.
24451         (LC_COLLATE): Likewise.
24452         (LC_CTYPE): Likewise.
24453         (LC_MESSAGES): Likewise.
24454         (LC_MONETARY): Likewise.
24455         (LC_NUMERIC): Likewise.
24456         (LC_TIME): Likewise.
24457         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
24458         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
24459         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24460         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
24461         Specify type.
24462         [C99-based standards] (float_t): Expect type.
24463         [C99-based standards] (double_t): Expect type.
24464         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
24465         type.
24466         [C99-based standards] (HUGE_VALL): Likewise.
24467         [C99-based standards] (INFINITY): Likewise.
24468         [C99-based standards] (NAN): Likewise.
24469         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
24470         [C99-based standards] (FP_NAN): Likewise.
24471         [C99-based standards] (FP_NORMAL): Likewise.
24472         [C99-based standards] (FP_SUBNORMAL): Likewise.
24473         [C99-based standards] (FP_ZERO): Likewise.
24474         [C99-based standards] (FP_FAST_FMA): Use
24475         optional-macro-int-constant.  Specify type.  Require == 1.
24476         [C99-based standards] (FP_FAST_FMAF): Likewise.
24477         [C99-based standards] (FP_FAST_FMAL): Likewise.
24478         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
24479         [C99-based standards] (FP_ILOGBNAN): Likewise.
24480         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
24481         Specify type.
24482         [C99-based standards] (MATH_ERREXCEPT): Likewise.
24483         [C99-based standards] (math_errhandling): Specify type.
24484         [ISO99 || ISO11] (signgam): Do not allow.
24485         [non-C99-based standards] (copysignf): Do not allow.
24486         [non-C99-based standards] (exp2f): Likewise.
24487         [non-C99-based standards] (log2f): Likewise.
24488         [non-C99-based standards] (modff): Allow.
24489         [non-C99-based standards] (erff): Do not allow.
24490         [non-C99-based standards] (erfcf): Likewise.
24491         [non-C99-based standards] (gammaf): Likewise.
24492         [non-C99-based standards] (hypotf): Likewise.
24493         [non-C99-based standards] (j0f): Likewise.
24494         [non-C99-based standards] (j1f): Likewise.
24495         [non-C99-based standards] (jnf): Likewise.
24496         [non-C99-based standards] (lgammaf): Likewise.
24497         [non-C99-based standards] (tgammaf): Likewise.
24498         [non-C99-based standards] (y0f): Likewise.
24499         [non-C99-based standards] (y1f): Likewise.
24500         [non-C99-based standards] (ynf): Likewise.
24501         [non-C99-based standards] (isnanf): Likewise.
24502         [non-C99-based standards] (acoshf): Likewise.
24503         [non-C99-based standards] (asinhf): Likewise.
24504         [non-C99-based standards] (atanhf): Likewise.
24505         [non-C99-based standards] (cbrtf): Likewise.
24506         [non-C99-based standards] (expm1f): Likewise.
24507         [non-C99-based standards] (ilogbf): Likewise.
24508         [non-C99-based standards] (log1pf): Likewise.
24509         [non-C99-based standards] (logbf): Likewise.
24510         [non-C99-based standards] (nextafterf): Likewise.
24511         [non-C99-based standards] (remainderf): Likewise.
24512         [non-C99-based standards] (rintf): Likewise.
24513         [non-C99-based standards] (scalbf): Likewise.
24514         [non-C99-based standards] (copysignl): Likewise.
24515         [non-C99-based standards] (exp2l): Likewise.
24516         [non-C99-based standards] (log2l): Likewise.
24517         [non-C99-based standards] (modfl): Allow.
24518         [non-C99-based standards] (erfl): Do not allow.
24519         [non-C99-based standards] (erfcl): Likewise.
24520         [non-C99-based standards] (gammal): Likewise.
24521         [non-C99-based standards] (hypotl): Likewise.
24522         [non-C99-based standards] (j0l): Likewise.
24523         [non-C99-based standards] (j1l): Likewise.
24524         [non-C99-based standards] (jnl): Likewise.
24525         [non-C99-based standards] (lgammal): Likewise.
24526         [non-C99-based standards] (tgammal): Likewise.
24527         [non-C99-based standards] (y0l): Likewise.
24528         [non-C99-based standards] (y1l): Likewise.
24529         [non-C99-based standards] (ynl): Likewise.
24530         [non-C99-based standards] (isnanl): Likewise.
24531         [non-C99-based standards] (acoshl): Likewise.
24532         [non-C99-based standards] (asinhl): Likewise.
24533         [non-C99-based standards] (atanhl): Likewise.
24534         [non-C99-based standards] (cbrtl): Likewise.
24535         [non-C99-based standards] (expm1l): Likewise.
24536         [non-C99-based standards] (ilogbl): Likewise.
24537         [non-C99-based standards] (log1pl): Likewise.
24538         [non-C99-based standards] (logbl): Likewise.
24539         [non-C99-based standards] (nextafterl): Likewise.
24540         [non-C99-based standards] (remainderl): Likewise.
24541         [non-C99-based standards] (rintl): Likewise.
24542         [non-C99-based standards] (scalbl): Likewise.
24543         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24544         [non-C99-based standards] (FP_*): Do not allow.
24545         [C99-based standards] (FP_*): Change to
24546         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
24547         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
24548         allow.
24549         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
24550         (SIG_ERR): Likewise.
24551         [X/Open-based standards] (SIG_HOLD): Likewise.
24552         (SIG_IGN): Likewise.
24553         (SIGABRT): Use macro-int-constant.  Specify type.  Require
24554         positive value.
24555         (SIGFPE): Likewise.
24556         (SIGILL): Likewise.
24557         (SIGINT): Likewise.
24558         (SIGSEGV): Likewise.
24559         (SIGTER): Likewise.
24560         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
24561         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
24562         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
24563         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
24564         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
24565         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
24566         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
24567         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
24568         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
24569         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
24570         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
24571         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
24572         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
24573         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
24574         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
24575         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
24576         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
24577         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
24578         [X/Open-based standards] (SIGTRAP): Likewise.
24579         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
24580         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
24581         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
24582         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
24583         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
24584         allow.
24585
24586 2012-05-08  Ian Wienand  <ianw@vmware.com>
24587
24588         [BZ #14080]
24589         * time/tzset.c (__tzset_parse_tz): Update default rules for
24590         daylight time changes in the Energy Policy Act of 2005.
24591
24592 2012-05-09  Andreas Jaeger  <aj@suse.de>
24593
24594         [BZ #13983]
24595         * elf/ldconfig.c (parse_conf): Change string to make clear that
24596         ldconfig only issued a warning if ld.so.conf does not exist.
24597
24598 2012-05-08  David S. Miller  <davem@davemloft.net>
24599
24600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
24601         movxtod instead of popping the value on the stack.
24602
24603         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24604
24605 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
24606
24607         * config.h.in: Add HAVE_ARM_PCS_VFP.
24608
24609 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
24610
24611         [BZ #13979]
24612         * include/features.h: Warn if user requests __FORTIFY_SOURCE
24613         checking but the checks are disabled for any reason.
24614
24615 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
24616
24617         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
24618         and ELF64_R_TYPE with ELFW(R_TYPE).
24619
24620 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
24621
24622         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
24623         (ulimit): Likewise.
24624
24625         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
24626         (settimeofday): Likewise.
24627
24628 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
24629
24630         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
24631         a struct th_u2 inside the union, and move tu_block/tu_code into
24632         a new th_u3 union of tu_block/tu_code inside of that.  Move
24633         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
24634         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
24635         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
24636         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
24637         (th_stuff): Change to th_u1.tu_stuff.
24638         (th_data): Define.
24639         (th_msg): Change to th_u1.th_u2.tu_data.
24640
24641 2012-05-07  David S. Miller  <davem@davemloft.net>
24642
24643         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24644
24645         [BZ #14074]
24646         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
24647         (SETUP_PIC_REG): Use it.
24648         (SETUP_PIC_REG_LEAF): Use it.
24649
24650 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
24651
24652         [BZ #13885]
24653         [BZ #13923]
24654         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
24655         USE_AS_EXPM1L.
24656         (EXPL_FINITE): Likewise.
24657         (FLDLOG): Likewise.
24658         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
24659         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
24660         e_expl.S.
24661         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
24662         USE_AS_EXPM1L.
24663         (EXPL_FINITE): Likewise.
24664         (FLDLOG): Likewise.
24665         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
24666         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
24667         e_expl.S.
24668         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
24669         test of -max_value argument for long double.
24670         * sysdeps/i386/fpu/libm-test-ulps: Update.
24671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24672
24673 2012-05-06  David S. Miller  <davem@davemloft.net>
24674
24675         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
24676         quad soft-float symbols whose references which are compiler
24677         generated.
24678         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
24679
24680 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
24681
24682         [BZ #13884]
24683         [BZ #13914]
24684         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
24685         USE_AS_EXP10L.
24686         (EXPL_FINITE): Likewise.
24687         (FLDLOG): Likewise.
24688         (c0): Likewise.
24689         (c1): Likewise.
24690         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
24691         Adjust comments for base varying.
24692         (__expl_finite): Change alias to EXPL_FINITE.
24693         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
24694         e_expl.S.
24695         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
24696         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
24697         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
24698         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
24699         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
24700         USE_AS_EXP10L.
24701         (EXPL_FINITE): Likewise.
24702         (FLDLOG): Likewise.
24703         (c0): Likewise.
24704         (c1): Likewise.
24705         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
24706         Adjust comments for base varying.
24707         (__expl_finite): Change alias to EXPL_FINITE.
24708         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
24709         tests for bugs.
24710         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24711
24712         [BZ #14064]
24713         * math/libm-test.inc (check_float_internal): Correct ulp
24714         calculation for subnormal expected results.
24715
24716 2012-05-06  Andreas Jaeger  <aj@suse.de>
24717
24718         * Makeconfig (+math-flags): New, set to -frounding-math.
24719         (+cflags): Add +math-flags so that all of glibc gets compiled with
24720         it.
24721
24722         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
24723
24724 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
24725
24726         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
24727         Disable one test.
24728
24729         [BZ #13787]
24730         [BZ #13922]
24731         [BZ #14036]
24732         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
24733         (__ieee754_expl): Allow for and saturate large arguments.
24734         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
24735         (u_threshold): Likewise.
24736         (__exp): Call __ieee754_exp before checking for overflow and
24737         underflow.
24738         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
24739         (u_threshold): Likewise.
24740         (__expf): Call __ieee754_expf before checking for overflow and
24741         underflow.
24742         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
24743         (u_threshold): Likewise.
24744         (__expl): Call __ieee754_expl before checking for overflow and
24745         underflow.
24746         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
24747         (__ieee754_expl): Allow for and saturate large arguments.
24748         * math/libm-test.inc (exp_test): Add another test.  Do not allow
24749         missing overflow exception on overflow.
24750         (expm1_test): Do not allow missing overflow exception on overflow.
24751
24752         * sysdeps/i386/fpu/e_expl.c: Move to ...
24753         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
24754         rather than using inline asm.
24755         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
24756         * sysdeps/x86_64/fpu/e_expl.S: Copy from
24757         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
24758
24759         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
24760         (nice): Likewise.
24761         (poll): Likewise.
24762         (signal): Likewise.
24763         (time): Likewise.
24764         (times): Likewise.
24765
24766 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
24767
24768         * sysdeps/unix/syscalls.list (adjtime): Add entry from
24769         sysdeps/unix/common/syscalls.list.
24770         (fchmod): Likewise.
24771         (fchown): Likewise.
24772         (ftruncate): Likewise.
24773         (getrusage): Likewise.
24774         (gettimeofday): Likewise.
24775         (setpgid): Likewise.
24776         (setregid): Likewise.
24777         (setreuid): Likewise.
24778         (sigaction): Likewise.
24779         (truncate): Likewise.
24780         (vhangup): Likewise.
24781         * sysdeps/unix/common/syscalls.list: Remove file.
24782         * sysdeps/unix/bsd/Implies: Don't include unix/common.
24783         * sysdeps/unix/sysv/linux/Implies: Likewise.
24784
24785 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
24786
24787         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
24788         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
24789         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
24790         Moved to ...
24791         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
24792         Here.
24793         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
24794         to ...
24795         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
24796         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
24797         to ...
24798         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
24799         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
24800         to ...
24801         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
24802         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
24803         to ...
24804         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
24805         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
24806         to ...
24807         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
24808         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
24809         to ...
24810         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
24811         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
24812         to ...
24813         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
24814         Here.
24815         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
24816         to ...
24817         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
24818         Here.
24819         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
24820         to ...
24821         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
24822         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
24823         Moved to ...
24824         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
24825         Here.
24826         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
24827         to ...
24828         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
24829
24830 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
24831
24832         * sysdeps/unix/common/bits/dirent.h: Remove file.
24833         * sysdeps/unix/common/bits/fcntl.h: Likewise.
24834
24835         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
24836         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
24837         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
24838         * sysdeps/unix/bsd/isatty.c: Likewise.
24839         * sysdeps/unix/bsd/tcdrain.c: Likewise.
24840         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
24841         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
24842
24843 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24844
24845         [BZ #13563]
24846         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
24847         long double comparison inaccuracies.
24848         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
24849         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24850
24851 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
24852
24853         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
24854         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
24855
24856 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
24857
24858         [BZ #14049]
24859         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
24860         nonzero digits before rounding a hex value.
24861         * stdlib/tst-strtod.c (tests): Add another test.
24862
24863 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24864
24865         * sysdeps/s390/fpu/libm-test-ulps: Update.
24866
24867 2012-05-03  Andreas Jaeger  <aj@suse.de>
24868
24869         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
24870         does not get optimized out.
24871         (malloc_opt_barrier): New.
24872
24873 2012-05-03  Andreas Jaeger  <aj@suse.de>
24874             Roland McGrath  <roland@hack.frob.com>
24875
24876         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
24877         intermediate file deletion.
24878         (generated): Add .symlist files.
24879
24880 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
24881
24882         [BZ #13775]
24883         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
24884         Redirect under this condition.
24885         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
24886         [__USE_GNU] (__dprintf_chk): Not under this condition.
24887         [__USE_GNU] (__vdprintf_chk): Likewise.
24888         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
24889         under this condition.
24890         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
24891         [__USE_XOPEN2K8] (dprintf): Define under this condition.
24892         [__USE_XOPEN2K8] (vdprintf): Likewise.
24893         [__USE_GNU] (__dprintf_chk): Not under this condition.
24894         [__USE_GNU] (__vdprintf_chk): Likewise.
24895         [__USE_GNU] (dprintf): Likewise.
24896         [__USE_GNU] (vdprintf): Likewise.
24897
24898 2012-05-03  Roland McGrath  <roland@hack.frob.com>
24899
24900         * elf/Makefile (common-generated): Set this instead of generated for
24901         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
24902         $(all-built-dso)-derived lists.
24903
24904 2012-05-03  Andreas Jaeger  <aj@suse.de>
24905
24906         * sysdeps/i386/fpu/libm-test-ulps: Update.
24907
24908         * FAQ: Removed.
24909         * FAQ.in: Likewise.
24910         * scripts/gen-FAQ.pl: Likewise.
24911         * manual/install.texi (Installation): Point to online location of
24912         FAQ.
24913         * Makefile (files-for-dist): Remove FAQ.
24914         (FAQ): Remove.
24915
24916 2012-05-02  Allan McRae  <allan@archlinux.org>
24917
24918         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
24919         (LDFLAGS-reldepmod5.so): Likewise.
24920         (LDFLAGS-reldep6mod1.so): Likewise.
24921         (LDFLAGS-reldep6mod4.so): Likewise.
24922         (LDFLAGS-reldep8mod3.so): Likewise.
24923         (LDFLAGS-unload4mod1.so): Likewise.
24924         (LDFLAGS-unload4mod2.so): Likewise.
24925         (LDFLAGS-tst-initorder): Likewise.
24926         (LDFLAGS-tst-initordera2.so): Likewise.
24927         (LDFLAGS-tst-initordera3.so): Likewise.
24928         (LDFLAGS-tst-initordera4.so): Likewise.
24929         (LDFLAGS-tst-initorderb2.so): Likewise.
24930         (LDFLAGS-noload): Likewise.
24931         (LDFLAGS-next): Likewise.
24932         (LDFLAGS-order2mod1.so): Likewise.
24933         (LDFLAGS-order2mod2.so): Likewise.
24934         (LDFLAGS-tst-initorder2): Likewise.
24935         (LDFLAGS-tst-initorder2a.so): Likewise.
24936         (LDFLAGS-tst-initorder2b.so): Likewise.
24937         (LDFLAGS-tst-initorder2c.so): Likewise.
24938         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
24939
24940 2012-05-02  David S. Miller  <davem@davemloft.net>
24941
24942         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24943
24944 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
24945
24946         [BZ #14055]
24947         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
24948
24949 2012-05-02  Andreas Jaeger  <aj@suse.de>
24950
24951         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
24952         since we manipulate rounding mode.
24953         (CPPFLAGS-test-idouble.c): Likewise.
24954         (CPPFLAGS-test-ifloat.c): Likewise.
24955         (CFLAGS-test-ldouble.c): Likewise.
24956         (CFLAGS-test-double.c): Likewise.
24957         (CFLAGS-test-float.c): Likewise.
24958         (CFLAGS-test-misc.c): Likewise.
24959         (CFLAGS-test-test-fenv.c): Likewise.
24960
24961 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24962
24963         [BZ #2550]
24964         [BZ #2570]
24965         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
24966         comparisons to determine direction to adjust input.
24967
24968 2012-05-01  Roland McGrath  <roland@hack.frob.com>
24969
24970         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
24971         output to the target.
24972
24973         * scripts/localplt.awk: New file.
24974         * elf/Makefile ($(objpfx)check-localplt): Target removed.
24975         (check-localplt-CFLAGS): Variable removed.
24976         ($(all-built-dso:=.jmprel)): New static pattern rule.
24977         (generated): Add those targets.
24978         (localplt-built-dso): New variable.
24979         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
24980
24981         * elf/check-localplt.c: File removed.
24982
24983         * scripts/check-execstack.awk: New file.
24984         * elf/Makefile ($(objpfx)check-execstack): Target removed.
24985         (check-execstack-CFLAGS): Variable removed.
24986         ($(objpfx)check-execstack.h): Target removed.
24987         ($(objpfx)execstack-default): New target.
24988         (generated): Add that instead of check-execstack.h.
24989         ($(all-built-dso:=.phdr)): New static pattern rule.
24990         (generated): Add those targets.
24991         * elf/check-execstack.c: File removed.
24992
24993         * scripts/check-textrel.awk: New file.
24994         * elf/Makefile ($(objpfx)check-textrel): Target removed.
24995         (check-textrel-CFLAGS): Variable removed.
24996         (all-built-dso): Use := to define.o
24997         ($(all-built-dso:=.dyn)): New static pattern rule.
24998         (generated): Add those targets.
24999         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
25000         * config.make.in (READELF): New substituted variable.
25001         * elf/check-textrel.c: File removed.
25002
25003 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
25004
25005         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25006         allow.
25007         * conform/data/ctype.h-data [C99-based standards] (isblank):
25008         Expect function.
25009         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
25010         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
25011         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25012         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
25013         Specify type.  Require positive value.
25014         (EILSEQ): Likewise.
25015         (ERANGE): Likewise.
25016         [ISO || POSIX] (EILSEQ): Do not expect.
25017         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
25018         Specify type.  Require positive value.
25019         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
25020         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
25021         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
25022         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
25023         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
25024         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
25025         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
25026         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
25027         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
25028         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
25029         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
25030         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
25031         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
25032         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
25033         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
25034         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
25035         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
25036         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
25037         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
25038         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
25039         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
25040         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
25041         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
25042         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
25043         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
25044         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
25045         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
25046         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
25047         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
25048         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
25049         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
25050         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
25051         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
25052         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
25053         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
25054         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
25055         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
25056         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
25057         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
25058         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
25059         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
25060         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
25061         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
25062         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
25063         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
25064         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
25065         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
25066         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
25067         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
25068         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
25069         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
25070         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
25071         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
25072         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
25073         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
25074         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
25075         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
25076         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
25077         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
25078         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
25079         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
25080         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
25081         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
25082         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
25083         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
25084         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
25085         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
25086         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
25087         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
25088         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
25089         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
25090         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
25091         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
25092         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
25093         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
25094         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
25095         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
25096         Require >= 2.
25097         (FLT_ROUNDS): Expect as macro, not constant.
25098         (FLT_MANT_DIG): Use macro-int-constant.
25099         (DBL_MANT_DIG): Likewise.
25100         (LDBL_MANT_DIG): Likewise.
25101         (FLT_DIG): Likewise.
25102         (DBL_DIG): Likewise.
25103         (LDBL_DIG): Likewise.
25104         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
25105         (DBL_MIN_EXP): Likewise.
25106         (LDBL_MIN_EXP): Likewise.
25107         (FLT_MAX_EXP): Use macro-int-constant.
25108         (DBL_MAX_EXP): Likewise.
25109         (LDBL_MAX_EXP): Likewise.
25110         (FLT_MAX_10_EXP): Likewise.
25111         (DBL_MAX_10_EXP): Likewise.
25112         (LDBL_MAX_10_EXP): Likewise.
25113         (FLT_MAX): Use macro-constant.
25114         (DBL_MAX): Likewise.
25115         (LDBL_MAX): Likewise.
25116         (FLT_EPSILON): Use macro-constant.  Give upper bound.
25117         (DBL_EPSILON): Likewise.
25118         (LDBL_EPSILON): Likewise.
25119         (FLT_MIN): Likewise.
25120         (DBL_MIN): Likewise.
25121         (LDBL_MIN): Likewise.
25122         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
25123         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
25124         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
25125         [ISO11] (FLT_HAS_SUBNORM): Likewise.
25126         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
25127         [ISO11] (DBL_DECIMAL_DIG): Likewise.
25128         [ISO11] (FLT_DECIMAL_DIG): Likewise.
25129         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
25130         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
25131         [ISO11] (FLT_TRUE_MIN): Likewise.
25132         [ISO11] (LDBL_TRUE_MIN): Likewise.
25133         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25134         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
25135         (SCHAR_MIN): Use macro-int-constant.  Specify type.
25136         (SCHAR_MAX): Likewise.
25137         (UCHAR_MAX): Likewise.
25138         (CHAR_MIN): Likewise.
25139         (CHAR_MAX): Likewise.
25140         (MB_LEN_MAX): Use macro-int-constant.
25141         (SHRT_MIN): Use macro-int-constant.  Specify type.
25142         (SHRT_MAX): Likewise.
25143         (USHRT_MAX): Likewise.
25144         (INT_MAX): Likewise.
25145         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
25146         bound negative.
25147         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25148         bound with "U".
25149         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25150         bound with "L".
25151         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
25152         bound negative.  Suffix upper bound with "L".
25153         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
25154         bound with "UL".
25155         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
25156         Specify type.
25157         [C99-based standards] (LLONG_MAX): Likewise.
25158         [C99-based standards] (ULLONG_MAX): Likewise.
25159         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
25160         == 0.
25161         [ISO11] (max_align_t): Require type.
25162         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25163
25164         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
25165         from $CFLAGS, without defining away __attribute__ calls.
25166         (checknamespace): Use $CFLAGS_namespace.
25167
25168         * conform/conformtest.pl (@keywords): Only include C99 keywords
25169         for standards based on C99 or C11.
25170
25171         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
25172         Disable tests.
25173         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
25174         UNIX98]: Likewise.
25175
25176         * conform/conformtest.pl: Handle "macro-int-constant" and test for
25177         usability of symbols in #if.
25178
25179         * conform/conformtest.pl: If macro or constant types start
25180         "promoted:", expect the symbol to be of the following type
25181         promoted by the integer promotions.
25182
25183         * conform/conformtest.pl: Parse all "constant" and "macro" lines
25184         in one place.  Also handle "macro-constant".
25185
25186         * conform/conformtest.pl: Only accept expected macro values with
25187         "==".  Parse all "macro" lines in one place.
25188         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
25189
25190         * conform/conformtest.pl: Handle braced types on "constant" lines
25191         instead of handling "typed-constant".
25192         * conform/data/signal.h-data: Use "constant" instead of
25193         "typed-constant".
25194
25195         * conform/conformtest.pl: Handle "optional-" at start of lines in
25196         one place rather than duplicating several cases.  Handle each
25197         format of "macro" line with initial "optional-".
25198
25199         * conform/conformtest.pl: Only accept expected constant or
25200         optional-constant values with "==".  Parse all "constant" lines in
25201         one place.  Parse all "optional-constant" lines in one place.
25202         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
25203         * conform/data/fmtmsg.h-data: Likewise.
25204         * conform/data/netinet/in.h-data: Likewise.
25205         * conform/data/tar.h-data: Likewise.
25206         * conform/data/limits.h-data: Use "==" form on "constant" and
25207         "optional-constant" lines.
25208
25209         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
25210         Use -std=c99 for XOPEN2K.
25211         (@knownproblems): Remove.
25212         (newtoken): Don't check %isknown.
25213
25214         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
25215         Do not expect macro.
25216         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
25217         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
25218         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
25219         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
25220         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
25221         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
25222         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
25223         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
25224         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
25225         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
25226         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
25227         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
25228         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
25229         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
25230         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
25231         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
25232         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
25233         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
25234         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
25235         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
25236         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
25237         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
25238         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
25239         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
25240         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
25241         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
25242         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
25243         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
25244         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
25245         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
25246         [XPG3] (acosh): Likewise.
25247         [XPG3] (asinh): Likewise.
25248         [XPG3] (atanh): Likewise.
25249         [XPG3] (cbrt): Likewise.
25250         [XPG3] (expm1): Likewise.
25251         [XPG3] (ilogb): Likewise.
25252         [XPG3] (log1p): Likewise.
25253         [XPG3] (logb): Likewise.
25254         [XPG3] (nextafter): Likewise.
25255         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
25256         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
25257         [XPG3] (remainder): Likewise.
25258         [XPG3] (rint): Likewise.
25259         [XPG3 || XPG4 || UNIX98] (round): Likewise.
25260         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
25261         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
25262         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
25263         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
25264         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
25265         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
25266         [UNIX98 || XOPEN2K] (scalb): Expect.
25267         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
25268         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
25269         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
25270         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
25271         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
25272         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
25273         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
25274         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
25275         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
25276         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
25277         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
25278         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
25279         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
25280         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
25281         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
25282         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
25283         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
25284         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
25285         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
25286         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
25287         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
25288         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
25289         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
25290         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
25291         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
25292         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
25293         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
25294         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
25295         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
25296         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
25297         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
25298         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
25299         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
25300         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
25301         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
25302         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
25303         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
25304         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
25305         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
25306         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
25307         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
25308         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
25309         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
25310         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
25311         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
25312         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
25313         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
25314         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
25315         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
25316         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
25317         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
25318         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
25319         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
25320         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
25321         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
25322         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
25323         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
25324         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
25325         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
25326         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
25327         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
25328         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
25329         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
25330         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
25331         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
25332         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
25333         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
25334         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
25335         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
25336         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
25337         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
25338         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
25339         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
25340         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
25341         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
25342         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
25343         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
25344         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
25345         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
25346         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
25347         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
25348         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
25349         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
25350         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
25351         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
25352         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
25353         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
25354         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
25355         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
25356         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
25357         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
25358         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
25359         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
25360         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
25361         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
25362         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
25363         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
25364         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
25365         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
25366         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
25367         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
25368         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
25369         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
25370         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
25371         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
25372         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
25373         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
25374         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
25375         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
25376         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
25377         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
25378         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
25379         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
25380         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
25381         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
25382         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
25383         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
25384         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
25385         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
25386         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
25387         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
25388         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
25389         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
25390         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
25391         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
25392         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
25393         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
25394         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
25395         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
25396         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
25397         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
25398         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
25399         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
25400         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
25401         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
25402         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
25403         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
25404
25405         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
25406         _XOPEN_SOURCE_EXTENDED for XPG4.
25407
25408         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
25409
25410         * Makeconfig (localtime): Remove variable.
25411         (inst_localtime-file): Likewise.
25412
25413 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
25414
25415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
25416         Update.
25417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25418         Update.
25419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
25420         Update.
25421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
25422         Update.
25423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
25424         Update.
25425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
25426         Update.
25427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25428         Update.
25429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
25430         Update.
25431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
25432         Update.
25433
25434 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
25435
25436         [BZ #2550]
25437         [BZ #2570]
25438         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
25439         comparisons to determine direction to adjust input.
25440         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
25441         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
25442         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
25443         Likewise.
25444         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
25445         Likewise.
25446         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
25447         Likewise.
25448         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
25449         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
25450         Likewise.
25451         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
25452         Likewise.
25453         * math/libm-test.inc (nexttoward_test): Add more tests.
25454
25455 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
25456
25457         [BZ #14040]
25458         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
25459         in version GLIBC_2.1, not GLIBC_2.0.
25460         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
25461         Likewise.
25462
25463 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
25464
25465         [BZ #13942]
25466         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
25467         (1 - x) * (1 + x).
25468         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
25469         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
25470         * math/libm-test.inc (acos_test): Add more tests.
25471         (asin_test): Likewise.
25472         * sysdeps/i386/fpu/libm-test-ulps: Update.
25473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25474
25475         [BZ #14034]
25476         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
25477         of square root.
25478         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
25479         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
25480         * math/libm-test.inc (acos_test_tonearest): New function.
25481         (acos_test_towardzero): Likewise.
25482         (acos_test_downward): Likewise.
25483         (acos_test_upward): Likewise.
25484         (asin_test_tonearest): Likewise.
25485         (asin_test_towardzero): Likewise.
25486         (asin_test_downward): Likewise.
25487         (asin_test_upward): Likewise.
25488         (main): Call the new functions.
25489         * sysdeps/i386/fpu/libm-test-ulps: Update.
25490         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25491
25492         [BZ #13884]
25493         [BZ #13924]
25494         * math/e_exp10.c: Include <float.h>.
25495         (__ieee754_exp10): Handle underflow here rather than multiplying
25496         large negative argument by M_LN10.
25497         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
25498         of __ieee754_expf.
25499         * math/e_exp10l.c: Include <float.h>.
25500         (__ieee754_exp10l): Handle underflow here rather than multiplying
25501         large negative argument by M_LN10l.
25502         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
25503         spurious overflow exception on underflow.
25504
25505 2012-04-29  Marek Polacek  <polacek@redhat.com>
25506
25507         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
25508         (__fortify_function): New macro.
25509         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
25510         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
25511         __extern_always_inline.
25512         * libio/bits/stdio2.h: Likewise.
25513         * libio/bits/stdio.h: Likewise.
25514         * string/string.h: Likewise.
25515         * string/bits/string3.h: Likewise.
25516         * include/stdio.h: Likewise.
25517         * stdlib/bits/stdlib.h: Likewise.
25518         * stdlib/stdlib.h: Likewise.
25519         * rt/bits/mqueue2.h: Likewise.
25520         * rt/mqueue.h: Likewise.
25521         * posix/bits/unistd.h: Likewise.
25522         * posix/unistd.h: Likewise.
25523         * io/bits/poll2.h: Likewise.
25524         * io/bits/fcntl2.h: Likewise.
25525         * io/fcntl.h: Likewise.
25526         * io/sys/poll.h: Likewise.
25527         * misc/bits/syslog.h: Likewise.
25528         * misc/bits/syslog-ldbl.h: Likewise.
25529         * misc/sys/syslog.h: Likewise.
25530         * socket/bits/socket2.h: Likewise.
25531         * socket/sys/socket.h: Likewise.
25532         * debug/tst-chk1.c: Likewise.
25533         * wcsmbs/bits/wchar2.h: Likewise.
25534         * wcsmbs/bits/wchar-ldbl.h: Likewise.
25535         * wcsmbs/wchar.h: Likewise.
25536
25537 2012-04-29  Andreas Jaeger  <aj@suse.de>
25538
25539         * Makerules (tests): Remove enable-check-abi protection.
25540         (check-abi-warn): Remove.
25541         (check-abi-%): Remove check-abi-warn usage.
25542
25543         * configure.in: Remove check-abi configure option.
25544         * configure: Regenerated.
25545         * config.make.in (enable-check-abi): Remove.
25546
25547 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
25548
25549         [BZ #14033]
25550         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
25551         double functions to double *_finite functions.
25552
25553         [BZ #13941]
25554         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
25555         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
25556         LDBL_MIN_EXP.
25557         * stdio-common/Makefile (tests): Add tst-sprintf3.
25558         * stdio-common/tst-sprintf3.c: New file.
25559
25560         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
25561         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
25562
25563 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
25564
25565         * conform/conformtest.pl: Remove duplicate typed-constant
25566         handling.
25567
25568 2012-04-28  David S. Miller  <davem@davemloft.net>
25569
25570         * Makerules (%.abilist): Add vpath on sysdep_dirs.
25571         (check-abi-%): Remove AWK script prerequisite and explicit
25572         abilist directory.
25573         (check-abi): Rewrite to just diff the symlist with the abilist.
25574         (config-tls, config-abi-config): Delete, no longer used.
25575         (update-abi-%): Remove AWK script and explicit abilist directory.
25576         (update-abi): Rewrite to simply compare and conditionally copy the
25577         symlist and the sysdep abilist file.  Remove update-abi-config
25578         checks.
25579         * abilist/ld.abilist: Remove.
25580         * abilist/libBrokenLocale.abilist: Remove.
25581         * abilist/libanl.abilist: Remove.
25582         * abilist/libcrypt.abilist: Remove.
25583         * abilist/libdl.abilist: Remove.
25584         * abilist/librt.abilist: Remove.
25585         * abilist/libthread_db.abilist: Remove.
25586         * abilist/libutil.abilist: Remove.
25587         * scripts/extract-abilist.awk: Remove.
25588         * scripts/merge-abilist.awk: Remove.
25589         * sysdeps/generic/libcidn.abilist: New file.
25590         * sysdeps/generic/libnss_compat.abilist: New file.
25591         * sysdeps/generic/libnss_db.abilist: New file.
25592         * sysdeps/generic/libnss_dns.abilist: New file.
25593         * sysdeps/generic/libnss_files.abilist: New file.
25594         * sysdeps/generic/libnss_hesiod.abilist: New file.
25595         * sysdeps/generic/libnss_nis.abilist: New file.
25596         * sysdeps/generic/libnss_nisplus.abilist: New file.
25597         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
25598         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
25599         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
25600         file.
25601         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
25602         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
25603         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
25604         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
25605         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
25606         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
25607         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
25608         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
25609         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
25610         file.
25611         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
25612         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
25613         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
25614         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
25615         file.
25616         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
25617         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
25618         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
25619         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
25620         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
25621         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
25622         file.
25623         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
25624         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
25625         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
25626         file.
25627         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
25628         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
25629         New file.
25630         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
25631         New file.
25632         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
25633         New file.
25634         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
25635         New file.
25636         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
25637         New file.
25638         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
25639         New file.
25640         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
25641         New file.
25642         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
25643         New file.
25644         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
25645         New file.
25646         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
25647         New file.
25648         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
25649         New file.
25650         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
25651         New file.
25652         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
25653         New file.
25654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
25655         file.
25656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
25657         New file.
25658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
25659         New file.
25660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
25661         file.
25662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
25663         New file.
25664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
25665         New file.
25666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
25667         file.
25668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
25669         New file.
25670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
25671         New file.
25672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
25673         New file.
25674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
25675         New file.
25676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
25677         New file.
25678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
25679         New file.
25680         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
25681         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
25682         file.
25683         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
25684         New file.
25685         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
25686         file.
25687         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
25688         file.
25689         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
25690         file.
25691         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
25692         file.
25693         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
25694         file.
25695         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
25696         New file.
25697         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
25698         file.
25699         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
25700         file.
25701         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
25702         New file.
25703         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
25704         file.
25705         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
25706         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
25707         file.
25708         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
25709         New file.
25710         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
25711         file.
25712         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
25713         file.
25714         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
25715         file.
25716         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
25717         file.
25718         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
25719         file.
25720         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
25721         New file.
25722         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
25723         file.
25724         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
25725         file.
25726         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
25727         New file.
25728         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
25729         file.
25730         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
25731         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
25732         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
25733         file.
25734         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
25735         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
25736         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
25737         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
25738         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
25739         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
25740         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
25741         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
25742         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
25743         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
25744         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
25745         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
25746         file.
25747         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
25748         New file.
25749         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
25750         file.
25751         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
25752         file.
25753         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
25754         file.
25755         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
25756         file.
25757         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
25758         file.
25759         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
25760         New file.
25761         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
25762         New file.
25763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
25764         file.
25765         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
25766         New file.
25767         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
25768         file.
25769         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
25770         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
25771         file.
25772         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
25773         New file.
25774         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
25775         file.
25776         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
25777         file.
25778         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
25779         file.
25780         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
25781         file.
25782         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
25783         file.
25784         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
25785         New file.
25786         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
25787         New file.
25788         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
25789         file.
25790         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
25791         New file.
25792         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
25793         file.
25794
25795 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
25796
25797         * conform/conformtest.pl: Fix typo in handling typed-constant from
25798         allow-header.
25799
25800 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
25801
25802         * README: Cut down references to pre-2.6 Linux kernels and
25803         Linuxthreads.  Update lists of configurations in libc and ports
25804         and sort alphabetically.  Say "or newer" with Linux kernel version
25805         requirements.
25806
25807         * config.h.in [IS_IN_build]: Allow compiling without optimization.
25808
25809 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
25810
25811         [BZ #887]
25812         * math/libm-test.inc (logb_test_downward): New test to expose
25813         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
25814         rounding mode.
25815
25816 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
25817
25818         [BZ #14027]
25819         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
25820         to be done.
25821         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
25822         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
25823
25824 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
25825
25826         * sysdeps/unix/i386/brk.S: Remove file.
25827         * sysdeps/unix/i386/dl-brk.S: Likewise.
25828         * sysdeps/unix/i386/pipe.S: Likewise.
25829         * sysdeps/unix/i386/sigreturn.S: Likewise.
25830         * sysdeps/unix/i386/syscall.S: Likewise.
25831         * sysdeps/unix/i386/vfork.S: Likewise.
25832         * sysdeps/unix/i386/wait.S: Likewise.
25833
25834         * sysdeps/unix/common/tcsendbrk.c: Move to ...
25835         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
25836
25837         * configure.in (arm*-none*): Do not allow without
25838         --enable-hacker-mode.
25839         (netbsd*): Remove case setting base_os.
25840         (386bsd*): Likewise.
25841         (freebsd*): Likewise.
25842         (bsdi*): Likewise.
25843         (osf*): Likewise.
25844         (sunos*): Likewise.
25845         (ultrix*): Likewise.
25846         (newsos*): Likewise.
25847         (dynix*): Likewise.
25848         (*bsd*): Likewise.
25849         (sysv*): Likewise.
25850         (isc*): Likewise.
25851         (esix*): Likewise.
25852         (sco*): Likewise.
25853         (minix*): Likewise.
25854         (irix4*): Likewise.
25855         (irix6*): Likewise.
25856         (solaris[2-9]*): Likewise.
25857         (none): Likewise.
25858         * configure: Regenerated.
25859
25860 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25861
25862         [BZ #11521]
25863         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
25864         overflow or cancellation in calculating denominator.
25865         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
25866         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
25867         down expression to avoid unexpected rounding in newer GCCs.
25868         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
25869
25870 2012-04-26  David S. Miller  <davem@davemloft.net>
25871
25872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
25873         long-double compat symbols.
25874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
25875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
25876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
25877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
25878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
25879         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
25880         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
25881         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
25882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
25883         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
25884         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
25885         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
25886         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
25887
25888 2012-04-25  David S. Miller  <davem@davemloft.net>
25889
25890         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
25891         HWCAP_* values only after the memory barriers have been defined.
25892         (atomic_full_barrier): Define.
25893         (atomic_read_barrier): Define.
25894         (atomic_write_barrier): Define.
25895
25896 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
25897
25898         * shlib-versions: Add libgcc_s version information.
25899         * sysdeps/generic/libgcc_s.h: Remove.
25900         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
25901         libgcc_s.h.
25902         * sysdeps/gnu/unwind-resume.c: Likewise.
25903         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
25904
25905 2012-04-25  David S. Miller  <davem@davemloft.net>
25906
25907         * sysdeps/unix/sparc/brk.S: Delete.
25908         * sysdeps/unix/sparc/dl-brk.S: Delete.
25909         * sysdeps/unix/sparc/pipe.S: Delete.
25910         * sysdeps/unix/sparc/sysdep.S: Delete.
25911         * sysdeps/unix/sparc/sysdep.h: Delete.
25912         * sysdeps/unix/sparc/vfork.S: Delete.
25913         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
25914         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
25915         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
25916         ret_ERRVAL, r0, r1, MOVE): Define.
25917         (JUMPTARGET): Remove.
25918         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
25919         sysdeps/unix/sparc/sysdep.h
25920         (ENTRY, END): Remove.
25921         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25922
25923 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
25924
25925         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
25926         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
25927         -DIS_IN_build.
25928
25929         * timezone/README: Update upstream location and email address for
25930         tzcode and tzdata.
25931         * timezone/zdump.c: Update from tzcode 2012b.
25932         * timezone/zic.c: Likewise.
25933
25934         * configure.in (libc_cv_as_needed): Remove test.
25935         * configure: Regenerated.
25936         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
25937         conditional definition.
25938         [$(have-as-needed) != yes] (no-as-needed): Likewise.
25939         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
25940         * config.make.in (have-as-needed): Remove variable.
25941
25942 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
25943             Paul Pluzhnikov  <ppluzhnikov@google.com>
25944
25945         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
25946         strings correctly.
25947
25948 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
25949
25950         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
25951         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
25952         * sysdeps/sh/strlen.S: Likewise.
25953
25954 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
25955
25956         * sysdeps/unix/fork.S: Remove file.
25957         * sysdeps/unix/i386/fork.S: Likewise.
25958         * sysdeps/unix/sparc/fork.S: Likewise.
25959
25960         * sysdeps/unix/system.c: Remove file.
25961         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
25962
25963         * sysdeps/unix/getegid.S: Remove file.
25964         * sysdeps/unix/geteuid.S: Likewise.
25965
25966 2012-04-24  Roland McGrath  <roland@hack.frob.com>
25967
25968         * scripts/check-localplt.awk: New file.
25969         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
25970         of diff.
25971         * scripts/data/localplt-generic.data: Add a comment.
25972
25973         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
25974         NODE when __dir_mkfile failed.
25975         * sysdeps/mach/hurd/symlinkat.c: Likewise.
25976         Reported by Ludovic Courtès <ludo@gnu.org>.
25977
25978 2012-04-24  Andreas Jaeger  <aj@suse.de>
25979
25980         * Makerules (common-clean): Also remove gen-as-const-headers
25981         files.
25982
25983 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
25984
25985         * Makerules (native-compile): Do not change working directory for
25986         build.  Use $(OUTPUT_OPTION) in command.
25987         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
25988
25989 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25990
25991         [BZ #13886]
25992         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
25993         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
25994         * math/libm-test.inc (floor_test): Add more tests.
25995         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
25996
25997 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
25998
25999         * sysdeps/unix/getdents.c: Remove file.
26000         * sysdeps/unix/sysv/getdents.c: Likewise.
26001         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
26002
26003         * sysdeps/unix/syscalls.list (madvise): Add syscall from
26004         sysdeps/unix/mman/syscalls.list.
26005         (mmap): Likewise.
26006         (mprotect): Likewise.
26007         (msync): Likewise.
26008         (munmap): Likewise.
26009         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
26010         * sysdeps/unix/mman/syscalls.list: Remove.
26011         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
26012
26013         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
26014         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
26015         * configure: Regenerated.
26016         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
26017         $(libgcc_s_suffix).
26018         * config.make.in (libgcc_s_suffix): Remove variable.
26019
26020 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
26021
26022         * sysdeps/unix/sysv/gethostname.c: Move to ...
26023         * sysdeps/posix/gethostname.c: ... here.
26024
26025         * sysdeps/unix/execve.S: Remove file.
26026
26027         * sysdeps/unix/_exit.S: Remove file.
26028
26029 2012-04-23  Andreas Jaeger  <aj@suse.de>
26030
26031         [BZ #13739]
26032         * manual/Makefile: Remove make dist support, there's no
26033         need for a stand-alone documentation tar ball.
26034         (TEXI2DVI): Define always, it's not in Makeconfig.
26035         (dist): Removed.
26036         (tar-it): Removed.
26037         (edition): Removed.
26038         (glibc-doc-$(edition).tar): Removed
26039         (%.Z): Removed.
26040         (%.gz): Removed.
26041         (%.uu): Removed.
26042         (ETAGS): Remove, it's in Makeconfig.
26043         (move-if-change): Remove, it's in Makeconfig.
26044
26045 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
26046
26047         [BZ #13970]
26048         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
26049         (strtod, strtof, strtold, strtol, strtoul, strtoq)
26050         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
26051         (strtod_l, strtof_l, strtold_l): Remove __wur.
26052         It is not necessarily an error to ignore strtol's return value.
26053         One can reliably look at the stored endptr to decide whether
26054         the number had valid syntax.
26055
26056 2012-04-21  Andreas Jaeger  <aj@suse.de>
26057
26058         [BZ #13739]
26059         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
26060
26061 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
26062
26063         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
26064         * sysdeps/unix/sysv/Versions: Remove file.
26065
26066 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
26067
26068         [BZ #13927]
26069         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26070
26071 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
26072
26073         [BZ #7064]
26074         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
26075         version from __vm86.
26076
26077 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
26078
26079         * sysdeps/unix/common/lxstat.c: Remove file.
26080         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
26081
26082         * sysdeps/unix/sysv/Makefile: Remove file.
26083
26084         * sysdeps/unix/sysv/direct.h: Remove file.
26085
26086         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
26087         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
26088         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
26089         * sysdeps/unix/sysv/bits/signum.h: Likewise.
26090         * sysdeps/unix/sysv/bits/stat.h: Likewise.
26091         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
26092         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
26093
26094         * sysdeps/unix/sysv/setrlimit.c: Remove file.
26095
26096         * sysdeps/unix/xmknod.c: Remove file.
26097         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
26098
26099         * sysdeps/unix/sysv/settimeofday.c: Remove file.
26100
26101         * sysdeps/unix/sysv/i386/time.S: Remove file.
26102
26103         * sysdeps/unix/fxstat.c: Remove file.
26104         * sysdeps/unix/xstat.c: Likewise.
26105         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
26106
26107         * sysdeps/unix/sysv/sigaction.c: Remove file.
26108
26109         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
26110         (sysdep_headers): Remove variable.
26111         [termio.h not in sysdep_headers] (generated): Likewise.
26112         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
26113         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
26114         * sysdeps/unix/sysv/tcdrain.c: Likewise.
26115         * sysdeps/unix/sysv/tcflow.c: Likewise.
26116         * sysdeps/unix/sysv/tcflush.c: Likewise.
26117         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
26118         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
26119         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
26120         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
26121         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
26122
26123         * sysdeps/unix/siglist.c: Remove file.
26124
26125         * sysdeps/unix/getppid.S: Remove file.
26126
26127         * sysdeps/unix/mkdir.c: Remove file.
26128         * sysdeps/unix/rmdir.c: Likewise.
26129
26130 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
26131
26132         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
26133         ERR_MAX value.
26134         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
26135         errlist-compat value.
26136
26137 2012-04-18  David S. Miller  <davem@davemloft.net>
26138
26139         * sysdeps/generic/memcopy.h (reg_char): Delete.
26140         * debug/strcat_chk.c: Use char, not reg_char.
26141         * debug/strcpy_chk.c: Likewise.
26142         * debug/strncat_chk.c: Likewise.
26143         * debug/strncpy_chk.c: Likewise.
26144         * string/memchr.c: Likewise.
26145         * string/memrchr.c: Likewise.
26146         * string/rawmemchr.c: Likewise.
26147         * string/strcat.c: Likewise.
26148         * string/strchr.c: Likewise.
26149         * string/strchrnul.c: Likewise.
26150         * string/strcmp.c: Likewise.
26151         * string/strcpy.c: Likewise.
26152         * string/strncat.c: Likewise.
26153         * string/strncmp.c: Likewise.
26154         * string/strncpy.c: Likewise.
26155
26156 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26157
26158         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
26159         __builtin_memcopy is called when src and dest ranges are known to not
26160         overlap.
26161
26162 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26163
26164         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
26165         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
26166         fwd_align_merge macro call.
26167         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
26168         bwd_align_merge macro call.
26169         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
26170
26171 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
26172
26173         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
26174         bwd_align_merge macros.
26175         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
26176         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
26177         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
26178
26179 2012-04-18  David S. Miller  <davem@davemloft.net>
26180
26181         * sysdeps/sparc/sparc64/memcopy.h: Delete.
26182
26183 2012-04-18  Andreas Jaeger  <aj@suse.de>
26184
26185         [BZ# 6794]
26186         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
26187         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
26188         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
26189
26190         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
26191         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
26192         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
26193
26194         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
26195         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
26196         Adjust for changed ldbl-128 files.
26197
26198         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
26199         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
26200         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
26201
26202 2012-04-17  David S. Miller  <davem@davemloft.net>
26203
26204         * sysdeps/sparc/sparc32/memcopy.h: Delete.
26205
26206 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
26207
26208         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
26209         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
26210         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
26211         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
26212         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
26213         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
26214
26215 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26216
26217         [BZ #6794]
26218         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
26219         * math/libm-test.inc: Add ilogb errno and exception tests.
26220         * math/w_ilogb.c: New file: ilogb wrapper.
26221         * math/w_ilogbf.c: New file: ilogbf wrapper.
26222         * math/w_ilogbl.c: New file: ilogbl wrapper.
26223         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
26224         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
26225         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
26226         exception being thrown with 0.0 as argument.
26227         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
26228         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
26229         exception being thrown with 0.0 as argument.
26230         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
26231         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
26232         exception being thrown with 0.0 as argument.
26233         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
26234         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
26235         exception being thrown with 0.0 as argument.
26236         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
26237         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
26238         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
26239         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
26240         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
26241         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
26242         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
26243         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
26244         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
26245
26246 2012-04-17  Petr Baudis  <pasky@ucw.cz>
26247
26248         * include/sys/uio.h: Change __vector to __iovec to avoid clash
26249         with altivec.
26250
26251 2012-04-16  Marek Polacek  <polacek@redhat.com>
26252
26253         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
26254
26255 2012-04-16  Marek Polacek  <polacek@redhat.com>
26256
26257         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
26258         operands of fdivp instruction.
26259
26260 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
26261
26262         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
26263         * elf/tst-auditmod3b.c: Likewise.
26264         * elf/tst-auditmod4b.c: Likewise.
26265         * elf/tst-auditmod5b.c: Likewise.
26266         * elf/tst-auditmod6b.c: Likewise.
26267         * elf/tst-auditmod6c.c: Likewise.
26268         * elf/tst-auditmod7b.c: Likewise.
26269         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
26270         * sysdeps/x86_64/preconfigure.in: Likewise.
26271         * sysdeps/x86_64/preconfigure: Regenerated.
26272
26273 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
26274
26275         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
26276         __ILP32__.
26277
26278 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
26279
26280         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26281         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
26282
26283 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
26284
26285         [BZ #13973]
26286         * locale/iso-639.def: Fix gl language name. Spotted by
26287         Yaron Shahrabani.
26288
26289 2012-04-12  Roland McGrath  <roland@hack.frob.com>
26290
26291         [BZ #2074]
26292         * libio/libio.h (__io_write_fn): Update comment.
26293
26294 2012-04-12  Petr Baudis  <pasky@ucw.cz>
26295
26296         [BZ #2074]
26297         * stdio.texi (Hook Functions): The user provided writer function
26298         is not allowed to return -1.
26299
26300 2012-04-11  David S. Miller  <davem@davemloft.net>
26301
26302         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26303
26304 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
26305
26306         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
26307         Add a leading slash to rtkaio.
26308
26309 2012-04-11  Jim Meyering  <meyering@redhat.com>
26310
26311         [BZ #11959]
26312         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
26313         It is not necessarily an error to ignore fwrite's return
26314         value.  One can reliably use ferror to test for errors after
26315         the fact.
26316
26317 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
26318
26319         * bits/types.h (__snseconds_t): New type.
26320         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
26321
26322         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
26323         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
26324         (__SNSECONDS_T_TYPE): Likewise.
26325         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
26326         (__SNSECONDS_T_TYPE): Likewise.
26327         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
26328         (__SNSECONDS_T_TYPE): Likewise.
26329
26330 2012-04-10  Andreas Jaeger  <aj@suse.de>
26331
26332         [BZ #2636]
26333         * manual/time.texi (Processor Time): Return type of times is
26334         elapsed real time since an arbitrary point in the past.
26335         (CPU Time): Move CLK_TCK from here...
26336         (Processor Time): ...to here.  Correct description.
26337         * manual/conf.texi (Constants for Sysconf): Correct description of
26338         _SC_CLK_TCK.
26339
26340 2012-04-10  David S. Miller  <davem@davemloft.net>
26341
26342         [BZ #13967]
26343         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
26344         where the is a gap between DT_REL(A) and DT_JMPREL.
26345
26346 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
26347
26348         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
26349         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
26350         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
26351
26352 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26353
26354         * elf/dl-support.c (_dl_inhibit_cache): New variable.
26355         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
26356         (dl_main): Handle --inhibit-cache.
26357         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
26358         _dl_inhibit_cache.
26359         * elf/dl-load.c (_dl_map_object): Use it.
26360         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
26361
26362 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
26363
26364         [BZ #13872]
26365         * sysdeps/i386/fpu/e_powl.S (p78): New object.
26366         (__ieee754_powl): Saturate large exponents rather than testing for
26367         overflow of y*log2(x).
26368         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
26369         * math/libm-test.inc (pow_test): Do not permit spurious overflow
26370         exceptions.
26371
26372         [BZ #11521]
26373         * math/s_ctan.c: Include <float.h>.
26374         (__ctan): Avoid internal overflow or cancellation in calculating
26375         denominator.
26376         * math/s_ctanf.c: Likewise.
26377         * math/s_ctanl.c: Likewise.
26378         * math/s_ctanh.c: Likewise.
26379         * math/s_ctanhf.c: Likewise.
26380         * math/s_ctanhl.c: Likewise.
26381         * math/libm-test.inc (ctan_test): Add more tests.
26382         (ctanh_test): Likewise.
26383         * sysdeps/i386/fpu/libm-test-ulps: Update.
26384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26385
26386 2012-04-09  Andreas Jaeger  <aj@suse.de>
26387
26388         [BZ #6894]
26389         * manual/filesys.texi (Directory Entries): Mention that d_namlen
26390         is an optional BSD extension.
26391
26392         [BZ #10254]
26393         * manual/stdio.texi (Opening Streams): Document additional fopen
26394         parameters.
26395
26396 2012-04-09  Roland McGrath  <roland@hack.frob.com>
26397
26398         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
26399         %eax without telling the compiler.
26400
26401 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
26402
26403         [BZ # 13963]
26404         * manual/install.texi: Use sourceware.org.
26405
26406 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
26407
26408         [BZ #13873]
26409         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
26410         (__ieee754_pow): Generate overflow and underflow using huge*huge
26411         and tiny*tiny rather than just returning constant infinity or zero
26412         for large exponents.
26413         * math/libm-test.inc (pow_test): Require overflow exceptions for
26414         applicable cases of large exponents.
26415
26416         [BZ #706]
26417         * sysdeps/i386/fpu/e_pow.S (p10): New object.
26418         (__ieee754_pow): Use iterative multiplication algorithm only for
26419         integer exponents with absolute value below 1024.  Check for odd
26420         integer exponents when using algorithm for real exponents.
26421         * math/libm-test.inc (pow_test): Add more tests.
26422         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26423
26424 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
26425
26426         [BZ #13705]
26427         * math/libm-test.inc (exp_test): Do not allow overflow exception
26428         on underflow test.
26429
26430 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
26431
26432         [BZ #13705]
26433         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
26434         instead of __kernel_standard_f.
26435
26436 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
26437
26438         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
26439         * sysdeps/x86_64/memset_chk.S: Likewise.
26440
26441 2012-04-08  Andreas Jaeger  <aj@suse.de>
26442
26443         [BZ #10153]
26444         * manual/startup.texi (Environment Access): Describe return value
26445         for putenv and setenv.
26446
26447         [BZ #6895]
26448         * manual/filesys.texi (Directory Entries): Add description for
26449         DT_LNK.
26450
26451         [BZ #6890]
26452         * manual/filesys.texi (Directory Entries): Clarify that it's file
26453         system not operating system in the description of DT_UNKNOWN.
26454
26455         [BZ #6578]
26456         * manual/syslog.texi (closelog): Fix reference, it's openlog.
26457
26458 2012-04-08  Stephen Compall  <s11@member.fsf.org>
26459
26460         [BZ #6649]
26461         * manual/llio.texi (Opening and Closing Files): Add cross
26462         reference to explain mode argument.
26463
26464 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
26465
26466         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
26467         * sysdeps/x86_64/memset_chk.S: Likewise.
26468
26469 2012-04-07  David S. Miller  <davem@davemloft.net>
26470
26471         * elf/elf.h (R_SPARC_WDISP10): Define.
26472         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
26473         R_SPARC_SIZE32.
26474         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
26475         R_SPARC_SIZE64 and R_SPARC_H34.
26476
26477 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
26478
26479         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
26480         conditions and remove no longer applicable assertion.
26481
26482 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
26483
26484         * bits/byteswap.h: Include <features.h>.
26485         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
26486         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
26487
26488 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
26489
26490         * bits/byteswap.h (__bswap_16): Removed.
26491         Include <bits/byteswap-16.h> to get __bswap_16.
26492         * sysdeps/i386/bits/byteswap.h: Likewise.
26493         * sysdeps/s390/bits/byteswap.h: Likewise.
26494         * sysdeps/x86_64/bits/byteswap.h: Likewise.
26495         * bits/byteswap-16.h: New file.
26496         * sysdeps/i386/bits/byteswap-16.h: Likewise.
26497         * sysdeps/s390/bits/byteswap-16.h: Likewise.
26498         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
26499         * string/Makefile (headers): Add bits/byteswap-16.h.
26500
26501 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26502
26503         [BZ #13895]
26504         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
26505         extra indirection.
26506         * nss/Makefile (tests-static, tests): Add tst-nss-static.
26507         * nss/tst-nss-static.c: New.
26508
26509 2012-04-06  Robert Millan  <rmh@gnu.org>
26510
26511         [BZ #6486]
26512         * manual/llio.texi (File Position Primitive): lseek
26513         refers to WHENCE when it really means OFFSET.
26514
26515 2012-04-06  Andreas Jaeger  <aj@suse.de>
26516
26517         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
26518         strncmp declarations.
26519
26520         * abilist/libc.abilist: Add __poll and __ppoll.
26521
26522 2012-04-05  David S. Miller  <davem@davemloft.net>
26523
26524         * scripts/check-local-headers.sh: Accept a host triplet in the
26525         path matched by the exclude regexp.
26526
26527         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
26528         definition.
26529         * sysdeps/powerpc/powerpc32/dl-machine.h
26530         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
26531         * sysdeps/s390/s390-32/dl-machine.h
26532         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
26533         * sysdeps/sparc/sparc32/dl-machine.h
26534         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
26535         * sysdeps/sparc/sparc64/dl-machine.h
26536         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
26537
26538         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
26539         lazy binding.
26540         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
26541         undefined symbol errors.
26542
26543         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
26544         DT_NEEDED entries.
26545
26546 2012-04-05  Michael Matz  <matz@suse.de>
26547
26548         [BZ #13592]
26549         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
26550
26551 2012-04-05  Andreas Jaeger  <aj@suse.de>
26552
26553         [BZ #13908]
26554         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
26555         comment.
26556
26557 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26558
26559         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
26560         which ROUND is no valid rounding mode.
26561
26562 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26563
26564         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
26565         read again.
26566         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
26567
26568 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26569
26570         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
26571         an exception using FPU order intentionally.
26572
26573 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26574
26575         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
26576         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
26577         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
26578         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
26579
26580 2012-04-05  Simon Josefsson  <simon@josefsson.org>
26581
26582         [BZ #12340]
26583         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
26584         EINVAL when BUFLEN is too smal.
26585
26586 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
26587
26588         [BZ #13553]
26589         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
26590         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
26591
26592 2012-04-03  Andreas Jaeger  <aj@suse.de>
26593
26594         [BZ #13938]
26595         * manual/setjmp.texi (System V contexts): Fix sentence.
26596
26597         [BZ #13926]
26598         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
26599         New macro for this case.
26600         [!__GNUC__] (__bswap_64): New inline function for this case.
26601         * sysdeps/x86_64/bits/byteswap.h: Likewise.
26602         * bits/byteswap.h: Likewise.
26603         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
26604         ull, guard with __GLIBC_HAVE_LONG_LONG.
26605
26606         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
26607         __GLIBC_HAVE_LONG_LONG.
26608
26609         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
26610         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
26611
26612 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26613
26614         [BZ #13691]
26615         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
26616         inptr and inend, rather than using last_ch.
26617
26618 2012-04-02  David S. Miller  <davem@davemloft.net>
26619
26620         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
26621         * stdio-common/printf-parse.h (read_int): Change return type to
26622         'int', return -1 on INT_MAX overflow.
26623         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
26624         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
26625         overflows INT_MAX.  Check for overflow of in-format-string precision
26626         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
26627         SIZE_MAX not INT_MAX for integer overflow test.
26628         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
26629         skip the construct in the format string but do not record anything.
26630         * stdio-common/bug22.c: Adjust to test both width/prevision
26631         INT_MAX overflow as well as total length INT_MAX overflow.  Check
26632         explicitly for proper errno values.
26633
26634 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
26635
26636         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
26637         CHAR_MAX.
26638         * string/test-strcmp.c [! WIDE]: Likewise.
26639         * time/tst-mktime2.c: Likewise for INT_MAX.
26640         * string/test-string.h: #include <sys/param.h> for MIN.
26641
26642         * csu/init-first.c (__libc_init_first): Call __ctype_init.
26643         * sysdeps/i386/init-first.c (init): Likewise.
26644         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
26645         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
26646         * sysdeps/sh/init-first.c (init): Likewise.
26647
26648 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
26649
26650         * po/ru.po: Update from translation team.
26651         * po/vi.po: Likewise.
26652
26653 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
26654
26655         * resolv/nss_dns/dns-host.c: Merge copyright years.
26656
26657 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26658
26659         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
26660         Optimize memcpy with prefetch if
26661         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
26662         src, dst pointers have unequal 16 byte alignments.
26663
26664 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
26665
26666         [BZ #13928]
26667         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
26668         from a CNAME entry and return the minimum ttl for the query.
26669         (gaih_getanswer_slice): Likewise.
26670
26671 2012-03-30  Jeff Law  <law@redhat.com>
26672
26673         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
26674         due to long keys.
26675         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
26676         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
26677
26678         * resolv/nss_dns/dns-host.c: Update copyright year.
26679
26680 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
26681
26682         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
26683         requests to save a system call.  Fix check that all bytes are sent.
26684
26685         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
26686         comments for sendmmsg.
26687
26688 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26689
26690         [BZ #13691]
26691         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
26692         with only 1 character between 0x0041 and 0x01b0.
26693         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
26694         * wcsmbs/tst-mbsnrtowcs.c: New file.
26695
26696 2012-03-29  David S. Miller  <davem@davemloft.net>
26697
26698         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
26699         small copies by hand.
26700
26701 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
26702
26703         [BZ #13761]
26704         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
26705         _nss_compat_initgroups_dyn): Fall back to malloc/free
26706         for large group memberships.
26707
26708 2012-03-28  David S. Miller  <davem@davemloft.net>
26709
26710         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
26711         that branches into memcpy.
26712         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
26713         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
26714         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
26715         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
26716         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
26717         bits.
26718         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
26719         implementation too.
26720         * sysdeps/sparc/mempcpy.S: New file.
26721
26722         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
26723         the IFUNC routine in the libc case.
26724         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
26725
26726         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
26727         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
26728         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
26729         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
26730         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
26731         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
26732         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
26733         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
26734
26735         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
26736         loop to 256 bytes instead of 64 bytes and fix test signedness.
26737
26738         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
26739         * sysdeps/sparc/sparc32/Makefile: rather than here...
26740         * sysdeps/sparc/sparc64/Makefile: and here.
26741
26742 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
26743
26744         * malloc/mallocbug.c: Avoid warnings about unused variables.
26745
26746 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
26747
26748         [BZ #13760]
26749         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
26750         in the right place. Discard and retry query if response is
26751         larger than input buffer size.
26752
26753 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
26754
26755         [BZ #369]
26756         [BZ #2678]
26757         [BZ #3866]
26758         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
26759         x for large integer exponent.
26760         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
26761         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
26762         sign of result as needed afterwards.
26763         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
26764         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
26765         result for underflowing pow the same as for overflow.
26766         (__kernel_standard_l): Handle powl overflow and underflow here
26767         rather than calling __kernel_standard.
26768         * math/libm-test.inc (pow_test): Add more tests.
26769
26770         [BZ #3868]
26771         [BZ #13879]
26772         [BZ #13910]
26773         [BZ #13911]
26774         [BZ #13912]
26775         [BZ #13913]
26776         [BZ #13915]
26777         [BZ #13916]
26778         [BZ #13917]
26779         [BZ #13918]
26780         [BZ #13919]
26781         [BZ #13920]
26782         [BZ #13921]
26783         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
26784         * sysdeps/ieee754/k_standard.c: Include <float.h>.
26785         (__kernel_standard_l): New function.
26786         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
26787         __kernel_standard.
26788         * math/w_acosl.c (__acosl): Likewise.
26789         * math/w_asinl.c (__asinl): Likewise.
26790         * math/w_atan2l.c (__atan2l): Likewise.
26791         * math/w_atanhl.c (__atanhl): Likewise.
26792         * math/w_coshl.c (__coshl): Likewise.
26793         * math/w_exp10l.c (__exp10l): Likewise.
26794         * math/w_exp2l.c (__exp2l): Likewise.
26795         * math/w_fmodl.c (__fmodl): Likewise.
26796         * math/w_hypotl.c (__hypotl): Likewise.
26797         * math/w_j0l.c (__j0l, __y0l): Likewise.
26798         * math/w_j1l.c (__j1l, __y1l): Likewise.
26799         * math/w_jnl.c (__jnl, __ynl): Likewise.
26800         * math/w_lgammal.c (__lgammal): Likewise.
26801         * math/w_log10l.c (__log10l): Likewise.
26802         * math/w_log2l.c (__log2l): Likewise.
26803         * math/w_logl.c (__logl): Likewise.
26804         * math/w_powl.c (__powl): Likewise.
26805         * math/w_remainderl.c (__remainderl): Likewise.
26806         * math/w_scalbl.c (sysv_scalbl): Likewise.
26807         * math/w_sinhl.c (__sinhl): Likewise.
26808         * math/w_sqrtl.c (__sqrtl): Likewise.
26809         * math/w_tgammal.c (__tgammal): Likewise.
26810         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
26811         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
26812         * math/libm-test.inc (acos_test): Add more tests.
26813         (acosh_test): Likewise.
26814         (asin_test): Likewise.
26815         (atanh_test): Likewise.
26816         (exp_test): Likewise.
26817         (exp10_test): Likewise.
26818         (exp2_test): Likewise.
26819         (expm1_test): Likewise.
26820         (lgamma_test): Likewise.
26821         (log_test): Likewise.
26822         (log10_test): Likewise.
26823         (log1p_test): Likewise.
26824         (log2_test): Likewise.
26825         (pow_test): Do not allow some spurious overflow exceptions.
26826         (sqrt_test): Add more tests.
26827         (tgamma_test): Likewise.
26828         (y0_test): Likewise.
26829         (y1_test): Likewise.
26830         (yn_test): Likewise.
26831
26832 2012-03-27  Anton Blanchard  <anton@samba.org>
26833
26834         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
26835         MAP_HUGETLB.
26836         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
26837         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
26838         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
26839
26840 2012-03-27  David S. Miller  <davem@davemloft.net>
26841
26842         * conform/Makefile: Run run-conformtest.sh using $(BASH).
26843
26844         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
26845         have-as-vis3 check.
26846
26847 2012-03-27  Andreas Jaeger  <aj@suse.de>
26848
26849         * sysdeps/x86_64/elf/configure.in: Moved to ...
26850         * sysdeps/x86_64/configure.in: ... here.
26851         * sysdeps/x86_64/elf/start.S: Moved to ...
26852         * sysdeps/x86_64/start.S: ... here.
26853         * sysdeps/x86_64/elf/configure: Delete.
26854
26855         * sysdeps/x86_64/configure.in: Merge contents from
26856         sysdeps/i386/configure.in (without i686 check).
26857
26858         * sysdeps/i386/elf/Versions: Merge into ...
26859         * sysdeps/i386/Versions: ... this.
26860         * sysdeps/i386/elf/Versions: Delete file.
26861         * sysdeps/i386/elf/start.S: Moved to ...
26862         * sysdeps/i386/start.S: ...here.
26863         * sysdeps/i386/elf/configure.in: Merge into...
26864         * sysdeps/i386/configure.in: ...here.
26865         * sysdeps/i386/elf/configure.in: Delete file.
26866         * sysdeps/i386/elf/configure: Delete file.
26867
26868         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
26869         * debug/backtracesyms.c: ... here.
26870         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
26871         * debug/backtracesymsfd.c: ... here.
26872         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
26873         * sysdeps/generic/ifunc-sel.h: ... here.
26874
26875         * sysdeps/unix/i386/start.c: Delete file.
26876         * sysdeps/unix/sparc/start.c: Delete file.
26877         * sysdeps/unix/start.c: Delete file.
26878
26879         * sysdeps/sh/elf/configure.in: Moved to ...
26880         * sysdeps/sh/configure.in: ... here.
26881         * sysdeps/sh/elf/start.S: Moved to ...
26882         * sysdeps/sh/start.S: ... here.
26883         * sysdeps/sh/elf/configure: Delete file.
26884
26885         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
26886         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
26887         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
26888         * sysdeps/powerpc/powerpc64/entry.h: ... here.
26889         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
26890         * sysdeps/powerpc/powerpc64/start.S: here.
26891         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
26892         * sysdeps/powerpc/powerpc64/Makefile: ... this.
26893         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
26894         * sysdeps/powerpc/powerpc64/configure.in: ... this.
26895         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
26896
26897         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
26898         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
26899         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
26900         * sysdeps/powerpc/powerpc32/start.S: ... here.
26901         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
26902         * sysdeps/powerpc/powerpc32/configure.in: ... this.
26903         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
26904
26905         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
26906         * sysdeps/powerpc/ifunc-sel.h: ... here.
26907         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
26908         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
26909
26910         * sysdeps/sparc/elf/configure.in: Moved to ...
26911         * sysdeps/sparc/configure.in: ... here.
26912         * sysdeps/sparc/elf/configure: Delete file.
26913         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
26914         * sysdeps/sparc/sparc32/start.S: ... here.
26915         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
26916         * sysdeps/sparc/sparc64/start.S: ... here.
26917         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
26918         * sysdeps/sparc/sparc32/Makefile: ... this.
26919         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
26920         * sysdeps/sparc/sparc64/Makefile: ... this.
26921
26922         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
26923         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
26924         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
26925         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
26926         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
26927         * sysdeps/s390/s390-32/setjmp.S: ... here.
26928         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
26929         * sysdeps/s390/s390-32/configure.in: ... here.
26930         * sysdeps/s390/s390-32/elf/configure: Delete file.
26931         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
26932         * sysdeps/s390/s390-32/start.S: ... here.
26933
26934         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
26935         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
26936         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
26937         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
26938         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
26939         * sysdeps/s390/s390-64/setjmp.S: ... here.
26940         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
26941         * sysdeps/s390/s390-64/configure.in: ... here
26942         * sysdeps/s390/s390-64/elf/configure: Delete file.
26943         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
26944         * sysdeps/s390/s390-64/start.S: ... here.
26945         * sysdeps/s390/s390-64/elf/configure: Delete.
26946
26947         * configure.in: Remove support for elf directories in sysdeps.
26948
26949         * configure: Regenerated.
26950         * sysdeps/i386/configure: Regenerated.
26951         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26952         * sysdeps/powerpc/powerpc64/configure: Regenerated.
26953         * sysdeps/s390/s390-32/configure: Regenerated.
26954         * sysdeps/s390/s390-64/configure: Regenerated.
26955         * sysdeps/sh/configure: Regenerated.
26956         * sysdeps/sparc/configure: Regenerated.
26957         * sysdeps/x86_64/configure: Regenerated.
26958
26959 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
26960
26961         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26962
26963         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
26964         denormal result into account.
26965
26966 2012-03-25  Roland McGrath  <roland@hack.frob.com>
26967
26968         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
26969         Reported by Allan McRae <allan@archlinux.org>.
26970
26971 2012-03-23  Jeff Law  <law@redhat.com>
26972
26973         * nss/getnssent.c (__nss_getent): Fix typo.
26974
26975 2012-03-23  David S. Miller  <davem@davemloft.net>
26976
26977         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26978
26979 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
26980
26981         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
26982         to pad to uint64_t for each field.
26983         (dl_tls_index): Replace unsigned long with uint64_t.
26984
26985 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
26986         Paul Pluzhnikov  <ppluzhnikov@google.com>
26987
26988         [BZ #6528]
26989         * grp/Makefile (otherlibs): Don't set it.
26990         * inet/Makefile (otherlibs): Likewise.
26991         * login/Makefile (otherlibs): Likewise.
26992         * nscd/Makefile (otherlibs): Likewise.
26993         * posix/Makefile (otherlibs): Likewise.
26994         * pwd/Makefile (otherlibs): Likewise.
26995         * rt/Makefile (otherlibs): Likewise.
26996         * sunrpc/Makefile (otherlibs): Likewise.
26997         * nss/Makefile (otherlibs): Likewise.
26998         Add libnss_files to routines and static-only-routines.
26999         ($(objpfx)getent): Remove rule.
27000         * resolv/Makefile: Add libnss_dns and libresolv to routines and
27001         static-only-routines.
27002
27003 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27004
27005         [BZ #13892]
27006         * math/s_cexp.c: Include <float.h>.
27007         (__cexp): Handle exp result overflowing not necessarily
27008         overflowing both real and imaginary parts of result.
27009         * math/s_cexpf.c: Likewise.
27010         * math/s_cexpl.c: Likewise.
27011         * math/libm-test.inc (cexp_test): Add more tests.
27012         * sysdeps/i386/fpu/libm-test-ulps: Update.
27013         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27014
27015 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27016
27017         * include/link.h (ELFW): New macro.
27018         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
27019         Replace ELF64_R_TYPE with ELFW(R_TYPE).
27020
27021 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27022
27023         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
27024         with uint64_t.
27025
27026 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27027
27028         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
27029         declaration.
27030         (struct La_x32_retval): Likewise.
27031
27032 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27033
27034         * sysdeps/x86_64/preconfigure.in: New file.
27035         * sysdeps/x86_64/preconfigure: New generated file.
27036
27037 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27038
27039         [BZ #13824]
27040         * math/e_exp2l.c: Include <float.h>.
27041         (__ieee754_exp2l): Handle overflow and underflow cases
27042         separately.  Only pass fractional part of argument to
27043         __ieee754_expl.
27044         * math/libm-test.inc (exp2_test): Add more tests.
27045
27046         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
27047         negating x to take absolute value.
27048         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
27049         Likewise.
27050         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
27051         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
27052         Likewise.
27053         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
27054         computing low part if x was negated.
27055         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
27056
27057 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27058
27059         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
27060         la_x32_gnu_pltexit.
27061         (pltexit): Cast int_retval to ptrdiff_t.
27062         * elf/tst-auditmod3b.c: Likewise.
27063         * elf/tst-auditmod4b.c: Likewise.
27064         * elf/tst-auditmod5b.c: Likewise.
27065         * elf/tst-auditmod6b.c: Likewise.
27066         * elf/tst-auditmod6c.c: Likewise.
27067         * elf/tst-auditmod7b.c: Likewise.
27068
27069         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
27070         and x32_gnu_pltexit.
27071
27072         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
27073         __ELF_NATIVE_CLASS.
27074         (La_x32_regs): New macro.
27075         (La_x32_retval): Likewise.
27076         (la_x32_gnu_pltenter): New function prototype.
27077         (la_x32_gnu_pltexit): Likewise.
27078
27079 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
27080
27081         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
27082         exponent.
27083
27084         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27085
27086         * configure.in (libc_cv_cc_nofma): Check for option to disable
27087         generation of FMA instructions.
27088         * configure: Regenerate.
27089         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
27090         * sysdeps/ieee754/dbl-64/Makefile: New file.
27091         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27092         Remove brandred-fma4.
27093         (CFLAGS-brandred-fma4.c): Remove.
27094         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
27095         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
27096         define.
27097         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
27098         define.
27099
27100 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27101
27102         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
27103         LLONG_MAX != LONG_MAX.
27104         (_itoa_word): Use _ITOA_WORD_TYPE on value.
27105         (_fitoa_word): Likewise.
27106         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
27107         LLONG_MAX != LONG_MAX.
27108         * stdio-common/_itowa.h: Include <_itoa.h>.
27109         (_itowa_word): Use _ITOA_WORD_TYPE on value.
27110         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
27111         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
27112         only if not defined.
27113         (_ITOA_WORD_TYPE): Likewise.
27114         (_itoa_word): Use _ITOA_WORD_TYPE on value.
27115         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
27116
27117 2012-03-21  David S. Miller  <davem@davemloft.net>
27118
27119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27120
27121 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27122
27123         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
27124         of x86_64 when setting libc_cv_slibdir, libdir and
27125         libc_cv_localedir.
27126         * sysdeps/unix/sysv/linux/configure: Regenerated.
27127
27128 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27129
27130         * manual/lang.texi (Old Varargs): Remove section.
27131         (How Variadic): Update menu.
27132         (va_start): Do not mention varargs.h.
27133
27134 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
27135             Joseph Myers  <joseph@codesourcery.com>
27136
27137         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
27138         link test.
27139         * configure: Regenerated.
27140
27141 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
27142
27143         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
27144         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
27145         conformtest.pl
27146
27147 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27148
27149         * NOTES: Remove.
27150         * Makefile (files-for-dist): Remove NOTES.
27151         (NOTES): Remove rule.
27152         * README: Don't refer to NOTES.
27153         * manual/creature.texi: Don't include macros.texi.
27154         * manual/intro.texi (creature.texi): Remove comment referring to
27155         NOTES.
27156
27157         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
27158         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
27159         * configure: Regenerated.
27160         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
27161         LIBC_TRY_CC_OPTION.
27162         (libc_cv_as_i686): Likewise.
27163         (libc_cv_cc_avx): Likewise.
27164         (libc_cv_cc_sse2avx): Likewise.
27165         (libc_cv_cc_fma4): Likewise.
27166         (libc_cv_cc_novzeroupper): Likewise.
27167         * sysdeps/i386/configure: Regenerated.
27168
27169         [BZ #13883]
27170         * sysdeps/i386/fpu/s_cexp.S: Remove.
27171         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
27172         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
27173         * math/libm-test.inc (cexp_test): Add more tests.
27174         * sysdeps/i386/fpu/libm-test-ulps: Update.
27175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27176
27177 2012-03-21  Allan McRae  <allan@archlinux.org>
27178
27179         * timezone/Makefile: Do not install iso3166.tab and zone.tab
27180
27181 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
27182
27183         [BZ #13871]
27184         * math/w_exp2.c: Do not include <float.h>.
27185         (o_threshold, u_threshold): Remove.
27186         (__exp2): Calculate result before checking finiteness and calling
27187         __kernel_standard.
27188         * math/w_exp2f.c: Likewise.
27189         * math/w_exp2l.c: Likewise.
27190         * math/libm-test.inc (exp2_test): Require overflow exception for
27191         1e6 input.
27192
27193         [BZ #3866]
27194         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
27195         range of signed 64-bit integers before using fistpll.  Remove
27196         checks for whether integers fit in mantissa bits.
27197         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
27198         the range of signed 32-bit integers before using fistpl.  Remove
27199         checks for whether integers fit in mantissa bits.
27200         * sysdeps/i386/fpu/e_powl.S (p64): New object.
27201         (__ieee754_powl): Test for y outside the range of signed 64-bit
27202         integers before using fistpll.  Reduce 64-bit values to 63-bit
27203         ones as needed.
27204         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
27205         divide-by-zero is raised for zero to large negative powers.
27206         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
27207         (__ieee754_powl): Test for y outside the range of signed 64-bit
27208         integers before using fistpll.  Reduce 64-bit values to 63-bit
27209         ones as needed.
27210         * math/libm-test.inc (pow_test): Add more tests.
27211
27212 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27213
27214         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
27215         <stdio-common/_itoa.h>.
27216         * debug/segfault.c: Likewise.
27217         * elf/dl-cache.c: Likewise.
27218         * elf/dl-minimal.c: Likewise.
27219         * elf/dl-misc.c: Likewise.
27220         * elf/dl-sysdep.c: Likewise.
27221         * elf/dl-version.c: Likewise.
27222         * elf/rtld.c: Likewise.
27223         * hurd/hurdsock.c: Likewise.
27224         * hurd/lookup-retry.c: Likewise.
27225         * malloc/malloc.c: Likewise.
27226         * malloc/mtrace.c: Likewise.
27227         * nscd/nscd_getgr_r.c: Likewise.
27228         * nscd/nscd_getpw_r.c: Likewise.
27229         * nscd/nscd_getserv_r.c: Likewise.
27230         * posix/getopt_init.c: Likewise.
27231         * posix/wordexp.c: Likewise.
27232         * stdio-common/_itoa.c: Likewise.
27233         * stdio-common/printf_fphex.c: Likewise.
27234         * stdio-common/vfprintf.c: Likewise.
27235         * string/_strerror.c: Likewise.
27236         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
27237         * sysdeps/i386/i686/hp-timing.h: Likewise.
27238         * sysdeps/mach/_strerror.c: Likewise.
27239         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
27240         * sysdeps/mach/hurd/sethostid.c: Likewise.
27241         * sysdeps/mach/hurd/xmknodat.c: Likewise.
27242         * sysdeps/mach/xpg-strerror.c: Likewise.
27243         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
27244         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
27245         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
27246         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
27247         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
27248         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
27249         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
27250         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
27251         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
27252         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
27253         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
27254         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
27255         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
27256         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
27257         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
27258         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
27259         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
27260         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
27261         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
27262         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
27263         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
27264
27265         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
27266
27267         * stdio-common/_itoa.h: Moved to ...
27268         * sysdeps/generic/_itoa.h: Here.
27269
27270         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
27271
27272         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
27273         instead of "_itoa.h" and "_itowa.h".
27274         * stdio-common/vfprintf.: Likewise.
27275
27276 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27277
27278         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
27279         <bits/wordsize.h>.
27280         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
27281         (__signbit): Likwise.
27282         (llrintf): Likwise.
27283         (llrint): Likwise.
27284
27285 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27286
27287         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
27288         __WORDSIZE != 64.
27289
27290 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
27291
27292         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
27293         OVERFLOW_EXCEPTION_OK.
27294         * math/libm-test.inc ("Philosophy"): Update comment about
27295         exception testing.
27296         (OVERFLOW_EXCEPTION): Define.
27297         (OVERFLOW_EXCEPTION_OK): Likewise.
27298         (INVALID_EXCEPTION_OK): Renumber.
27299         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
27300         (IGNORE_ZERO_INF_SIGN): Likewise.
27301         (test_exceptions): Handle FE_OVERFLOW.
27302         (exp10_test): Expect overflow exceptions.
27303         (exp2_test): Likewise.
27304         (expm1_test): Likewise.
27305         (nextafter_test): Likewise.
27306         (pow_test): Likewise.
27307         (scalbn_test): Likewise.
27308         (scalbln_test): Likewise.
27309
27310 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27311
27312         * sysdeps/x86_64/bits/atomic.h
27313         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
27314         64bit integer.
27315         (atomic_exchange_acq): Likewise.
27316         (__arch_exchange_and_add_body): Likewise.
27317         (__arch_add_body): Likewise.
27318         (atomic_add_negative): Likewise.
27319         (atomic_add_zero): Likewise.
27320
27321 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27322
27323         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
27324         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
27325
27326 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27327
27328         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
27329         Check __x86_64__ instead of __WORDSIZE.
27330
27331 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27332
27333         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
27334
27335 2012-03-19  David S. Miller  <davem@davemloft.net>
27336
27337         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27338
27339         * sysdeps/sparc/fpu/fenv_private.h: New file.
27340         * sysdeps/sparc/fpu/math_private.h: Use it.
27341         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
27342         Remove.
27343         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
27344         (libc_feholdexcept_setroundl): Remove.
27345         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
27346         Remove.
27347         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
27348         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
27349
27350 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27351
27352         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
27353         int64_t instead of long int.
27354         (INSERT_WORDS64): Likwise.
27355
27356 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27357
27358         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
27359         _Unwind_GetCFA return to _Unwind_Ptr first.
27360
27361 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
27362
27363         [BZ #13629]
27364         * math/s_clog.c: Include <float.h>.
27365         (__clog): Scale large or subnormal inputs.
27366         * math/s_clogf.c: Likewise.
27367         * math/s_clogl.c: Likewise.
27368         * math/s_clog10.c: Include <float.h>.
27369         (M_LOG10_2): Define.
27370         (__clog10): Scale large or subnormal inputs.
27371         * math/s_clog10f.c: Likewise.
27372         * math/s_clog10l.c: Likewise.
27373         * math/libm-test.inc (clog_test): Add more tests.
27374         (clog10_test): Likewise.
27375         * sysdeps/i386/fpu/libm-test-ulps: Update.
27376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27377
27378         [BZ #11451]
27379         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
27380         x and y.
27381         * math/libm-test.inc (atan2_test): Add another test.
27382
27383         * Makerules (common-objdir-compile): Remove.
27384         * sysdeps/unix/Makefile (config-generated): Do not add
27385         $(unix-generated) to variable.
27386         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
27387         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
27388         Remove rule.
27389         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
27390         Likewise.
27391         [generic bits/local_lim.h] (before-compile): Do not append to
27392         variable.
27393         [generic bits/local_lim.h] (common-generated): Likewise.
27394         [generic sys/param.h] (before-compile): Do not append to variable.
27395         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
27396         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
27397         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
27398         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
27399         include.
27400         [generic sys/param.h] (sys/param.h-includes): Remove variable.
27401         [generic sys/param.h] (sys/param.h-includes): Remove rule.
27402         [generic sys/param.h] ($(addprefix
27403         $(common-objpfx),$(sys/param.h-includes))): Likewise.
27404         [generic sys/param.h] (common-generated): Do not append to
27405         variable.
27406         [generic sys/param.h] (sysdep_headers): Likewise.
27407         [generic bits/errno.h] (before-compile): Do not append to
27408         variable.
27409         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
27410         rule.
27411         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
27412         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
27413         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
27414         [generic bits/errno.h] (common-generated): Do not append to
27415         variable.
27416         [generic bits/ioctls.h] (before-compile): Do not append to
27417         variable.
27418         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
27419         rule.
27420         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
27421         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
27422         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
27423         rule.
27424         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
27425         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
27426         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
27427         [generic bits/ioctls.h] (common-generated): Do not append to
27428         variable.
27429         [generic sys/syscall.h] (syscall.h): Remove variable.
27430         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
27431         rule.
27432         [generic sys/syscall.h] (before-compile): Do not append to
27433         variable.
27434         [generic sys/syscall.h] (common-generated): Likewise.
27435         * sysdeps/unix/errnos-tmpl.c: Remove file.
27436         * sysdeps/unix/errnos.awk: Likewise.
27437         * sysdeps/unix/ioctls-tmpl.c: Likewise.
27438         * sysdeps/unix/ioctls.awk: Likewise.
27439         * sysdeps/unix/mk-local_lim.c: Likewise.
27440         * sysdeps/unix/snarf-ioctls: Likewise.
27441
27442 2012-03-19  Richard Henderson  <rth@twiddle.net>
27443
27444         * sysdeps/i386/fpu/fenv_private.h: New file.
27445         * sysdeps/i386/fpu/math_private.h: Use it.
27446         (math_opt_barrier, math_force_eval): Remove.
27447         (libc_feholdexcept_setround_53bit): Remove.
27448         (libc_feupdateenv_53bit): Remove.
27449         * sysdeps/x86_64/fpu/math_private.h: Likewise.
27450         (math_opt_barrier, math_force_eval): Remove.
27451         (libc_feholdexcept): Remove.
27452         (libc_feholdexcept_setround): Remove.
27453         (libc_fetestexcept, libc_fesetenv): Remove.
27454         (libc_feupdateenv_test): Remove.
27455         (libc_feupdateenv, libc_feholdsetround): Remove.
27456         (libc_feresetround): Remove.
27457
27458         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
27459         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
27460
27461         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
27462         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
27463         (libc_feupdateenv_testl): New.
27464         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
27465         (libc_feupdateenv_testf): New.
27466         (libc_feupdateenv): Use libc_feupdateenv_test.
27467         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
27468         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
27469
27470         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
27471         (libc_feholdsetroundf, libc_feholdsetroundl): New.
27472         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
27473         (libc_feresetround_noex): New.
27474         (libc_feresetround_noexf): New.
27475         (libc_feresetround_noexl): New.
27476         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
27477         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
27478         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
27479         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
27480         SET_RESTORE_ROUND.
27481         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
27482         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
27483         (__cos): Likewise.
27484         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
27485         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
27486         SET_RESTORE_ROUND_NOEX.
27487         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
27488         SET_RESTORE_ROUND_NOEXF.
27489         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
27490         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
27491         (libc_feholdsetroundf): New.
27492         (libc_feresetround, libc_feresetroundf): New.
27493
27494         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
27495         (libc_feholdexcept_setround_53bit): Convert from macro to function.
27496         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
27497
27498         * sysdeps/generic/math_private.h: Include <fenv.h>.
27499         (default_libc_feholdexcept): New.
27500         (default_libc_feholdexcept_setround): New.
27501         (default_libc_fesetenv, default_libc_feupdateenv): New.
27502         (libc_feholdexcept): Only define if undefined.
27503         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
27504         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
27505         (libc_feholdexcept_setroundl): Likewise.
27506         (libc_feholdexcept_setround_53bit): Likewise.
27507         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
27508         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
27509         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
27510         (libc_feupdateenv_53bit): Likewise.
27511         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
27512         (libc_feholdexcept): Convert from macro to inline function.
27513         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
27514         (libc_fesetenv, libc_feupdateenv): Likewise.
27515
27516         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
27517         not previously defined.
27518         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
27519         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
27520         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
27521         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
27522         * sysdeps/ieee754/flt-32/math_private.h: New file.
27523         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
27524         math_private.h below SET_FLOAT_WORD.
27525         (__isnan, __isinf_ns, __finite): Remove.
27526         (__isnanf, __isinf_nsf, __finitef): Remove.
27527
27528 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
27529
27530         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27531
27532 2012-03-17  David S. Miller  <davem@davemloft.net>
27533
27534         [BZ #6471]
27535         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
27536         for 2.16.
27537
27538 2012-03-16  David S. Miller  <davem@davemloft.net>
27539
27540         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
27541         warnings.
27542
27543         [BZ #6471]
27544         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
27545         properly.
27546         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
27547         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
27548         sysdep_routines when subdir is sysvipc.
27549         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
27550         __getshmlba helper.
27551
27552         * sysdeps/sparc/fpu/libm-test/ulps: Update.
27553
27554 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27555
27556         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
27557         [__LP64__].
27558
27559 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27560
27561         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
27562         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
27563         (__lround): Renamed to ...
27564         (__llround): This.  Replace long int with long long int.
27565         Define lround functions as aliases of llround functions.
27566         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
27567
27568 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27569
27570         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
27571         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
27572         adresses to uintptr_t.  Replace "long int" and "unsigned long
27573         int" with "greg_t" on va_arg.
27574
27575 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27576
27577         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
27578         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
27579
27580         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
27581         Move e_machine check before EI_CLASS check.  Handle x32
27582         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
27583         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
27584         SKIP_EM_IA_64 and include
27585         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
27586
27587         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
27588         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
27589         (add_system_dir): New macro.
27590
27591         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
27592         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
27593
27594 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
27595
27596         [BZ #2551]
27597         [BZ #2552]
27598         [BZ #2553]
27599         [BZ #2554]
27600         [BZ #2562]
27601         [BZ #2563]
27602         [BZ #2565]
27603         [BZ #2566]
27604         [BZ #2576]
27605         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
27606         (y0): Likewise.
27607         * math/w_j0f.c (j0f): Likewise.
27608         (y0f): Likewise.
27609         * math/w_j0l.c (__j0l): Likewise.
27610         (__y0l): Likewise.
27611         * math/w_j1.c (j1): Likewise.
27612         (y1): Likewise.
27613         * math/w_j1f.c (j1f): Likewise.
27614         (y1f): Likewise.
27615         * math/w_j1l.c (__j1l): Likewise.
27616         (__y1l): Likewise.
27617         * math/w_jn.c (jn): Likewise.
27618         (yn): Likewise.
27619         * math/w_jnf.c (jnf): Likewise.
27620         (ynf): Likewise.
27621         * math/w_jnl.c (__jnl): Likewise.
27622         (__ynl): Likewise.
27623         * math/libm-test.inc (j0_test): Add more tests.
27624         (j1_test): Likewise.
27625         (jn_test): Likewise.  Add trailing semicolon to existing test.
27626         (y0_test): Likewise.
27627         (y1_test): Likewise.
27628         * sysdeps/i386/fpu/libm-test-ulps: Update.
27629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27630
27631         [BZ #13851]
27632         [BZ #13854]
27633         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
27634         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
27635         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
27636         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
27637         (__tanl): Set errno for infinite argument.
27638         * sysdeps/i386/fpu/mptan.c: Remove.
27639         * sysdeps/i386/fpu/s_tan.S: Likewise.
27640         * sysdeps/i386/fpu/s_tanl.S: Likewise.
27641         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
27642         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
27643         * math/libm-test.inc (tan_test): Add more tests and enable more
27644         tests for double and long double.
27645         * sysdeps/i386/fpu/libm-test-ulps: Update.
27646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27647
27648 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
27649
27650         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
27651         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
27652
27653 2012-03-16  Roland McGrath  <roland@hack.frob.com>
27654
27655         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
27656         * configure.in: Use it for both main tree and add-ons.
27657         * configure: Regenerated.
27658
27659 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27660
27661         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
27662
27663 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
27664
27665         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
27666         in comment.
27667
27668         [BZ #13851]
27669         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
27670         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
27671         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
27672         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
27673         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
27674         infinite argument.
27675         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
27676         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
27677         != 0 for prec == 2.
27678         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
27679         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
27680         * sysdeps/i386/fpu/s_cosl.S: Likewise.
27681         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
27682         * sysdeps/i386/fpu/s_sinl.S: Likewise.
27683         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
27684         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
27685         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
27686         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
27687         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
27688         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
27689         * math/libm-test.inc (cos_test): Add more tests and enable more
27690         tests for long double.
27691         (sin_test): Likewise.
27692         (sincos_test): Likewise.
27693         * sysdeps/i386/fpu/libm-test-ulps: Update.
27694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27695
27696 2012-03-16  David S. Miller  <davem@davemloft.net>
27697
27698         * sysdeps/sparc/fpu/math_private.h: New file.
27699
27700 2012-03-15  David S. Miller  <davem@davemloft.net>
27701
27702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
27703         file.
27704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
27705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
27706         file.
27707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
27708         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
27709         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
27710         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
27711         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
27712         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
27713         sysdep routines.
27714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
27715
27716         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
27717         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
27718
27719         * sysdeps/sparc/sparc-ifunc.h: New file.
27720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
27721         sparc-ifunc.h
27722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
27723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27724         Likewise.
27725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
27726         Likewise.
27727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
27728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
27729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
27730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
27731         Likewise.
27732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
27733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
27734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
27735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
27736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
27737         Likewise.
27738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
27739         Likewise.
27740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
27741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
27742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
27743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
27744         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
27745         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
27746         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
27747         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
27748         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
27749         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
27750         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
27751         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
27752         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
27753         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
27754         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
27755         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
27756         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
27757         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
27758         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
27759         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
27760         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
27761         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
27762         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
27763         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
27764
27765 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
27766
27767         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
27768         scaling.
27769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27770
27771 2012-03-15  Andreas Jaeger  <aj@suse.de>
27772
27773         [BZ #13852]
27774         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
27775         ieee754/flt-32 implementation for sin, cos and sincos.
27776         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
27777         * sysdeps/i386/fpu/s_cosf.S: Likewise.
27778         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
27779         * sysdeps/i386/fpu/s_sinf.S: Likewise.
27780         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
27781         ieee754/flt-32 implementation for tan.
27782
27783         * math/libm-test.inc (cos_test): Enable some large input tests for
27784         float as well
27785         (sin_test): Likewise.
27786         (sincos_test): Likewise.
27787         (tan_test): Add tests for large input.
27788
27789         * sysdeps/i386/fpu/libm-test-ulps: Update.
27790
27791 2012-03-15  Andreas Jaeger  <aj@suse.de>
27792
27793         [BZ #13658]
27794         * math/libm-test.inc (cos_test): Add more test cases.
27795         (sin_test): Likewise.
27796         (sincos_test): Likewise.
27797
27798 2012-03-15  Andreas Jaeger  <aj@suse.de>
27799
27800         [BZ #13837]
27801         * math/libm-test.inc (cos_test): Add a test case for large input
27802         value.
27803         (sin_test): Likewise.
27804         (sincos_test): Likewise.
27805
27806 2012-03-15  Andreas Jaeger  <aj@suse.de>,
27807         Joseph Myers  <joseph@codesourcery.com>
27808
27809         [BZ #13658]
27810         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
27811         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
27812         * sysdeps/i386/fpu/branred.c: Likewise.
27813         * sysdeps/i386/fpu/dosincos.c: Likewise.
27814         * sysdeps/i386/fpu/mpa.c: Likewise.
27815         * sysdeps/i386/fpu/s_cos.S: Likewise.
27816         * sysdeps/i386/fpu/s_sin.S: Likewise.
27817         * sysdeps/i386/fpu/s_sincos.S: Likewise.
27818         * sysdeps/i386/fpu/sincos32.c: Likewise.
27819
27820         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
27821         Define.
27822         (libc_feupdateenv_53bit): Define.
27823         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
27824         Define.
27825         (libc_feupdateenv_53bit): Define.
27826
27827         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
27828         53 bit (without extend i386 double precision).
27829
27830         * math/libm-test.inc (sincos_test): Add tests for large input.
27831         (sin): Likewise.
27832         (cos): Likewise.
27833
27834         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27835
27836 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
27837
27838         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27839
27840 2012-03-15  David S. Miller  <davem@davemloft.net>
27841
27842         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
27843         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
27844         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
27845         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
27846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
27847         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
27848         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
27849         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
27850         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
27851         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
27852         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
27853         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
27854         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
27855         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
27856         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
27857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
27858         file.
27859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
27860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
27861         file.
27862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
27863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
27864         file.
27865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
27866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
27867         file.
27868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
27869         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
27870         fmin/fmax sysdep routines.
27871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
27872
27873 2012-03-14  David S. Miller  <davem@davemloft.net>
27874
27875         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
27876         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
27877         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
27878         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
27879         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
27880         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
27881         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
27882         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
27883         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
27884         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
27885         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
27886         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
27887         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
27888         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
27889         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
27890         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
27891         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
27892         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
27893         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
27894         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
27895         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
27896         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
27897         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
27898         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
27899         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
27900         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
27901         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
27902         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
27903         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
27904         routines.
27905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
27906         file.
27907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
27908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
27909         file.
27910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
27911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
27912         file.
27913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
27914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
27915         file.
27916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
27917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
27918         file.
27919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
27920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
27921         file.
27922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
27923         file.
27924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
27925         file.
27926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
27927         file.
27928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
27929         New file.
27930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
27931         file.
27932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
27933         file.
27934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
27935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
27936         file.
27937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
27938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
27939         file.
27940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
27941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
27942         file.
27943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
27944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
27945         VIS3 routines.
27946
27947         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
27948         New file.
27949
27950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27951
27952         * sysdeps/sparc/configure.in: New file.
27953         * sysdeps/sparc/configure: Generate.
27954         * configure.in (libc_cv_sparc_as_vis3): Substitute.
27955         * configure: Regenerate.
27956         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
27957         * config.make.in (have-as-vis3): New.
27958         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
27959         available use -Av9d instead of -Av9a.
27960         * sysdeps/sparc/sparc64/Makefile: Likewise.
27961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
27962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
27963         New file.
27964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
27965         file.
27966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
27967         New file.
27968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
27969         file.
27970         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
27971         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
27972         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
27973         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
27974         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
27975
27976         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
27977         fzeros/fnegs to load 0x80000000 into a float register instead of
27978         using the stack.
27979         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
27980
27981 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
27982
27983         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27984         bits/syscall.h.
27985         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
27986         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
27987         ($(inst_includedir)/bits/syscall.h): Remove rule.
27988         ($(objpfx)bits/syscall.d): Include instead of
27989         $(objpfx)syscall-list.d.
27990         (generated): Change syscall-list.h and syscall-list.d to
27991         bits/syscall.h and bits/syscall.d.
27992
27993 2012-03-14  Roland McGrath  <roland@hack.frob.com>
27994
27995         [BZ #13846]
27996         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
27997
27998 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
27999
28000         [BZ #13841]
28001         * math/s_csqrt.c: Include <float.h>.
28002         (__csqrt): Scale large or subnormal inputs.
28003         * math/s_csqrtf.c: Likewise.
28004         * math/s_csqrtl.c: Likewise.
28005         * math/libm-test.inc (csqrt_test): Add more tests.
28006         * sysdeps/i386/fpu/libm-test-ulps: Update.
28007         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28008
28009         [BZ #13840]
28010         * math/libm-test.inc (hypot_test): Add more tests.
28011
28012 2012-03-13  David S. Miller  <davem@davemloft.net>
28013
28014         [BZ #13840]
28015         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
28016         double-precision for the calculation instead of scaling.
28017
28018 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
28019
28020         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
28021         manipulate bits before adding and subtracting TWO52[sx].
28022         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
28023         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28024         Likewise.
28025         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
28026
28027 2012-03-13  David S. Miller  <davem@davemloft.net>
28028
28029         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
28030         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
28031         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
28032         rtld-global-offsets.h
28033         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
28034
28035         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
28036         large parameters.
28037
28038         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
28039
28040         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
28041         'err' in the ifdef scope in which it is actually used.
28042
28043         * nss/nss_db/db-init.c: Include string.h
28044
28045 2012-03-12  David S. Miller  <davem@davemloft.net>
28046
28047         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
28048         masking out of the most significant byte of random value used.
28049         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28050         Fix coding style in previous change.
28051
28052         * sysdeps/unix/sysv/linux/kernel-features.h
28053         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
28054         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
28055         expression.
28056         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
28057         later.
28058
28059 2012-03-11  David S. Miller  <davem@davemloft.net>
28060
28061         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
28062         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
28063         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
28064         for 'resultvar' otherwise things get truncated on 64-bit.
28065
28066         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28067         Fix masking out of the most significant byte of random value used.
28068
28069         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28070
28071 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
28072
28073         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28074
28075 2012-03-09  David S. Miller  <davem@davemloft.net>
28076
28077         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
28078         variables with appropriate CPP guards.
28079         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
28080         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
28081         on resulting framesize and the management of the outregs buffer for pltexit.
28082         Preserve floating point return values across _dl_call_pltexit call.
28083         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
28084         framesize and the management of the outregs buffer for pltexit.
28085         Preserve floating point return values across _dl_call_pltexit
28086         call.
28087         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
28088         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
28089         (print_exit): Fix format string for return register value.
28090
28091 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
28092
28093         * sunrpc/Makefile (others): Add rpcgen.
28094         ($(objpfx)rpcgen): Remove special build rule and dependency on
28095         libc.
28096         * sunrpc/rpcgen.c: New file.
28097
28098 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
28099
28100         [BZ #13673]
28101         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
28102         * stdio-common/bug-vfprintf-nargs.c: Likewise.
28103         * sysdeps/i386/crti.S: Likewise.
28104         * sysdeps/i386/crtn.S: Likewise.
28105         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
28106         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
28107         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
28108         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
28109         * sysdeps/sh/crti.S: Likewise.
28110         * sysdeps/sh/crtn.S: Likewise.
28111         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
28112
28113         [BZ #13673]
28114         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
28115         with URL.
28116         * locale/programs/locfile-kw.gperf: Likewise.
28117         * locale/programs/charmap-kw.h: Regenerated.
28118         * locale/programs/locfile-kw.h: Likewise.
28119
28120         [BZ #13673]
28121         * intl/plural.y: Replace FSF snail mail address with URL.
28122         * intl/plural.c: Regenerated.
28123
28124 2012-03-09  Richard Henderson  <rth@twiddle.net>
28125
28126         * include/math_private.h: Remove file.
28127         * math/math_private.h: Move file ...
28128         * sysdeps/generic/math_private.h: ... here.
28129
28130         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
28131         * sysdeps/powerpc/fpu/math_private.h: Likewise.
28132         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28133
28134         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
28135         and <math_private.h>.
28136         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
28137         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
28138         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
28139         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
28140         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
28141         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
28142         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
28143         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28144         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
28145         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28146         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28147         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
28148         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
28149         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28150         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
28151         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
28152         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28153         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
28154         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
28155         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
28156         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28157         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
28158         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
28159         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28160         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
28161         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
28162         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
28163         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28164         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28165         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
28166         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
28167         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28168         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
28169         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
28170         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
28171         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
28172         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
28173         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
28174         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
28175         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28176         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
28177         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
28178         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
28179         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
28180         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
28181         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
28182         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
28183         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
28184         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
28185         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
28186         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
28187         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
28188         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
28189         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
28190         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
28191         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
28192         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28193         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
28194         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
28195         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
28196         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
28197         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
28198         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28199         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
28200         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
28201         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
28202         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
28203         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
28204         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
28205         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
28206         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
28207         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28208         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
28209         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28210         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
28211         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
28212         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
28213         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
28214         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
28215         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
28216         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
28217         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
28218         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
28219         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
28220         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
28221         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
28222         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
28223         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
28224         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
28225         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
28226         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
28227         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
28228         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28229         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
28230         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
28231         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
28232         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28233         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
28234         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
28235         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
28236         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
28237         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
28238         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
28239         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
28240         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
28241         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
28242         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
28243         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
28244         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
28245         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
28246         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
28247         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
28248         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
28249         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
28250         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
28251         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28252         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
28253         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
28254         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
28255         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
28256         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
28257         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
28258         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28259         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
28260         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
28261         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
28262         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
28263         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
28264         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
28265         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
28266         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
28267         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
28268         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
28269         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
28270         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
28271         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
28272         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
28273         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
28274         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
28275         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
28276         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28277         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
28278         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
28279         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
28280         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
28281         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
28282         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
28283         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
28284         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
28285         * sysdeps/ieee754/k_standard.c: Likewise.
28286         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
28287         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
28288         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
28289         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
28290         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
28291         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
28292         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
28293         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
28294         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
28295         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
28296         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
28297         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
28298         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
28299         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
28300         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
28301         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
28302         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
28303         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
28304         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
28305         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
28306         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
28307         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
28308         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
28309         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
28310         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
28311         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
28312         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
28313         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
28314         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
28315         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
28316         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
28317         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
28318         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
28319         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
28320         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
28321         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
28322         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
28323         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
28324         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
28325         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
28326         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
28327         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
28328         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
28329         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
28330         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
28331         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
28332         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
28333         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
28334         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
28335         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
28336         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
28337         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
28338         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
28339         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
28340         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
28341         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
28342         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
28343         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
28344         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
28345         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
28346         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
28347         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
28348         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
28349         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
28350         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
28351         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
28352         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
28353         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
28354         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
28355         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
28356         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
28357         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
28358         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
28359         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
28360         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
28361         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
28362         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
28363         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
28364         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
28365         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
28366         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
28367         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
28368         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
28369         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
28370         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
28371         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
28372         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
28373         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
28374         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
28375         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
28376         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
28377         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
28378         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
28379         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
28380         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
28381         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
28382         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
28383         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
28384         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
28385         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
28386         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
28387         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
28388         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
28389         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
28390         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
28391         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
28392         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
28393         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
28394         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
28395         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
28396         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
28397         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
28398         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
28399         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
28400         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
28401         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28402         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
28403         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
28404         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28405         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
28406         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
28407         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
28408         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
28409         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
28410         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
28411         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
28412         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
28413         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
28414         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
28415         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
28416         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
28417         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
28418         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
28419         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
28420         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
28421         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
28422         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
28423         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
28424         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
28425         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
28426         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
28427         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
28428         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
28429         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
28430         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
28431         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
28432         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
28433         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
28434         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
28435         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
28436         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
28437         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
28438         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
28439         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
28440         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
28441         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
28442         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
28443         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
28444         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
28445         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
28446         * sysdeps/ieee754/s_lib_version.c: Likewise.
28447         * sysdeps/ieee754/s_matherr.c: Likewise.
28448         * sysdeps/ieee754/s_signgam.c: Likewise.
28449         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
28450         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
28451         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
28452         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
28453         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
28454         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
28455         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
28456         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
28457         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
28458         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
28459         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
28460         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
28461         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
28462         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
28463         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
28464         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
28465         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
28466         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
28467         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
28468         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
28469         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
28470
28471 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
28472
28473         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
28474         * sunrpc/rpc_main.c: Likewise.
28475         * sunrpc/rpc_svcout.c: Likewise.
28476
28477 2012-03-09  David S. Miller  <davem@davemloft.net>
28478
28479         * include/math_private.h: New file.
28480
28481 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
28482
28483         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
28484         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
28485         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
28486         from <bits/socket_type.h>.
28487         (enum __socket_type): Don't define here.
28488         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
28489         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28490         bits/socket_type.h.
28491
28492         [BZ #13566]
28493         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
28494         checking __USE_GNU.
28495
28496         * Makerules ($(inst_includedir)/%.h): New rule.
28497         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
28498         (install-others): Remove variable setting.
28499         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
28500
28501 2012-03-08  Richard Henderson  <rth@twiddle.net>
28502
28503         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
28504         from macro to inline function; merge with the
28505         !__LIBC_INTERNAL_MATH_INLINES version.
28506         (__ieee754_sqrtf): Likewise.
28507
28508         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
28509         to inline function.
28510         (__rintf, __floor, __floorf): Likewise.
28511
28512         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
28513         macro to inline function.
28514         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
28515
28516         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
28517         not <math/math_private.h>.
28518
28519 2012-03-08  David S. Miller  <davem@davemloft.net>
28520
28521         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
28522         copyright year.
28523         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
28524
28525 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
28526
28527         * resolv/gai_misc.c (handle_requests): Fix struct timespec
28528         normalization.
28529         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
28530         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
28531
28532 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
28533
28534         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
28535         be defined individually, they must be defined as a block.  Define
28536         S for printing a string instead of hidint the different by using a
28537         macro for adding the 'l'.
28538         * stdio-common/tst-fphex-wide.c: Adjust.
28539
28540 2012-03-07  Marek Polacek  <polacek@redhat.com>
28541
28542         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
28543
28544 2012-03-08  Marek Polacek  <polacek@redhat.com>
28545
28546         [BZ #13806]
28547         * stdio-common/Makefile (tests): Add tst-fphex-wide.
28548         * stdio-common/tst-fphex.c: Define a few macros to make the
28549         test reusable.  Use them.
28550         * stdio-common/tst-fphex-wide.c: New file.
28551
28552 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
28553
28554         [BZ #6911]
28555         * manual/macros.texi (gnusystems): New macro.
28556         (nongnusystems): Likewise.
28557         (gnulinuxhurdsystems): Likewise.
28558         (gnuhurdsystems): Likewise..
28559         (gnulinuxsystems): Likewise.
28560         * manual/charset.texi: Use new macros or @theglibc{} to refer to
28561         variants of the GNU system, not "GNU system".
28562         * manual/conf.texi: Likewise.
28563         * manual/errno.texi: Likewise.  Update example of errno macro
28564         expansion.
28565         * manual/filesys.texi: Likewise.
28566         (getumask): Document as specific to GNU/Hurd.
28567         * manual/install.texi: Likewise.  Reword some references to
28568         GNU/Linux.
28569         * manual/intro.texi: Likewise.
28570         * manual/io.texi: Likewise.
28571         (File Name Portability): Detail which constraints are inapplicable
28572         to all GNU systems and which are only inapplicable to GNU/Hurd.
28573         * manual/job.texi: Likewise.
28574         * manual/llio.texi: Likewise.
28575         (O_NOCTTY): Document as present on GNU/Linux.
28576         * manual/maint.texi: Likewise.
28577         * manual/memory.texi: Likewise.
28578         * manual/pattern.texi: Likewise.
28579         * manual/pipe.texi: Likewise.
28580         * manual/process.texi: Likewise.
28581         * manual/resource.texi: Likewise.
28582         (RUSAGE_CHILDREN): Remove statement about specifying a particular
28583         child on GNU/Hurd.
28584         * manual/setjmp.texi: Likewise.
28585         * manual/signal.texi: Likewise.
28586         * manual/startup.texi: Likewise.
28587         * manual/stdio.texi: Likewise.
28588         * manual/terminal.texi: Likewise.
28589         (ONLCR): Document as POSIX.
28590         (OXTABS): Document availability on GNU/Linux as XTABS.
28591         (ONOEOT): Document availability separately from other bits.
28592         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
28593         * manual/time.texi: Likewise.
28594         * manual/users.texi: Likewise.
28595         * INSTALL: Regenerated.
28596         * sysdeps/gnu/errlist.c: Regenerated.
28597
28598         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
28599         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
28600         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
28601         puts.
28602         * configure: Regenerated.
28603
28604 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
28605
28606         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
28607         default includes instead of AC_HEADER_CHECK.
28608         * sysdeps/i386/configure: Regenerated.
28609
28610         [BZ #10716]
28611         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
28612         * math/s_cacoshf.c (__cacoshf): Likewise.
28613         * math/s_cacoshl.c (__cacoshl): Likewise.
28614         * math/s_casinh.c (__casinh): Set signs of result from argument.
28615         * math/s_casinhf.c (__casinhf): Likewise.
28616         * math/s_casinhl.c (__casinhl): Likewise.
28617         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
28618         (casinh_test): Add more tests.
28619         * sysdeps/i386/fpu/libm-test-ulps: Update.
28620         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28621
28622 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
28623
28624         * po/zh_TW.po: Update from translation team.
28625
28626         * login/Makefile (distribute): Remove variable.
28627         * catgets/Makefile: Likewise.
28628         * mach/Makefile: Likewise.
28629         * malloc/Makefile: Likewise.
28630         * misc/Makefile: Likewise.
28631         * iconv/Makefile: Likewise.
28632         * nscd/Makefile: Likewise.
28633         * hurd/Makefile: Likewise.
28634         * manual/Makefile: Likewise.
28635         * locale/Makefile: Likewise.
28636         * intl/Makefile: Likewise.
28637         * conform/Makefile: Likewise.
28638         * nss/Makefile: Likewise.
28639         * time/Makefile: Likewise.
28640         * soft-fp/Makefile: Likewise.
28641         * dirent/Makefile: Likewise.
28642         * gmon/Makefile: Likewise.
28643         * po/Makefile: Likewise.
28644         * rt/Makefile: Likewise.
28645         * socket/Makefile: Likewise.
28646         * math/Makefile: Likewise.
28647         * signal/Makefile: Likewise.
28648         * debug/Makefile: Likewise.
28649         * elf/Makefile: Likewise.
28650         * timezone/Makefile: Likewise.
28651         * stdlib/Makefile: Likewise.
28652         * iconvdata/Makefile: Likewise.
28653         * sunrpc/Makefile: Likewise.
28654         * io/Makefile: Likewise.
28655         * argp/Makefile: Likewise.
28656         * inet/Makefile: Likewise.
28657         * hesiod/Makefile: Likewise.
28658         * grp/Makefile: Likewise.
28659         * csu/Makefile: Likewise.
28660         * wctype/Makefile: Likewise.
28661         * crypt/Makefile: Likewise.
28662         * libio/Makefile: Likewise.
28663         * string/Makefile: Likewise.
28664         * nis/Makefile: Likewise.
28665         * resolv/Makefile: Likewise.
28666         * stdio-common/Makefile: Likewise.
28667         * wcsmbs/Makefile: Likewise.
28668         * dlfcn/Makefile: Likewise.
28669         * posix/Makefile: Likewise.
28670
28671         [BZ #6959]
28672         * timezone/Makefile: Don't install timezone files, just the programs
28673         and scripts.
28674
28675 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
28676
28677         * nss/databases.def: Add missing gshadow entry.
28678
28679         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
28680
28681 2012-03-06  Marek Polacek  <polacek@redhat.com>
28682
28683         [BZ #13726]
28684         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
28685         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
28686         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
28687         * stdio-common/tst-long-dbl-fphex.c: New file.
28688
28689 2012-03-06  David S. Miller  <davem@davemloft.net>
28690
28691         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
28692         (set_obp_int): New function.
28693         (get_obp_int): New function.
28694         (__get_clockfreq_via_dev_openprom): Likewise.
28695         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
28696         Avoid unused variable warnings on 'val' and use builtin_expect.
28697         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
28698         __builtin_expect.
28699         (INLINE_CLONE_SYSCALL): Likewise.
28700
28701 2012-03-05  David S. Miller  <davem@davemloft.net>
28702
28703         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28704
28705 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
28706
28707         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28708
28709         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
28710         only for |x| >= 40.
28711         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
28712
28713 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
28714
28715         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
28716         Replace gettimeofday with __vdso_gettimeofday.
28717
28718         * sysdeps/unix/sysv/linux/x86_64/init-first.c
28719         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
28720         __vdso_clock_gettime and __vdso_getcpu.
28721
28722         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
28723         time with __vdso_time.
28724
28725 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
28726
28727         * manual/lang.texi (size_t): Note types to which size_t may be
28728         equivalent with the GNU C Library, but do not describe when
28729         differences between them are significant.
28730
28731 2012-03-05  Andreas Jaeger  <aj@suse.de>
28732
28733         * sysdeps/i386/fpu/libm-test-ulps: Update.
28734
28735 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
28736
28737         [BZ #3976]
28738         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
28739         (__ieee754_pow): Save and restore rounding mode and use
28740         round-to-nearest for main computations.
28741         * math/libm-test.inc (pow_test_tonearest): New function.
28742         (pow_test_towardzero): Likewise.
28743         (pow_test_downward): Likewise.
28744         (pow_test_upward): Likewise.
28745         (main): Call the new functions.
28746         * sysdeps/i386/fpu/libm-test-ulps: Update.
28747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28748
28749         [BZ #3976]
28750         * math/libm-test.inc (cosh_test_tonearest): New function.
28751         (cosh_test_towardzero): Likewise.
28752         (cosh_test_downward): Likewise.
28753         (cosh_test_upward): Likewise.
28754         (sinh_test_tonearest): Likewise.
28755         (sinh_test_towardzero): Likewise.
28756         (sinh_test_downward): Likewise.
28757         (sinh_test_upward): Likewise.
28758         (main): Call the new functions.
28759         * sysdeps/i386/fpu/libm-test-ulps: Update.
28760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28761
28762 2012-03-05  Tom de Vries  <tom@codesourcery.com>
28763
28764         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
28765         default stack guard is set in last bytes.
28766         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
28767
28768 2012-03-05  Kees Cook  <keescook@chromium.org>
28769
28770         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
28771
28772         [BZ #13656]
28773         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
28774         possibly allocate from heap instead of stack.
28775         * stdio-common/bug-vfprintf-nargs.c: New file.
28776         * stdio-common/Makefile (tests): Add nargs overflow test.
28777
28778 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
28779
28780         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28781
28782 2012-03-03  Marek Polacek  <polacek@redhat.com>
28783
28784         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
28785         * math/math_private.h: Likewise.
28786         * stdlib/tst-strtod.c: Likewise.
28787         * sysdeps/i386/i486/bits/atomic.h: Likewise.
28788         * sysdeps/x86_64/bits/atomic.h: Likewise.
28789
28790 2012-03-02  David S. Miller  <davem@davemloft.net>
28791
28792         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
28793         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
28794         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
28795         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
28796         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
28797         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
28798         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
28799         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
28800
28801 2012-03-02  Roland McGrath  <roland@hack.frob.com>
28802
28803         [BZ #13792]
28804         * manual/examples/README: New file, says the example source files
28805         can be used under GPL>=2.
28806         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
28807         line containing just "*/".
28808         * manual/examples/add.c: Add copyright header (GPL>=2).
28809         * manual/examples/argp-ex1.c: Likewise.
28810         * manual/examples/argp-ex2.c: Likewise.
28811         * manual/examples/argp-ex3.c: Likewise.
28812         * manual/examples/argp-ex4.c: Likewise.
28813         * manual/examples/atexit.c: Likewise.
28814         * manual/examples/db.c: Likewise.
28815         * manual/examples/dir.c: Likewise.
28816         * manual/examples/dir2.c: Likewise.
28817         * manual/examples/execinfo.c: Likewise.
28818         * manual/examples/filecli.c: Likewise.
28819         * manual/examples/filesrv.c: Likewise.
28820         * manual/examples/fmtmsgexpl.c: Likewise.
28821         * manual/examples/genpass.c: Likewise.
28822         * manual/examples/inetcli.c: Likewise.
28823         * manual/examples/inetsrv.c: Likewise.
28824         * manual/examples/isockad.c: Likewise.
28825         * manual/examples/longopt.c: Likewise.
28826         * manual/examples/memopen.c: Likewise.
28827         * manual/examples/memstrm.c: Likewise.
28828         * manual/examples/mkfsock.c: Likewise.
28829         * manual/examples/mkisock.c: Likewise.
28830         * manual/examples/mygetpass.c: Likewise.
28831         * manual/examples/pipe.c: Likewise.
28832         * manual/examples/popen.c: Likewise.
28833         * manual/examples/rprintf.c: Likewise.
28834         * manual/examples/search.c: Likewise.
28835         * manual/examples/select.c: Likewise.
28836         * manual/examples/setjmp.c: Likewise.
28837         * manual/examples/sigh1.c: Likewise.
28838         * manual/examples/sigusr.c: Likewise.
28839         * manual/examples/stpcpy.c: Likewise.
28840         * manual/examples/strdupa.c: Likewise.
28841         * manual/examples/strftim.c: Likewise.
28842         * manual/examples/strncat.c: Likewise.
28843         * manual/examples/subopt.c: Likewise.
28844         * manual/examples/swapcontext.c: Likewise.
28845         * manual/examples/termios.c: Likewise.
28846         * manual/examples/testopt.c: Likewise.
28847         * manual/examples/testpass.c: Likewise.
28848         * manual/examples/timeval_subtract.c: Likewise.
28849
28850         [BZ #13792]
28851         * manual/time.texi (Elapsed Time): Move timeval_subtract example
28852         function to ...
28853         * manual/timeval_subtract.c.texi: ... here, new file.
28854
28855 2012-03-02  David S. Miller  <davem@davemloft.net>
28856
28857         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
28858
28859 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
28860
28861         [BZ #3976]
28862         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
28863         (__sin): Save and restore rounding mode and use round-to-nearest
28864         for all computations.
28865         (__cos): Save and restore rounding mode and use round-to-nearest
28866         for all computations.
28867         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
28868         <fenv.h>.
28869         (tan): Save and restore rounding mode and use round-to-nearest for
28870         all computations.
28871         * math/libm-test.inc (cos_test_tonearest): New function.
28872         (cos_test_towardzero): Likewise.
28873         (cos_test_downward): Likewise.
28874         (cos_test_upward): Likewise.
28875         (sin_test_tonearest): Likewise.
28876         (sin_test_towardzero): Likewise.
28877         (sin_test_downward): Likewise.
28878         (sin_test_upward): Likewise.
28879         (tan_test_tonearest): Likewise.
28880         (tan_test_towardzero): Likewise.
28881         (tan_test_downward): Likewise.
28882         (tan_test_upward): Likewise.
28883         (main): Call the new functions.
28884         * sysdeps/i386/fpu/libm-test-ulps: Update.
28885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28886
28887         [BZ #10135]
28888         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
28889         small n, then large n, before computing and testing k+n.
28890         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
28891         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
28892         Likewise.
28893         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
28894         Likewise.
28895         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
28896         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
28897         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
28898         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
28899         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
28900         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
28901         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
28902         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
28903         * math/libm-test.inc (scalbn_test): Add more tests.
28904         (scalbln_test): Likewise.
28905
28906         * manual/filesys.texi (mode_t): Describe constraints on size and
28907         signedness, not exact equivalence to a particular type.
28908         (ino_t): Likewise.
28909         (ino64_t): Likewise.
28910         (dev_t): Likewise.
28911         (nlink_t): Likewise.
28912         (blkcnt_t): Likewise.
28913         (blkcnt64_t): Likewise.
28914         * manual/llio.texi (off_t): Likewise.
28915
28916         [BZ #3976]
28917         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
28918         (__ieee754_exp): Save and restore rounding mode and use
28919         round-to-nearest for all computations.
28920         * math/libm-test.inc (exp_test_tonearest): New function.
28921         (exp_test_towardzero): Likewise.
28922         (exp_test_downward): Likewise.
28923         (exp_test_upward): Likewise.
28924         (main): Call the new functions.
28925         * sysdeps/i386/fpu/libm-test-ulps: Update.
28926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28927
28928 2012-03-01  Chris Demetriou  <cgd@google.com>
28929
28930         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
28931         have predictable order.
28932
28933 2012-03-01  David S. Miller  <davem@davemloft.net>
28934
28935         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
28936
28937         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
28938         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
28939         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
28940         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
28941
28942         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
28943         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
28944         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
28945         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
28946         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
28947         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
28948         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
28949         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
28950         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
28951
28952         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28953
28954         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
28955         * sysdeps/sparc/fpu/libm-test-ulps: to here.
28956         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
28957
28958         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
28959         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
28960         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
28961         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
28962         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
28963         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
28964         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
28965         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
28966         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
28967         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
28968         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
28969         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
28970         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
28971         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
28972         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
28973         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
28974         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
28975         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
28976         * sysdeps/sparc/elf/configure: Regenerated.
28977
28978 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
28979
28980         * configure.in (AS, LD): Require binutils 2.20 or later.
28981         * configure: Regenerated.
28982         * manual/install.texi (Tools for Compilation): Give binutils 2.20
28983         as required minimum version.
28984         * INSTALL: Regenerated.
28985
28986         [BZ #2541]
28987         [BZ #4108]
28988         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
28989         before squaring exponent.
28990         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
28991         bottom long double and 27 bits of top long double before squaring
28992         exponent.
28993         * math/libm-test.inc (erfc_test): Add more tests.
28994         * sysdeps/i386/fpu/libm-test-ulps: Update.
28995         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28997
28998 2012-03-01  Kai Tietz  <ktietz@redhat.com>
28999
29000         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
29001         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
29002         containing bit-fields.
29003         * soft-fp/extended.h (_FP_UNION_E): Likewise.
29004         * soft-fp/single.h (_FP_UNION_S): Likewise.
29005         * soft-fp/double.h (_FP_UNION_D): Likewise.
29006
29007 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29008
29009         [BZ #13786]
29010         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
29011         not include ../strcmp.S.
29012         [USE_AS_STRNCASECMP_L]: Likewise.
29013         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
29014         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
29015         * sysdeps/i386/i686/multiarch/strncase_l-c.c
29016         (__strncasecmp_l_ia32): Define as alias to
29017         __strncasecmp_l_nonascii.
29018
29019         [BZ #5794]
29020         * math/libm-test.inc (expm1_test): Add test for bug 5794.
29021         * sysdeps/i386/fpu/libm-test-ulps: Update.
29022         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29023
29024         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
29025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29026
29027 2012-02-29  Jeff Law  <law@redhat.com>
29028
29029         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
29030         out of bounds read.
29031
29032 2012-02-29  Marek Polacek  <polacek@redhat.com>
29033
29034         [BZ #13706]
29035         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
29036         * elf/Makefile: Add rules to run tst-unused-dep.out.
29037
29038 2012-02-28  David S. Miller  <davem@davemloft.net>
29039
29040         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
29041         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
29042         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
29043         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
29044         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
29045         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
29046
29047 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29048
29049         * math/libm-test.inc (llround_test): Move one test from
29050         lround_test.  Use TEST_f_L in moved test.
29051         (lround_test): Move misplaced test to llround_test.  Add testcase
29052         from bug 2561.
29053
29054 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
29055
29056         * sysdeps/x86_64/fpu/e_expf.S: New file.
29057         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
29058
29059 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
29060
29061         [BZ #13637]
29062         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
29063         of remain_len that may cause incomplete multi-byte character and
29064         false match.
29065         * posix/bug-regex33.c: New file.
29066         * posix/Makefile (tests): Add bug-regex33.
29067
29068 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
29069
29070         * manual/macros.texi: New file.
29071         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
29072         * manual/libc.texinfo: Include macros.texi.
29073         * manual/creatute.texi: Likewise.
29074         * manual/install.texi: Likewise.
29075         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
29076         @glibcadj{} in references to the GNU C Library.
29077         * manual/charset.texi: Likewise.
29078         * manual/conf.texi: Likewise.
29079         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
29080         when not using those macros.
29081         * manual/creature.texi: Likewise.
29082         * manual/crypt.texi: Likewise.
29083         * manual/errno.texi: Likewise.
29084         * manual/filesys.texi: Likewise.
29085         * manual/header.texi: Likewise.
29086         * manual/install.texi: Likewise.
29087         * manual/intro.texi: Likewise.
29088         * manual/io.texi: Likewise.
29089         * manual/job.texi: Likewise.
29090         * manual/lang.texi: Likewise.
29091         * manual/libc.texiinfo: Likewise.
29092         * manual/llio.texi: Likewise.
29093         * manual/locale.texi: Likewise.
29094         * manual/maint.texi: Likewise.
29095         * manual/math.texi: Likewise.
29096         * manual/memory.texi: Likewise.
29097         * manual/message.texi: Likewise.
29098         * manual/nss.texi: Likewise.
29099         * manual/pattern.texi: Likewise.
29100         * manual/process.texi: Likewise.
29101         * manual/resource.texi: Likewise.
29102         * manual/search.texi: Likewise.
29103         * manual/setjmp.texi: Likewise.
29104         * manual/signal.texi: Likewise.
29105         * manual/socket.texi: Likewise.
29106         * manual/startup.texi: Likewise.
29107         * manual/stdio.texi: Likewise.
29108         * manual/string.texi: Likewise.
29109         * manual/sysinfo.texi: Likewise.
29110         * manual/syslog.texi: Likewise.
29111         * manual/terminal.texi: Likewise.
29112         * manual/time.texi: Likewise.
29113         * manual/users.texi: Likewise.
29114         * INSTALL: Regenerated.
29115         * NOTES: Regenerated.
29116         * sysdeps/gnu/errlist.c: Regenerated.
29117
29118 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
29119
29120         * include/dirent.h: Include <dirstream.h> before
29121         <dirent/dirent.h>.
29122
29123 2012-02-28  David S. Miller  <davem@davemloft.net>
29124
29125         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
29126         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
29127         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
29128         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
29129
29130 2012-02-27  David S. Miller  <davem@davemloft.net>
29131
29132         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
29133         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
29134         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
29135         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
29136
29137         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
29138         frame pointer instead of stack pointer relative arg slot.
29139         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
29140         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
29141         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
29142
29143 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
29144
29145         [BZ #3992]
29146         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
29147
29148 2012-02-27  David S. Miller  <davem@davemloft.net>
29149
29150         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
29151         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
29152         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
29153         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
29154         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
29155         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
29156         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
29157         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
29158
29159 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
29160
29161         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
29162         later.  Allow versions 5-9.
29163         * configure: Regenerated.
29164         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
29165         required minimum version and 4.6 as recommended version.  Do not
29166         mention bugs in GCC 2.7 and 2.8.
29167         * INSTALL: Regenerated.
29168
29169 2012-02-27  David S. Miller  <davem@davemloft.net>
29170
29171         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
29172         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
29173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
29174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
29175         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
29176         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
29177         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
29178         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
29179
29180         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
29181         manipulate bits before adding and subtracting TWO112[sx].
29182         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
29183
29184 2012-02-27  Roland McGrath  <roland@hack.frob.com>
29185
29186         [BZ #13775]
29187         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
29188         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
29189         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
29190         being in POSIX, because they are in 1003.1-2008.
29191
29192         * rt/tst-aio.c: Include <fcntl.h>.
29193         * rt/tst-aio7.c: Likewise.
29194         * rt/tst-aio64.c: Likewise.
29195
29196         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
29197
29198 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
29199
29200         * manual/install.texi (--with-headers): Describe headers as
29201         interface headers, not private headers.
29202         (Specific advice for GNU/Linux systems): Describe use of headers
29203         from "make headers_install", not private headers from older
29204         kernels.
29205         * INSTALL: Regenerated.
29206         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
29207         Change to 2.6.19.
29208         * sysdeps/unix/sysv/linux/configure: Regenerated.
29209
29210         * manual/llio.texi (fclean): Remove documentation.
29211
29212         * manual/Makefile (libc-texi-generated): New variable.  Include
29213         version.texi.
29214         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
29215         $(libc-texi-generated), not duplicated list of files.
29216         (version.texi, stamp-version): New rules.
29217         (realclean): Remove $(libc-texi-generated), not individual files
29218         from that list.  Do not remove dir-add.texinfo.
29219         * manual/libc.texinfo: Comment out uses of edition numbers and
29220         references to printed manual.  Remove last-updated dates.
29221         (EDITION): Comment out.
29222         (ISBN): Likewise.
29223         (VERSION, UPDATED): Remove.
29224         (version.texi): Include.
29225
29226 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
29227
29228         * sysdeps/posix/spawni.c: Include <signal.h>.
29229         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
29230         * sysdeps/pthread/aio_fsync.c: Likewise.
29231
29232 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
29233
29234         * conform/Makefile (tests): Run only when not cross-compiling and
29235         when fast-check is not defined.
29236
29237         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
29238         * conform/data/limits.h-data: Fixes for POSIX2008.
29239         * conform/run-conformtest.sh: Run all tests.
29240         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
29241         headers.
29242         * include/bits/dlfcn.h: Likewise.
29243         * include/langinfo.h: Likewise.
29244         * include/monetary.h: Likewise.
29245         * include/sys/poll.h: Likewise.
29246
29247         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
29248         for __USE_GNU.
29249         * posix/spawn.h: Define __need_sigset_t.
29250         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
29251         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
29252         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
29253         to get sigevent_t only.
29254         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
29255         only for __USE_GNU.
29256         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
29257         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
29258         process_vm_writev only for __USE_GNU.
29259         * termios/termios.h: Declare tcgetsid also for POSIX2008.
29260
29261         * conform/Makefile: For now ignore errors from run-conformtest.
29262         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
29263         POSIX to avoid namespace pollution.  Don't prepend headers.
29264         * conform/data/aio.h-data: Fixes for POSIX testing.
29265         * conform/data/fcntl.h-data: Likewise.
29266         * conform/data/glob.h-data: Likewise.
29267         * conform/data/grp.h-data: Likewise.
29268         * conform/data/pthread.h-data: Likewise.
29269         * conform/data/pwd.h-data: Likewise.
29270         * conform/data/signal.h-data: Likewise.
29271         * conform/data/spawn.h-data: Likewise.
29272         * conform/data/stdio.h-data: Likewise.
29273         * conform/data/stdlib.h-data: Likewise.
29274         * conform/data/stropts.h-data: Likewise.
29275         * conform/data/sys/mman.h-data: Likewise.
29276         * conform/data/sys/stat.h-data: Likewise.
29277         * conform/data/sys/types.h-data: Likewise.
29278         * conform/data/sys/wait.h-data: Likewise.
29279         * conform/data/time.h-data: Likewise.
29280         * conform/data/unistd.h-data: Likewise.
29281         * conform/data/utime.h-data: Likewise.
29282
29283         * io/sys/stat.h: fchmod was always in POSIX.
29284         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
29285         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
29286         * rt/aio.h: Define __need_timespec before including <time.h>.
29287         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
29288         struct.  Add forward declaration of pthread_attr_t and use it in
29289         sigevent.
29290         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
29291         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
29292         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
29293         always remove CLK_TCK definition.
29294
29295 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
29296
29297         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
29298
29299 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
29300
29301         * conform/run-conformtest.sh: New file.
29302         * conform/Makefile: Run run-conformtest for tests.
29303         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
29304         support.
29305
29306         * conform/data/uchar.h-data: New file.
29307         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
29308         * conform/data/arpa/inet.h-data: Likewise.
29309         * conform/data/assert.h-data: Likewise.
29310         * conform/data/complex.h-data: Likewise.
29311         * conform/data/cpio.h-data: Likewise.
29312         * conform/data/ctype.h-data: Likewise.
29313         * conform/data/dirent.h-data: Likewise.
29314         * conform/data/dlfcn.h-data: Likewise.
29315         * conform/data/errno.h-data: Likewise.
29316         * conform/data/fcntl.h-data: Likewise.
29317         * conform/data/float.h-data: Likewise.
29318         * conform/data/fmtmsg.h-data: Likewise.
29319         * conform/data/fnmatch.h-data: Likewise.
29320         * conform/data/ftw.h-data: Likewise.
29321         * conform/data/glob.h-data: Likewise.
29322         * conform/data/grp.h-data: Likewise.
29323         * conform/data/iconv.h-data: Likewise.
29324         * conform/data/inttypes.h-data: Likewise.
29325         * conform/data/langinfo.h-data: Likewise.
29326         * conform/data/libgen.h-data: Likewise.
29327         * conform/data/limits.h-data: Likewise.
29328         * conform/data/locale.h-data: Likewise.
29329         * conform/data/math.h-data: Likewise.
29330         * conform/data/monetary.h-data: Likewise.
29331         * conform/data/mqueue.h-data: Likewise.
29332         * conform/data/ndbm.h-data: Likewise.
29333         * conform/data/net/if.h-data: Likewise.
29334         * conform/data/netdb.h-data: Likewise.
29335         * conform/data/netinet/in.h-data: Likewise.
29336         * conform/data/nl_types.h-data: Likewise.
29337         * conform/data/poll.h-data: Likewise.
29338         * conform/data/pthread.h-data: Likewise.
29339         * conform/data/pwd.h-data: Likewise.
29340         * conform/data/regex.h-data: Likewise.
29341         * conform/data/sched.h-data: Likewise.
29342         * conform/data/search.h-data: Likewise.
29343         * conform/data/semaphore.h-data: Likewise.
29344         * conform/data/setjmp.h-data: Likewise.
29345         * conform/data/signal.h-data: Likewise.
29346         * conform/data/spawn.h-data: Likewise.
29347         * conform/data/stdarg.h-data: Likewise.
29348         * conform/data/stdio.h-data: Likewise.
29349         * conform/data/stdlib.h-data: Likewise.
29350         * conform/data/string.h-data: Likewise.
29351         * conform/data/strings.h-data: Likewise.
29352         * conform/data/stropts.h-data: Likewise.
29353         * conform/data/sys/ipc.h-data: Likewise.
29354         * conform/data/sys/mman.h-data: Likewise.
29355         * conform/data/sys/msg.h-data: Likewise.
29356         * conform/data/sys/resource.h-data: Likewise.
29357         * conform/data/sys/select.h-data: Likewise.
29358         * conform/data/sys/sem.h-data: Likewise.
29359         * conform/data/sys/shm.h-data: Likewise.
29360         * conform/data/sys/socket.h-data: Likewise.
29361         * conform/data/sys/stat.h-data: Likewise.
29362         * conform/data/sys/statvfs.h-data: Likewise.
29363         * conform/data/sys/time.h-data: Likewise.
29364         * conform/data/sys/timeb.h-data: Likewise.
29365         * conform/data/sys/times.h-data: Likewise.
29366         * conform/data/sys/types.h-data: Likewise.
29367         * conform/data/sys/uio.h-data: Likewise.
29368         * conform/data/sys/un.h-data: Likewise.
29369         * conform/data/sys/utsname.h-data: Likewise.
29370         * conform/data/sys/wait.h-data: Likewise.
29371         * conform/data/syslog.h-data: Likewise.
29372         * conform/data/tar.h-data: Likewise.
29373         * conform/data/termios.h-data: Likewise.
29374         * conform/data/utime.h-data: Likewise.
29375         * conform/data/utmpx.h-data: Likewise.
29376         * conform/data/varargs.h-data: Likewise.
29377         * conform/data/wchar.h-data: Likewise.
29378         * conform/data/wctype.h-data: Likewise.
29379         * conform/data/wordexp.h-data: Likewise.
29380
29381         * include/stropts.h: New file.
29382         * include/uchar.h: New file.
29383         * include/aio.h: Changes to allow conformtest.pl to use the headers.
29384         * include/assert.h: Likewise.
29385         * include/ctype.h: Likewise.
29386         * include/dirent.h: Likewise.
29387         * include/dlfcn.h: Likewise.
29388         * include/fcntl.h: Likewise.
29389         * include/fnmatch.h: Likewise.
29390         * include/glob.h: Likewise.
29391         * include/grp.h: Likewise.
29392         * include/libio.h: Likewise.
29393         * include/locale.h: Likewise.
29394         * include/math.h: Likewise.
29395         * include/net/if.h: Likewise.
29396         * include/netdb.h: Likewise.
29397         * include/netinet/in.h: Likewise.
29398         * include/pthread.h: Likewise.
29399         * include/pwd.h: Likewise.
29400         * include/regex.h: Likewise.
29401         * include/sched.h: Likewise.
29402         * include/search.h: Likewise.
29403         * include/setjmp.h: Likewise.
29404         * include/signal.h: Likewise.
29405         * include/stdio.h: Likewise.
29406         * include/stdlib.h: Likewise.
29407         * include/string.h: Likewise.
29408         * include/sys/cdefs.h: Likewise.
29409         * include/sys/mman.h: Likewise.
29410         * include/sys/msg.h: Likewise.
29411         * include/sys/resource.h: Likewise.
29412         * include/sys/select.h: Likewise.
29413         * include/sys/socket.h: Likewise.
29414         * include/sys/stat.h: Likewise.
29415         * include/sys/statvfs.h: Likewise.
29416         * include/sys/time.h: Likewise.
29417         * include/sys/times.h: Likewise.
29418         * include/sys/uio.h: Likewise.
29419         * include/sys/utsname.h: Likewise.
29420         * include/sys/wait.h: Likewise.
29421         * include/termios.h: Likewise.
29422         * include/time.h: Likewise.
29423         * include/ulimit.h: Likewise.
29424         * include/unistd.h: Likewise.
29425         * include/utime.h: Likewise.
29426         * include/wchar.h: Likewise.
29427         * include/wctype.h: Likewise.
29428         * include/wordexp.h: Likewise.
29429
29430         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
29431
29432         * time/time.h: TIME_UTC must be a macro.
29433         Make timespec_get available for ISO C11 only as well.
29434
29435 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
29436
29437         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
29438         Reported by Peng Haitao <penght@cn.fujitsu.com>.
29439
29440 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
29441
29442         * configure.in: Use -o not -a in test for unsupported multi-arch.
29443
29444 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
29445
29446         * manual/texinfo.tex: Update to version 2012-01-19.16.
29447
29448 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
29449
29450         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
29451
29452 2012-02-24  Roland McGrath  <roland@hack.frob.com>
29453
29454         [BZ #13738]
29455         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
29456         * manual/fdl-1.3.texi: New file.
29457         * manual/fdl-1.1.texi: File removed.
29458
29459         [BZ #13738]
29460         * manual/libc.texinfo (FDL_VERSION): New @set.
29461         Use it for mention of FDL in cover text.
29462         (Documentation License): Use it in @include file name.
29463
29464 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29465             Roland McGrath  <roland@hack.frob.com>
29466
29467         [BZ #5461]
29468         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
29469         not LONG_LONG_MAX and LONG_LONG_MIN.
29470         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
29471         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
29472         name.
29473         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
29474
29475 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29476
29477         [BZ #2547]
29478         [BZ #11365]
29479         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
29480         manipulate bits before adding and subtracting TWO23[sx].
29481         * math/libm-test.inc (nearbyint_test): Add more tests.
29482
29483 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29484
29485         [BZ #2548]
29486         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
29487         bits before adding and subtracting TWO23[sx].
29488         * math/libm-test.inc (rint_test): Add more tests.
29489         (rint_test_tonearest): Likewise.
29490         (rint_test_towardzero): Likewise.
29491         (rint_test_downward): Likewise.
29492         (rint_test_upward: Likewise.
29493
29494 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29495
29496         [BZ #10110]
29497         * include/stdc-predef.h: New file.  Extracted from features.h.
29498         * include/features.h: Include stdc-predef.h.
29499         * Makefile (headers): Add stdc-predef.h.
29500         * CONFORMANCE (Compiler limitations): Update.
29501
29502 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29503
29504         * manual/libc.texinfo (VERSION, UPDATED): Revert.
29505
29506 2012-02-21  David S. Miller  <davem@davemloft.net>
29507
29508         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
29509         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
29510
29511 2012-02-20  David S. Miller  <davem@davemloft.net>
29512
29513         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
29514         using a normal save/restore sequence, rather than allocating a
29515         dummy stack frame just to store a frame pointer and restore.
29516         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29517
29518 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
29519
29520         * manual/install.texi: Fix stray word in line-wrapped comment.
29521
29522 2012-02-20  David S. Miller  <davem@davemloft.net>
29523
29524         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
29525         both binutils and gcc support GOTDATA.
29526
29527         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
29528         "rd %pc" in the PIC register setup sequences.
29529
29530         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
29531         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
29532         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
29533         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
29534         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
29535         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
29536         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
29537         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29538         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
29539         (SYSCALL_ERROR_HANDLER): Likewise.
29540         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
29541         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
29542         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
29543         (SYSCALL_ERROR_HANDLER): Likewise.
29544
29545         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
29546         (HAVE_GCC_GOTDATA): New.
29547         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
29548         relocation support in both binutils and gcc.
29549         * sysdeps/sparc/elf/configure: Regenerate.
29550
29551         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
29552         * sysdeps/sparc/sparc32/elf/configure: Delete.
29553         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
29554         * sysdeps/sparc/sparc64/elf/configure: Delete.
29555         * sysdeps/sparc/elf/configure.in: New file.
29556         * sysdeps/sparc/elf/configure: Generate.
29557
29558         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
29559         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
29560         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
29561         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
29562         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
29563
29564 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
29565
29566         * manual/install.texi: Do not mention specific glibc version
29567         numbers.
29568         * manual/libc.texinfo (VERSION, UPDATED): Update.
29569         (@copying): Use @copyright{} and range of years.
29570
29571 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
29572
29573         [BZ #13695]
29574         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
29575         [crti.S not in sysdirs] (generated): Do not append.
29576         [crti.S not in sysdirs] (omit-deps): Likewise.
29577         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
29578         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
29579         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
29580         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
29581         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
29582         Likewise.
29583         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
29584         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
29585         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
29586         * csu/defs.awk: Remove file.
29587         * sysdeps/generic/initfini.c: Likewise.
29588         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
29589         variable.
29590         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
29591         Likewise.
29592
29593 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
29594
29595         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
29596         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
29597         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
29598         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
29599         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
29600         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
29601         <bits/epoll.h>.
29602         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
29603         (__EPOLL_PACKED): Define to empty if not defined by
29604         <bits/epoll.h>.
29605         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
29606         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29607         bits/epoll.h.
29608
29609 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
29610
29611         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
29612         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
29613         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
29614         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
29615         <bits/timerfd.h>.
29616         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
29617         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29618         bits/timerfd.h.
29619
29620 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
29621
29622         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
29623         in C locale.
29624         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29625         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
29626         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
29627         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29628
29629 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
29630
29631         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29632         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
29633
29634 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
29635
29636         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
29637         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
29638         defined.
29639         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
29640         Likewise.
29641         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
29642         entry for 2.16.
29643
29644 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
29645
29646         * math/w_acos.c: Use non-signaling floating-point comparisons.
29647         * math/w_acosf.c: Likewise.
29648         * math/w_acosh.c: Likewise.
29649         * math/w_acoshf.c: Likewise.
29650         * math/w_acoshl.c: Likewise.
29651         * math/w_acosl.c: Likewise.
29652         * math/w_asin.c: Likewise.
29653         * math/w_asinf.c: Likewise.
29654         * math/w_asinl.c: Likewise.
29655         * math/w_atanh.c: Likewise.
29656         * math/w_atanhf.c: Likewise.
29657         * math/w_atanhl.c: Likewise.
29658         * math/w_exp2.c: Likewise.
29659         * math/w_exp2f.c: Likewise.
29660         * math/w_exp2l.c: Likewise.
29661         * math/w_j0.c: Likewise.
29662         * math/w_j0f.c: Likewise.
29663         * math/w_j0l.c: Likewise.
29664         * math/w_j1.c: Likewise.
29665         * math/w_j1f.c: Likewise.
29666         * math/w_j1l.c: Likewise.
29667         * math/w_jn.c: Likewise.
29668         * math/w_jnf.c: Likewise.
29669         * math/w_log.c: Likewise.
29670         * math/w_log10.c: Likewise.
29671         * math/w_log10f.c: Likewise.
29672         * math/w_log10l.c: Likewise.
29673         * math/w_log2.c: Likewise.
29674         * math/w_log2f.c: Likewise.
29675         * math/w_log2l.c: Likewise.
29676         * math/w_logf.c: Likewise.
29677         * math/w_logl.c: Likewise.
29678         * math/w_sqrt.c: Likewise.
29679         * math/w_sqrtf.c: Likewise.
29680         * math/w_sqrtl.c: Likewise.
29681         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29682         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
29683         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29684         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
29685         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
29686
29687 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
29688
29689         [BZ #9739]
29690         * manual/string.texi (strnlen): Use correct parameter name in
29691         equivalent expression.
29692
29693 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
29694
29695         [BZ #11174]
29696         * manual/users.texi (seteuid): Consistently use neweuid for
29697         argument name.
29698
29699 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
29700
29701         [BZ #13704]
29702         * manual/nss.texi (Services in the NSS configuration): Correct
29703         list of services in example configuration file.
29704
29705 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
29706
29707         [BZ #11322]
29708         * manual/arith.texi: Remove statements about negative zero
29709         behaving identically to zero.
29710
29711 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
29712
29713         [BZ #5993]
29714         * manual/install.texi: Do not document upgrading from libc5.
29715
29716 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
29717
29718         [BZ #4596]
29719         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
29720
29721 2012-02-18  David S. Miller  <davem@davemloft.net>
29722
29723         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
29724         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
29725         %o7 across the call.
29726         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
29727         instead.
29728         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
29729         SETUP_PIC_REG_LEAF.
29730         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29731         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
29732         * sysdeps/sparc/crtn.S: Likewise.
29733
29734 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
29735
29736         * aout/Makefile: Remove.
29737
29738 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
29739
29740         [BZ #13058]
29741         * manual/examples/argp-ex1.c (main): Format definition in GNU
29742         style.
29743         * manual/examples/argp-ex2.c (main): Likewise.
29744         * manual/examples/argp-ex3.c (main): Likewise.
29745         * manual/examples/argp-ex4.c (main): Likewise.
29746         * manual/examples/longopt.c (main): Use new-style prototype
29747         definition.
29748         * manual/examples/strncat.c (main): Specify return type and use
29749         (void) for arguments.
29750         * manual/examples/subopt.c (main): Use char **argv argument.
29751
29752 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29753
29754         [BZ #5077]
29755         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
29756         rounding modes.
29757
29758 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
29759
29760         [BZ #6907]
29761         * manual/string.texi (strchr): Change when strchrnul is
29762         recommended.
29763
29764 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
29765
29766         [BZ #174]
29767         * manual/locale.texi (setlocale): Document LOCPATH.
29768
29769 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29770
29771         [BZ #10210]
29772         * manual/process.texi (execle): Move @dots{} before last argument.
29773
29774 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
29775
29776         [BZ #12047]
29777         * manual/charset.texi (Generic Charset Conversion): Fix typo
29778         (LC_TYPE -> LC_CTYPE).
29779
29780 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
29781
29782         [BZ #5805]
29783         * manual/arith.texi (scalbn): Use @var{} on parameter names.
29784         (scalbnf): Likewise.
29785         (scalbnl): Likewise.
29786         (scalbln): Likewise.
29787         (scalblnf): Likewise.
29788         (scalblnl): Likewise.
29789         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
29790         (vwarnx): Likewise.
29791         (verr): Likewise.
29792         (verrx): Likewise.
29793         * manual/filesys.texi (telldir): Use braces around return type.
29794         * manual/llio.texi (mmap): Add space after comma.
29795         (mmap64): Likewise.
29796         * manual/math.texi (jn): Use @var{} on parameter names.
29797         (jnf): Likewise.
29798         (jnl): Likewise.
29799         (yn): Likewise.
29800         (ynf): Likewise.
29801         (ynl): Likewise.
29802         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
29803         line.
29804         * manual/resource.texi (ulimit): Use @dots{} instead of literal
29805         "...".
29806         (sched_get_priority_min): Remove semicolon on @deftypefun line.
29807         (sched_get_priority_max): Likewise.
29808         * manual/signal.texi (sigvec): Add space after comma.
29809         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
29810         names.
29811         (if_indextoname): Likewise.
29812         (if_freenameindex): Likewise.
29813         (sendto): Use ',' instead of '.' in prototype.
29814         * manual/startup.texi (syscall): Use @dots{} instead of literal
29815         "...".
29816         * manual/stdio.texi (__fpending): Separate initial words of
29817         paragraph from @deftypefun line.
29818         * manual/syslog.texi (syslog): Use @dots{} instead of literal
29819         "...".
29820         (vsyslog): Use @var{} on parameter names.
29821         * manual/terminal.texi (stty): Use @var{} on parameter names.
29822         * manual/users.texi (getutmp): Use @var{} on parameter names.
29823         (getutmpx): Likewise.
29824
29825 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29826
29827         [BZ #6884]
29828         * manual/stdio.texi (fopen): Fix typos in description of
29829         ",ccs=STRING".
29830
29831 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
29832
29833         [BZ #4026]
29834         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
29835         get clock_id definition.
29836
29837 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
29838
29839         [BZ #4822]
29840         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
29841         (madvise): Cast every argument to void on its own.
29842
29843 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29844
29845         [BZ #9902]
29846         * manual/startup.texi (Exit Status): Fix typo.
29847
29848 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29849
29850         [BZ #10140]
29851         * manual/examples/argp-ex1.c: Include <stdlib.h>.
29852         * manual/examples/argp-ex2.c: Likewise.
29853         * manual/examples/argp-ex3.c: Likewise.
29854
29855 2012-02-16  Richard Henderson  <rth@redhat.com>
29856
29857         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
29858         * sysdeps/s390/s390-32/initfini.c: Remove.
29859         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
29860         * sysdeps/s390/s390-64/initfini.c: Remove.
29861
29862 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29863
29864         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
29865         compiler output for sysdeps/generic/initfini.c.
29866         * sysdeps/sh/elf/initfini.c: Remove file.
29867
29868 2012-02-16  David S. Miller  <davem@davemloft.net>
29869
29870         [BZ #11494]
29871         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
29872
29873         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
29874         * sysdeps/sparc/crti.S: New file.
29875         * sysdeps/sparc/crtn.S: New file.
29876         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
29877         * sysdeps/sparc/sparc64/Makefile: Likewise.
29878
29879 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
29880
29881         [BZ #3335]
29882         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
29883
29884 2012-02-15  Roland McGrath  <roland@hack.frob.com>
29885
29886         [BZ #4822]
29887         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
29888
29889         * mach/devstream.c (cookie_io_functions_t): Macro removed.
29890         (write, read, close): Likewise.
29891         Patch by Aurelien Jarno <aurelien@aurel32.net>.
29892
29893 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
29894
29895         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
29896         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
29897         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
29898         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
29899         <bits/signalfd.h>.
29900         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
29901         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29902         bits/signalfd.h.
29903
29904 2012-02-14  Marek Polacek  <polacek@redhat.com>
29905
29906         * sysdeps/x86_64/crti.S: New file.
29907         * sysdeps/x86_64/crtn.S: New file.
29908         * sysdeps/x86_64/elf/initfini.c: Remove file.
29909
29910 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
29911
29912         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
29913         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
29914         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
29915         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
29916         <bits/inotify.h>.
29917         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
29918         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29919         bits/inotify.h.
29920
29921 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
29922
29923         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
29924         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
29925         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
29926         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
29927         <bits/eventfd.h>.
29928         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
29929         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29930         bits/eventfd.h.
29931
29932 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
29933
29934         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
29935         __feraiseexcept instead of feraiseexcept.
29936
29937         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
29938         nanosleep invocations.
29939         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
29940         strings, and add error checking for a nanosleep invocations.
29941
29942 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
29943
29944         Replace FSF snail mail address with URLs, as per GNU coding standards.
29945         Most of the snail mail addresses were wrong anyway, and omitting
29946         them makes the source code easier to maintain.  Almost all of the
29947         changes are to license notices and to locale LC_IDENTIFICATION
29948         addresses, except for this one:
29949         * manual/libc.texinfo: In "Published by", give the FSF's URL,
29950         not its snail mail address.
29951
29952 2012-02-09  Richard Henderson  <rth@twiddle.net>
29953
29954         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
29955         of kernel-features.h.
29956
29957         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
29958
29959 2012-02-08  Marek Polacek  <polacek@redhat.com>
29960
29961         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
29962         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
29963         * sysdeps/gnu/_G_config.h: Likewise.
29964         * sysdeps/generic/_G_config.h: Likewise.
29965
29966 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
29967
29968         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
29969         tests.
29970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29971
29972         * sysdeps/powerpc/powerpc32/crti.S: New file.
29973         * sysdeps/powerpc/powerpc32/crtn.S: New file.
29974         * sysdeps/powerpc/powerpc64/crti.S: New file.
29975         * sysdeps/powerpc/powerpc64/crtn.S: New file.
29976
29977         * Makeconfig (have-initfini): Don't set.
29978         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
29979         * configure.in (nopic_initfini): Don't substitute.
29980         * config.h.in (HAVE_INITFINI): Don't #undef.
29981         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
29982         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
29983
29984 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
29985
29986         Support crti.S and crtn.S provided directly by architectures.
29987         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
29988         [crti.S in sysdirs] (omit-deps): Likewise.
29989         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
29990         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
29991         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
29992         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
29993         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
29994         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
29995         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
29996         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
29997         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
29998         compiler output for sysdeps/generic/initfini.c.
29999         * sysdeps/i386/elf/Makefile: Remove file.
30000         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
30001
30002 2012-02-07  Marek Polacek  <polacek@redhat.com>
30003
30004         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
30005         * sysdeps/gnu/_G_config.h: Likewise.
30006         * sysdeps/mach/hurd/_G_config.h: Likewise.
30007
30008 2012-02-07  Marek Polacek  <polacek@redhat.com>
30009
30010         * math/Makefile (tests): Add tst-CMPLX2.
30011         * math/tst-CMPLX2.c: New file.
30012
30013 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
30014
30015         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30016
30017         * math/libm-test.inc (jn_test): Add missing L suffix.
30018
30019 2012-02-06  Marek Polacek  <polacek@redhat.com>
30020
30021         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
30022         * sysdeps/i386/fpu/e_powf.S: Likewise.
30023         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
30024         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
30025         * sysdeps/i386/fpu/e_acosh.S: Likewise.
30026         * sysdeps/i386/fpu/e_pow.S: Likewise.
30027         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
30028         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
30029         * sysdeps/i386/fpu/s_expm1.S: Likewise.
30030         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
30031         * sysdeps/i386/fpu/e_log2.S: Likewise.
30032         * sysdeps/i386/fpu/e_log2l.S: Likewise.
30033         * sysdeps/i386/fpu/e_scalb.S: Likewise.
30034         * sysdeps/i386/fpu/e_powl.S: Likewise.
30035         * sysdeps/i386/fpu/s_log1p.S: Likewise.
30036         * sysdeps/i386/fpu/e_log10f.S: Likewise.
30037         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
30038         * sysdeps/i386/fpu/e_logl.S: Likewise.
30039         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
30040         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
30041         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
30042         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
30043         * sysdeps/i386/fpu/e_log2f.S: Likewise.
30044         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
30045         * sysdeps/i386/fpu/e_log.S: Likewise.
30046         * sysdeps/i386/fpu/s_cexp.S: Likewise.
30047         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
30048         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
30049         * sysdeps/i386/fpu/e_logf.S: Likewise.
30050         * sysdeps/i386/fpu/e_log10l.S: Likewise.
30051         * sysdeps/i386/fpu/e_atanh.S: Likewise.
30052         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
30053         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
30054         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
30055         * sysdeps/i386/fpu/e_log10.S: Likewise.
30056         * sysdeps/i386/fpu/s_frexp.S: Likewise.
30057         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
30058         * sysdeps/i386/fpu/s_asinh.S: Likewise.
30059         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
30060         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
30061         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
30062         * sysdeps/i386/asm-syntax.h: Likewise.
30063         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
30064         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
30065         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
30066         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
30067         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
30068         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
30069         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
30070         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
30071         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
30072         * sysdeps/powerpc/sysdep.h: Likewise.
30073         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
30074         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30075
30076 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
30077
30078         [BZ #411]
30079         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
30080
30081 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
30082
30083         * sysdeps/i386/sysdep.h: Include <features.h>.
30084         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
30085         version.
30086
30087 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
30088
30089         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
30090         Define.
30091         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
30092         LOAD_PIC_REG_STR.
30093
30094 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30095
30096         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
30097         (SETUP_PIC_REG): Use GET_PC_THUNK.
30098         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
30099         macro.
30100
30101 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30102
30103         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
30104         for non-PIC compilation.
30105         (SETUP_PIC_REG): Add .p2align directive.
30106         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
30107         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
30108         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
30109         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
30110         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
30111         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
30112         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
30113         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30114         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
30115         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
30116         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
30117         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
30118         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
30119         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
30120         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
30121         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
30122         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
30123         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
30124         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
30125         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
30126         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
30127         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
30128         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
30129         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
30130         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
30131         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
30132         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
30133         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
30134         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
30135         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
30136         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
30137         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
30138         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
30139         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
30140         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
30141         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
30142         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
30143         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
30144         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
30145         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
30146         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
30147
30148 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30149
30150         * math/tst-CMPLX.c: Include <stdio.h>.
30151
30152 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
30153
30154         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
30155         float.
30156         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
30157         * sysdeps/sparc/bits/mathdef.h: Likewise.
30158
30159 2012-01-31  Marek Polacek  <polacek@redhat.com>
30160
30161         * libio/libio.h: Don't define _PARAMS.
30162         * locale/programs/config.h: Don't define PARAMS.
30163         * stdlib/strtol_l.c: Likewise.
30164         (__strtol_l): Remove PARAMS from the prototype.
30165
30166 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
30167
30168         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
30169         names.  Just use the correct names.  Remove unnecessary wrapper
30170         functions.
30171         * malloc/arena.c: Likewise.
30172         * malloc/hooks.c: Likewise.
30173
30174         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
30175         ARENA_TEST says not to.  Simplify test for creation of a new arena.
30176         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
30177
30178 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
30179
30180         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
30181         into tail calls.
30182         (update_get_addr): New function.
30183         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
30184         GET_ADDR_MODULE parameter.
30185
30186 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
30187
30188         * crypt/cert.c: Remove __STDC__ conditionals.
30189         * crypt/crypt-entry.c: Likewise.
30190         * crypt/crypt_util.c: Likewise.
30191         * libio/filedoalloc.c: Likewise.
30192         * libio/fileops.c: Likewise.
30193         * libio/genops.c: Likewise.
30194         * libio/iofclose.c: Likewise.
30195         * libio/iofdopen.c: Likewise.
30196         * libio/iofopen.c: Likewise.
30197         * libio/iofopen64.c: Likewise.
30198         * libio/iogetdelim.c: Likewise.
30199         * libio/iopopen.c: Likewise.
30200         * libio/obprintf.c: Likewise.
30201         * libio/oldfileops.c: Likewise.
30202         * libio/oldiofclose.c: Likewise.
30203         * libio/oldiofdopen.c: Likewise.
30204         * libio/oldiofopen.c: Likewise.
30205         * libio/oldiopopen.c: Likewise.
30206         * libio/wfiledoalloc.c: Likewise.
30207         * libio/wgenops.c: Likewise.
30208         * locale/programs/xmalloc.c: Likewise.
30209         * misc/syslog.c: Likewise.
30210         * stdio-common/xbug.c: Likewise.
30211         * string/memchr.c: Likewise.
30212         * string/memcmp.c: Likewise.
30213         * string/memrchr.c: Likewise.
30214         * string/rawmemchr.c: Likewise.
30215         * sysdeps/posix/getcwd.c: Likewise.
30216         * time/strftime_l.c: Likewise.
30217
30218 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
30219
30220         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
30221         * config.make.in (config-cflags-sse2avx): Define.
30222         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
30223         Fix typo.
30224
30225 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
30226
30227         * scripts/config.guess: Update from upstream config git repository.
30228         * scripts/config.sub: Likewise.
30229
30230 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
30231
30232         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
30233         (EM_NUM): Update.
30234         (R_TILEPRO_*, R_TILEGX_*): New macros.
30235
30236         * scripts/firstversions.awk: Fix bug in version range handling.
30237
30238         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
30239
30240         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
30241
30242         * include/sys/epoll.h: New file.
30243         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
30244         libc_hidden_def.
30245
30246 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
30247
30248         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
30249         Avoid unnecessary __WORDSIZE == 64 test.
30250         (fmaxf): Use VEX format if possible.
30251         (fmax): Likewise.
30252         (fminf): Likewise.
30253         (fmin): Likewise.
30254
30255         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
30256         * math/math_private.h: Remove libc_fegetround* and
30257         libc_fesetround*.
30258         * sysdeps/i386/configure.in: Check for -msse2avx.
30259         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
30260         also if SSE2AVX is defined.
30261         Remove libc_fegetround* and libc_fesetround*.
30262         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
30263         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
30264         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
30265         of HAS_YMM_USABLE.
30266         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
30267         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
30268         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
30269         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
30270         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
30271
30272         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
30273
30274 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30275
30276         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
30277         size is not set.
30278         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
30279
30280 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
30281
30282         [BZ #13618]
30283         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
30284         relocation.
30285         * Makeconfig (libm): Define.
30286         * elf/Makefile: Add rules to build and run tst-relsort1.
30287         * elf/tst-relsort1.c: New file.
30288         * elf/tst-relsort1mod1.c: New file.
30289         * elf/tst-relsort1mod2.c: New file.
30290
30291 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
30292
30293         * math/s_ldexp.c: Remove __STDC__ conditionals.
30294         * math/s_ldexpf.c: Likewise.
30295         * math/s_ldexpl.c: Likewise.
30296         * math/s_nextafter.c: Likewise.
30297         * math/s_nexttowardf.c: Likewise.
30298         * math/s_significand.c: Likewise.
30299         * math/s_significandf.c: Likewise.
30300         * math/s_significandl.c: Likewise.
30301         * math/w_jnl.c: Likewise.
30302         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
30303         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
30304         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
30305         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
30306         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
30307         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
30308         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
30309         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
30310         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
30311         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
30312         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
30313         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
30314         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
30315         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
30316         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
30317         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
30318         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
30319         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
30320         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
30321         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
30322         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
30323         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
30324         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
30325         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
30326         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
30327         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
30328         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
30329         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
30330         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
30331         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
30332         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
30333         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
30334         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
30335         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
30336         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
30337         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
30338         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
30339         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
30340         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
30341         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
30342         * sysdeps/ieee754/k_standard.c: Likewise.
30343         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
30344         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
30345         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
30346         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
30347         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
30348         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
30349         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
30350         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
30351         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
30352         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
30353         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
30354         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
30355         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
30356         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
30357         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
30358         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
30359         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
30360         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
30361         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
30362         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
30363         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30364         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
30365         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
30366         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
30367         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
30368         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
30369         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
30370         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
30371         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
30372         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
30373         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
30374         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
30375         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
30376         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
30377         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
30378         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
30379         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
30380         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
30381         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
30382         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
30383         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
30384         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
30385         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
30386         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
30387         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
30388         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
30389         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
30390         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
30391         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
30392         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
30393         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
30394         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
30395         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
30396         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
30397         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
30398         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
30399         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
30400         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
30401         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
30402         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
30403         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
30404         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
30405         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
30406         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
30407         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
30408         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
30409         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
30410         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
30411         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
30412         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
30413         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
30414         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
30415         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
30416         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
30417         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
30418         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
30419         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
30420         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
30421         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
30422         * sysdeps/ieee754/s_matherr.c: Likewise.
30423         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
30424         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
30425         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
30426         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
30427
30428 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
30429
30430         * crypt/md5.h: Remove __STDC__ conditionals.
30431         * libio/libioP.h: Likewise.
30432         * locale/programs/config.h: Likewise.
30433         * sysdeps/generic/sysdep.h: Likewise.
30434         * sysdeps/i386/asm-syntax.h: Likewise.
30435         * sysdeps/s390/asm-syntax.h: Likewise.
30436         * sysdeps/unix/sysdep.h: Likewise.
30437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
30438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30439
30440 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
30441
30442         * libio/libio.h: Remove __STDC__ conditionals.
30443         * malloc/obstack.h: Likewise.
30444         * math/complex.h: Likewise.
30445         * math/math.h: Likewise.
30446         * sysdeps/generic/_G_config.h: Likewise.
30447         * sysdeps/gnu/_G_config.h: Likewise.
30448         * sysdeps/mach/hurd/_G_config.h: Likewise.
30449         * sysdeps/powerpc/bits/mathdef.h: Likewise.
30450         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
30451         * sysdeps/sparc/bits/mathdef.h: Likewise.
30452
30453 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
30454
30455         [BZ #13583]
30456         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
30457         Clean up HAS_* macros.
30458         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
30459         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
30460         possible.
30461         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
30462         HAS_AVX.
30463         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
30464         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
30465         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
30466         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
30467         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
30468
30469 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
30470
30471         * elf/tst-unique3.cc (gets): Remove declaration.
30472         * elf/tst-unique3lib.cc (gets): Likewise.
30473         * elf/tst-unique3lib2.cc (gets): Likewise.
30474         * elf/tst-unique4.cc (gets): Likewise.
30475
30476 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
30477
30478         * include/stdio.h: Add C++ protection.  Add gets declarations and
30479         definitions.
30480         * debug/tst-chk1.c: Don't declare gets here.
30481         * stdio-common/tst-gets.c: Likewise.
30482
30483 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
30484
30485         * posix/glob: Remove directory.
30486
30487 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
30488
30489         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
30490
30491 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
30492
30493         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
30494         of the non-standard EPFNOSUPPORT.
30495
30496 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30497
30498         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
30499         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
30500         ANYWHERE set to 1 only on KERN_NO_SPACE error.
30501
30502 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
30503
30504         * wcsmbs/uchar.h: Test __STDC_VERSION__.
30505
30506 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
30507
30508         * nscd/aicache.c (addhstaiX): Do not cache negative results of
30509         transient errors.
30510         * nscd/grpcache.c (cache_addgr): Likewise.
30511         * nscd/hstcache.c (cache_addhst): Likewise.
30512         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30513         * nscd/pwdcache.c (cache_addpw): Likewise.
30514         * nscd/servicescache.c (cache_addserv): Likewise.
30515
30516 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
30517
30518         * malloc/malloc.c: Various cleanups.
30519         * malloc/hooks.c: Likewise.
30520
30521         * stdlib/Makefile (tests): Add bug-fmtmsg1.
30522         * stdlib/bug-fmtmsg1.c: New file.
30523
30524         * stdlib/fmtmsg.c (init): Add missing unlock.
30525         Patch by Peng Haitao <penght@cn.fujitsu.com>.
30526
30527 2012-01-12  Marek Polacek  <polacek@redhat.com>
30528
30529         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
30530         and _GNU_SOURCE.
30531
30532 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
30533
30534         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
30535         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
30536         macro to ensure uniqueness of label name.
30537         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
30538         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
30539
30540 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
30541
30542         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
30543
30544         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
30545         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
30546         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30547         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
30548
30549 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
30550
30551         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
30552
30553         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
30554         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
30555         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
30556
30557         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
30558
30559         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
30560         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
30561         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
30562         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
30563
30564         * math/bits/math-finite.h: Add ldexp support.
30565
30566 2012-01-10  Marek Polacek  <polacek@redhat.com>
30567
30568         * locale/programs/localedef.h (show_archive_content): Add noreturn
30569         attribute.
30570
30571 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
30572
30573         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
30574
30575 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
30576
30577         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
30578
30579         * io/Makefile (headers): Add bits/poll2.h.
30580
30581 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
30582
30583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
30584         typo #include statement.
30585
30586 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
30587
30588         * include/sys/cdefs.h: Define __attribute_alloc_size.
30589         * catgets/gencat.c: Add alloc_size attribute and apply consistently
30590         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
30591         * elf/pldd.c: Likewise.
30592         * iconv/iconv_charmap.c: Likewise.
30593         * iconv/iconvconfig.c: Likewise.
30594         * iconv/strtab.c: Likewise.
30595         * locale/programs/locale.c: Likewise.
30596         * locale/programs/localedef.h: Likewise.
30597         * locale/programs/simple-hash.c: Likewise.
30598         * nscd/nscd.h: Likewise.
30599         * nss/makedb.c: Likewise.
30600         * sysdeps/generic/ldconfig.h: Likewise.
30601         * locale/programs/localedef.c: Remove xmalloc prototype.
30602         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
30603
30604 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
30605
30606         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
30607         appropriate.
30608
30609 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
30610
30611         * math/Makefile (tests): Add tst-CMPLX.
30612         * math/tst-CMPLX.c: New file.
30613
30614         * math/complex.h (CMPLXL): Fix typo.
30615
30616         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
30617         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
30618         GLIBC_2.16.
30619         * debug/tst-chk1.c: Add poll and ppoll tests.
30620         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
30621         * include/sys/poll.h: Add hidden proto for ppoll.
30622         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
30623         * sysdeps/mach/hurd/ppoll.c: Likewise.
30624         * io/ppoll.c: Likewise.
30625         * debug/poll_chk.c: New file.
30626         * debug/ppoll_chk.c: New file.
30627         * include/bits/poll2.h: New file.
30628         * io/bits/poll2.h: New file.
30629
30630         [BZ #1350]
30631         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
30632
30633         * configure.in: static is always set to yes.  Remove.
30634         * config.make.in: Don't set build-static.
30635         * Makeconfig: Remove use of build-static.
30636         * dlfcn/Makefile: Likewise.
30637         * elf/Makefile: Likewise.
30638         * math/Makefile: Likewise.
30639         * misc/Makefile: Likewise.
30640         * nptl/Makefile: Likewise.
30641         * sysdeps/mach/hurd/Makefile: Likewise.
30642
30643         * configure.in: PWD_P is not used anymore.
30644         * config.make.in: Remove PWD_P entry.
30645
30646         * configure.in: Remove last remnants of RANLIB.
30647         No need to check for signed size_t anymore.
30648         Don't set libc_commonpagesize and libc_relro_required here for Alpha
30649         and IA-64.
30650         Remove __builtin_expect test because we require at least gcc 3.4.
30651         * aclocal.m4: Likewise.
30652
30653         * wcsmbs/mbrtoc16.c: Implement using towc function.
30654         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
30655         * wcsmbs/wcsmbsload.c: Likewise.
30656         * iconv/gconv_simple.c: Likewise.
30657         * iconv/gconv_int.h: Likewise.
30658         * iconv/gconv_builtin.h: Likewise.
30659         * iconv/iconv_prog.c: Remove CHAR16 handling.
30660
30661         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
30662
30663         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
30664
30665         * configure.in: Remove --with-elf and --enable-bounded options.
30666         Dont set base_machine for ia64.  More non-ELF conditions removed.
30667         Remove testing and setting of leading underscore information.
30668         * config.make.in (build-bounded): Set to no.
30669         * config.h.in: Remove NO_UNDERSCORES entry.
30670         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
30671         them.
30672         * csu/start.c: Remove !NO_UNDERSCORE code.
30673         * locale/localeinfo.h: Likewise.
30674         * sysdeps/generic/machine-gmon.h: Likewise.
30675         * sysdeps/generic/sysdep.h: Likewise.
30676         * sysdeps/i386/sysdep.h: Likewise.
30677         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
30678         * sysdeps/mach/sysdep.h: Likewise.
30679         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30680         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30681         * sysdeps/sh/sysdep.h: Likewise.
30682         * sysdeps/sparc/sparc32/alloca.S: Likewise.
30683         * sysdeps/unix/i386/sysdep.S: Likewise.
30684         * sysdeps/unix/sparc/start.c: Likewise.
30685         * sysdeps/unix/sparc/sysdep.S: Likewise.
30686         * sysdeps/unix/sparc/sysdep.h: Likewise.
30687         * sysdeps/unix/start.c: Likewise.
30688         * sysdeps/unix/x86_64/sysdep.S: Likewise.
30689         * sysdeps/x86_64/sysdep.h: Likewise.
30690
30691 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
30692
30693         [BZ #13553]
30694         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
30695         for non-gcc.
30696         * argp/argp-fmtstream.h: Use const instead __const.
30697         * argp/argp.h: Likewise.
30698         * assert/assert.h: Likewise.
30699         * bits/fenv.h: Likewise.
30700         * bits/sched.h: Likewise.
30701         * bits/sigset.h: Likewise.
30702         * bits/sigthread.h: Likewise.
30703         * catgets/nl_types.h: Likewise.
30704         * conform/data/pthread.h-data: Likewise.
30705         * crypt/crypt-private.h: Likewise.
30706         * crypt/crypt.h: Likewise.
30707         * crypt/crypt_util.c: Likewise.
30708         * ctype/ctype.h: Likewise.
30709         * debug/execinfo.h: Likewise.
30710         * debug/mbsnrtowcs_chk.c: Likewise.
30711         * debug/mbsrtowcs_chk.c: Likewise.
30712         * debug/wcsnrtombs_chk.c: Likewise.
30713         * debug/wcsrtombs_chk.c: Likewise.
30714         * debug/wcstombs_chk.c: Likewise.
30715         * dirent/dirent.h: Likewise.
30716         * dlfcn/dlfcn.h: Likewise.
30717         * elf/neededtest4.c: Likewise.
30718         * grp/grp.h: Likewise.
30719         * gshadow/gshadow.h: Likewise.
30720         * iconv/gconv.h: Likewise.
30721         * iconv/gconv_int.h: Likewise.
30722         * iconv/gconv_simple.c: Likewise.
30723         * iconv/iconv.h: Likewise.
30724         * iconv/loop.c: Likewise.
30725         * iconv/skeleton.c: Likewise.
30726         * include/aio.h: Likewise.
30727         * include/aliases.h: Likewise.
30728         * include/argz.h: Likewise.
30729         * include/arpa/inet.h: Likewise.
30730         * include/assert.h: Likewise.
30731         * include/dirent.h: Likewise.
30732         * include/dlfcn.h: Likewise.
30733         * include/execinfo.h: Likewise.
30734         * include/fcntl.h: Likewise.
30735         * include/fenv.h: Likewise.
30736         * include/glob.h: Likewise.
30737         * include/grp.h: Likewise.
30738         * include/libintl.h: Likewise.
30739         * include/mntent.h: Likewise.
30740         * include/netdb.h: Likewise.
30741         * include/pwd.h: Likewise.
30742         * include/rpc/netdb.h: Likewise.
30743         * include/sched.h: Likewise.
30744         * include/search.h: Likewise.
30745         * include/shadow.h: Likewise.
30746         * include/signal.h: Likewise.
30747         * include/stdio.h: Likewise.
30748         * include/stdlib.h: Likewise.
30749         * include/string.h: Likewise.
30750         * include/sys/socket.h: Likewise.
30751         * include/sys/stat.h: Likewise.
30752         * include/sys/statfs.h: Likewise.
30753         * include/sys/statvfs.h: Likewise.
30754         * include/sys/syslog.h: Likewise.
30755         * include/sys/time.h: Likewise.
30756         * include/sys/uio.h: Likewise.
30757         * include/time.h: Likewise.
30758         * include/unistd.h: Likewise.
30759         * include/utmp.h: Likewise.
30760         * include/wchar.h: Likewise.
30761         * include/wctype.h: Likewise.
30762         * inet/aliases.h: Likewise.
30763         * inet/arpa/inet.h: Likewise.
30764         * inet/netinet/ether.h: Likewise.
30765         * inet/netinet/in.h: Likewise.
30766         * intl/libintl.h: Likewise.
30767         * io/bits/fcntl2.h: Likewise.
30768         * io/fcntl.h: Likewise.
30769         * io/ftw.h: Likewise.
30770         * io/sys/poll.h: Likewise.
30771         * io/sys/stat.h: Likewise.
30772         * io/sys/statfs.h: Likewise.
30773         * io/sys/statvfs.h: Likewise.
30774         * io/utime.h: Likewise.
30775         * libio/bits/stdio.h: Likewise.
30776         * libio/bits/stdio2.h: Likewise.
30777         * libio/libio.h: Likewise.
30778         * libio/libioP.h: Likewise.
30779         * libio/stdio.h: Likewise.
30780         * locale/lc-ctype.c: Likewise.
30781         * locale/locale.h: Likewise.
30782         * login/utmp.h: Likewise.
30783         * malloc/arena.c: Likewise.
30784         * malloc/malloc.c: Likewise.
30785         * malloc/malloc.h: Likewise.
30786         * malloc/mcheck.c: Likewise.
30787         * malloc/mtrace.c: Likewise.
30788         * math/bits/mathcalls.h: Likewise.
30789         * math/fenv.h: Likewise.
30790         * math/math_private.h: Likewise.
30791         * misc/bits/error.h: Likewise.
30792         * misc/bits/syslog.h: Likewise.
30793         * misc/err.h: Likewise.
30794         * misc/error.h: Likewise.
30795         * misc/fstab.h: Likewise.
30796         * misc/mntent.h: Likewise.
30797         * misc/regexp.h: Likewise.
30798         * misc/search.h: Likewise.
30799         * misc/sgtty.h: Likewise.
30800         * misc/sys/mman.h: Likewise.
30801         * misc/sys/syslog.h: Likewise.
30802         * misc/sys/uio.h: Likewise.
30803         * misc/sys/xattr.h: Likewise.
30804         * misc/ttyent.h: Likewise.
30805         * nis/rpcsvc/ypclnt.h: Likewise.
30806         * nss/nss.h: Likewise.
30807         * posix/bits/unistd.h: Likewise.
30808         * posix/fnmatch.h: Likewise.
30809         * posix/glob.h: Likewise.
30810         * posix/sched.h: Likewise.
30811         * posix/spawn.h: Likewise.
30812         * posix/sys/wait.h: Likewise.
30813         * posix/unistd.h: Likewise.
30814         * posix/wordexp.h: Likewise.
30815         * pwd/pwd.h: Likewise.
30816         * resolv/netdb.h: Likewise.
30817         * resource/sys/resource.h: Likewise.
30818         * rt/aio.h: Likewise.
30819         * rt/bits/mqueue2.h: Likewise.
30820         * rt/mqueue.h: Likewise.
30821         * shadow/shadow.h: Likewise.
30822         * signal/signal.h: Likewise.
30823         * socket/send.c: Likewise.
30824         * socket/sendto.c: Likewise.
30825         * socket/sys/socket.h: Likewise.
30826         * stdio-common/printf.h: Likewise.
30827         * stdlib/bits/stdlib.h: Likewise.
30828         * stdlib/fmtmsg.h: Likewise.
30829         * stdlib/monetary.h: Likewise.
30830         * stdlib/stdlib.h: Likewise.
30831         * stdlib/ucontext.h: Likewise.
30832         * streams/stropts.h: Likewise.
30833         * string/argz.h: Likewise.
30834         * string/bits/string2.h: Likewise.
30835         * string/string.h: Likewise.
30836         * string/strings.h: Likewise.
30837         * sunrpc/rpc/auth.h: Likewise.
30838         * sunrpc/rpc/auth_des.h: Likewise.
30839         * sunrpc/rpc/clnt.h: Likewise.
30840         * sunrpc/rpc/netdb.h: Likewise.
30841         * sunrpc/rpc/pmap_clnt.h: Likewise.
30842         * sunrpc/rpc/xdr.h: Likewise.
30843         * sysdeps/generic/inttypes.h: Likewise.
30844         * sysdeps/generic/net/if.h: Likewise.
30845         * sysdeps/generic/sys/swap.h: Likewise.
30846         * sysdeps/gnu/net/if.h: Likewise.
30847         * sysdeps/gnu/utmpx.h: Likewise.
30848         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
30849         * sysdeps/i386/i486/bits/string.h: Likewise.
30850         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
30851         * sysdeps/s390/bits/string.h: Likewise.
30852         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
30853         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
30854         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
30855         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
30856         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
30857         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
30858         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
30859         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
30860         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
30861         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30862         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
30863         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
30864         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
30865         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
30866         * sysdeps/unix/sysv/linux/readv.c: Likewise.
30867         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
30868         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
30869         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30870         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
30871         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
30872         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
30873         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
30874         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
30875         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
30876         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
30877         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
30878         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
30879         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
30880         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
30881         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
30882         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
30883         * sysvipc/sys/ipc.h: Likewise.
30884         * sysvipc/sys/msg.h: Likewise.
30885         * sysvipc/sys/sem.h: Likewise.
30886         * sysvipc/sys/shm.h: Likewise.
30887         * termios/termios.h: Likewise.
30888         * time/sys/time.h: Likewise.
30889         * time/time.h: Likewise.
30890         * wcsmbs/bits/wchar2.h: Likewise.
30891         * wcsmbs/uchar.h: Likewise.
30892         * wcsmbs/wchar.h: Likewise.
30893         * wctype/wctype.h: Likewise.
30894
30895         [BZ #13551]
30896         * Makeconfig: Remove all but ELF support including AIX support.
30897         * Makerules: Likewise.
30898         * config.h.in: Likewise.
30899         * config.make.in: Likewise.
30900         * configure: Likewise.
30901         * configure.in: Likewise.
30902         * csu/Makefile: Likewise.
30903         * csu/version.c: Likewise.
30904         * debug/Makefile: Likewise.
30905         * dlfcn/Makefile: Likewise.
30906         * elf/Makefile: Likewise.
30907         * extra-lib.mk: Likewise.
30908         * iconv/Makefile: Likewise.
30909         * include/libc-symbols.h: Likewise.
30910         * include/shlib-compat.h: Likewise.
30911         * resolv/Makefile: Likewise.
30912         * resolv/res_libc.c: Likewise.
30913         * rt/Makefile: Likewise.
30914         * sysdeps/i386/asm-syntax.h: Likewise.
30915         * sysdeps/i386/sysdep.h: Likewise.
30916         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
30917         * sysdeps/mach/sysdep.h: Likewise.
30918         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
30919         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
30920         * sysdeps/s390/asm-syntax.h: Likewise.
30921         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30922         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30923         * sysdeps/sh/sysdep.h: Likewise.
30924         * sysdeps/unix/sparc/sysdep.h: Likewise.
30925         * sysdeps/wordsize-32/divdi3.c: Likewise.
30926         * sysdeps/x86_64/sysdep.h: Likewise.
30927
30928         * argp/Versions: Remove _argp_unlock_xxx.
30929
30930         [BZ #13559]
30931         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
30932         * abilist/libBrokenLocale.abilist: Likewise.
30933         * abilist/libanl.abilist: Likewise.
30934         * abilist/libc.abilist: Likewise.
30935         * abilist/libcrypt.abilist: Likewise.
30936         * abilist/libdl.abilist: Likewise.
30937         * abilist/libm.abilist: Likewise.
30938         * abilist/libnsl.abilist: Likewise.
30939         * abilist/libpthread.abilist: Likewise.
30940         * abilist/libresolv.abilist: Likewise.
30941         * abilist/librt.abilist: Likewise.
30942         * abilist/libthread_db.abilist: Likewise.
30943         * abilist/libutil.abilist: Likewise.
30944         * abilist/libnss_db.abilist: New file.
30945
30946         * scripts/abilist.awk: Add support for indirect functions.
30947
30948         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
30949
30950         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
30951
30952         * shlib-versions: Remove entries for ports architectures.
30953
30954         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
30955         files in ports.
30956         * elf/stackguard-macros.h: Remove support for IA-64.
30957         * elf/tst-auditmod1.c: Likewise.
30958         * sysdeps/generic/ldsodefs.h: Likewise.
30959
30960         * sysdeps/unix/sysv/linux/configure.in: Ports should define
30961         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
30962         configure files.
30963
30964         [BZ #13552]
30965         * configure.in: Remove --enable-omitfp support.
30966         * FAQ.in: Adjust.
30967         * config.make.in: Likewise.
30968         * Makeconfig: Likewise.
30969         * manual/install.texi: Likewise.
30970
30971         In case anyone cares, the IA-64 architecture could move to ports.
30972         * sysdeps/ia64/*: Removed.
30973         * sysdeps/unix/sysv/linux/ia64/*: Removed.
30974         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
30975
30976         [BZ #13555]
30977         * configure.in: Remove entries for unsupported architectures.
30978
30979         [BZ #13533]
30980         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
30981         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
30982         routines.
30983         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
30984         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
30985         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
30986         fall back to using wcrtomb.
30987         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
30988         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
30989         renaming.
30990         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
30991         * wcsmbs/tst-c16c32-1.c: New file.
30992
30993         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
30994         local variable.
30995
30996         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
30997
30998         * elf/tst-unique3.cc: Add explicit declaration of gets.
30999         * elf/tst-unique3lib.cc: Likewise.
31000         * elf/tst-unique3lib2.cc: Likewise.
31001         * elf/tst-unique4.cc: Likewise.
31002
31003         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
31004
31005 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
31006
31007         [BZ #13566]
31008         * assert/assert.h (static_assert): Don't define for C++.
31009         * libio/stdio.h (gets): Do declare for C++ <= C++11.
31010         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
31011
31012 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
31013
31014         * iconv/loop.c (single loop): Fix assertion in storing of
31015         remaining bytes.
31016
31017         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
31018
31019 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
31020
31021         * posix/getconf.c: Update copyright year.
31022         * nss/getent.c: Likewise.
31023         * nss/makedb.c: Likewise.
31024         * iconv/iconvconfig.c: Likewise.
31025         * iconv/iconv_prog.c: Likewise.
31026         * elf/ldconfig.c: Likewise.
31027         * elf/pldd.c: Likewise.
31028         * elf/sotruss.ksh: Likewise.
31029         * catgets/gencat.c: Likewise.
31030         * csu/version.c: Likewise.
31031         * elf/ldd.bash.in: Likewise.
31032         * elf/sprof.c (print_version): Likewise.
31033         * locale/programs/locale.c: Likewise.
31034         * locale/programs/localedef.c: Likewise.
31035         * login/programs/pt_chown.c: Likewise.
31036         * nscd/nscd.c (print_version): Likewise.
31037         * debug/xtrace.sh: Likewise.
31038         * malloc/memusage.sh: Likewise.
31039         * malloc/mtrace.pl: Likewise.
31040         * debug/catchsegv.sh: Likewise.
31041
31042 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
31043
31044         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
31045         pure attribute.
31046
31047 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
31048
31049         [BZ #13533]
31050         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
31051         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
31052         transformations.
31053         * iconv/gconv_int.h: Likewise.
31054         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
31055         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
31056         from libc for GLIBC_2.16.
31057         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
31058         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
31059         * wcsmbs/uchar.h: Really define mbstate_t.
31060         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
31061         * wcsmbs/c16rtomb.c: New file.
31062         * wcsmbs/mbrtoc16.c: New file.
31063         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
31064         for C/POSIX locale.
31065         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
31066         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
31067
31068         * wcsmbs/wchar.h: Add missing __restrict.
31069
31070 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
31071
31072         [BZ #13532]
31073         * time/Makefile (routines): Add timespec_get.
31074         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
31075         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
31076         timespec for ISO C11.
31077         * time/timespec_get.c: New file.
31078         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
31079         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
31080
31081         [BZ #13531]
31082         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
31083         * stdlib/stdlib.h: Declare aligned_alloc.
31084         * Versions.def: Add GLIBC_2.16 for libc.
31085         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
31086
31087         [BZ 13527]
31088         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
31089         ISO C11.
31090
31091         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
31092         code.
31093
31094         [BZ #13528]
31095         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
31096
31097         [BZ #13529]
31098         * assert/assert.h (static_assert): Define.
31099
31100         * version.h: Update for 2.16 development version.
31101
31102         [BZ #13526]
31103         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
31104         _ISOC11_SOURCE.
31105
31106         * version.h (RELEASE): Bump for 2.15 release.
31107         * include/features.h (__GLIBC_MINOR__): Bump to 15.
31108
31109         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
31110         Patch by Marek Polacek <mpolacek@redhat.com>.
31111
31112         * bits/byteswap.h: Protect long long constants with __extension__.
31113         * sysdeps/i386/bits/byteswap.h: Likewise.
31114         * sysdeps/ia64/bits/byteswap.h: Likewise.
31115         * sysdeps/s390/bits/byteswap.h: Likewise.
31116         * sysdeps/x86_64/bits/byteswap.h: Likewise.
31117
31118 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31119
31120         [BZ #13540]
31121         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
31122         destination buffer.
31123         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
31124
31125 2011-12-23  Marek Polacek  <polacek@redhat.com>
31126
31127         * elf/dl-addr.c (determine_info): Add inline keyword.
31128         * elf/tst-auditmod4b.c (check_avx): Likewise.
31129         * elf/tst-auditmod6b.c (check_avx): Likewise.
31130         * elf/tst-auditmod6c.c (check_avx): Likewise.
31131         * elf/tst-auditmod7b.c (check_avx): Likewise.
31132
31133 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
31134
31135         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
31136         !__SSE_MATH__.
31137
31138 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31139
31140         [BZ #13540]
31141         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
31142         processing for last bytes.
31143
31144 2011-08-06  Bruno Haible  <bruno@clisp.org>
31145
31146         [BZ #13061]
31147         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
31148         U+0385, not to U+1FEE.
31149
31150         [BZ #13062]
31151         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
31152         entry for U+00A5 U+0301.
31153
31154 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
31155
31156         [BZ #13166]
31157         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
31158         buffer for the output is too small.
31159
31160         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
31161         optimization.
31162
31163         [BZ #13185]
31164         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
31165         SSE flags if possible.
31166
31167 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31168
31169         [BZ #13540]
31170         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
31171         processing for last bytes.
31172
31173 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
31174
31175         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
31176         (syscall-list-default-options, syscall-list-default-condition)
31177         (syscall-list-includes): Define.
31178         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
31179         list of ABIs and options and #if conditions for each ABI.  Do not
31180         handle common syscalls between ABIs specially.
31181         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
31182         Remove.
31183         (syscall-list-variants, syscall-list-32bit-options)
31184         (syscall-list-32bit-condition, syscall-list-64bit-options)
31185         (syscall-list-64bit-condition): Define.
31186         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
31187         (syscall-list-variants, syscall-list-32bit-options)
31188         (syscall-list-32bit-condition, syscall-list-64bit-options)
31189         (syscall-list-64bit-condition): Define.
31190         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
31191         Remove.
31192         (syscall-list-variants, syscall-list-32bit-options)
31193         (syscall-list-32bit-condition, syscall-list-64bit-options)
31194         (syscall-list-64bit-condition): Define.
31195         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
31196         Remove.
31197         (syscall-list-variants, syscall-list-32bit-options)
31198         (syscall-list-32bit-condition, syscall-list-64bit-options)
31199         (syscall-list-64bit-condition): Define.
31200
31201 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
31202
31203         * locale/iso-639.def: Add brx entry.
31204
31205         [BZ #13328]
31206         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
31207         Proposed by Mariusz_Cukr <marcukr@op.pl>.
31208
31209         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
31210         __feraiseexcept_renamed.
31211
31212 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
31213
31214         [BZ #13538]
31215         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
31216         EPOLLET with unsigned values.
31217         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31218         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31219
31220         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
31221         to large cancellation.
31222         * math/s_cacoshf.c: Likewise.
31223         * math/s_cacoshl.c: Likewise.
31224
31225 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
31226
31227         [BZ #13305]
31228         [BZ #12786]
31229         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
31230         * math/s_cacoshf.c: Likewise.
31231         * math/s_cacoshl.c: Likewise.
31232
31233 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
31234
31235         [BZ #13439]
31236         * iconv/gconv.h: Define __GCONV_SWAP.
31237         * iconvdata/unicode.c: The swap bit must be stored in __flags.
31238         * iconvdata/utf-16.c: Likewise.
31239         * iconvdata/utf-32.c: Likewise.
31240
31241 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
31242
31243         [BZ #13524]
31244         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
31245         numerator after shifting it by one limb.
31246
31247 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
31248
31249         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
31250         under [__USE_EXTERN_INLINES].
31251
31252 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
31253
31254         [BZ #13446]
31255         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
31256
31257 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31258
31259         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
31260         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
31261         optimized code.
31262         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
31263         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
31264         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
31265         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
31266         for strncasecmp/strncasecmp_l compilation.
31267         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
31268         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
31269
31270 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
31271
31272         [BZ #13484]
31273         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
31274         of __asm__.
31275
31276 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
31277
31278         [BZ #13506]
31279         * time/tzfile.c (__tzfile_read): Check values from file header.
31280
31281 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
31282
31283         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
31284         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
31285         * powerpc/powerpc32/dl-start.S: Likewise.
31286         * powerpc/powerpc32/elf/start.S: Likewise.
31287         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
31288         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
31289         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
31290         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
31291         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
31292         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
31293         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
31294         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
31295         * powerpc/powerpc32/fpu/s_round.S: Likewise.
31296         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
31297         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
31298         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
31299         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
31300         * powerpc/powerpc32/memset.S: Likewise.
31301         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
31302         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
31303         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
31304         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
31305         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
31306         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
31307         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
31308         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
31309         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
31310         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
31311         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
31312         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
31313         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
31314
31315 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31316
31317         * math/libm-test.inc: Added more nearbyint tests.
31318         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
31319         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
31320         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
31321         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
31322
31323 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
31324
31325         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
31326         FD_CLOEXEC.
31327
31328 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31329
31330         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
31331         Add wcscpy-ssse3 wcscpy-c.
31332         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
31333         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
31334         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
31335         * sysdeps/x86_64/wcschr.S: New file.
31336         * sysdeps/x86_64/wcsrchr.S: New file.
31337         * string/test-strcmp.c: Remove checking of wcscmp function for
31338         wrong alignments.
31339         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
31340         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
31341         wcsrchr-sse2 wcsrchr-c.
31342         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
31343         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
31344         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
31345         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
31346         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
31347         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
31348         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
31349         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
31350         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
31351         * wcsmbc/wcschr.c (WCSCHR): New macro.
31352
31353 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31354
31355         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
31356         * wcsmbs/test-wcsrchr.c: New file.
31357         * string/test-strrchr.c: Add wcsrchr support.
31358         (WIDE): New macro.
31359         * wcsmbs/test-wcscpy.c: New file.
31360         * string/test-strcpy.c: Add wcscpy support.
31361         (WIDE): New macro.
31362
31363 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
31364
31365         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
31366         the inner loop.
31367
31368 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
31369
31370         [BZ #13472]
31371         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
31372
31373 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
31374
31375         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
31376         Minor optimizations.
31377
31378         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
31379         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
31380         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31381
31382 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
31383
31384         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
31385         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
31386         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
31387         for gcc to avoid warnings.
31388         * inet/Makefile (tests): Add tst-checks.
31389         * inet/tst-checks.c: New file.
31390
31391         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
31392         warning.
31393
31394         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
31395         __wmemcmp_sse2.
31396
31397         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
31398         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
31399
31400         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
31401
31402 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
31403
31404         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
31405         problem.
31406
31407         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
31408
31409 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
31410
31411         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
31412         conditional on GCC version.
31413         (__arch_compare_and_exchange_val_8_acq)
31414         (__arch_compare_and_exchange_val_16_acq)
31415         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
31416         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
31417         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
31418
31419 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
31420
31421         * sysdeps/sh/backtrace.c: New file.
31422
31423 2011-12-02  Andreas Schwab  <schwab@redhat.com>
31424
31425         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
31426         parenthesis.
31427
31428 2011-12-01  Andreas Schwab  <schwab@redhat.com>
31429
31430         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
31431         falling back to utime.
31432
31433 2011-11-30  Andreas Schwab  <schwab@redhat.com>
31434
31435         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
31436         expectations for float.
31437
31438 2011-11-29  Andreas Schwab  <schwab@redhat.com>
31439
31440         * locale/weight.h (findidx): Add parameter len.
31441         * locale/weightwc.h (findidx): Likewise.
31442         * posix/fnmatch_loop.c (FCT): Adjust caller.
31443         * posix/regcomp.c (build_equiv_class): Likewise.
31444         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
31445         * posix/regexec.c (check_node_accept_bytes): Likewise.
31446         * string/strcoll_l.c (STRCOLL): Likewise.
31447         * string/strxfrm_l.c (STRXFRM): Likewise.
31448
31449 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
31450
31451         * Makefile.in: Remove CVSOPT handling.
31452         * configure.in: Remove use of AC_REVISION.
31453         * iconvdata/Makefile (distribute): No need to filter out CVS.
31454         * scripts/list-sources.sh: Remove CVS, subversion and monotone
31455         handling.
31456
31457 2011-11-16  Andreas Schwab  <schwab@redhat.com>
31458
31459         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
31460         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
31461         [USE_AS_STRNCASECMP_L]: Likewise.
31462         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
31463         NO_TLS_DIRECT_SEG_REFS.
31464         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
31465         Fix argument offsets for non-PIC.
31466         [USE_AS_STRNCASECMP_L]: Likewise.
31467         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
31468         NO_TLS_DIRECT_SEG_REFS.
31469
31470 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
31471
31472         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
31473         O_CLOEXEC.
31474         * locale/loadlocale.c (_nl_load_locale): Likewise.
31475
31476 2011-11-15  Andreas Schwab  <schwab@redhat.com>
31477
31478         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
31479         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
31480         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
31481         (SYSCALL_GETTIME): Set errno on error.
31482
31483         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
31484         count references to noai6ai_cached.
31485
31486 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
31487
31488         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
31489
31490         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
31491         FD_CLOEXEC for /proc/self/maps.
31492
31493         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
31494         FD_CLOEXEC for /proc/meminfo.
31495
31496         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
31497         gai.conf.
31498
31499         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
31500         FD_CLOEXEC for given file.
31501
31502         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
31503
31504         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
31505         FD_CLOEXEC for /etc/hosts.
31506         (_gethtent): Likewise.
31507
31508         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
31509
31510         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
31511         cancellation and set FD_CLOEXEC for /etc/netgroup.
31512
31513         * nss/nss_files/files-key.c (search): Don't allow cancellation when
31514         reading /etc/publickey.
31515
31516         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
31517         allow cancellation when reading /etc/group.
31518
31519         * nss/nss_files/files-alias.c (internal_setent): Don't allow
31520         cancellation.
31521         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
31522
31523         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
31524         when using data file.
31525
31526         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
31527
31528         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
31529         (write_nis_obj): Use "c" and "e" in fopen.
31530
31531         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
31532
31533         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
31534
31535         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
31536
31537         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
31538
31539         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
31540         locale.alias.
31541
31542         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
31543
31544         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
31545
31546         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
31547
31548         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
31549         file parsing and set FD_CLOEXEC.
31550
31551 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
31552
31553         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
31554
31555 2011-11-14  Andreas Schwab  <schwab@redhat.com>
31556
31557         * malloc/arena.c (arena_get2): Don't call reused_arena when
31558         _int_new_arena failed.
31559
31560 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
31561
31562         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
31563         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
31564         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
31565         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31566         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31567         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
31568         to compile strcasecmp and strncasecmp.
31569         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
31570         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
31571
31572         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
31573
31574 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
31575
31576         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
31577         locale-defines.sym to gen-as-const-headers.
31578         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
31579         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
31580         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
31581         to compile strcasecmp and strncasecmp.
31582         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
31583         strcasecmp_l and strncasecmp_l.
31584         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
31585         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
31586         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
31587         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
31588         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
31589         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
31590         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
31591         * sysdeps/i386/i686/multiarch/strncase.S: New file.
31592         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
31593         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
31594         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
31595
31596 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
31597
31598         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
31599         result of SYSDEP_GETTIME_CPU to retval.
31600         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
31601         parameter list to macro.  Remove trailing semicolon.  Adjust users.
31602
31603         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
31604         variable.
31605
31606         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
31607         mantissa words.
31608         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
31609
31610         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
31611         from unused variable.
31612
31613         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
31614         DWARF definitions.
31615         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
31616         for assembling.
31617
31618         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
31619         over namespaces.
31620
31621         * sunrpc/rpc_prot.c (rejected): Fix case value.
31622
31623         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
31624         unsigned long long int to avoid warnings in shift.
31625
31626         * posix/regex_internal.c (re_string_reconstruct): Actually use result
31627         of use of trans.
31628         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
31629         variable tmp.
31630
31631         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
31632         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
31633         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
31634
31635         * nis/nis_table.c (nis_list): Use variable of correct type for
31636         result of __follow_path call.
31637
31638 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31639
31640         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
31641         of math functions ceil, trunc, floor, round, and sqrt, when
31642         avaliable on the platform.
31643         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
31644         name clash.
31645         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
31646         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
31647         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
31648
31649 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
31650
31651         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
31652         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
31653
31654 2011-11-11  Roland McGrath  <roland@hack.frob.com>
31655
31656         * include/unistd.h: Fix __readlink return type.
31657         Reported by Chris Metcalf <cmetcalf@tilera.com>.
31658
31659 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
31660
31661         * stdlib/ucontext.h: Undo last change for makecontext.
31662
31663 2011-11-11  Andreas Schwab  <schwab@redhat.com>
31664
31665         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
31666
31667         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
31668         * setjmp/setjmp.h: Mark functions as non-leaf.
31669         * setjmp/bits/setjmp2.h: Likewise.
31670         * stdlib/ucontext.h: Likewise.
31671
31672 2011-11-10  Andreas Schwab  <schwab@redhat.com>
31673
31674         * malloc/arena.c (_int_new_arena): Don't increment narenas.
31675         (reused_arena): Don't check arena limit.
31676         (arena_get2): Atomically check arena limit.
31677
31678 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
31679
31680         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
31681         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
31682
31683         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
31684         instructions.
31685
31686 2011-11-07  Andreas Schwab  <schwab@redhat.com>
31687
31688         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
31689         handler when locking.
31690
31691         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
31692         Fix size of allocated buffer.
31693
31694 2011-11-04  Andreas Schwab  <schwab@redhat.com>
31695
31696         [BZ #10103]
31697         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
31698         declarations for long double functions.
31699         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
31700
31701         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
31702
31703 2011-11-03  Andreas Schwab  <schwab@redhat.com>
31704
31705         * nscd/nscd.c (main): Don't start AVC thread until credentials are
31706         installed.
31707
31708         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
31709         is disabled.
31710
31711 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31712
31713         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
31714
31715 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
31716
31717         * include/alloca.h (stackinfo_alloca_round): Define.
31718         (extend_alloca): Use it.
31719         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
31720         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
31721         here.
31722
31723         * scripts/check-local-headers.sh: Ignore libaudit.h.
31724
31725         * nscd/Makefile (extra-objs): Make recursively expanded.
31726
31727 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
31728
31729         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
31730         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
31731
31732         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
31733         * posix/tst-rfc3484-2.c: Likewise.
31734         * posix/tst-rfc3484-3.c: Likewise.
31735
31736         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
31737         process_vm_writev.
31738         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
31739         process_vm_writev.
31740         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
31741         process_vm_writev from libc using GLIBC_2.15 version.
31742
31743         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
31744
31745 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
31746
31747         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
31748         stack usage.
31749
31750 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
31751
31752         [BZ #13367]
31753         * nss/getent.c (initgroups_keys): Show error message in case no group
31754         names are given.
31755
31756         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
31757         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
31758         __bump_nl_timestamp.
31759         * nscd/connections (nscd_init): When host database is served open
31760         netlink socket and request notification about configuration changes.
31761         (main_loop_poll): Track netlink file descriptor and bump timestamp
31762         in case data becomes available.
31763         (main_loop_epoll): Likewise.
31764         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
31765         (database_pers_head): Add extra_data fileds.
31766         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
31767         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
31768         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
31769         Adjust caller.
31770         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
31771         in6ai data, call __free_in6ai.
31772         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
31773         Add -DHAVE_NETLINK.
31774         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
31775         interface information.  Reuse previous data if netlink timestamp
31776         is not changed.
31777         (__bump_nl_timestamp): New function.
31778         (__free_in6ai): New function.
31779
31780 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
31781
31782         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
31783         close_not_cancel_no_status here.
31784         (__check_pf): Reorganize code a bit to not call close twice if OOM.
31785
31786 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
31787
31788         [BZ #13276]
31789         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
31790         return value.
31791
31792         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
31793         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
31794         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
31795
31796 2011-07-03  Andreas Jaeger  <aj@suse.de>
31797
31798         [BZ #10709]
31799         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
31800         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
31801         * math/libm-test.inc (sin_test): Add test case.
31802
31803 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
31804
31805         [BZ #13337]
31806         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
31807         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
31808
31809         * elf/chroot_canon.c (chroot_canon): Cleanups.
31810
31811         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
31812
31813         [BZ #13335]
31814         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
31815         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
31816
31817         * string/test-strchr.c: Make usable for strchrnul testing.
31818         * string/test-strchrnul.c: New file.
31819         * string/Makefile (strop-tests): Add strchrnul.
31820
31821         * po/it.po: Update from translation team.
31822         * po/es.po: Likewise.
31823
31824 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
31825
31826         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
31827         the three constants needed as parameters.  Drop the others.
31828         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
31829         __m128i_strloadu_tolower.
31830         Create and initialize variable zero and use it in all the places
31831         where _mm_setzero_si128 was used.
31832
31833         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
31834         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
31835         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
31836         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
31837         anymore.
31838         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
31839         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
31840         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
31841         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
31842         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
31843         __mpranred, __mptan.
31844         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
31845         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
31846         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
31847         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
31848         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
31849         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
31850         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
31851         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
31852         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
31853
31854 2011-10-28  Andreas Schwab  <schwab@redhat.com>
31855
31856         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
31857         redefine if SHARED.
31858         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
31859
31860         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
31861         wide char related routines to wcsmbs subdir.
31862
31863 2011-10-27  Andreas Schwab  <schwab@redhat.com>
31864
31865         [BZ #13344]
31866         * misc/sys/cdefs.h (__THROWNL): Define.
31867         * posix/unistd.h: Use __THREADNL instead of __THREAD
31868         for memory synchronization functions.
31869
31870 2011-10-26  Roland McGrath  <roland@hack.frob.com>
31871
31872         [BZ #13349]
31873         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
31874         doesn't exist.
31875         * manual/stdio.texi (Obstack Streams): Node removed.
31876
31877 2011-10-26  Andreas Schwab  <schwab@redhat.com>
31878
31879         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
31880         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
31881         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
31882
31883         * math/math_private.h (math_force_eval): Allow non-addressable
31884         arguments.
31885         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
31886
31887 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
31888
31889         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
31890         file is not needed.
31891
31892         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
31893         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31894         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31895         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31896         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31897         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31898         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31899         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
31900         Add AVX variants.
31901         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
31902         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
31903         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
31904         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
31905         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
31906         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
31907         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
31908         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
31909         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
31910         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
31911         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
31912         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
31913         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
31914         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
31915         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
31916         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
31917         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
31918         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
31919         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
31920
31921         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
31922         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
31923
31924         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
31925         place.  Use VEX encoding when compiling for AVX.
31926
31927 2011-10-25  Andreas Schwab  <schwab@redhat.com>
31928
31929         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
31930         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
31931
31932         * string/test-strchr.c (do_test): Don't generate NUL bytes.
31933
31934 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
31935
31936         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
31937         useless if() expression.
31938         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
31939         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
31940         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
31941         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
31942         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
31943         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
31944         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
31945         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
31946         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
31947         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
31948         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
31949         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
31950         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
31951         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
31952         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
31953         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
31954         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
31955         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
31956         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
31957
31958         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
31959
31960 2011-10-25  Andreas Schwab  <schwab@redhat.com>
31961
31962         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
31963         condition.
31964         * elf/dl-fini.c (_dl_sort_fini): Likewise.
31965
31966 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
31967
31968         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
31969         .text section.  Avoid duplicate constants.
31970         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
31971         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31972         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
31973         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31974         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
31975         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31976         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31977         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31978         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
31979         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
31980         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
31981         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
31982         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
31983         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
31984         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
31985         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
31986         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
31987         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
31988         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
31989         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
31990         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
31991         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
31992         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
31993         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
31994         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
31995         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
31996         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
31997         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
31998         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
31999         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
32000         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
32001         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
32002         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
32003         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
32004         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
32005         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
32006         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
32007         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
32008         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
32009         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
32010         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
32011         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
32012         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
32013         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
32014         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
32015
32016 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
32017
32018         * sysdeps/x86_64/dla.h: Move to ...
32019         * sysdeps/x86_64/fpu/dla.h: ...here.
32020         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
32021         situations.  Use __builtin_fma only for gcc 4.6 and up.
32022
32023         * config.make.in: Add have-mfma4 entry.
32024         * configure.in: Substitute libc_cv_cc_fma4.
32025         * math/Makefile (dbl-only-routines): Add sincostab.
32026         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
32027         Use __sincostab not sincos.
32028         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
32029         name is a macro.
32030         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32031         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32032         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32033         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
32034         using __copysign.
32035         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
32036         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
32037         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
32038         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
32039         and __inv.
32040         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
32041         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
32042         __copysign.
32043         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
32044         define aliases when function name is a macro.
32045         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
32046         sysdeps/ieee754/dbl-64/sincos.tbl.
32047         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
32048         fma4-enabled routines.
32049         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
32050         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
32051         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
32052         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
32053         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
32054         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
32055         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
32056         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
32057         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
32058         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
32059         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
32060         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
32061         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
32062         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
32063         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
32064         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
32065         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
32066         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
32067         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
32068         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
32069         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
32070         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
32071         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
32072         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
32073         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
32074         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
32075         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
32076         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
32077         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
32078         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
32079
32080         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
32081         rename.
32082         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32083         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32084         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32085         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32086         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32087         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32088         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32089         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32090
32091 2011-10-24  Andreas Schwab  <schwab@redhat.com>
32092
32093         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
32094
32095 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32096
32097         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
32098
32099         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
32100         prediction.
32101         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
32102
32103         * string/strnlen.c: Don't define STRNLEN, reverse logic.
32104         Remove unused variable magic_bits.
32105         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
32106
32107         * string/strnlen.c: Define and use STRNLEN macro.
32108         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
32109         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
32110         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
32111         * wcsmbs/wcslen.c: Define and use WCSLEN.
32112         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
32113         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
32114         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
32115         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
32116         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
32117         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
32118         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
32119
32120 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32121
32122         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32123         strnlen-sse2-no-bsf.
32124         Rename strlen-no-bsf to strlen-sse2-no-bsf.
32125         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
32126         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
32127         Add strnlen support.
32128         (USE_AS_STRNLEN): New macro.
32129         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
32130         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
32131         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
32132         * sysdeps/x86_64/wcslen.S: New file.
32133
32134 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
32135
32136         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
32137         XMM-moves are used for copying on small sizes.
32138
32139 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32140
32141         * wcsmbs/Makefile (strop-tests): Add wcschr.
32142         * wcsmbs/test-wcschr.c: New file.
32143         * string/test-strchr.c: Update.
32144         Add wcschr support.
32145         (WIDE): New macro.
32146
32147 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32148
32149         * wcsmbs/Makefile (strop-tests): Add wcslen.
32150         * wcsmbs/test-wcslen.c: New file.
32151         * string/test-strlen.c: Update.
32152         Add wcslen support.
32153         (WIDE): New macro.
32154
32155 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32156
32157         * po/it.po: Update from translation team.
32158
32159 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32160
32161         * sysdeps/x86_64/wcscmp.S: Update.
32162         Fix wrong comparison semantics.
32163         wcscmp shall use signed comparison not unsigned.
32164         Don't use substraction to avoid overflow bug.
32165         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
32166         * wcsmbc/wcscmp.c: Likewise.
32167         * string/test-strcmp.c: Likewise.
32168         Add new tests to check cases with negative values.
32169
32170 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32171
32172         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
32173         * sysdeps/x86_64/dla.h: ...here.  New file.
32174         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
32175         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32176         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32177         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32178         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32179         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
32180         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32181         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32182         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32183
32184 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
32185
32186         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
32187         __ynl_finite aliases.
32188
32189 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
32190
32191         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32192
32193         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
32194         define DLA_FMA.
32195         [DLA_FMA] (EMULV): Use DLA_FMA.
32196         [DLA_FMA] (MUL12): Use EMULV.
32197         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
32198         that are not needed.
32199         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32200         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32201         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32202         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32203         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32204         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32205         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32206
32207 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
32208
32209         * math/s_nan.c: Undef __nan.
32210         * math/s_nanf.c: Undef __nanf.
32211         * math/s_nanl.c: Undef __nanl.
32212         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
32213         "math_private.h".
32214
32215 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
32216
32217         * math/s_catan.c: Add branch predictions.
32218         * math/s_catanf.c: Likewise.
32219         * math/s_catanh.c: Likewise.
32220         * math/s_catanhf.c: Likewise.
32221         * math/s_catanhl.c: Likewise.
32222         * math/s_catanl.c: Likewise.
32223         * math/s_cexp.c: Likewise.
32224         * math/s_cexpf.c: Likewise.
32225         * math/s_cexpl.c: Likewise.
32226         * math/s_clog.c: Likewise.
32227         * math/s_clog10.c: Likewise.
32228         * math/s_clog10f.c: Likewise.
32229         * math/s_clog10l.c: Likewise.
32230         * math/s_clogf.c: Likewise.
32231         * math/s_clogl.c: Likewise.
32232         * math/s_csqrt.c: Likewise.
32233         * math/s_csqrtf.c: Likewise.
32234         * math/s_csqrtl.c: Likewise.
32235         * math/s_ctanf.c: Likewise.
32236         * math/s_ctanh.c: Likewise.
32237         * math/s_ctanhf.c: Likewise.
32238         * math/s_ctanhl.c: Likewise.
32239         * math/s_ctanl.c: Likewise.
32240
32241         * math/math_private.h: Define __nan, __nanf, __nanl.
32242         * math/s_cacosh.c: Include <math_private.h>.
32243         * math/s_cacoshl.c: Likewise.
32244         * math/s_casinh.c: Likewise.
32245         * math/s_casinhf.c: Likewise.
32246         * math/s_casinhl.c: Likewise.
32247         * math/s_ccos.c: Rely entire on ccosh.
32248         * math/s_ccosf.c: Rely entire on ccoshf.
32249         * math/s_ccosl.c: Rely entirely on ccoshl.
32250         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
32251         Remove tests for FE_INVALID.
32252         * math/s_ccoshf.c: Likewise.
32253         * math/s_ccoshl.c: Likewise.
32254         * math/s_csin.c: Likewise.
32255         * math/s_csinf.c: Likewise.
32256         * math/s_csinh.c Likewise.
32257         * math/s_csinhf.c: Likewise.
32258         * math/s_csinhl.c: Likewise.
32259         * math/s_csinl.c: Likewise.
32260         * math/s_ctan.c: Likewise.
32261         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
32262         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
32263         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
32264
32265 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
32266
32267         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
32268         compilation problems.
32269
32270         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
32271         __builtin_expect.
32272
32273 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
32274
32275         * sysdeps/i386/configure.in: Test for -mfma4 option.
32276         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
32277         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
32278         COMMON_CPUID_INDEX_80000001.
32279         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
32280         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
32281         use it if FMA3 is not supported.
32282         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
32283
32284         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
32285         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
32286
32287 2011-10-20  Andreas Schwab  <schwab@redhat.com>
32288
32289         [BZ #12892]
32290         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
32291         it would create a cycle with a link time dependency.
32292
32293 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
32294
32295         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
32296         instruction.
32297         * string/Makefile (strop-tests): Add rawmemchr.
32298         * string/test-rawmemchr.c: New file.
32299
32300         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
32301         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
32302         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
32303         when compiling str{,n}casecmp and when AVX is available.  Hook up
32304         new optimized code in initializers.
32305
32306 2011-10-19  Andreas Schwab  <schwab@redhat.com>
32307
32308         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
32309         __feraiseexcept instead of feraiseexcept.
32310
32311 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
32312
32313         * math/math_private.h: Define defaults for libc_fetestexcept and
32314         libc_feupdateenv.
32315         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
32316         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
32317         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
32318         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
32319         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
32320         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
32321         libc_fetestexcept and libc_feupdateenv.
32322
32323         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
32324         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
32325         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
32326         * sysdeps/x86_64/fpu/math_private.h: Define special version of
32327         libc_feholdexcept_setround.
32328
32329         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
32330         Add s_nearbyint-c and s_nearbyintf-c.
32331         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
32332         nearbyintf inlines.
32333         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
32334         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
32335         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
32336         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
32337
32338         * math/math_private.h: Define defaults for libc_fegetround,
32339         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
32340         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
32341         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
32342         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
32343         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
32344         standard functions.
32345         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
32346         Remove comments and hacks for old compiler versions.
32347         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
32348         libc_fegetround, libc_fesetround, libc_feholdexcept, and
32349         libc_feholdexceptl.
32350
32351 2011-10-18  Andreas Schwab  <schwab@redhat.com>
32352
32353         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
32354         (__feraiseexcept_renamed): Add __NTH.
32355         (feraiseexcept): Add __NTH.  Rename local variables to fix
32356         namespace violations.
32357
32358 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
32359
32360         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
32361
32362         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
32363
32364         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
32365         recently added interfaces.
32366         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
32367
32368         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
32369         about macro parameter expansion.
32370
32371         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
32372         __NO_MATH_INLINES is defined.  Cleanups.
32373
32374         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
32375         and __floorf is target has SSE4.1.
32376         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
32377         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
32378         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
32379         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
32380
32381         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
32382         name.
32383         (floorf): Likewise.
32384
32385         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
32386
32387 2011-10-17  Andreas Schwab  <schwab@redhat.com>
32388
32389         * misc/sys/cdefs.h: Fix last change.
32390
32391         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
32392         database lookup.
32393
32394 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
32395
32396         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
32397
32398         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
32399         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
32400         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
32401         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
32402         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
32403         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
32404         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
32405         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
32406         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
32407         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
32408         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
32409         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
32410         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
32411         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
32412         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
32413         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
32414         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
32415         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
32416         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
32417         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
32418         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
32419         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
32420
32421         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
32422         ceil, ceilf, floor, floorf.
32423
32424         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
32425         Perform IRELATIVE relocations last.
32426
32427         * elf/do-rel.h: Add another parameter nrelative, replacing the
32428         local variable with the same name.  Change name of the function
32429         to end in Rel or Rela (uppercase).
32430         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
32431         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
32432         elf_dynamic_do_##reloc function.
32433
32434 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
32435
32436         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
32437         is sufficient, at least on modern CPUs.
32438
32439         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
32440
32441         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
32442         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
32443
32444         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
32445         __expl_finite.
32446         * math/bits/math-finite.h: Add entries for exp.
32447         * math/e_expl.c: Add __*_finite alias.
32448         * sysdeps/i386/fpu/e_exp.S: Likewise.
32449         * sysdeps/i386/fpu/e_expf.S: Likewise.
32450         * sysdeps/i386/fpu/e_expl.c: Likewise.
32451         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32452         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
32453         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
32454         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
32455         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
32456         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
32457         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
32458
32459         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
32460         is sufficient, at least on modern CPUs.
32461
32462         * ctype/ctype-info.c (__ctype_init): Define.
32463         * include/ctype.h (__ctype_init): Declare.
32464         (__ctype_b_loc): The variable is always initialized.
32465         (__ctype_toupper_loc): Likewise.
32466         (__ctype_tolower_loc): Likewise.
32467         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
32468         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
32469
32470 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
32471
32472         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
32473
32474         * configure.in: Also look in $cxxmachine/include for C++ system
32475         headers.
32476
32477 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32478
32479         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
32480         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
32481         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
32482         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
32483         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
32484         (USE_AS_WMEMCMP): New macro.
32485         Fixing indents.
32486         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
32487         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
32488         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
32489         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
32490         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32491         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
32492         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
32493         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
32494         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
32495         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
32496         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
32497         (USE_AS_WMEMCMP): New macro.
32498         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
32499         * sysdeps/string/test-memcmp.c: Update.
32500         Fix simple_wmemcmp.
32501         Add new tests.
32502         * wcsmbs/wmemcmp.c: Update.
32503         (WMEMCMP): New macro.
32504         Fix overflow bug.
32505
32506 2011-10-12  Andreas Jaeger  <aj@suse.de>
32507
32508         [BZ #13268]
32509         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
32510
32511 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
32512
32513         * libio/iofwide.c (do_length): Avoid warning.
32514
32515         * ctype/ctype.h (__isctype_f): Add missing __THROW.
32516
32517 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
32518
32519         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
32520
32521         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
32522         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
32523         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
32524         * sysdeps/i386/i686/fpu/e_log.S: New file.
32525         * sysdeps/i386/i686/fpu/e_logf.S: New file.
32526         * sysdeps/i386/i686/fpu/e_logl.S: New file.
32527
32528         * ctype/ctype.h: Add support for inlined isXXX functions when
32529         compiling C++ code.
32530
32531 2011-10-14  Andreas Schwab  <schwab@redhat.com>
32532
32533         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
32534
32535         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
32536
32537 2011-10-13  Roland McGrath  <roland@hack.frob.com>
32538
32539         [BZ #13291]
32540         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
32541
32542 2011-10-13  Andreas Schwab  <schwab@redhat.com>
32543
32544         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
32545         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
32546         feraiseexcept.
32547
32548         * sysdeps/x86_64/memrchr.S: Check for zero size.
32549
32550         * string/stratcliff.c: Add memrchr tests.
32551
32552 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32553
32554         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32555         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
32556         rawmemchr-sse2 rawmemchr-sse2-bsf.
32557         * sysdeps/i386/i686/multiarch/memchr.S: New file.
32558         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
32559         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
32560         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
32561         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
32562         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
32563         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
32564         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
32565         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
32566         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
32567         * string/memrchr.c (MEMRCHR): New macro.
32568
32569 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
32570
32571         Add integration with gcc's -ffinite-math-only and optimize wrapper
32572         functions in libm.
32573         * Versions.def: Define GLIBC_2.15 version for libm.
32574         * math/Makefile (headers): Add bits/math-finite.h.
32575         * math/bits/math-finite.h: New file.
32576         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
32577         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
32578         * math/e_acoshl.c: Add __*_finite alias.
32579         * math/e_acosl.c: Likewise.
32580         * math/e_asinl.c: Likewise.
32581         * math/e_atan2l.c: Likewise.
32582         * math/e_atanhl.c: Likewise.
32583         * math/e_coshl.c: Likewise.
32584         * math/e_exp10.c: Likewise.
32585         * math/e_exp10f.c: Likewise.
32586         * math/e_exp10l.c: Likewise.
32587         * math/e_exp2l.c: Likewise.
32588         * math/e_fmodl.c: Likewise.
32589         * math/e_gammal_r.c: Likewise.
32590         * math/e_hypotl.c: Likewise.
32591         * math/e_j0l.c: Likewise.
32592         * math/e_j1l.c: Likewise.
32593         * math/e_jnl.c: Likewise.
32594         * math/e_lgammal_r.c: Likewise.
32595         * math/e_log10l.c: Likewise.
32596         * math/e_log2l.c: Likewise.
32597         * math/e_logl.c: Likewise.
32598         * math/e_powl.c: Likewise.
32599         * math/e_sinhl.c: Likewise.
32600         * math/e_sqrtl.c: Likewise.
32601         * math/e_scalb.c: Completely rewritten and optimized.
32602         * math/e_scalbf.c: Likewise.
32603         * math/e_scalbl.c: Likewise.
32604         * math/w_acos.c: Likewise.
32605         * math/w_acosf.c: Likewise.
32606         * math/w_acosl.c: Likewise.
32607         * math/w_acosh.c: Likewise.
32608         * math/w_acoshf.c: Likewise.
32609         * math/w_acoshl.c: Likewise.
32610         * math/w_asin.c: Likewise.
32611         * math/w_asinf.c: Likewise.
32612         * math/w_asinl.c: Likewise.
32613         * math/w_atan2.c: Likewise.
32614         * math/w_atan2f.c: Likewise.
32615         * math/w_atan2l.c: Likewise.
32616         * math/w_atanh.c: Likewise.
32617         * math/w_atanhf.c: Likewise.
32618         * math/w_atanhl.c: Likewise.
32619         * math/w_exp10.c: Likewise.
32620         * math/w_exp10f.c: Likewise.
32621         * math/w_exp10l.c: Likewise.
32622         * math/w_fmod.c: Likewise.
32623         * math/w_fmodf.c: Likewise.
32624         * math/w_fmodl.c: Likewise.
32625         * math/w_j0.c: Likewise.
32626         * math/w_j0f.c: Likewise.
32627         * math/w_j0l.c: Likewise.
32628         * math/w_j1.c: Likewise.
32629         * math/w_j1f.c: Likewise.
32630         * math/w_j1l.c: Likewise.
32631         * math/w_jn.c: Likewise.
32632         * math/w_jnf.c: Likewise.
32633         * math/w_log.c: Likewise.
32634         * math/w_logf.c: Likewise.
32635         * math/w_logl.c: Likewise.
32636         * math/w_log10.c: Likewise.
32637         * math/w_log10f.c: Likewise.
32638         * math/w_log10l.c: Likewise.
32639         * math/w_log2.c: Likewise.
32640         * math/w_log2f.c: Likewise.
32641         * math/w_log2l.c: Likewise.
32642         * math/w_pow.c: Likewise.
32643         * math/w_powf.c: Likewise.
32644         * math/w_powl.c: Likewise.
32645         * math/w_remainder.c: Likewise.
32646         * math/w_remainderf.c: Likewise.
32647         * math/w_remainderl.c: Likewise.
32648         * math/w_scalb.c: Likewise.
32649         * math/w_scalbf.c: Likewise.
32650         * math/w_scalbl.c: Likewise.
32651         * math/w_sqrt.c: Likewise.
32652         * math/w_sqrtf.c: Likewise.
32653         * math/w_sqrtl.c: Likewise.
32654         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
32655         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
32656         used.
32657         * math/math_private.h: Declare __kernel_standard_f.
32658         * math/w_cosh.c: Remove cruft and optimize a bit.
32659         * math/w_coshf.c: Likewise.
32660         * math/w_coshl.c: Likewise.
32661         * math/w_exp2.c: Likewise.
32662         * math/w_exp2f.c: Likewise.
32663         * math/w_exp2l.c: Likewise.
32664         * math/w_hypot.c: Likewise.
32665         * math/w_hypotf.c: Likewise.
32666         * math/w_hypotl.c: Likewise.
32667         * math/w_lgamma.c: Likewise.
32668         * math/w_lgamma_r.c: Likewise.
32669         * math/w_lgammaf.c: Likewise.
32670         * math/w_lgammaf_r.c: Likewise.
32671         * math/w_lgammal.c: Likewise.
32672         * math/w_lgammal_r.c: Likewise.
32673         * math/w_sinh.c: Likewise.
32674         * math/w_sinhf.c: Likewise.
32675         * math/w_sinhl.c: Likewise.
32676         * math/w_tgamma.c: Likewise.
32677         * math/w_tgammaf.c: Likewise.
32678         * math/w_tgammal.c: Likewise.
32679         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
32680         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
32681         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
32682         Minor optimizations.  Pretty printing.  Remove cruft.
32683         * sysdeps/i386/fpu/e_acosf.S: Likewise.
32684         * sysdeps/i386/fpu/e_acosh.S: Likewise.
32685         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
32686         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
32687         * sysdeps/i386/fpu/e_acosl.c: Likewise.
32688         * sysdeps/i386/fpu/e_asin.S: Likewise.
32689         * sysdeps/i386/fpu/e_asinf.S: Likewise.
32690         * sysdeps/i386/fpu/e_atan2.S: Likewise.
32691         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
32692         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
32693         * sysdeps/i386/fpu/e_atanh.S: Likewise.
32694         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
32695         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
32696         * sysdeps/i386/fpu/e_exp10.S: Likewise.
32697         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
32698         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
32699         * sysdeps/i386/fpu/e_exp2.S: Likewise.
32700         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
32701         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
32702         * sysdeps/i386/fpu/e_fmod.S: Likewise.
32703         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
32704         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
32705         * sysdeps/i386/fpu/e_hypot.S: Likewise.
32706         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
32707         * sysdeps/i386/fpu/e_log.S: Likewise.
32708         * sysdeps/i386/fpu/e_log10.S: Likewise.
32709         * sysdeps/i386/fpu/e_log10f.S: Likewise.
32710         * sysdeps/i386/fpu/e_log10l.S: Likewise.
32711         * sysdeps/i386/fpu/e_log2.S: Likewise.
32712         * sysdeps/i386/fpu/e_log2f.S: Likewise.
32713         * sysdeps/i386/fpu/e_log2l.S: Likewise.
32714         * sysdeps/i386/fpu/e_logf.S: Likewise.
32715         * sysdeps/i386/fpu/e_logl.S: Likewise.
32716         * sysdeps/i386/fpu/e_pow.S: Likewise.
32717         * sysdeps/i386/fpu/e_powf.S: Likewise.
32718         * sysdeps/i386/fpu/e_powl.S: Likewise.
32719         * sysdeps/i386/fpu/e_remainder.S: Likewise.
32720         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
32721         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
32722         * sysdeps/i386/fpu/e_scalb.S: Likewise.
32723         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
32724         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
32725         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
32726         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
32727         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
32728         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
32729         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
32730         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32731         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
32732         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
32733         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
32734         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
32735         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
32736         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
32737         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
32738         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
32739         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
32740         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32741         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
32742         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
32743         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32744         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
32745         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
32746         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
32747         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32748         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
32749         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
32750         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
32751         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
32752         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
32753         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
32754         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
32755         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
32756         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
32757         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
32758         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
32759         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
32760         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
32761         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
32762         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
32763         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
32764         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
32765         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
32766         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
32767         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
32768         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
32769         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
32770         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
32771         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
32772         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
32773         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
32774         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
32775         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
32776         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
32777         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
32778         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
32779         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
32780         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
32781         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
32782         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
32783         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
32784         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
32785         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
32786         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
32787         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
32788         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
32789         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
32790         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
32791         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
32792         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
32793         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
32794         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
32795         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
32796         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
32797         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
32798         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
32799         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
32800         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
32801         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
32802         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
32803         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
32804         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
32805         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
32806         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
32807         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
32808         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
32809         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
32810         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
32811         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
32812         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
32813         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
32814         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
32815         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
32816         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
32817         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
32818         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
32819         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
32820         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
32821         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
32822         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
32823         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
32824         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
32825         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
32826         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
32827         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
32828         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
32829         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
32830         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
32831         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
32832         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
32833         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
32834         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
32835         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
32836         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
32837         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
32838         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
32839         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
32840         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
32841         (__isnanf): Likewise.
32842         (__isinf_ns): Likewise.
32843         (__isinf_nsf): Likewise.
32844         (__finite): Likewise.
32845         (__finitef): Likewise.
32846         (__ieee754_sqrt): Define as macro.
32847         (__ieee754_sqrtf): Define as macro.
32848         (__ieee754_sqrtl): Define as macro.
32849         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
32850         inlined copy.
32851         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
32852         __FINITE_MATH_ONLY__ consistent.
32853         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
32854
32855 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
32856
32857         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
32858         of rawmemchr.
32859
32860         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
32861
32862 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
32863
32864         * po/ja.po: Update from translation team.
32865
32866 2011-10-08  Roland McGrath  <roland@hack.frob.com>
32867
32868         * locale/programs/locarchive.c (prepare_address_space): New function.
32869         (create_archive, enlarge_archive, open_archive): Use it.
32870
32871         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
32872         inside [SHARED], where it is used.
32873
32874         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
32875
32876         * nss/getent.c (netgroup_keys): Remove unused variable.
32877         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
32878
32879 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
32880
32881         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
32882         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
32883         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
32884         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
32885         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
32886         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
32887         * math/Makefile (libm-calls): Add s_isinf_ns.
32888         * math/divtc3.c: Use __isinf_nsl instead of isinf.
32889         * math/multc3.c: Likewise.
32890         * math/s_casin.c: Likewise.
32891         * math/s_casinf.c: Likewise.
32892         * math/s_casinl.c: Likewise.
32893         * math/s_ccos.c: Likewise.
32894         * math/s_ccosf.c: Likewise.
32895         * math/s_ccosl.c: Likewise.
32896         * math/s_ctan.c: Likewise.
32897         * math/s_ctanf.c: Likewise.
32898         * math/s_ctanh.c: Likewise.
32899         * math/s_ctanhf.c: Likewise.
32900         * math/s_ctanhl.c: Likewise.
32901         * math/s_ctanl.c: Likewise.
32902         * math/w_fmod.c: Likewise.
32903         * math/w_fmodf.c: Likewise.
32904         * math/w_fmodl.c: Likewise.
32905         * math/w_remainder.c: Likewise.
32906         * math/w_remainderf.c: Likewise.
32907         * math/w_remainderl.c: Likewise.
32908         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
32909         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
32910         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
32911         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
32912         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
32913         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
32914         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
32915         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
32916
32917         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
32918         of the number.
32919         * stdio-common/printf_fphex.c: Likewise.
32920         * stdio-common/printf_size.c: Likewise.
32921
32922         * math/e_exp10.c: Include math_private.h using <...> not "...".
32923         * math/e_exp10f.c: Likewise.
32924         * math/e_exp10l.c: Likewise.
32925         * math/e_exp2l.c: Likewise.
32926         * math/e_j0l.c: Likewise.
32927         * math/e_j1l.c: Likewise.
32928         * math/e_jnl.c: Likewise.
32929         * math/e_lgammal_r.c: Likewise.
32930         * math/e_rem_pio2l.c: Likewise.
32931         * math/e_scalb.c: Likewise.
32932         * math/e_scalbf.c: Likewise.
32933         * math/e_scalbl.c: Likewise.
32934         * math/k_cosl.c: Likewise.
32935         * math/k_sinl.c: Likewise.
32936         * math/k_tanl.c: Likewise.
32937         * math/s_cacoshf.c: Likewise.
32938         * math/s_catan.c: Likewise.
32939         * math/s_catanf.c: Likewise.
32940         * math/s_catanh.c: Likewise.
32941         * math/s_catanhf.c: Likewise.
32942         * math/s_catanhl.c: Likewise.
32943         * math/s_catanl.c: Likewise.
32944         * math/s_ccosh.c: Likewise.
32945         * math/s_ccoshf.c: Likewise.
32946         * math/s_ccoshl.c: Likewise.
32947         * math/s_cexp.c: Likewise.
32948         * math/s_cexpf.c: Likewise.
32949         * math/s_cexpl.c: Likewise.
32950         * math/s_clog.c: Likewise.
32951         * math/s_clog10.c: Likewise.
32952         * math/s_clog10f.c: Likewise.
32953         * math/s_clog10l.c: Likewise.
32954         * math/s_clogf.c: Likewise.
32955         * math/s_clogl.c: Likewise.
32956         * math/s_csin.c: Likewise.
32957         * math/s_csinf.c: Likewise.
32958         * math/s_csinh.c: Likewise.
32959         * math/s_csinhf.c: Likewise.
32960         * math/s_csinhl.c: Likewise.
32961         * math/s_csinl.c: Likewise.
32962         * math/s_csqrt.c: Likewise.
32963         * math/s_csqrtf.c: Likewise.
32964         * math/s_csqrtl.c: Likewise.
32965         * math/s_ctan.c: Likewise.
32966         * math/s_ctanf.c: Likewise.
32967         * math/s_ctanh.c: Likewise.
32968         * math/s_ctanhf.c: Likewise.
32969         * math/s_ctanhl.c: Likewise.
32970         * math/s_ctanl.c: Likewise.
32971         * math/s_ldexp.c: Likewise.
32972         * math/s_ldexpf.c: Likewise.
32973         * math/s_ldexpl.c: Likewise.
32974         * math/s_significand.c: Likewise.
32975         * math/s_significandf.c: Likewise.
32976         * math/s_significandl.c: Likewise.
32977         * math/w_acos.c: Likewise.
32978         * math/w_acosf.c: Likewise.
32979         * math/w_acosh.c: Likewise.
32980         * math/w_acoshf.c: Likewise.
32981         * math/w_acoshl.c: Likewise.
32982         * math/w_acosl.c: Likewise.
32983         * math/w_asin.c: Likewise.
32984         * math/w_asinf.c: Likewise.
32985         * math/w_asinl.c: Likewise.
32986         * math/w_atan2.c: Likewise.
32987         * math/w_atan2f.c: Likewise.
32988         * math/w_atan2l.c: Likewise.
32989         * math/w_atanh.c: Likewise.
32990         * math/w_atanhf.c: Likewise.
32991         * math/w_atanhl.c: Likewise.
32992         * math/w_cosh.c: Likewise.
32993         * math/w_coshf.c: Likewise.
32994         * math/w_coshl.c: Likewise.
32995         * math/w_dremf.c: Likewise.
32996         * math/w_exp10.c: Likewise.
32997         * math/w_exp10f.c: Likewise.
32998         * math/w_exp10l.c: Likewise.
32999         * math/w_exp2.c: Likewise.
33000         * math/w_exp2f.c: Likewise.
33001         * math/w_fmod.c: Likewise.
33002         * math/w_fmodf.c: Likewise.
33003         * math/w_fmodl.c: Likewise.
33004         * math/w_hypot.c: Likewise.
33005         * math/w_hypotf.c: Likewise.
33006         * math/w_hypotl.c: Likewise.
33007         * math/w_j0.c: Likewise.
33008         * math/w_j0f.c: Likewise.
33009         * math/w_j0l.c: Likewise.
33010         * math/w_j1.c: Likewise.
33011         * math/w_j1f.c: Likewise.
33012         * math/w_j1l.c: Likewise.
33013         * math/w_jn.c: Likewise.
33014         * math/w_jnf.c: Likewise.
33015         * math/w_jnl.c: Likewise.
33016         * math/w_lgamma.c: Likewise.
33017         * math/w_lgamma_r.c: Likewise.
33018         * math/w_lgammaf.c: Likewise.
33019         * math/w_lgammaf_r.c: Likewise.
33020         * math/w_lgammal.c: Likewise.
33021         * math/w_lgammal_r.c: Likewise.
33022         * math/w_log.c: Likewise.
33023         * math/w_log10.c: Likewise.
33024         * math/w_log10f.c: Likewise.
33025         * math/w_log10l.c: Likewise.
33026         * math/w_log2.c: Likewise.
33027         * math/w_log2f.c: Likewise.
33028         * math/w_log2l.c: Likewise.
33029         * math/w_logf.c: Likewise.
33030         * math/w_logl.c: Likewise.
33031         * math/w_pow.c: Likewise.
33032         * math/w_powf.c: Likewise.
33033         * math/w_powl.c: Likewise.
33034         * math/w_remainder.c: Likewise.
33035         * math/w_remainderf.c: Likewise.
33036         * math/w_remainderl.c: Likewise.
33037         * math/w_scalb.c: Likewise.
33038         * math/w_scalbf.c: Likewise.
33039         * math/w_scalbl.c: Likewise.
33040         * math/w_sinh.c: Likewise.
33041         * math/w_sinhf.c: Likewise.
33042         * math/w_sinhl.c: Likewise.
33043         * math/w_sqrt.c: Likewise.
33044         * math/w_sqrtf.c: Likewise.
33045         * math/w_sqrtl.c: Likewise.
33046         * math/w_tgamma.c: Likewise.
33047         * math/w_tgammaf.c: Likewise.
33048         * math/w_tgammal.c: Likewise.
33049
33050         * po/ja.po: Update from translation team.
33051
33052 2011-09-29  Andreas Jaeger  <aj@suse.de>
33053
33054         [BZ #13179]
33055         * sunrpc/netname.c (netname2host): Fix logic.
33056
33057         [BZ #6779]
33058         [BZ #6783]
33059         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
33060         correctly.
33061         * math/w_remainder.c (__remainder): Likewise.
33062         * math/w_remainderf.c (__remainderf): Likewise.
33063         * math/libm-test.inc (remainder_test): Add test cases.
33064
33065 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33066
33067         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
33068         sdiv_qrnnd.
33069
33070 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
33071
33072         * string/test-memcmp.c: Avoid unncessary #defines.
33073         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
33074
33075 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33076
33077         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
33078         Use new sse2 version for core i3 - i7 as it's faster
33079         than sse42 version.
33080         (bit_Prefer_PMINUB_for_stringop): New.
33081         * sysdeps/x86_64/rawmemchr.S: Update.
33082         Replace with faster SSE2 version.
33083         * sysdeps/x86_64/memrchr.S: New file.
33084         * sysdeps/x86_64/memchr.S: Update.
33085         Replace with faster SSE2 version.
33086
33087 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
33088
33089         * elf/dl-load.c (lose): Add cast to avoid warning.
33090
33091 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
33092
33093         * po/ca.po: Update from translation team.
33094
33095         * inet/getnetgrent_r.c: Hook up nscd.
33096         * nscd/Makefile (routines): Add nscd_netgroup.
33097         (nscd-modules): Add netgroupcache.
33098         (CFLAGS-netgroupcache.c): Define.
33099         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
33100         (cache_search): Add const to second parameter.
33101         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
33102         INNETGR.
33103         (dbs): Add netgrdb entry.
33104         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
33105         (verify_persistent_db): Handle netgrdb.
33106         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
33107         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
33108         GETFDNETGR.
33109         (netgroup_response_header): Define.
33110         (innetgroup_response_header): Define.
33111         (datahead): Add netgroup_response_header and innetgroup_response_header
33112         elements.
33113         * nscd/nscd.conf: Add entries for netgroup cache.
33114         * nscd/nscd.h (dbtype): Add netgrdb.
33115         (_PATH_NSCD_NETGROUP_DB): Define.
33116         (netgroup_iov_disabled): Declare.
33117         (xmalloc, xcalloc, xrealloc): Move declarations here.
33118         (cache_search): Adjust prototype.
33119         Add netgroup-related prototypes.
33120         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
33121         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
33122         (__nscd_innetgr): Declare.
33123         * nscd/selinux.c (perms): Use access_vector_t as element type and
33124         add netgroup-related initializers.
33125         * nscd/netgroupcache.c: New file.
33126         * nscd/nscd_netgroup.c: New file.
33127         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
33128         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
33129         For four parameters use innetgr.
33130         * nss/nss_files/files-init.c: Add definition and callback for netgr.
33131         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
33132         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
33133         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
33134
33135         * nscd/connections.c (register_traced_file): Don't register file
33136         for disabled databases.
33137
33138 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
33139
33140         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
33141
33142         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
33143         from tree and freeing node.
33144
33145 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
33146
33147         * nss/nsswitch.c (__nss_database_lookup): Handle
33148         nss_parse_service_list out of memory case.
33149
33150 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
33151
33152         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
33153         out of memory case.
33154
33155 2011-10-04  Andreas Schwab  <schwab@redhat.com>
33156
33157         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
33158         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
33159         pass it down.
33160         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
33161         elf_machine_rela, elf_machine_lazy_rel.
33162         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
33163         (ELF_DYNAMIC_DO_REL): Likewise.
33164         (ELF_DYNAMIC_DO_RELA): Likewise.
33165         (ELF_DYNAMIC_RELOCATE): Likewise.
33166         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
33167         to ELF_DYNAMIC_DO_REL.
33168         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
33169         (dl_main): In trace mode always set __RTLD_NOIFUNC.
33170         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
33171         elf_machine_rela.
33172         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
33173         skip_ifunc, don't call ifunc function if non-zero.
33174         (elf_machine_rela): Likewise.
33175         (elf_machine_lazy_rel): Likewise.
33176         (elf_machine_lazy_rela): Likewise.
33177         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
33178         (elf_machine_lazy_rel): Likewise.
33179         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
33180         Likewise.
33181         (elf_machine_lazy_rel): Likewise.
33182         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33183         Likewise.
33184         (elf_machine_lazy_rel): Likewise.
33185         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
33186         (elf_machine_lazy_rel): Likewise.
33187         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
33188         (elf_machine_lazy_rel): Likewise.
33189         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
33190         (elf_machine_lazy_rel): Likewise.
33191         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
33192         (elf_machine_lazy_rel): Likewise.
33193         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
33194         (elf_machine_lazy_rel): Likewise.
33195         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
33196         (elf_machine_lazy_rel): Likewise.
33197
33198 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
33199
33200         * nss/nss_files/files-init.c (_nss_files_init): Use static
33201         initialization for all the *_traced_file variables.
33202
33203 2011-09-28  Andreas Schwab  <schwab@redhat.com>
33204
33205         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33206
33207 2011-09-27  Roland McGrath  <roland@hack.frob.com>
33208
33209         [BZ #13226]
33210         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
33211
33212 2011-09-27  Andreas Schwab  <schwab@redhat.com>
33213
33214         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
33215         Reread the line before reparsing it.
33216
33217 2011-09-26  Andreas Schwab  <schwab@redhat.com>
33218
33219         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
33220
33221 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
33222             Maxim Kuvyrkov  <maxim@codesourcery.com>
33223             Joseph Myers  <joseph@codesourcery.com>
33224
33225         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
33226         if needed for __stack_chk_guard.
33227
33228 2011-09-19  Roland McGrath  <roland@hack.frob.com>
33229
33230         * sysdeps/posix/spawni.c (script_execute): Always define it.
33231         It will be optimized away if unused.
33232         (maybe_script_execute): New function.
33233         (__spawni): Call it.
33234
33235         * Makerules: Don't include tls.make.
33236         (config-tls): Always set to thread.
33237         * tls.make.c: File removed.
33238
33239 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
33240
33241         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
33242         * config.make.in (CPPFLAGS-config): New substituted variable.
33243
33244 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
33245
33246         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
33247
33248         [BZ #13192]
33249         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
33250         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
33251
33252 2011-09-15  Roland McGrath  <roland@hack.frob.com>
33253
33254         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
33255         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
33256         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
33257         (CALL_FAIL): Likewise.
33258         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
33259         (CALL_FAIL): Macro removed.
33260         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
33261
33262 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
33263
33264         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
33265         for __FINITE_MATH_ONLY__ == 1.
33266
33267 2011-09-15  Andreas Schwab  <schwab@redhat.com>
33268
33269         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
33270         __ieee754_sqrt instead of sqrt.
33271         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
33272         __ieee754_sqrtf instead of sqrtf.
33273         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
33274         __floorf instead of floorf.
33275         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
33276         __floorf, __truncf instead of floorf, truncf.
33277
33278 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
33279
33280         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
33281
33282         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
33283         __extern_always_inline.
33284         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
33285         32-bit.
33286
33287 2011-09-14  Andreas Schwab  <schwab@redhat.com>
33288
33289         * elf/rtld.c (dl_main): Also relocate in dependency order when
33290         doing symbol dependency testing.
33291
33292 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
33293
33294         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33295         Always define `refsym'.
33296
33297 2011-09-13  Andreas Schwab  <schwab@redhat.com>
33298
33299         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
33300         (__FD_ELT): Renamed from __FDELT.
33301         * misc/bits/select2.h (__FD_ELT): Likewise.
33302         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
33303         __FD_MASK instead of __FDELT, __FDMASK.
33304         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
33305         Likewise.
33306         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
33307         Likewise.
33308
33309         * elf/Makefile (gen-ldd): Fix pattern.
33310
33311         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
33312         (init_tls): Likewise.
33313
33314 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
33315
33316         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
33317
33318 2011-09-12  Andreas Schwab  <schwab@redhat.com>
33319
33320         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
33321         `struct cmsghdr *' instead of `void *'.
33322         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
33323         Likewise.
33324
33325 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
33326
33327         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
33328         if non-absolute.
33329         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
33330         ldd_rewrite_script.
33331
33332 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
33333
33334         * configure.in: Remove --with-tls option.
33335         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
33336         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
33337         out in case it is missing.
33338         * sysdeps/ia64/elf/configure.in: Likewise.
33339         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
33340         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
33341         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
33342         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
33343         * sysdeps/sh/elf/configure.in: Likewise.
33344         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
33345         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
33346         * sysdeps/x86_64/elf/configure.in: Likewise.
33347         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
33348         * sysdeps/mach/hurd/tls.h: Likewise.
33349
33350         [BZ #13067]
33351         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
33352
33353         [BZ #13090]
33354         * configure.in: Fix use of AC_INIT.
33355
33356         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
33357
33358 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
33359
33360         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
33361         __set_errno.
33362         * malloc/hooks.c: Likewise.
33363
33364         [BZ #11929]
33365         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
33366         variables statically.
33367         (narenas): Initialize.
33368         (list_lock): Initialize.
33369         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
33370         initializtion of main_arena and list_lock.  Small cleanups.
33371         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
33372         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
33373         Add initializers to main_arena and mp_.
33374         (malloc_state): Remove pagesize member.  Change all users to use
33375         GLRO(dl_pagesize).
33376
33377         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
33378         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
33379         is always initialized.
33380
33381         * malloc/malloc.c: Removed unused configurations and dead code.
33382         * malloc/arena.c: Likewise.
33383         * malloc/hooks.c: Likewise.
33384         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
33385
33386         * include/tls.h: Removed.  USE___THREAD must always be defined.
33387         * bits/libc-tsd.h: Don't handle !USE___THREAD.
33388         * elf/dl-libc.c: Likewise.
33389         * elf/dl-tsd.c: Likewise.
33390         * include/errno.h: Likewise.
33391         * include/netdb.h: Likewise.
33392         * include/resolv.h: Likewise.
33393         * inet/herrno-loc.c: Likewise.
33394         * inet/herrno.c: Likewise.
33395         * malloc/arena.c: Likewise.
33396         * malloc/hooks.c: Likewise.
33397         * malloc/malloc.c: Likewise.
33398         * resolv/res-state.c: Likewise.
33399         * resolv/res_libc.c: Likewise.
33400         * sysdeps/i386/dl-machine.h: Likewise.
33401         * sysdeps/ia64/dl-machine.h: Likewise.
33402         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
33403         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
33404         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
33405         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
33406         * sysdeps/sh/dl-machine.h: Likewise.
33407         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
33408         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
33409         * sysdeps/unix/i386/sysdep.S: Likewise.
33410         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
33411         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
33412         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
33413         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
33414         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
33415         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
33416         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
33417         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
33418         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
33419         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
33420         * sysdeps/unix/x86_64/sysdep.S: Likewise.
33421         * sysdeps/x86_64/dl-machine.h: Likewise.
33422         * tls.make.c: Likewise.
33423
33424         * configure.in: Remove --with-__thread option.  Make tests for
33425         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
33426         tls_model attribute fail if no support is available.  Remove
33427         USE_IN_LIBIO.
33428         * Makeconfig: Adjust for dropped configure option.  All features are
33429         now mandatory.
33430         * Makerules: Likewise.
33431         * Versions.def: Likewise.
33432         * argp/argp-fmtstream.c: Likewise.
33433         * argp/argp-fmtstream.h: Likewise.
33434         * argp/argp-help.c: Likewise.
33435         * assert/assert.c: Likewise.
33436         * config.h.in: Likewise.
33437         * config.make.in: Likewise.
33438         * configure: Likewise.
33439         * configure.in: Likewise.
33440         * csu/Versions: Likewise.
33441         * csu/init.c: Likewise.
33442         * elf/tst-audit2.c: Likewise.
33443         * elf/tst-tls10.c: Likewise.
33444         * elf/tst-tls10.h: Likewise.
33445         * elf/tst-tls11.c: Likewise.
33446         * elf/tst-tls12.c: Likewise.
33447         * elf/tst-tls14.c: Likewise.
33448         * elf/tst-tlsmod11.c: Likewise.
33449         * elf/tst-tlsmod12.c: Likewise.
33450         * elf/tst-tlsmod13.c: Likewise.
33451         * elf/tst-tlsmod13a.c: Likewise.
33452         * elf/tst-tlsmod14a.c: Likewise.
33453         * elf/tst-tlsmod15b.c: Likewise.
33454         * elf/tst-tlsmod16a.c: Likewise.
33455         * elf/tst-tlsmod16b.c: Likewise.
33456         * elf/tst-tlsmod7.c: Likewise.
33457         * elf/tst-tlsmod8.c: Likewise.
33458         * elf/tst-tlsmod9.c: Likewise.
33459         * gmon/gmon.c: Likewise.
33460         * grp/fgetgrent_r.c: Likewise.
33461         * grp/putgrent.c: Likewise.
33462         * hurd/fopenport.c: Likewise.
33463         * include/libc-symbols.h: Likewise.
33464         * include/tls.h: Likewise.
33465         * intl/gettextP.h: Likewise.
33466         * intl/loadinfo.h: Likewise.
33467         * locale/global-locale.c: Likewise.
33468         * locale/localeinfo.h: Likewise.
33469         * mach/devstream.c: Likewise.
33470         * malloc/arena.c: Likewise.
33471         * malloc/set-freeres.c: Likewise.
33472         * misc/err.c: Likewise.
33473         * misc/getttyent.c: Likewise.
33474         * misc/mntent_r.c: Likewise.
33475         * posix/getopt.c: Likewise.
33476         * posix/wordexp.c: Likewise.
33477         * pwd/fgetpwent_r.c: Likewise.
33478         * resolv/Versions: Likewise.
33479         * resolv/res_hconf.c: Likewise.
33480         * shadow/fgetspent_r.c: Likewise.
33481         * shadow/putspent.c: Likewise.
33482         * stdio-common/printf_fphex.c: Likewise.
33483         * stdio-common/tmpfile.c: Likewise.
33484         * stdlib/abort.c: Likewise.
33485         * stdlib/fmtmsg.c: Likewise.
33486         * sunrpc/auth_unix.c: Likewise.
33487         * sunrpc/clnt_perr.c: Likewise.
33488         * sunrpc/clnt_tcp.c: Likewise.
33489         * sunrpc/clnt_udp.c: Likewise.
33490         * sunrpc/clnt_unix.c: Likewise.
33491         * sunrpc/openchild.c: Likewise.
33492         * sunrpc/svc_simple.c: Likewise.
33493         * sunrpc/svc_tcp.c: Likewise.
33494         * sunrpc/svc_udp.c: Likewise.
33495         * sunrpc/svc_unix.c: Likewise.
33496         * sunrpc/xdr.c: Likewise.
33497         * sunrpc/xdr_array.c: Likewise.
33498         * sunrpc/xdr_rec.c: Likewise.
33499         * sunrpc/xdr_ref.c: Likewise.
33500         * sunrpc/xdr_stdio.c: Likewise.
33501
33502 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
33503
33504         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33505
33506 2011-07-03  Andreas Jaeger  <aj@suse.de>
33507
33508         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
33509         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
33510         regenerate with gen-libm-tests.pl.
33511
33512 2010-05-12  Petr Baudis  <pasky@suse.cz>
33513
33514         [BZ #11589]
33515         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
33516         around j0() zero points by switching to j1().
33517         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33518         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33519         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
33520         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33521
33522 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
33523
33524         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
33525         instead of 0.
33526         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
33527         instead of 0.
33528         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
33529         Patch in part by Pavel Roskin <proski@gnu.org>.
33530
33531         [BZ #13138]
33532         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
33533         realloc.
33534         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
33535         Free memory block if necessary.
33536
33537         [BZ #12847]
33538         * libio/genops.c (INTDEF): For string streams the _lock pointer can
33539         be NULL.  Don't lock in this case.
33540
33541 2011-09-09  Roland McGrath  <roland@hack.frob.com>
33542
33543         * elf/elf.h (ELFOSABI_GNU): New macro.
33544         (ELFOSABI_LINUX): Define to that.
33545
33546 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
33547
33548         * string/strncat.c (strncat): Undef the symbol in case it has been
33549         defined in bits/string.h.
33550
33551 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
33552
33553         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
33554
33555         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
33556         link map.
33557
33558 2011-08-17  Andreas Jaeger  <aj@suse.de>
33559
33560         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
33561
33562 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
33563             Ian Lance Taylor  <iant@google.com>
33564
33565         * math/libm-test.inc (lround_test): New testcase.
33566         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
33567
33568 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
33569
33570         * Makefile: Remove support for automatic cvs check-ins.
33571         * Makerules: Likewise.
33572         * config.make.in: Likewise.
33573         * configure.in: Likewise.
33574         * intl/Makefile: Likewise.
33575         * locale/Makefile: Likewise.
33576         * po/Makefile: Likewise.
33577         * posix/Makefile: Likewise.
33578         * sysdeps/gnu/Makefile: Likewise.
33579         * sysdeps/mach/hurd/Makefile: Likewise.
33580         * sysdeps/sparc/sparc32/Makefile: Likewise.
33581
33582         [BZ #13118]
33583         * posix/Makefile (bug-regex32-ENV): Define.
33584         Patch by John Stanley <jpsinthemix@verizon.net>.
33585
33586         * misc/Makefile (headers): Add bits/select2.h.
33587         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
33588         * misc/bits/select2.h: New file.
33589         * include/bits/select2.h: New file.
33590         * debug/Makefile (routines): Add fdelt_chk.
33591         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
33592         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
33593         FD_ISSET.
33594         * debug/fdelt_chk.c: New file.
33595
33596         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
33597         * wcsmbs/test-wmemcmp.c: Likewise.
33598         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
33599         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
33600
33601 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33602
33603         * string/Makefile (strop-tests): Add memcmp.
33604         * string/test-wmemcmp.c: New file.
33605         * string/test-memcmp.c: Add wmemcmp support.
33606
33607 2011-09-08  Roland McGrath  <roland@hack.frob.com>
33608
33609         [BZ #13153]
33610         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
33611         2011-07-19 change.
33612
33613         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
33614         garbage value in a __mach_port_mod_refs call in the cases of the
33615         task-self and thread-self ports.
33616
33617 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33618
33619         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
33620
33621 2011-09-08  Andreas Schwab  <schwab@redhat.com>
33622
33623         * elf/dl-load.c (lose): Check for non-null L.
33624
33625 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
33626
33627         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
33628
33629         * elf/dl-libc.c (dlerror_run): Pass back error code from
33630         dl_catch_error.
33631
33632         [BZ #13123]
33633         * elf/dl-load.c (lose): Free l_origin if it is valid.
33634
33635         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
33636         names.
33637         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
33638         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
33639         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
33640         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
33641         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
33642         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
33643
33644 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33645
33646         * sysdeps/powerpc/fpu/e_hypot.c: New file.
33647         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
33648         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
33649         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
33650         * sysdeps/powerpc/fpu/k_cosf.c: New file.
33651         * sysdeps/powerpc/fpu/k_sinf.c: New file.
33652         * sysdeps/powerpc/fpu/s_cosf.c: New file.
33653         * sysdeps/powerpc/fpu/s_sinf.c: New file.
33654         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
33655         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
33656
33657 2011-08-15  Alan Modra  <amodra@gmail.com>
33658
33659         [BZ #13092]
33660         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
33661         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
33662         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
33663         ppc_mcount to static-only-routines.
33664         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
33665         __mcount_internal.
33666         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
33667         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
33668
33669 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
33670
33671         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
33672         for finite and infinity parameters.
33673
33674 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
33675
33676         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
33677         and add nop instructions for throughput optimization.
33678         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
33679
33680 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
33681
33682         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
33683         aligned copy for power7 with vector-scalar instructions.
33684         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
33685
33686 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
33687
33688         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
33689         AVX check.
33690
33691 2011-09-07  Andreas Schwab  <schwab@redhat.com>
33692
33693         [BZ #13144]
33694         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
33695         last change.
33696
33697 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
33698
33699         * sysdeps/unix/sysv/linux/x86_64/init-first.c
33700         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
33701         syscall wrapper around clock_gettime in __vdso_clock_gettime.
33702         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
33703         clock_gettime.
33704
33705 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
33706
33707         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
33708         Forgot to demangle the pointer.
33709
33710         * sysdeps/i386/sysdep.h: Define atom_text_section.
33711         * sysdeps/x86_64/sysdep.h: Likewise.
33712         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
33713         section with atom_text_section.
33714         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
33715         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
33716         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
33717         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
33718         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
33719
33720         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
33721         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
33722         already be defined.  Change to take two parameters and don't assign
33723         result to variable.  Adjust all users.
33724         Define INTERNAL_GETTIME if not already defined.
33725         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
33726         call.
33727         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
33728         HAVE_CLOCK_GETTIME_VSYSCALL.
33729         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
33730
33731         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
33732         gettimeofday vsyscall, just use time.
33733
33734 2011-09-06  Andreas Schwab  <schwab@redhat.com>
33735
33736         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
33737         <errno.h>.
33738
33739 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
33740
33741         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
33742         syscall on x86-64.
33743         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
33744         syscall.
33745         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
33746         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
33747         syscall if possible.
33748
33749 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
33750
33751         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
33752         e_ident.  Don't pass to find_mapsXX.
33753         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
33754
33755 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33756
33757         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33758         strchr-sse2-no-bsf strrchr-sse2-no-bsf
33759         * sysdeps/x86_64/multiarch/strchr.S: Update.
33760         Check bit_slow_BSF bit.
33761         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
33762         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
33763         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
33764
33765 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
33766
33767         [BZ #13134]
33768         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
33769         before glibc 2.15.
33770         (tryshell): Define.
33771         (__spawni): Change last parameter to be flag.  Test
33772         SPAWN_XFLAGS_USE_PATH flag to use path or not.
33773         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
33774         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
33775         * posix/spawni.c: Likewise.
33776         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
33777         * posix/spawnp.c: Likewise.  Change normal version to use
33778         SPAWN_XFLAGS_USE_PATH.
33779         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
33780         SPAWN_XFLAGS_TRY_SHELL.
33781
33782         [BZ #13150]
33783         * posix/glob.h: Remove gcc 1.x support.
33784
33785         [BZ #13068]
33786         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
33787
33788 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33789
33790         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33791         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
33792         strrchr-sse2-bsf
33793         * sysdeps/i386/i686/multiarch/strchr.S: New file.
33794         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
33795         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
33796         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
33797         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
33798         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
33799
33800 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33801
33802         * sysdeps/x86_64/wcscmp.S: New file.
33803
33804         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
33805         wcscmp-c wcscmp-sse2
33806         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
33807         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
33808         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
33809         * wcsmbs/wcscmp.c: Allow renaming.
33810
33811 2011-09-05  David S. Miller  <davem@davemloft.net>
33812
33813         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
33814         stack slot, rather than the struct return pointer slot.
33815         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
33816         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
33817         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
33818         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
33819
33820 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
33821
33822         * po/ja.po: Update from translation team.
33823
33824         [BZ #13144]
33825         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
33826         kernel in 64-bit binaries.
33827
33828 2011-09-01  David S. Miller  <davem@davemloft.net>
33829
33830         * elf/elf.h (HWCAP_SPARC_*): Move to..
33831         * sysdeps/sparc/sysdep.h: this new file and add new values.
33832         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
33833         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
33834         _DL_HWCAP_COUNT to 24.
33835         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
33836         entries.
33837         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
33838         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
33839         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
33840         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
33841         instead of magic constants.
33842         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
33843
33844 2011-08-31  David S. Miller  <davem@davemloft.net>
33845
33846         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
33847         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
33848         Reimplement to do errno handling inline.
33849         (SYSCALL_ERROR_HANDLER): New macro.
33850         (__SYSCALL_STRING): Do not do errno handling in asm.
33851         (__CLONE_SYSCALL_STRING): Delete.
33852         (__INTERNAL_SYSCALL_STRING): Delete.
33853         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
33854         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
33855         (PSEUDO): Reimplement to do errno handling inline.
33856         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
33857         (SYSCALL_ERROR_HANDLER): New macro.
33858         (__SYSCALL_STRING): Do not do errno handling in asm.
33859         (__CLONE_SYSCALL_STRING): Delete.
33860         (__INTERNAL_SYSCALL_STRING): Delete.
33861         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
33862         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
33863         i386.
33864         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
33865         (inline_syscall*): Add 'err' argument.
33866         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
33867         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
33868         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
33869         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
33870
33871         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
33872         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
33873
33874 2011-08-30  Andreas Schwab  <schwab@redhat.com>
33875
33876         * elf/rtld.c (dl_main): Relocate objects in dependency order.
33877
33878 2011-08-29  Jiri Olsa <jolsa@redhat.com>
33879
33880         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
33881         directive.
33882
33883 2011-08-24  David S. Miller  <davem@davemloft.net>
33884
33885         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
33886
33887 2011-08-24  Andreas Schwab  <schwab@redhat.com>
33888
33889         * elf/Makefile: Add rules to build and run unload8 test.
33890         * elf/unload8.c: New file.
33891         * elf/unload8mod1.c: New file.
33892         * elf/unload8mod1x.c: New file.
33893         * elf/unload8mod2.c: New file.
33894         * elf/unload8mod3.c: New file.
33895
33896         * elf/dl-close.c (_dl_close_worker): Reset private search list if
33897         it wasn't used.
33898
33899 2011-08-23  David S. Miller  <davem@davemloft.net>
33900
33901         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
33902         subtract stack bias.
33903         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
33904         %sp not %fp in calculations.
33905         (_JMPBUF_UNWINDS_ADJ): Likewise.
33906
33907         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
33908         (aio_suspend): Call it to force an exception region around the
33909         AIO_MISC_WAIT() invocation.
33910
33911 2011-08-23  Andreas Schwab  <schwab@redhat.com>
33912
33913         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
33914         backslash.
33915
33916 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
33917
33918         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
33919         protection macro.
33920         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
33921         and <dl-machine.h>.
33922         (Elf64_FuncDesc): Remove.
33923
33924 2011-08-22  David S. Miller  <davem@davemloft.net>
33925
33926         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
33927         sigaltstack check, add missing cfi directives.
33928         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
33929         missing cfi directives, and sigaltstack handling.
33930
33931 2011-08-16  Andreas Schwab  <schwab@redhat.com>
33932
33933         [BZ #11724]
33934         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
33935         object is seen twice.
33936         * elf/dl-fini.c (_dl_sort_fini): Likewise.
33937
33938         * elf/Makefile (distribute): Add tst-initorder2.c.
33939         (tests): Add tst-initorder2.
33940         (modules-names): Add tst-initorder2a tst-initorder2b
33941         tst-initorder2c tst-initorder2d.  Add rules to build them.
33942         ($(objpfx)tst-initorder2.out): New rule.
33943         * elf/tst-initorder2.c: New file.
33944         * elf/tst-initorder2.exp: New file.
33945
33946 2011-08-22  Andreas Schwab  <schwab@redhat.com>
33947
33948         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
33949
33950         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
33951         dependencies back to end of function.
33952
33953         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
33954         $(elfobjdir)/ld.so.
33955
33956 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
33957
33958         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
33959         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
33960         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
33961         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
33962         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
33963         of __vdso_gettimeofday.
33964         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
33965         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
33966         attribute_hidden.
33967         (_libc_vdso_platform_setup): Remove initialization of
33968         __vdso_gettimeofday and __vdso_time.
33969
33970 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
33971
33972         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
33973         and fgetc_unlocked.
33974         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
33975         getc_unlocked.
33976
33977         * elf/dl-open.c (add_to_global): Report additions to the global scope
33978         for LD_DEBUG=scopes.
33979         (dl_open_worker): Also print scope of newly loaded dependencies.
33980         (_dl_show_scope): Indicate if there is no scope.
33981
33982         [BZ #13114]
33983         * stdio-common/Makefile (tests): Add bug24.
33984         * stdio-common/bug24.c: New file.
33985
33986 2011-08-19  Andreas Jaeger  <aj@suse.de>
33987
33988         [BZ #13114]
33989         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
33990         non-existant file when using close-on-exec mode.
33991
33992 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
33993
33994         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
33995         the very first instruction.
33996
33997         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
33998         the CFI state in the end.
33999         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
34000         inclusion of dl-trampoline.h.
34001         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
34002
34003 2011-08-19  Andreas Schwab  <schwab@redhat.com>
34004
34005         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
34006         expectations for long double.
34007
34008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
34009         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
34010
34011 2011-08-14  David S. Miller  <davem@davemloft.net>
34012
34013         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
34014         artificual limit depends upon the system page size.
34015
34016 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34017
34018         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
34019         * resolv/Makefile: Define CFLAGS-libresolv.
34020
34021 2011-08-17  Andreas Schwab  <schwab@redhat.com>
34022
34023         * nss/makedb.c (compute_tables): Make variables used in nested
34024         function static.
34025
34026 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34027
34028         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
34029         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
34030         if buffer was too small.
34031
34032         * elf/pldd.c (main): Attach to all threads in the process.
34033         Rewrite /proc handling to use *at functions.
34034
34035 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
34036
34037         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
34038         specifies first scope to show.
34039         (dl_open_worker): Update callers.  Move printing scope of new
34040         object to before the relocation.
34041         * elf/rtld.c (dl_main): Update _dl_show_scope call.
34042         * sysdeps/generic/ldsodefs.h: Update declaration.
34043
34044         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
34045         string for the scope number.
34046
34047 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
34048
34049         * nscd/servicescache.c (cache_addserv): Make sure written is always
34050         initialized.
34051
34052 2011-08-14  Roland McGrath  <roland@hack.frob.com>
34053
34054         * sysdeps/i386/i486/bits/atomic.h
34055         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
34056         statement expression, so as to suppress "set but not used" warning.
34057         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
34058
34059         * string/strncat.c (STRNCAT): Use prototype definition.
34060
34061         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
34062         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
34063         -Iprograms here.
34064         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
34065         (localedef-modules): Add localedef.
34066         (locale-modules): Add locale.
34067
34068         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
34069         * elf/rtld.c (dl_main): Invert order of assignment in last change,
34070         to avoid a warning.
34071
34072 2011-08-14  David S. Miller  <davem@davemloft.net>
34073
34074         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
34075         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
34076
34077 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
34078
34079         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
34080         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
34081         * elf/rtld.c (dl_main): Set l_name of vDSO.
34082         Call _dl_show_scope when DL_DEBUG_SCOPES.
34083         (process_dl_debug): Recognize scopes flag and also set it for all.
34084         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
34085         Declare _dl_show_scope.
34086
34087         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
34088         (do_dlopen): Pass caller_dlopen to dl_open.
34089         (__libc_dlopen_mode): Initialize caller_dlopen.
34090
34091         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
34092         of libc.  Make tolower call locale-independent.  Optimize a bit by
34093         using isdigit instead of isalnum.
34094         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
34095
34096 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
34097
34098         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
34099         was a dependency or dynamically loaded.
34100
34101 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
34102
34103         * intl/l10nflist.c: Allow architecture-specific pop function.
34104         * sysdeps/x86_64/l10nflist.c: New file.
34105
34106         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
34107         classification.
34108
34109 2011-08-10  Andreas Schwab  <schwab@redhat.com>
34110
34111         * include/dirent.h: Add libc_hidden_proto for scandirat and
34112         scandirat64.  Don't declare __scandirat64.
34113         * dirent/scandirat.c: Add libc_hidden_def.
34114         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
34115         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
34116
34117 2011-08-10  David S. Miller  <davem@davemloft.net>
34118
34119         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
34120         enum.
34121         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34122         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34123         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34124
34125 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
34126
34127         * Versions.def [libc]: Add GLIBC_2.15.
34128         * dirent/Makefile (routines): Add scandirat and scandirat64.
34129         * dirent/Versions [libc]: Export scandirat and scandirat64 for
34130         GLIBC_2.15.
34131         * dirent/dirent.h: Declare scandirat and scandirat64.
34132         * dirent/scandirat.c: New file.
34133         * dirent/scandirat64.c: New file.
34134         * sysdeps/wordsize-64/scandirat.c: New file.
34135         * sysdeps/wordsize-64/scandirat64.c: New file.
34136         * dirent/opendir.c: Define opendirat.
34137         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
34138         using scandirat.
34139         * dirent/scandir64.c: Adjust for scandir.c change.
34140         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
34141         __scandirat64, and __scandir_cancel_handler.
34142         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
34143         additional parameter and use openat instead of open (outside of ld.so).
34144         Add new __opendir as wrapper around __opendirat.
34145         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
34146         here without requiring old scandirat implementation.
34147
34148 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
34149
34150         * dirent/scandir.c (cancel_handler): Renamed to
34151         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
34152         defined.  Adjust users.
34153         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
34154         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
34155
34156 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
34157
34158         * string/test-string.h (IMPL): Use __STRING to expand name and then
34159         stringify it.
34160
34161         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
34162         of cleanups.
34163
34164 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34165
34166         * string/Makefile: Update.
34167         (strop-tests): Append strncat.
34168         * string/test-wcscmp.c: New file.
34169         New comprehensive test for wcscmp.
34170         * string/test-strcmp.c: Update.
34171         (WIDE): New define.
34172
34173 2011-07-22  Andreas Schwab  <schwab@redhat.com>
34174
34175         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
34176         line.
34177
34178 2011-07-26  Andreas Schwab  <schwab@redhat.com>
34179
34180         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
34181         encoding to ACE if AI_IDN.
34182
34183 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
34184
34185         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
34186         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
34187
34188 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34189
34190         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
34191         Fix overflow bug in strncat.
34192         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
34193
34194         * string/test-strncat.c: Update.
34195         Add new tests for checking overflow bugs.
34196
34197 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34198
34199         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34200         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
34201         * sysdeps/i386/i686/multiarch/strcat.S: New file.
34202         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
34203         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
34204         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
34205         * sysdeps/i386/i686/multiarch/strncat.S: New file.
34206         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
34207         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
34208
34209         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
34210         (USE_AS_STRCAT): Define.
34211         Add strcat and strncat support.
34212         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34213
34214 2011-07-25  Andreas Schwab  <schwab@redhat.com>
34215
34216         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
34217         __n bigger than INT_MAX+1.
34218         (__strncmp_g): Likewise.
34219
34220 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
34221
34222         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
34223         * libio/stido.h: Likewise.
34224
34225         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
34226         (AF_NFC): Define.
34227         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
34228         (AF_NFC): Define.
34229
34230         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
34231         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34232         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34233         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34234         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34235
34236         [BZ #13021]
34237         * scripts/test-installation.pl: Don't expect libnss_test1 to be
34238         installed.
34239
34240         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
34241         typo.
34242         (_dl_x86_64_save_sse): Likewise.
34243
34244 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
34245
34246         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
34247         OSXSAVE.
34248         (_dl_x86_64_save_sse): Likewise.
34249
34250         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
34251
34252         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
34253
34254 2011-07-21  Andreas Schwab  <schwab@redhat.com>
34255
34256         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
34257         change.
34258         (_dl_x86_64_save_sse): Use correct AVX check.
34259
34260 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34261
34262         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
34263         bug in strncpy/strncat.
34264         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
34265
34266 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
34267
34268         * string/tester.c (test_strcat): Add tests for different alignments
34269         of source and destination.
34270         (test_strncat): Likewise.
34271
34272 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
34273
34274         [BZ #12852]
34275         * posix/glob.c (glob): Check passed in values before using them in
34276         expressions to avoid some overflows.
34277         (glob_in_dir): Likewise.
34278
34279         [BZ #13007]
34280         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
34281         check for AVX enablement so that we don't crash with old kernels and
34282         new hardware.
34283         * elf/tst-audit4.c: Add same checks here.
34284         * elf/tst-audit6.c: Likewise.
34285
34286         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
34287
34288 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
34289
34290         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
34291
34292 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
34293
34294         * po/cs.po: Update from translation team.
34295         * po/bg.po: Likewise.
34296
34297 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
34298
34299         * misc/sys/cdefs.h: Add support for const attribute.
34300         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
34301         to gnu_dev_{major,minor,makedev} functions.
34302
34303 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
34304
34305         * intl/dcigettext.c (get_output_charset): Add missing bracket.
34306
34307 2011-07-20  Andreas Schwab  <schwab@redhat.com>
34308
34309         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
34310         strlen results.
34311
34312 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34313
34314         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
34315         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
34316         register in order to avoid conflicts with the soft frame pointer
34317         being held in r11 when necessary.
34318         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
34319         (INTERNAL_VSYSCALL_NCS): Likewise.
34320
34321 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
34322
34323         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
34324         * elf/dl-fini.c (_dl_fini): Adjust caller.
34325         * elf/dl-close.c (_dl_close_worker): Likewise.
34326         * sysdeps/generic/ldsodefs.h: Adjust declaration.
34327
34328 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
34329
34330         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
34331         "aux_cache->nlibs < 0".
34332
34333         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
34334         in the reload-count case.
34335
34336 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34337
34338         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34339         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
34340         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
34341         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
34342         * sysdeps/x86_64/multiarch/strcat.S: New file.
34343         * sysdeps/x86_64/multiarch/strncat.S: New file.
34344         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
34345         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
34346         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
34347         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
34348         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
34349         (USE_AS_STRCAT): Define.
34350         Add strcat and strncat support.
34351         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34352         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
34353         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
34354         * string/strncat.c: Update.
34355         (USE_AS_STRNCAT): Define.
34356         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34357         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
34358         and i7.
34359         * sysdeps/x86_64/multiarch/init-arch.h
34360         (bit_Prefer_PMINUB_for_stringop): New.
34361         (index_Prefer_PMINUB_for_stringop): Likewise.
34362         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
34363         bit_Prefer_PMINUB_for_stringop.
34364
34365 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
34366
34367         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
34368         buffer64.
34369         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
34370         of casting of buffer.
34371         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
34372         buffer32 and buffer64.
34373         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
34374         writes instead of casting of buffer.
34375         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
34376         buffer32.
34377         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
34378         casting of buffer.
34379
34380 2011-07-19  Andreas Schwab  <schwab@redhat.com>
34381
34382         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
34383
34384 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
34385
34386         * nscd/nscd.c (termination_handler): Don't do anything for a database
34387         if it has not yet been initialized.
34388
34389 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
34390
34391         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
34392
34393 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
34394
34395         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
34396
34397 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
34398
34399         * po/nl.po: Update from translation team.
34400         * po/sv.po: Likewise.
34401
34402 2011-07-16  Roland McGrath  <roland@hack.frob.com>
34403
34404         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
34405         now disallowed by GCC.
34406
34407         * configure.in (use-default-link): Default to yes if a test -shared
34408         link meets our qualifications.
34409         * configure: Regenerated.
34410
34411         * config.make.in (output-format): New variable.
34412         * configure.in: Check for ld --print-output-format support.
34413         * configure: Regenerated.
34414         * Makerules ($(common-objpfx)format.lds)
34415         [$(output-format) != unknown]: Just use $(output-format),
34416         instead of the linker-script munging.
34417
34418 2011-07-14  Roland McGrath  <roland@hack.frob.com>
34419
34420         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
34421         of $(common-objpfx)shlib.lds.
34422         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
34423
34424         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
34425         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
34426
34427         * configure.in (-z relro check): Adjust test code to add a large
34428         writable data section after it.
34429         * configure: Regenerated.
34430
34431 2011-07-11  Roland McGrath  <roland@hack.frob.com>
34432
34433         * configure.in (-z relro check): Fix test code to make the variable
34434         truly const.
34435         * configure: Regenerated.
34436
34437 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
34438
34439         * nscd/nscd.h (struct traced_file): Define.
34440         (struct database_dyn): Remove inotify_descr, reset_res, and filename
34441         elements.  Add traced_files.
34442         (inotify_fd): Declare.
34443         (register_traced_file): Declare.
34444         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
34445         (inotify_fd): Export.
34446         (resolv_conf_descr): Remove.
34447         (nscd_init): Move inotify descriptor creation to main.
34448         Don't register files for notification here.
34449         (register_traced_file): New function.
34450         (invalidate_cache): Don't use reset_res to determine whether to call
34451         res_init, go through the list of registered files.
34452         (main_loop_poll): The inotify descriptors are now stored in the
34453         structures for the traced files.
34454         (main_loop_epoll): Likewise
34455         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
34456         to __nss_disable_nscd.
34457         * nscd/cache.c (prune_cache): There is no single inotify descriptor
34458         for a database anymore.  Check the records for all the registered
34459         files instead.
34460         * nss/Makefile (libnss_files-routines): Add files-init.
34461         (libnss_db-routines): Add db-init.
34462         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
34463         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
34464         * nss/nss_db/db-init.c: New file.
34465         * nss/nss_files/files-init.c: New file.
34466         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
34467         __nss_lookup_function.
34468         (__nss_lookup_function): Call nss_load_library.
34469         (nss_load_all_libraries): New function.
34470         (__nss_disable_nscd): Take parameter with callback function for files
34471         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
34472         used for the cached services.
34473         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
34474         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
34475         options for features to all the files in nscd.
34476
34477         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
34478
34479 2011-07-10  Roland McGrath  <roland@hack.frob.com>
34480
34481         * csu/elf-init.c (__libc_csu_init): Comment typo.
34482
34483 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
34484
34485         * po/pl.po: Update from translation team.
34486         * po/ja.po: Likewise.
34487         * po/ru.po: Likewise.
34488         * po/ko.po: Likewise.
34489         * po/fr.po: Likewise.
34490
34491 2011-07-09  Roland McGrath  <roland@hack.frob.com>
34492
34493         * configure.in (.ctors/.dtors header and trailer check):
34494         Use an empirical test on a built program.
34495         * configure: Regenerated.
34496
34497         * configure.in (-z relro check): Use an empirical test on a built DSO.
34498         Detect, but do not require, on ia64.
34499         * configure: Regenerated.
34500
34501         * configure.in (READELF): Find it with AC_CHECK_TOOL.
34502         Update tests that use readelf to use $READELF instead.
34503         * configure: Regenerated.
34504
34505 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
34506
34507         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
34508         if the result is not used.
34509
34510 2011-07-05  Andreas Jaeger  <aj@suse.de>
34511
34512         [BZ#9696]
34513         * stdlib/tst-strtod.c: Add testcase.
34514
34515 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
34516
34517         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
34518         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
34519         The latter has a higher limit.  Take additional parameter to pass to
34520         the new function.
34521         (__pathconf): Pass file to __statfs_link_max.
34522         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
34523         __statfs_link_max.
34524         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
34525         __statfs_link_max.
34526
34527         [BZ #12868]
34528         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
34529         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
34530         Handle Lustre.
34531         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
34532         (__statfs_filesize_max): Likewise.
34533         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
34534
34535 2011-07-05  Andreas Jaeger  <aj@suse.de>
34536
34537         * resolv/res_comp.c (dn_skipname): Remove unused variable.
34538
34539 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
34540
34541         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
34542         `status' variable.
34543         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
34544         Likewise.
34545
34546 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
34547
34548         * Makefile (strop-tests): Add strncat.
34549         * string/test-strncat.c: New file.
34550
34551 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
34552
34553         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
34554
34555 2011-06-21  Andreas Jaeger  <aj@suse.de>
34556
34557         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
34558         Copy rule from iconvdata/Makefile.
34559
34560 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
34561
34562         [BZ #12922]
34563         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
34564         but no long options are defined, just return 'W'.
34565
34566 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
34567
34568         [BZ #9696]
34569         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
34570
34571 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
34572
34573         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
34574         netgroups to read.
34575         (innetgr): Likewise.
34576
34577 2011-07-05  Roland McGrath  <roland@hack.frob.com>
34578
34579         * config.make.in (install_root): Default to $(DESTDIR).
34580
34581 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
34582
34583         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
34584
34585 2011-07-02  Roland McGrath  <roland@hack.frob.com>
34586
34587         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
34588
34589         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
34590         containing directory rather than embedding absolute directory names.
34591
34592         * scripts/check-local-headers.sh: Rewritten using awk.
34593         Match by word, not by line.  Print error messages for matches.
34594         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
34595
34596         * Makerules [shlib-lds-flags empty]:
34597         ($(common-objpfx)libc_pic.opts): New target.
34598         ($(common-objpfx)libc_pic.os.clean): New target.
34599         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
34600
34601         * config.make.in (OBJCOPY): New variable.
34602         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
34603         * configure: Regenerated.
34604
34605         * config.make.in (use-default-link): New variable.
34606         * configure.in (use_default_link): Grok --with-default-link to set it.
34607         * configure: Regenerated.
34608         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
34609         (shlib-lds, shlib-lds-flags): Define to empty.
34610
34611         * Makerules (shlib-lds): New variable.
34612         (shlib-lds-flags): New variable.
34613         (build-shlib, build-moduile, build-module-asneeded): Use it.
34614         ($(common-objpfx)libc.so): Use $(shlib-lds).
34615         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
34616         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
34617
34618         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
34619         DT_FLAGS/DT_FLAGS_1 with zero flags.
34620
34621         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
34622         linker script munging.
34623
34624 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
34625
34626         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
34627         as 128-bit value.
34628         * crypt/sha512.c (sha512_process_block): Perform total addition using
34629         128-bit if possible.
34630         (__sha512_finish_ctx): Likewise.
34631         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
34632         as 64-bit value.
34633         * crypt/sha256.c (SWAP64): Define.
34634         (sha256_process_block): Perform total addition using 64-bit if
34635         possible.
34636         (__sha256_finish_ctx): Likewise.
34637
34638 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
34639
34640         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
34641         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34642         * nscd/hstcache.c (cache_addhst): Likewise.
34643         * nscd/grpcache.c (cache_addgr): Likewise.
34644         * nscd/aicache.c (addhstaiX): Likewise
34645         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
34646
34647 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
34648
34649         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
34650         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34651         * nscd/hstcache.c (cache_addhst): Likewise.
34652         * nscd/grpcache.c (cache_addgr): Likewise.
34653         * nscd/aicache.c (addhstaiX): Likewise
34654
34655 2011-07-01  Andreas Schwab  <schwab@redhat.com>
34656
34657         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
34658         domain only when needed.
34659
34660 2011-06-30  Andreas Schwab  <schwab@redhat.com>
34661
34662         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
34663         is always restored.
34664
34665 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
34666
34667         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
34668         are re-adding the entry.
34669         * nscd/servicescache.c (cache_addserv): Likewise.
34670
34671 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
34672
34673         * sysdeps/generic/dl-irel.h: fix protection against multiple
34674         inclusions.
34675         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
34676
34677 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
34678
34679         [BZ #12935]
34680         * malloc/memusage.sh: Fix quoting in message.
34681         * debug/xtrace.sh: Likewise.
34682
34683         * configure.in: Remove support for --experimental-malloc option, make
34684         it the default.
34685         * config.make.in: Likewise.
34686         * malloc/Makefile: Likewise.
34687
34688 2011-06-27  Andreas Schwab  <schwab@redhat.com>
34689
34690         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
34691         two-byte characters.
34692
34693 2011-06-27  Roland McGrath  <roland@hack.frob.com>
34694
34695         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
34696         AC_CACHE_CHECK invocation.
34697         * configure: Regenerated.
34698
34699         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
34700
34701 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
34702
34703         [BZ #12350]
34704         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
34705         bit from old_res_options.
34706
34707         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
34708
34709         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
34710         value type for setfct.
34711
34712 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
34713
34714         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
34715         __gettimeofday instead of gettimeofday.
34716
34717 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
34718
34719         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
34720
34721 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
34722
34723         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
34724
34725         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
34726         info.
34727
34728 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
34729
34730         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34731         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
34732         strcpy-sse2-unaligned strncpy-sse2-unaligned
34733         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
34734         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
34735         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
34736         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
34737         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
34738         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
34739         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
34740         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
34741         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
34742         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
34743         (STRCPY): Support SSE2 and SSSE3 versions.
34744
34745 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
34746
34747         [BZ #12874]
34748         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
34749         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
34750         kernels which artificially limit size of requests.
34751
34752 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
34753
34754         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34755         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
34756         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
34757         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
34758         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
34759         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
34760         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
34761         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
34762         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
34763         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
34764         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
34765         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
34766         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
34767         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
34768         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
34769         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34770         Enable unaligned load optimization for Intel Core i3, i5 and i7
34771         processors.
34772         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
34773         Define.
34774         (index_Fast_Unaligned_Load): Define.
34775         (HAS_FAST_UNALIGNED_LOAD): Define.
34776
34777 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
34778
34779         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
34780
34781 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
34782
34783         [BZ #12907]
34784         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
34785         until it is clear that the information is realy needed.
34786         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
34787
34788 2011-06-22  Andreas Schwab  <schwab@redhat.com>
34789
34790         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
34791
34792 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
34793
34794         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
34795         /sys/devices/system/cpu/online if it is usable.
34796
34797         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
34798         reading the information from the /proc filesystem to once a second.
34799
34800 2011-06-21  Andreas Jaeger  <aj@suse.de>
34801
34802         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
34803         NULL after inclusion of kernel headers.
34804
34805 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
34806
34807         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
34808         calls to internal_setent.
34809
34810         [BZ #12885]
34811         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
34812         addresses using gethostbyname4_r ignore IPv4 addresses.
34813
34814         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
34815         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
34816
34817         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
34818
34819 2011-06-20  David S. Miller  <davem@davemloft.net>
34820
34821         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
34822         inclusions.
34823         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
34824
34825         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
34826         (elf_irel): Use it.
34827         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
34828         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
34829         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
34830         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
34831         * sysdeps/x86_64/dl-irel.h: Likewise.
34832
34833         * elf/dl-runtime.c: Use elf_ifunc_invoke.
34834         * elf/dl-sym.c: Likewise.
34835
34836 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
34837
34838         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
34839         need to dereference resplen2.
34840
34841 2011-06-14  Andreas Schwab  <schwab@redhat.com>
34842
34843         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
34844
34845 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
34846
34847         * Makeconfig: Define vardbdir and inst_vardbdir.
34848         * nss/Makefile: Add rules to install db-Makefile.
34849
34850         * nss/nss_db/db-XXX.c: Cleanup.
34851
34852         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
34853         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
34854         GLIBC_PRIVATE.
34855         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
34856         * nss/makedb.c: Implement -g option to specify that value strings
34857         are generated and should not be added to table iterated over for
34858         get*ent calls.
34859         * nss/nss_db/db-initgroups.c: New file.
34860
34861         * nss/getent.c: Add support for initgroups lookups through getgrouplist
34862         interface.
34863
34864         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
34865         (internal_getgrouplist): Adjust to name change.
34866         Update use_initgroups_entry if this is not the first call.
34867         * nss/databases.def: Add initgroups entry.
34868
34869         * nss/makedb.c (compute_tables): Check result of multiple hash table
34870         sizes to minimize maximum chain length.
34871
34872 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
34873
34874         * Versions.def: Add entry for libnss_db.
34875         * shlib-versions: Likewise.
34876         * nss/Makefile: Add rules to build libnss_db.
34877         * nss/Versions: Add libnss_db information.  Organize libnss_files
34878         entries better.
34879         * nss/db-Makefile: Add gshadow support.  Change rules for the new
34880         makedb progra.  Some minor improvements to generate smaller files.
34881         * nss/nss_db/nss_db.h: Move NSS database header data structures to
34882         here from...
34883         * nss/makedb.c: ...here.
34884         Improve database format to be smaller and require less memory at
34885         runtime.
34886         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
34887         db anymore.
34888         * nss/nss_db/db-netgrp.c: Likewise.
34889         * nss/nss_db/db-open.c: Likewise.
34890         * nss/nss_files/flies-XXX.x: Adjust comments.
34891         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
34892         * nss/nss_files/files-grp.c: Likewise.
34893         * nss/nss_files/files-hosts.c: Likewise.
34894         * nss/nss_files/files-network.c: Likewise.
34895         * nss/nss_files/files-proto.c: Likewise.
34896         * nss/nss_files/files-pwd.c: Likewise.
34897         * nss/nss_files/files-rpc.c: Likewise.
34898         * nss/nss_files/files-service.c: Likewise.
34899         * nss/nss_files/files-sgrp.c: Likewise.
34900         * nss/nss_files/files-spwd.c: Likewise.
34901         * nss/nss_db/db-alias.c: Removed.
34902         * nss/nss_db/dummy-db.h: Removed.
34903
34904 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
34905
34906         * nss/makedb.c: Rewritten to not use database library.
34907         * nss/Makefile: Update to build new makedb program.
34908
34909 2011-06-14  Andreas Jaeger  <aj@suse.de>
34910
34911         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
34912         memset declaration.
34913
34914 2011-06-10  Andreas Schwab  <schwab@redhat.com>
34915
34916         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
34917         tmpbuf.
34918
34919 2011-06-10  Roland McGrath  <roland@hack.frob.com>
34920
34921         * Makerules (shlib.lds): Fail if the linker script comes out empty.
34922         * elf/Makefile ($(objpfx)ld.so): Likewise.
34923
34924         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
34925         Don't list ld.so twice in dependencies.
34926
34927         * posix/bug-regex31.c: Include <stdlib.h>.
34928
34929         * nscd/hstcache.c (cache_addhst): Remove unused variable.
34930
34931         * nis/nss_compat/compat-spwd.c
34932         (getspent_next_nss_netgr): Remove unused variable.
34933         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
34934
34935         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
34936         nonmembers" output to use the right array.
34937
34938         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
34939
34940         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
34941
34942         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
34943         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
34944         * catgets/gencat.c (read_input_file): Likewise.
34945         * locale/programs/locarchive.c (enlarge_archive): Likewise.
34946
34947         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
34948         variable definition inside #if's controlling its use.
34949
34950         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
34951
34952         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
34953
34954         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
34955
34956         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
34957         unreachable code.
34958
34959         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
34960
34961         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
34962         * configure: Regenerated.
34963
34964         * Makerules: Revert last change.
34965         * elf/Makefile: Likewise.
34966
34967 2011-06-09  Roland McGrath  <roland@hack.frob.com>
34968
34969         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
34970         * elf/Makefile ($(objpfx)librtld.os): Likewise.
34971         (reloc-link): Likewise.
34972
34973 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
34974
34975         * elf/Makefile: Add rules to build pldd.
34976         * elf/pldd.c: New file.
34977         * elf/pldd-xx.c: New file.
34978
34979 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
34980
34981         * version.h: Update for 2.15 development version.
34982
34983 2011-06-07  David S. Miller  <davem@davemloft.net>
34984
34985         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
34986         ifuncs.
34987         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
34988         elf_machine_lazy_rel): Likewise.
34989         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
34990         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
34991         elf_machine_lazy_rel): Likewise.
34992         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
34993         dl_hwcap via passed in argument.
34994         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
34995         Likewise.
34996
34997 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34998
34999         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
35000
35001 2011-06-06  Roland McGrath  <roland@hack.frob.com>
35002
35003         [BZ #12849]
35004         * manual/fdl-1.1.texi: New file, verbatim from:
35005         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
35006         * manual/lgpl-2.1.texi: New file, verbatim from:
35007         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
35008         * manual/Makefile (licenses): New variable, list those new file names.
35009         (texis): Use it.
35010         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
35011
35012         * manual/fdl.texi: File removed.
35013         * manual/lesser.texi: File removed.
35014         * manual/libc.texinfo (Copying, Documentation License):
35015         Use new @include file names, put @appendix directive before @include.
35016
35017 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
35018
35019         [BZ #12841]
35020         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
35021         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
35022         (mq_open): Add __NTH.
35023
35024 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
35025
35026         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35027         Assume Intel Core i3/i5/i7 processor if AVX is available.
35028
35029 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35030
35031         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
35032         typo.
35033
35034 2011-05-31  Andreas Schwab  <schwab@redhat.com>
35035
35036         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
35037         memory.  Use alloca_account.  Fix memory leak when retrying.
35038
35039 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35040
35041         * version.h (RELEASE): Bump for 2.14 release.
35042         * include/features.h (__GLIBC_MINOR__): Bump to 14.
35043
35044         * config.make.in (RANLIB): Remove entry.
35045
35046 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
35047
35048         * po/Makefile (po-sed-cmd): Add ksh to extensions.
35049         (libc.pot): Work around missing support for .ksh extension in xgettext.
35050
35051         [BZ #12684]
35052         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
35053         if both request failed.
35054         (send_dg): In case of server errors clear resplen or *resplen2.
35055
35056         [BZ #12454]
35057         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
35058         when there are multiple maps.
35059         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
35060         (_dl_fini): Remove test here.
35061
35062         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
35063
35064 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
35065
35066         [BZ #12350]
35067         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
35068         bit from old_res_options.
35069         (gaih_inet): Likewise.
35070
35071         [BZ #11099]
35072         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
35073         as signed.
35074
35075         * resolv/res_init.c (res_setoptions): Make the code more compact.
35076
35077         [BZ #11558]
35078         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
35079         set RES_USEVC.
35080
35081         [BZ #11634]
35082         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
35083
35084         * malloc/malloc.h: Mark malloc hook variables as deprecated.
35085
35086         [BZ #11781]
35087         * malloc/malloc.h: Declare malloc hook variables as volatile.
35088
35089         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
35090         in last patch.
35091
35092         [BZ #11799]
35093         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
35094         raise in the comment.
35095         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
35096         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
35097         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
35098
35099 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
35100
35101         [BZ #12811]
35102         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
35103         grow the buffers more if it already has to be sufficient.
35104         (build_wcs_upper_buffer): Likewise.
35105         * posix/regexec.c (check_matching): Likewise.
35106         (clean_state_log_if_needed): Likewise.
35107         (extend_buffers): Don't enlarge buffers beyond size of the input
35108         buffer.
35109         Patches mostly by Emil Wojak <emil@wojak.eu>.
35110         * posix/bug-regex32.c: New file.
35111         * posix/Makefile (tests): Add bug-regex32.
35112
35113         * locale/findlocale.c (_nl_find_locale): Return right away if
35114         _nl_explode_name failed.
35115         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
35116
35117         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
35118
35119         * debug/xtrace.sh: Unify messages.
35120         * malloc/memusage.sh: Likewise.
35121
35122         [BZ #12813]
35123         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
35124         time symbol from vDSO.  Substitute with vsyscall if not available.
35125         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
35126         __vdso_time.
35127
35128         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
35129         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
35130         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
35131         Add sendmmsg and internal_sendmmsg.
35132         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
35133         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
35134         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
35135
35136         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
35137         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
35138         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
35139
35140 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
35141
35142         [BZ #12813]
35143         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
35144         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
35145         available.
35146         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
35147         __vdso_getcpu.
35148
35149         [BZ #12814]
35150         * iconvdata/Makefile (tests): Add bug-iconv9.
35151         * iconvdata/bug-iconv9.c: New file.
35152
35153 2011-05-27  Andreas Schwab  <schwab@redhat.com>
35154
35155         [BZ #12814]
35156         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
35157
35158 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
35159
35160         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
35161         (struct user_regs_struct): Change intcs field back to cs.
35162
35163 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
35164
35165         * po/ja.po: Update from translation team.
35166
35167 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
35168
35169         [BZ #12795]
35170         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
35171         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
35172
35173 2011-05-20  Andreas Schwab  <schwab@redhat.com>
35174
35175         * stdlib/longlong.h: Update from GCC.
35176
35177 2011-05-23  Andreas Schwab  <schwab@redhat.com>
35178
35179         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
35180         parameter name.
35181         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
35182         Add parameter name.
35183         (__sysconf): Pass it down.
35184
35185 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
35186
35187         [BZ #12671]
35188         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
35189         some situations.
35190         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
35191         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
35192         add in in __libc_use_alloca calls.  Adjust callers.
35193         (glob): Use malloc in some situations.
35194
35195         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
35196         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
35197         pltexit.
35198
35199 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
35200
35201         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
35202         and CLOCK_BOOTTIME_ALARM.
35203
35204         [BZ #12782]
35205         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
35206         is returned.
35207
35208         * string/_strerror.c (__strerror_r): Print negative errors as signed
35209         numbers.
35210
35211         [BZ #12777]
35212         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
35213         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
35214         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
35215
35216         * configure.in: Fix typo in redirection and correct removal of test
35217         files in two cases.
35218
35219         [BZ #12788]
35220         * locale/setlocale.c (new_composite_name): Fix test to check for
35221         identical name of all categories.
35222
35223         [BZ #12792]
35224         * libio/filedoalloc.c (local_isatty): New function.
35225         (_IO_file_doallocate): Use local_isatty.
35226         * stdio-common/perror.c (perror): In case a new stream is used
35227         forward the stream error.
35228         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
35229         error flag.
35230
35231 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
35232
35233         [BZ #11869]
35234         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
35235         alloca.
35236         * include/alloca.h (extend_alloca_account): Define.
35237
35238         [BZ #11857]
35239         * posix/regex.h: Fix comments with documentation of user-accessible
35240         fields after compilation and describe correct free'ing of pattern
35241         after re_compile_pattern.
35242         Patch by Reuben Thomas <rrt@sc3d.org>.
35243
35244 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
35245
35246         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
35247         and -mno-altivec to prevent the compiler from using Altivec and/or
35248         VSX instructions when the corresponding registers are not available.
35249
35250 2011-05-19  Andreas Schwab  <schwab@redhat.com>
35251
35252         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
35253
35254 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
35255
35256         * libio/freopen.c (freopen): Use __dup2, not dup2.
35257         * libio/freopen64.c (freopen64): Likewise.
35258
35259 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
35260
35261         [BZ #12775]
35262         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
35263         * math/Makefile (tests): Add test-powl.
35264         (CFLAGS-test-powl.c): Define.
35265         * math/test-powl.c: New file.
35266
35267 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
35268
35269         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
35270
35271 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
35272
35273         [BZ #11837]
35274         * iconvdata/gb18030.c: Update to GB18020-2005.
35275
35276 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
35277
35278         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
35279         RE_SYNTAX_POSIX_AWK): Update to match recent development.
35280         Patch by Aharon Robbins <arnold@skeeve.com>.
35281
35282         [BZ #11892]
35283         * stdlib/putenv.c (putenv): Don't always create copy of the variable
35284         on the stack.
35285
35286         [BZ #11895]
35287         * misc/pselect.c (__pselect): Handle timeout value errors hidden
35288         through underflows.
35289
35290         [BZ #12766]
35291         * misc/error.c (error_at_line): Ensure file_name and old_file_name
35292         point to strings before performing equality test for error_one_per_line
35293         mode.
35294
35295         [BZ #11697]
35296         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
35297
35298         [BZ #11820]
35299         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
35300         (struct user_fpregs_struct): Avoid __uint*_t types.
35301
35302         [BZ #6420]
35303         * malloc/mtrace.c (tr_where): Add additional parameter to point to
35304         symbol info.  Use it instead of calling _dl_addr locally.
35305         (lock_and_info): New function.
35306         (tr_freehook): Call lock_and_info and pass symbol info as additional
35307         parameter to tr_where.
35308         (tr_mallochook): Likewise.
35309         (tr_reallochook): Likewise.
35310         (tr_memalignhook): Likewise.
35311
35312         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
35313         used and couldn't be at all thread-safe.
35314
35315 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
35316
35317         * libio/freopen.c (freopen): Don't close old file descriptor
35318         before the new one is opened.  Instead dup the new file descriptor
35319         to the old one after the new stream is created.
35320         * libio/freopen64.c (freopen64): Likewise.
35321         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
35322         * libio/fileops.c (_IO_new_file_close_it): Handle new
35323         _IO_FLAGS2_NOCLOSE flag.
35324         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
35325         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
35326         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
35327         _IO_FLAGS2_NOCLOSE flag.
35328         * include/unistd.h: Add hidden_proto for dup3.
35329         Define __have_dup3.
35330         * io/dup3.c: Define hidden symbol.
35331         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
35332
35333         [BZ #7101]
35334         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
35335         when an incomplete long option is used.
35336         * posix/tst-getopt_long1.c: New file.
35337         * posix/Makefile (tests): Add tst-getopt_long1.
35338
35339         [BZ #10138]
35340         * scripts/config.guess: Update from autoconf-2.68.
35341         * scripts/config.sub: Likewise.
35342
35343         [BZ #10157]
35344         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
35345         tests into ...
35346         (has_cpuclock): ...this.  New function.
35347         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
35348         macro here based on has_cpuclock code.
35349
35350         [BZ #10149]
35351         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
35352         First byte (not low byte) is now always NUL.
35353         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
35354
35355         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
35356         Use non-cancelable interfaces.
35357
35358         [BZ #9809]
35359         * locale/iso-639.def: Add entry for Sorani.
35360
35361         [BZ #11901]
35362         * include/stdlib.h: Move include protection to the right place.
35363         Define abort_msg_s.  Declare __abort_msg with it.
35364         * stdlib/abort.c (__abort_msg): Adjust type.
35365         * assert/assert.c (__assert_fail_base): New function.  Majority
35366         of code from __assert_fail.  Allocate memory for __abort_msg with
35367         mmap.
35368         (__assert_fail): Now call __assert_fail_base.
35369         * assert/assert-perr.c: Remove bulk of implementation.  Use
35370         __assert_fail_base.
35371         * include/assert.hL Declare __assert_fail_base.
35372         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
35373         mmap.
35374         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
35375
35376 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
35377
35378         [BZ #11952]
35379         [BZ #12453]
35380         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
35381         until all modules are registered in the DTV.
35382         * elf/Makefile: Add rules to build and run tst-tls19.
35383         * elf/tst-tls19.c: New file.
35384         * elf/tst-tls19mod1.c: New file.
35385         * elf/tst-tls19mod2.c: New file.
35386         * elf/tst-tls19mod3.c: New file.
35387         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
35388
35389         [BZ #12083]
35390         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
35391         correctly.
35392
35393         [BZ #12601]
35394         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
35395         two-byte sequence errors.
35396         * iconvdata/Makefile (tests): Add bug-iconv8.
35397         * iconvdata/bug-iconv8.c: New file.
35398
35399         [BZ #12626]
35400         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
35401         buf2 definition.
35402
35403         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
35404
35405         [BZ #12432]
35406         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
35407         (dummy_getcfa): New function.
35408         (init): Get _Unwind_GetCFA address, use dummy if not found.
35409         (backtrace_helper): In recursion check, also check whether CFA changes.
35410         (__backtrace): Completely initialize arg.
35411
35412         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
35413         storing incomplete byte sequence in state object.  Avoid testing for
35414         guaranteed too small input if we know there is enough data available.
35415
35416 2011-05-11  Andreas Schwab  <schwab@redhat.com>
35417
35418         * Makeconfig (+link-pie): Indent.
35419         * Rules (binaries-pie): Define if $(have-fpie) and
35420         $(build-shared).
35421         (binaries-shared): Also filter out $(binaries-pie).
35422         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
35423         * nscd/Makefile (others-pie): Add nscd.
35424         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
35425         ($(objpfx)nscd): Remove command override.
35426         * login/Makefile (others-pie): Add pt_chown.
35427         ($(objpfx)pt_chown): Remove command override.
35428         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
35429         remove command overrides.
35430
35431 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
35432
35433         * libio/tst_putwc.c: Fix error messages.
35434
35435         [BZ #12724]
35436         * libio/fileops.c (_IO_new_file_close_it): Always flush when
35437         currently writing and seek to current position when not.
35438         * libio/Makefile (tests): Add bug-fclose1.
35439         * libio/bug-fclose1.c: New file.
35440
35441 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
35442
35443         [BZ #12511]
35444         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
35445         don't set DF_1_NODELETE here.
35446         (do_lookup_x): When entering new entry test for copy relocation
35447         and if necessary set DF_1_NODELETE flag.
35448         * elf/tst-unique4.cc: New file.
35449         * elf/tst-unique4.h: New file.
35450         * elf/tst-unique4lib.cc: New file.
35451         * elf/Makefile: Add rules to build and run tst-unique4.
35452         Patch by Piotr Bury <pbury@goahead.com>.
35453
35454 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
35455
35456         [BZ #12052]
35457         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
35458
35459         [BZ #12625]
35460         * misc/mntent_r.c (addmntent): Flush the stream after the output
35461
35462         [BZ #12393]
35463         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
35464         (is_trusted_path_normalize): Skip initial colon.  Append slash
35465         to empty buffer.  Duplicate is_trusted_path code but allow
35466         constructed patch to be prefix.
35467         (is_dst): Allow $ORIGIN followed by /.
35468         (_dl_dst_substitute): Correct clearing of check_for_trusted.
35469         Correct testing of result of is_trusted_path_normalize
35470         (decompose_rpath): Fix warning.
35471
35472 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
35473
35474         [BZ #11257]
35475         * grp/initgroups.c (internal_getgrouplist): When we found the service
35476         list through the initgroups entry in nsswitch.conf do not always
35477         continue on a successful lookup.  Don't always use the
35478         __nss_group_database value if it is set.
35479         * nss/nsswitch.conf (initgroups): Change action for successful db
35480         lookup to continue for compatibility.
35481
35482 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
35483
35484         [BZ #11532]
35485         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
35486         and CP774 modules.
35487         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
35488         and CP774 modules.
35489         * iconvdata/tst-tables.sh: Likewise.
35490         * iconvdata/cp770.c: New file.
35491         * iconvdata/cp771.c: New file.
35492         * iconvdata/cp772.c: New file.
35493         * iconvdata/cp773.c: New file.
35494         * iconvdata/cp774.c: New file.
35495         * iconvdata/testdata/CP770: New file.
35496         * iconvdata/testdata/CP770..UTF8: New file.
35497         * iconvdata/testdata/CP771: New file.
35498         * iconvdata/testdata/CP771..UTF8: New file.
35499         * iconvdata/testdata/CP772: New file.
35500         * iconvdata/testdata/CP772..UTF8: New file.
35501         * iconvdata/testdata/CP773: New file.
35502         * iconvdata/testdata/CP773..UTF8: New file.
35503         * iconvdata/testdata/CP774: New file.
35504         * iconvdata/testdata/CP774..UTF8: New file.
35505
35506         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
35507         END CHARMAP line.
35508         * iconvdata/gen-8bit-gap.sh: Likewise.
35509         * iconvdata/gen-8bit.sh: Likewise.
35510
35511         * locale/iso-639.def: Add ary entry.
35512
35513         [BZ #11258]
35514         * locale/C-translit.h.in: Add U20A1 transliteration.
35515
35516         [BZ #12178]
35517         * locale/iso-639.def: Add wae entry.
35518         Patch by Kevin Bortis <bortis@translate-wae.ch>.
35519
35520         [BZ #12545]
35521         * locale/programs/localedef.c (construct_output_path): Use ssize_t
35522         for n.
35523
35524         [BZ #12711]
35525         * locale/C-translit.h.in: Add entry for U20B9.
35526         Patch by pravin.d.s@gmail.com.
35527
35528 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
35529
35530         [BZ #12713]
35531         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
35532         ENAMETOOLONG use generic getcwd.
35533         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
35534         in rtld.  Use *stat64.
35535         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
35536         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
35537         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
35538         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
35539         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
35540         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
35541         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
35542         __fstatat64 macros.
35543         * include/dirent.h: Add libc_hidden_proto for rewinddir.
35544         * dirent/rewinddir.c: Add libc_hidden_def.
35545         * sysdeps/mach/hurd/rewinddir.c: Likewise.
35546         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
35547
35548         * include/dirent.h (__alloc_dir): Add flags parameter.
35549         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
35550         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
35551         __alloc_dir.
35552         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
35553         from fdopendir if O_CLOEXEC is already set.
35554
35555 2011-03-15  Alan Modra  <amodra@gmail.com>
35556
35557         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
35558         l_tls_firstbyte_offset non-zero.  Save padding offset in
35559         l_tls_firstbyte_offset for later use.
35560         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
35561         freeing static tls block.
35562
35563 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
35564
35565         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
35566         where #ifdef was intended.  The intent is to prevent ARG_MAX from
35567         being defined by the kernel headers.
35568
35569 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
35570
35571         [BZ #12734]
35572         * resolv/resolv.h: Define RES_NOTLDQUERY.
35573         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
35574         no-tld-query and set RES_NOTLDQUERY.
35575         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
35576         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
35577         modern BIND to search name as TLD unless forbidden.
35578
35579 2011-05-07  Petr Baudis  <pasky@suse.cz>
35580             Ulrich Drepper  <drepper@gmail.com>
35581
35582         [BZ #12393]
35583         * elf/dl-load.c (fillin_rpath): Move trusted path check...
35584         (is_trusted_path): ...to here.
35585         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
35586         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
35587         using is_trusted_path_normalize() in setuid scripts.
35588
35589 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35590
35591         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
35592         __BEGIN/__END_DECLS.
35593
35594 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
35595
35596         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
35597         NSS_STATUS_NOTFOUND if no record was found.
35598
35599 2011-05-05  Andreas Schwab  <schwab@redhat.com>
35600
35601         * sunrpc/Makefile (headers): Add rpc/netdb.h.
35602         (headers-not-in-tirpc): Remove rpc/netdb.h
35603         * resolv/netdb.h: Revert last change.
35604
35605 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
35606
35607         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
35608         circular dependency between libgcc.a and libc.a.
35609
35610 2011-05-05  Andreas Schwab  <schwab@redhat.com>
35611
35612         * resolv/netdb.h: Don't include <rpc/netdb.h>.
35613         * nis/Makefile: Don't install rpcsvc/*.
35614         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
35615         instead of <rpc/types.h>.
35616         (MAXHOSTNAMELEN): Define.
35617
35618 2011-05-03  Andreas Schwab  <schwab@redhat.com>
35619
35620         * elf/ldconfig.c (add_dir): Don't crash on empty path.
35621
35622 2011-04-28  Maciej Babinski  <mbabinski@google.com>
35623
35624         [BZ #12714]
35625         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
35626         gethostbyname4_r when IPv6 results are possible.
35627
35628 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
35629
35630         [BZ #12723]
35631         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
35632         _PC_PIPE_BUF handling.
35633
35634 2011-04-30  Bruno Haible  <bruno@clisp.org>
35635
35636         [BZ #12717]
35637         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
35638         * resolv/netdb.h (getnameinfo): Change type of flags parameter
35639         to 'int'.
35640         * inet/getnameinfo.c (getnameinfo): Likewise.
35641
35642 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
35643
35644         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
35645         to groups setting in database lookup.
35646         * nss/nsswitch.conf: Add initgroups entry.
35647
35648 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
35649
35650         [BZ #12685]
35651         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
35652         mode string.
35653         Patch by Eric Blake <eblake@redhat.com>.
35654
35655 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
35656
35657         * sunrpc/Makefile (need-export-routines): Add svc_run.
35658         (routines): Remove svc_run.
35659         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
35660         * sunrpc/clnt_perr.c (clnt_perrno): Export.
35661         * sunrpc/svc_run.c (svc_run): Likewise.
35662         * sunrpc/svc_udp.c (svcudp_create): Likewise.
35663
35664 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
35665
35666         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
35667         problem in reallocation in last patch.
35668
35669 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
35670
35671         * sunrpc/Makefile: Move inclusion of Rules.
35672
35673 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
35674
35675         * nss/nss_files/files-initgroups.c: New file.
35676         * nss/Makefile (libnss_files-routines): Add files-initgroups.
35677         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
35678         _nss_files_initgroups_dyn.
35679
35680 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
35681
35682         * elf/elf.h (R_ARM_IRELATIVE): Define.
35683
35684 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
35685
35686         * po/ru.po: Update from translation team.
35687
35688 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
35689
35690         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
35691         dependencies.
35692
35693 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
35694
35695         [BZ #12653]
35696         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
35697         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
35698         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35699         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
35700         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
35701
35702 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
35703
35704         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
35705         differing bytes.
35706         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
35707         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
35708         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
35709
35710 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
35711
35712         [BZ #12420]
35713         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
35714         storing it.
35715         * stdlib/bug-getcontext.c: New file.
35716         * stdlib/Makefile: Add rules to build and run bug-getcontext.
35717
35718 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35719
35720         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
35721         instructions into .machine "z9-109".
35722         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
35723         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
35724
35725 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35726
35727         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
35728         between environment variables and auxiliary vector.
35729
35730 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
35731
35732         * Makefile: Add rules to build linkobj/libc.so.
35733         * include/libc-symbols.h: Define libc_hidden_nolink.
35734         * include/rpc/auth.h: Mark functions which are to be hidden.
35735         * include/rpc/auth_des.h: Likewise.
35736         * include/rpc/auth_unix.h: Likewise.
35737         * include/rpc/clnt.h: Likewise.
35738         * include/rpc/des_crypt.h: Likewise.
35739         * include/rpc/key_prot.h: Likewise.
35740         * include/rpc/pmap_clnt.h: Likewise.
35741         * include/rpc/pmap_prot.h: Likewise.
35742         * include/rpc/pmap_rmt.h: Likewise.
35743         * include/rpc/rpc_msg.h: Likewise.
35744         * include/rpc/svc.h: Likewise.
35745         * include/rpc/svc_auth.h: Likewise.
35746         * include/rpc/xdr.h: Likewise.
35747         * nis/Makefile: Link all DSOs against linkobj/libc.so.
35748         * nss/Makefile: Likewise.
35749         * sunrpc/Makefile: Don't install headers.  Build library with normal
35750         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
35751         * sunrpc/auth_des.c: Hide exported symbols by default, export some
35752         for the compat linking library.  Remove use of INTDEF/INTUSE.
35753         * sunrpc/auth_none.c: Likewise.
35754         * sunrpc/auth_unix.c: Likewise.
35755         * sunrpc/authdes_prot.c: Likewise.
35756         * sunrpc/authuxprot.c: Likewise.
35757         * sunrpc/clnt_gen.c: Likewise.
35758         * sunrpc/clnt_perr.c: Likewise.
35759         * sunrpc/clnt_raw.c: Likewise.
35760         * sunrpc/clnt_simp.c: Likewise.
35761         * sunrpc/clnt_tcp.c: Likewise.
35762         * sunrpc/clnt_udp.c: Likewise.
35763         * sunrpc/clnt_unix.c: Likewise.
35764         * sunrpc/des_crypt.c: Likewise.
35765         * sunrpc/des_soft.c: Likewise.
35766         * sunrpc/get_myaddr.c: Likewise.
35767         * sunrpc/key_call.c: Likewise.
35768         * sunrpc/key_prot.c: Likewise.
35769         * sunrpc/netname.c: Likewise.
35770         * sunrpc/pm_getmaps.c: Likewise.
35771         * sunrpc/pm_getport.c: Likewise.
35772         * sunrpc/pmap_clnt.c: Likewise.
35773         * sunrpc/pmap_prot.c: Likewise.
35774         * sunrpc/pmap_prot2.c: Likewise.
35775         * sunrpc/pmap_rmt.c: Likewise.
35776         * sunrpc/publickey.c: Likewise.
35777         * sunrpc/rpc_cmsg.c: Likewise.
35778         * sunrpc/rpc_common.c: Likewise.
35779         * sunrpc/rpc_dtable.c: Likewise.
35780         * sunrpc/rpc_prot.c: Likewise.
35781         * sunrpc/rpc_thread.c: Likewise.
35782         * sunrpc/rtime.c: Likewise.
35783         * sunrpc/svc.c: Likewise.
35784         * sunrpc/svc_auth.c: Likewise.
35785         * sunrpc/svc_authux.c: Likewise.
35786         * sunrpc/svc_raw.c: Likewise.
35787         * sunrpc/svc_run.c: Likewise.
35788         * sunrpc/svc_simple.c: Likewise.
35789         * sunrpc/svc_tcp.c: Likewise.
35790         * sunrpc/svc_udp.c: Likewise.
35791         * sunrpc/svc_unix.c: Likewise.
35792         * sunrpc/svcauth_des.c: Likewise.
35793         * sunrpc/xcrypt.c: Likewise.
35794         * sunrpc/xdr.c: Likewise.
35795         * sunrpc/xdr_array.c: Likewise.
35796         * sunrpc/xdr_float.c: Likewise.
35797         * sunrpc/xdr_intXX_t.c: Likewise.
35798         * sunrpc/xdr_mem.c: Likewise.
35799         * sunrpc/xdr_rec.c: Likewise.
35800         * sunrpc/xdr_ref.c: Likewise.
35801         * sunrpc/xdr_sizeof.c: Likewise.
35802         * sunrpc/xdr_stdio.c: Likewise.
35803
35804 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
35805
35806         [BZ #12650]
35807         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
35808         * sysdeps/ia64/dl-tls.h: Likewise.
35809         * sysdeps/powerpc/dl-tls.h: Likewise.
35810         * sysdeps/s390/dl-tls.h: Likewise.
35811         * sysdeps/sh/dl-tls.h: Likewise.
35812         * sysdeps/sparc/dl-tls.h: Likewise.
35813         * sysdeps/x86_64/dl-tls.h: Likewise.
35814         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
35815
35816 2011-03-14  Andreas Schwab  <schwab@redhat.com>
35817
35818         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
35819         rpath element also skip the following colon.
35820         (expand_dynamic_string_token): Add is_path parameter and pass
35821         down to DL_DST_REQUIRED and _dl_dst_substitute.
35822         (decompose_rpath): Call expand_dynamic_string_token with
35823         non-zero is_path.  Ignore empty rpaths.
35824         (_dl_map_object_from_fd): Call expand_dynamic_string_token
35825         with zero is_path.
35826
35827 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
35828
35829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
35830         Make cancelable.
35831
35832 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
35833
35834         [BZ #12655]
35835         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
35836         Patch by Filipe David Manana <fdmanana@apache.org>.
35837
35838 2011-04-07  Andreas Schwab  <schwab@redhat.com>
35839
35840         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
35841         Maintain aligned stack.
35842         (CHECK_RSP): Remove unused macro.
35843
35844 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
35845
35846         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
35847         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
35848
35849 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
35850
35851         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
35852
35853         * include/features.h: Mention __USE_XOPEN2K8 in comment.
35854
35855 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
35856
35857         [BZ #12518]
35858         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
35859         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
35860         * sysdeps/x86_64/memmove.c: New file.
35861         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
35862         (memcpy): Renamed to ...
35863         (__new_memcpy): This.
35864         (memcpy): Provide GLIBC_2_14 memcpy.
35865         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
35866         (memcpy): Provide GLIBC_2_2_5 memcpy.
35867
35868 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
35869
35870         [BZ #12631]
35871         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
35872
35873 2011-03-30  Andreas Schwab  <schwab@redhat.com>
35874
35875         * misc/syncfs.c: New file.
35876         * misc/Makefile (routines): Add syncfs.
35877         * posix/unistd.h: Declare syncfs.
35878         * sysdeps/unix/syscalls.list: Add syncfs.
35879
35880 2011-04-01  Andreas Schwab  <schwab@redhat.com>
35881
35882         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
35883         open_by_handle_at.
35884         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
35885         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
35886         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
35887         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
35888         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
35889         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
35890         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
35891
35892 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
35893
35894         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
35895         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
35896         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
35897         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
35898         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
35899         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
35900         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
35901
35902         * io/Makefile: Compile fallocate.c, fallocate64.c, and
35903         sync_file_range.c with -fexceptions.
35904         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
35905         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
35906         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
35907         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
35908         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
35909         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
35910         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
35911         sync_file_range as cancellation point
35912         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
35913         now a wrapper around __call_sync_file_range with cancellation handling.
35914         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
35915         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
35916         function name to __call_sync_file_range.
35917         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
35918         Add call_sync_file_range.
35919
35920 2011-04-01  Andreas Schwab  <schwab@redhat.com>
35921
35922         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
35923         bits/timex.h.
35924
35925 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
35926
35927         * iconv/iconv.h: Fix typo in comment.
35928         * io/fcntl.h: Likewise.
35929         * libio/stdio.h: Likewise.
35930         * posix/spawn.h: Likewise.
35931         * posix/unistd.h: Likewise.
35932         * stdlib/stdlib.h: Likewise.
35933         * time/time.h: Likewise.
35934         * wcsmbs/wchar.h: Likewise.
35935
35936         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
35937         open_by_handle): Add.
35938         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
35939         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
35940         Augment a few comments.
35941         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
35942         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
35943         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
35944         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
35945         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
35946         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
35947         open_by_handle.
35948
35949         * io/fcntl.h (AT_EMPTY_PATH): Define.
35950
35951 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
35952
35953         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
35954         * sysdeps/unix/sysv/linux/bits/time.h: New file.
35955         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
35956         to...
35957         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
35958         * Versions.def: Add GLIBC_2.14.
35959         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
35960         Export.
35961
35962 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
35963
35964         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
35965         round counter.
35966         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
35967
35968 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
35969
35970         [BZ #12597]
35971         * string/test-strncmp.c (do_page_test): New function.
35972         (check2): Likewise.
35973         (test_main): Call check2.
35974         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
35975
35976 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
35977
35978         [BZ #12587]
35979         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
35980         Handle cache information in CPU leaf 4.
35981         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
35982
35983 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
35984
35985         [BZ #12583]
35986         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
35987         character representation.
35988         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
35989
35990 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
35991
35992         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
35993         END(__isnan) to END(__isnanf) to match function entry point/label
35994         EALIGN(__isnanf,...).
35995
35996 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
35997
35998         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
35999
36000 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
36001
36002         [BZ #12510]
36003         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
36004         copy from the symbol referenced in the relocation to initialize the
36005         used variable.
36006         Patch by Piotr Bury <pbury@goahead.com>.
36007         * elf/Makefile: Add rules to build and tst-unique3.
36008         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
36009         * elf/tst-unique3.cc: New file.
36010         * elf/tst-unique3.h: New file.
36011         * elf/tst-unique3lib.cc: New file.
36012         * elf/tst-unique3lib2.cc: New file.
36013
36014         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
36015
36016 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
36017
36018         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
36019         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
36020         to _start.
36021
36022 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
36023
36024         * elf/dl-load.c (_dl_map_object): If we are looking for the first
36025         to-be-loaded object along a path to loader is ld.so.
36026
36027 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36028             Ulrich Drepper  <drepper@gmail.com>
36029
36030         * sysdeps/x86_64/memset.S: After aligning destination, code
36031         branches to different locations depending on the value of
36032         misalignment, when multiarch is enabled. Fix this.
36033
36034 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36035
36036         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
36037         Set _x86_64_preferred_memory_instruction for AMD processsors.
36038         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36039         Set bit_Prefer_SSE_for_memop for AMD processors.
36040
36041 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
36042
36043         * libio/fmemopen.c (fmemopen): Optimize a bit.
36044
36045 2011-03-03  Andreas Schwab  <schwab@redhat.com>
36046
36047         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
36048
36049 2011-03-03  Roland McGrath  <roland@redhat.com>
36050
36051         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
36052
36053 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
36054
36055         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
36056         __bzero_ultra1 instead of __memset_ultra1.
36057
36058 2011-02-23  Andreas Schwab  <schwab@redhat.com>
36059             Ulrich Drepper  <drepper@gmail.com>
36060
36061         [BZ #12509]
36062         * include/link.h (struct link_map): Add l_orig_initfini.
36063         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
36064         returning unsuccessfully.
36065         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
36066         close of a file loaded at startup, restore the original l_initfini
36067         list.
36068         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
36069         list, store the pointer.
36070         * elf/Makefile ($(objpfx)noload-mem): New rule.
36071         (noload-ENV): Define.
36072         (tests): Add $(objpfx)noload-mem.
36073         * elf/noload.c: Include <memcheck.h>.
36074         (main): Call mtrace.  Close all opened handles.
36075
36076 2011-02-17  Andreas Schwab  <schwab@redhat.com>
36077
36078         [BZ #12454]
36079         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
36080         dependencies are missing.
36081
36082 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36083
36084         Fix __if_freereq crash: Unlike the generic version which uses free,
36085         Hurd needs munmap.
36086         * sysdeps/mach/hurd/ifreq.h: New file.
36087
36088 2011-01-27  Petr Baudis  <pasky@suse.cz>
36089             Ulrich Drepper  <drepper@gmail.com>
36090
36091         [BZ 12445]#
36092         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
36093         to extend_alloca().
36094         * stdio-common/bug23.c: New file.
36095         * stdio-common/Makefile (tests): Add bug23.
36096
36097 2010-09-28  Andreas Schwab  <schwab@redhat.com>
36098             Ulrich Drepper  <drepper@gmail.com>
36099
36100         [BZ #12489]
36101         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
36102         before performing relro protection.  At old place add assertion
36103         to make sure nothing changed.
36104
36105 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
36106             Glauber de Oliveira Costa  <glommer@gmail.com>
36107
36108         * elf/elf.h: Add new ARM TLS relocs.
36109
36110 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
36111
36112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
36113         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
36114         cast from r3.
36115         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
36116         'tests' variable.
36117         * sysdeps/wordsize-64/tst-writev.c: New file.
36118
36119 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
36120
36121         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
36122         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
36123         insns in _dl_start to prevent a TOC reference before relocs are
36124         resolved.
36125
36126 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
36127
36128         [BZ #12469]
36129         * Makeconfig: Remove RANLIB definition.
36130         * Makerules: Don't use RANLIB.
36131         * aclocal.m4: Remove ranlib test.
36132         * configure.in: No need to check for ranlib.
36133         * elf/rtld-Rules: Don't use RANLIB.
36134
36135 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36136
36137         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
36138         protection macro.
36139         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
36140         inclusion protection macro.
36141
36142         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
36143         SIGRTMIN and SIGRTMAX and print information in that case only when
36144         SIGRTMIN is defined.
36145
36146 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
36147
36148         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
36149         arginfo fn returning -1.
36150
36151         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
36152         and thousands string is zero terminated.
36153
36154 2011-02-03  Andreas Schwab  <schwab@redhat.com>
36155
36156         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
36157         sysdeps/unix/sysv/linux/bits/socket.h.
36158
36159 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36160
36161         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
36162         (__CPU_COUNT): Remove old macros.
36163         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
36164         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
36165         (__CPU_ALLOC, __CPU_FREE): Add macros.
36166         (__sched_cpualloc, __sched_cpufree): Add declarations.
36167
36168 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
36169
36170         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
36171         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
36172         * nscd/aicache.c (addhstaiX): Return timeout of added value.
36173         (readdhstai): Return value of addhstaiX call.
36174         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
36175         (addgrbyX): Return value returned by cache_addgr.
36176         (readdgrbyname): Return value returned by addgrbyX.
36177         (readdgrbygid): Likewise.
36178         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
36179         (addpwbyX): Return value returned by cache_addpw.
36180         (readdpwbyname): Return value returned by addhstbyX.
36181         (readdpwbyuid): Likewise.
36182         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
36183         (addservbyX): Return value returned by cache_addserv.
36184         (readdservbyname): Return value returned by addservbyX:
36185         (readdservbyport): Likewise.
36186         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
36187         (addhstbyX): Return value returned by cache_addhst.
36188         (readdhstbyname): Return value returned by addhstbyX.
36189         (readdhstbyaddr): Likewise.
36190         (readdhstbynamev6): Likewise.
36191         (readdhstbyaddrv6): Likewise.
36192         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
36193         (readdinitgroups): Return value returned by addinitgroupsX.
36194         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
36195         (prune_cache): Keep track of timeout value of re-added entries.
36196         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
36197         * nscd/nscd.h: Adjust prototypes of readd* functions.
36198
36199 2011-02-04  Roland McGrath  <roland@redhat.com>
36200
36201         * nis/nis_server.c (nis_servstate): Use the right name for 0.
36202         (nis_stats): Likewise.
36203         * nis/nis_modify.c (nis_modify): Likewise.
36204         * nis/nis_remove.c (nis_remove): Likewise.
36205         * nis/nis_add.c (nis_add): Likewise.
36206
36207         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
36208
36209         * posix/fnmatch_loop.c: Add some consts.
36210
36211         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
36212
36213 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
36214
36215         [BZ #12460]
36216         * config.make.in (config-cflags-novzeroupper): Define.
36217         * configure.in: Substitute libc_cv_cc_novzeroupper.
36218         * elf/Makefile (AVX-CFLAGS): Define.
36219         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
36220         (CFLAGS-tst-auditmod4a.c): Likewise.
36221         (CFLAGS-tst-auditmod4b.c): Likewise.
36222         (CFLAGS-tst-auditmod6b.c): Likewise.
36223         (CFLAGS-tst-auditmod6c.c): Likewise.
36224         (CFLAGS-tst-auditmod7b.c): Likewise.
36225         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
36226
36227 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
36228
36229         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
36230         function to the callback.
36231         Patch partly by Jiri Olsa <jolsa@redhat.com>.
36232
36233 2011-02-02  Andreas Schwab  <schwab@redhat.com>
36234
36235         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
36236         of errno.
36237
36238 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
36239
36240         [BZ #11724]
36241         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
36242         of constructors.
36243         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
36244         of destructors.
36245         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
36246
36247         [BZ #11724]
36248         * elf/Makefile: Add rules to build and run new test.
36249         * elf/tst-initorder.c: New file.
36250         * elf/tst-initorder.exp: New file.
36251         * elf/tst-initordera1.c: New file.
36252         * elf/tst-initordera2.c: New file.
36253         * elf/tst-initordera3.c: New file.
36254         * elf/tst-initordera4.c: New file.
36255         * elf/tst-initorderb1.c: New file.
36256         * elf/tst-initorderb2.c: New file.
36257         * elf/tst-order-a1.c: New file.
36258         * elf/tst-order-a2.c: New file.
36259         * elf/tst-order-a3.c: New file.
36260         * elf/tst-order-a4.c: New file.
36261         * elf/tst-order-b1.c: New file.
36262         * elf/tst-order-b2.c: New file.
36263         * elf/tst-order-main.c: New file.
36264         New test case by George Gensure <werkt0@gmail.com>.
36265
36266 2010-10-01  Andreas Schwab  <schwab@redhat.com>
36267
36268         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
36269         decoding ACE if AI_CANONIDN.
36270
36271 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
36272
36273         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
36274
36275 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
36276
36277         * version.h (RELEASE): Bump for 2.13 release.
36278         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
36279
36280         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
36281
36282         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
36283         MADV_NOHUGEPAGE.
36284         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
36285         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
36286         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36287         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36288         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36289         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
36290
36291         * posix/getconf.c: Update copyright year.
36292         * catgets/gencat.c: Likewise.
36293         * csu/version.c: Likewise.
36294         * debug/catchsegv.sh: Likewise.
36295         * debug/xtrace.sh: Likewise.
36296         * elf/ldconfig.c: Likewise.
36297         * elf/ldd.bash.in: Likewise.
36298         * elf/sprof.c (print_version): Likewise.
36299         * iconv/iconv_prog.c: Likewise.
36300         * iconv/iconvconfig.c: Likewise.
36301         * locale/programs/locale.c: Likewise.
36302         * locale/programs/localedef.c: Likewise.
36303         * malloc/memusage.sh: Likewise.
36304         * malloc/mtrace.pl: Likewise.
36305         * nscd/nscd.c (print_version): Likewise.
36306         * nss/getent.c: Likewise.
36307
36308         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
36309         PF_CAIF, and PF_ALG.
36310         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
36311
36312 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
36313
36314         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
36315         (modules-names): Use them.
36316         (ifunc-test-modules, ifunc-pie-tests): Define.
36317         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
36318         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
36319         (test-extras): Likewise.
36320         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
36321         $(compile-command.c).
36322         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
36323         (all-built-dso): Define.
36324         (check-textrel.out, check-execstack.out): Depend on it.
36325
36326         * configure.in: Don't override --enable-multi-arch.
36327
36328 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
36329
36330         [BZ #6812]
36331         * nscd/hstcache.c (tryagain): Define.
36332         (cache_addhst): Return tryagain not notfound for temporary errors.
36333         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
36334         failed.
36335
36336 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
36337
36338         [BZ #10563]
36339         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
36340         to make the syscall.
36341         * sysdeps/unix/sysv/linux/setgroups.c: New file.
36342
36343         [BZ #12378]
36344         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
36345         and fall back to matching as normal character if the string ends before
36346         the matching ']' is found.  This is what POSIX requires.
36347         * posix/testfnm.c: Adjust test result.
36348         * posix/globtest.sh: Adjust test result.  Add new test.
36349         * posix/tst-fnmatch.input: Likewise.
36350         * posix/tst-fnmatch2.c: Add new test.
36351
36352 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
36353
36354         * elf/Makefile (check-execstack): Revert last change.  Depend on
36355         check-execstack.h.
36356         (check-execstack.h): New target.
36357         (generated): Add check-execstack.h.
36358         * elf/check-execstack.c: Include "check-execstack.h".
36359         (main): Revert last change.
36360         (handle_file): Return zero if GNU_STACK is absent and
36361         DEFAULT_STACK_PERMS doesn't include PF_X.
36362
36363 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
36364
36365         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
36366         in child fails because the descriptor is already closed.
36367         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
36368         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
36369         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
36370
36371         [BZ #12397]
36372         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
36373         syscall.
36374
36375         [BZ #10484]
36376         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
36377         temporary buffer used to handle multi lookups locally.
36378         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
36379
36380 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
36381
36382         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
36383         loader is ld.so.
36384
36385 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
36386
36387         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
36388         alignment for SSE2.
36389
36390 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
36391
36392         [BZ #12394]
36393         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
36394         characters.  When rounding increased number of integer digits recompute
36395         number of groups.
36396         * stdio-common/tst-grouping.c: New file.
36397         * stdio-common/Makefile: Add rules to build and run tst-grouping.
36398
36399 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
36400
36401         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
36402         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
36403
36404         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
36405         void.
36406         * bits/select.h: Likewise.
36407
36408 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
36409
36410         * po/ja.po: Update from translation team.
36411
36412 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
36413
36414         [BZ #11155]
36415         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
36416         implementation just like for lxstat, fxstatat, et al.
36417
36418 2010-12-27  Jim Meyering  <meyering@redhat.com>
36419
36420         [BZ #12348]
36421         * posix/regexec.c (build_trtable): Return failure indication upon
36422         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
36423
36424 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
36425
36426         [BZ #12201]
36427         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
36428         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
36429         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
36430         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
36431
36432         [BZ #12207]
36433         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
36434
36435         [BZ #12204]
36436         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
36437         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
36438
36439 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
36440
36441         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
36442         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
36443         script has SORT_BY_INIT_PRIORITY.
36444         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
36445         NO_CTORS_DTORS_SECTIONS is defined.
36446         * elf/soinit.c: Likewise.
36447         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
36448         NO_CTORS_DTORS_SECTIONS is defined.
36449         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
36450         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
36451         * sysdeps/sh/init-first.c: Likewise.
36452         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
36453
36454 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
36455
36456         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
36457         always use the slow path.
36458
36459 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
36460
36461         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
36462         similar rule which adds the sysdep directories to the header search in
36463         order to pick up the correct platform stackinfo.h.
36464         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
36465         perform test if it is, otherwise return successfully without testing.
36466         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
36467         DEFAULT_STACK_PERMS define in stackinfo.h.
36468         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
36469         defined in stackinfo.h.
36470         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
36471         DEFAULT_STACK_PERMS defined in stackinfo.h.
36472         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
36473         * sysdeps/ia64/stackinfo.h: Likewise.
36474         * sysdeps/s390/stackinfo.h: Likewise.
36475         * sysdeps/sh/stackinfo.h: Likewise.
36476         * sysdeps/sparc/stackinfo.h: Likewise.
36477         * sysdeps/x86_64/stackinfo.h: Likewise.
36478         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
36479         PF_X for powerpc64.  Retain PF_X for powerpc32.
36480
36481 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
36482
36483         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
36484         accurately.
36485         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
36486         GETDENTS_64BIT_ALIGNED.
36487
36488 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
36489
36490         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
36491
36492 2010-12-10  Andreas Schwab  <schwab@redhat.com>
36493
36494         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
36495         _GNU_SOURCE.
36496
36497         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
36498         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
36499         Remove __restrict.
36500         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
36501         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
36502
36503 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
36504
36505         [BZ #11655]
36506         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
36507         are initialized.
36508
36509 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
36510
36511         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
36512
36513 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
36514
36515         * po/it.po: Update from translation team.
36516
36517 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
36518
36519         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
36520         unused codes.
36521
36522 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
36523
36524         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
36525
36526 2010-11-24  Andreas Schwab  <schwab@redhat.com>
36527
36528         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
36529         specially.
36530         (gaih_getanswer_slice): Likewise.
36531
36532 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
36533
36534         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
36535
36536 2010-05-31  Petr Baudis  <pasky@suse.cz>
36537
36538         [BZ #11149]
36539         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
36540         silently even in the chroot mode.
36541
36542 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
36543
36544         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
36545         last patch a bit.  Pretty printing
36546
36547 2010-05-31  Petr Baudis <pasky@suse.cz>
36548
36549         [BZ #10085]
36550         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
36551         initialization of skip_initgroups_dyn.
36552
36553 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
36554
36555         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
36556         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
36557
36558 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
36559
36560         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
36561
36562 2010-11-11  Andreas Schwab  <schwab@redhat.com>
36563
36564         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
36565         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
36566         (tst-fnmatch-ENV): Set MALLOC_TRACE.
36567         ($(objpfx)tst-fnmatch-mem): New rule.
36568         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
36569         * posix/tst-fnmatch.c (main): Call mtrace.
36570
36571 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
36572
36573         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36574         Support Intel processor model 6 and model 0x2c.
36575
36576 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
36577
36578         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
36579           signed comparison.
36580
36581 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
36582
36583         [BZ #12205]
36584         * string/test-strncasecmp.c (check_result): New function.
36585         (do_one_test): Use it.
36586         (check1): New function.
36587         (test_main): Use it.
36588         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
36589         Support strcasecmp and strncasecmp.
36590
36591 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
36592
36593         [BZ #12194]
36594         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
36595         * sysdeps/x86_64/bits/byteswap.h: Likewise.
36596
36597 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
36598
36599         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
36600         IFUNC support.
36601         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
36602         memset-x86-64.
36603         * sysdeps/x86_64/multiarch/bzero.S: New file.
36604         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
36605         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
36606         * sysdeps/x86_64/multiarch/memset.S: New file.
36607         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
36608         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36609         Set bit_Prefer_SSE_for_memop for Intel processors.
36610         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
36611         Define.
36612         (index_Prefer_SSE_for_memop): Define.
36613         (HAS_PREFER_SSE_FOR_MEMOP): Define.
36614
36615 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
36616
36617         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
36618         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
36619
36620 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
36621
36622         [BZ #12191]
36623         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
36624         (__x86_64_raw_data_cache_size_half): Likewise.
36625         (__x86_64_raw_shared_cache_size): Likewise.
36626         (__x86_64_raw_shared_cache_size_half): Likewise.
36627
36628         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
36629         (__x86_64_raw_data_cache_size_half): Likewise.
36630         (__x86_64_raw_shared_cache_size): Likewise.
36631         (__x86_64_raw_shared_cache_size_half): Likewise.
36632         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
36633         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
36634         and __x86_64_raw_shared_cache_size_half.  Round
36635         __x86_64_data_cache_size_half, __x86_64_data_cache_size
36636         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
36637         to multiple of 256 bytes.
36638
36639 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
36640
36641         [BZ #12167]
36642         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
36643         of inacessible symlinks.  Verify result of symlink before returning it.
36644         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
36645         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
36646
36647 2010-10-28  Erich Ritz  <erichritz@gmail.com>
36648
36649         * math/math.h (isinf): Fix typo in comment.
36650
36651 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
36652
36653         * po/da.po: Update from translation team.
36654
36655 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
36656
36657         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
36658         is added to the list.
36659
36660 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36661             Ulrich Drepper  <drepper@gmail.com>
36662
36663         * elf/dl-object.c (_dl_new_object): Don't append the new object to
36664         the global list here.  Move code to...
36665         (_dl_add_to_namespace_list): ...here.  New function.
36666         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
36667         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
36668         * elf/dl-load.c (lose): Don't remove the element from the list.
36669         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
36670         (_dl_map_object): Likewise.
36671
36672 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
36673
36674         [BZ #12159]
36675         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
36676         into all bytes of SSE register.
36677         Patch by Richard Li <richardpku@gmail.com>.
36678
36679 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
36680
36681         [BZ #12140]
36682         * malloc/malloc.c (_int_free): Fill correct number of bytes when
36683         perturbing.
36684
36685 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
36686
36687         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
36688         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
36689         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
36690         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
36691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
36692         submachine.
36693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
36694
36695 2010-10-22  Andreas Schwab  <schwab@redhat.com>
36696
36697         * include/dlfcn.h (__RTLD_SECURE): Define.
36698         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
36699         mode & __RTLD_SECURE instead.
36700         (open_path): Rename preloaded parameter to secure.
36701         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
36702         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
36703         * elf/dl-deps.c (openaux): Likewise.
36704         * elf/rtld.c (struct map_args): Remove is_preloaded.
36705         (map_doit): Don't use it.
36706         (dl_main): Likewise.
36707         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
36708         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
36709
36710 2010-09-09  Andreas Schwab  <schwab@redhat.com>
36711
36712         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
36713         (sysd-rules-targets): Remove duplicates.
36714         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
36715         rtld-%.$o dependency.
36716
36717 2010-10-18  Andreas Schwab  <schwab@redhat.com>
36718
36719         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
36720         _dl_map_object do it.
36721
36722 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
36723
36724         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
36725         fast fma builtins, define the macros in the C99 standard.
36726         (FP_FAST_FMAF): Likewise.
36727         (FP_FAST_FMAL): Likewise.
36728         * sysdeps/x86_64/bits/mathdef.h: Likewise.
36729
36730         * bits/mathdef.h: Update copyright year.
36731         * sysdeps/powerpc/bits/mathdef.h: Likewise.
36732
36733 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
36734
36735         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
36736         builtins, define the macros in the C99 standard.
36737         (FP_FAST_FMAF): Likewise.
36738         (FP_FAST_FMAL): Likewise.
36739         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
36740         multiply/add.
36741         (FP_FAST_FMAF): Likewise.
36742
36743 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
36744
36745         [BZ #3268]
36746         * math/libm-test.inc (fma_test): Some new testcases.
36747         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
36748         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
36749         y and infinite z.  Do multiplication by C already in long double.
36750         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
36751         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
36752         y and infinite z.  Do bitwise or of inexact bit into u.d.
36753         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
36754         * sysdeps/i386/fpu/s_fmaf.S: Removed.
36755         * sysdeps/i386/fpu/s_fma.S: Removed.
36756         * sysdeps/i386/fpu/s_fmal.S: Removed.
36757
36758 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
36759
36760         [BZ #3268]
36761         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
36762         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
36763         computation is not scheduled after fetestexcept.  Fix value
36764         of minimum denormal long double.
36765
36766 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
36767
36768         [BZ #3268]
36769         * math/libm-test.inc (fma_test): Add some more tests.
36770         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
36771         correctly.
36772
36773 2010-10-15  Andreas Schwab  <schwab@redhat.com>
36774
36775         * scripts/data/localplt-s390-linux-gnu.data: New file.
36776         * scripts/data/localplt-s390x-linux-gnu.data: New file.
36777
36778 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
36779
36780         [BZ #3268]
36781         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
36782         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
36783         instead of dbl-64.
36784         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
36785         inlines.
36786         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
36787         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
36788         if one of x and y is very large and the other is subnormal.
36789         * sysdeps/s390/fpu/s_fmaf.c: New file.
36790         * sysdeps/s390/fpu/s_fma.c: New file.
36791         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
36792         * sysdeps/powerpc/fpu/s_fma.S: New file.
36793         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
36794         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
36795         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
36796
36797 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
36798
36799         [BZ #3268]
36800         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
36801         fma tests.
36802         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
36803         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
36804         * sysdeps/i386/i686/multiarch/s_fma.c: Include
36805         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
36806         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
36807         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
36808         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
36809
36810 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
36811
36812         [BZ #12078]
36813         * posix/regcomp.c (parse_branch): One more memory leak plugged.
36814         * posix/bug-regex31.input: Add test case.
36815
36816 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
36817
36818         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
36819         * posix/bug-regex31.input: New file.
36820
36821         [BZ #12078]
36822         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
36823         (parse_sub_exp): Fix last change, use postorder.
36824
36825         * posix/bug-regex31.c: New file.
36826         * posix/Makefile: Add rules to build and run bug-regex31.
36827
36828         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
36829
36830         [BZ #12078]
36831         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
36832
36833         [BZ #12108]
36834         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
36835         to have entries in sys_siglist.
36836
36837         [BZ #12093]
36838         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
36839         be NULL.
36840
36841 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
36842
36843         [BZ #3268]
36844         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
36845         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
36846         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
36847         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
36848         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
36849         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
36850         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
36851         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
36852         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
36853         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
36854         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
36855         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
36856         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
36857         * math/ftestexcept.c (fetestexcept): Likewise.
36858         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
36859         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
36860         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
36861         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
36862         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
36863         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
36864         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
36865
36866 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
36867
36868         [BZ #12107]
36869         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
36870         newline.
36871
36872 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
36873
36874         * string/bug-strstr1.c: New file.
36875         * string/Makefile: Add rules to build and run bug-strstr1.
36876
36877 2010-10-05  Eric Blake  <eblake@redhat.com>
36878
36879         [BZ #12092]
36880         * string/str-two-way.h (two_way_long_needle): Always clear memory
36881         when skipping input due to the shift table.
36882
36883 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
36884
36885         [BZ #12005]
36886         * malloc/mcheck.c: Handle large requests.
36887
36888         [BZ #12077]
36889         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
36890         for strncmp and strncasecmp.
36891         * string/stratcliff.c: Add tests for strcmp and strncmp.
36892         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
36893
36894 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36895
36896         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
36897         __set_fpscr.
36898
36899 2010-09-30  Andreas Jaeger  <aj@suse.de>
36900
36901         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
36902         (CGROUP_SUPER_MAGIC): Define.
36903         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
36904         Handle btrfs and cgroup file systems.
36905         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
36906         Likewise.
36907
36908 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
36909
36910         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
36911         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
36912
36913 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36914
36915         [BZ #12067]
36916         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
36917         trying to locate the ELF header.
36918
36919 2010-09-27  Andreas Schwab  <schwab@redhat.com>
36920
36921         [BZ #11611]
36922         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
36923         Mask out sign-bit copies when constructing f_fsid.
36924
36925 2010-09-24  Petr Baudis <pasky@suse.cz>
36926
36927         * debug/stack_chk_fail_local.c: Add missing licence exception.
36928         * debug/warning-nop.c: Likewise.
36929
36930 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
36931
36932         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
36933         implementing getdents64 using getdents syscall, set d_type if
36934         __ASSUME_GETDENTS32_D_TYPE.
36935
36936 2010-09-16  Andreas Schwab  <schwab@redhat.com>
36937
36938         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
36939         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
36940
36941 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
36942
36943         [BZ #12037]
36944         * posix/unistd.h: Undo change of feature selection for ftruncate from
36945         2010-01-11.
36946
36947 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
36948
36949         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
36950         detection.
36951
36952 2010-09-20  Andreas Schwab  <schwab@redhat.com>
36953
36954         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
36955         fanotify_mark.
36956         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
36957
36958 2010-09-14  Andreas Schwab  <schwab@redhat.com>
36959
36960         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
36961         variables after CHECK_SP call.
36962         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
36963
36964 2010-09-13  Andreas Schwab  <schwab@redhat.com>
36965             Ulrich Drepper  <drepper@redhat.com>
36966
36967         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
36968         re-relocationg ld.so.
36969         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
36970         _dl_init_paths call.
36971         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
36972         here anymore.
36973
36974 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
36975
36976         * resolv/res_init.c (__res_vinit): Count the default server we added.
36977
36978 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
36979             Ulrich Drepper  <drepper@redhat.com>
36980
36981         [BZ #11968]
36982         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
36983         (____longjmp_chk): Use %ebx for saving value across system call.
36984         Add unwind info.
36985
36986 2010-09-06  Andreas Schwab  <schwab@redhat.com>
36987
36988         * manual/Makefile: Don't mix pattern rules with normal rules.
36989
36990 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
36991
36992         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
36993         operation.
36994         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
36995         * libio/iofopncook.c (_IO_cookie_init): Likewise.
36996         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
36997         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
36998         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
36999         Likewise.
37000
37001 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
37002
37003         [BZ #11979]
37004         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
37005         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
37006
37007 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
37008
37009         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
37010         * sysdeps/x86_64/addmul_1.S: Likewise.
37011         * sysdeps/x86_64/lshift.S: Likewise.
37012         * sysdeps/x86_64/mul_1.S: Likewise.
37013         * sysdeps/x86_64/rshift.S: Likewise.
37014         * sysdeps/x86_64/sub_n.S: Likewise.
37015         * sysdeps/x86_64/submul_1.S: Likewise.
37016
37017 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37018
37019         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
37020         Define __sched_param instead of SCHED_* and sched_param when
37021         <bits/sched.h> is included with __need_schedparam defined.
37022         * bits/sched.h [__need_schedparam]
37023         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
37024         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
37025         (__defined_schedparam): Define to 1.
37026         (__sched_param): New structure, identical to sched_param.
37027         (__need_schedparam): Undefine.
37028
37029 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
37030
37031         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
37032         (epoll_create1): Declare.
37033
37034         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
37035
37036 2010-08-31  Andreas Schwab  <schwab@redhat.com>
37037
37038         [BZ #7066]
37039         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
37040         shifting retval into place.
37041
37042 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
37043
37044         * nis/rpcsvc/nis.h: Update copyright notice.
37045         * nis/rpcsvc/nis.x: Likewise.
37046         * nis/rpcsvc/nis_callback.h: Likewise.
37047         * nis/rpcsvc/nis_callback.x: Likewise.
37048         * nis/rpcsvc/nis_object.x: Likewise.
37049         * nis/rpcsvc/nis_tags.h: Likewise.
37050         * nis/rpcsvc/yp.h: Likewise.
37051         * nis/rpcsvc/yp.x: Likewise.
37052         * nis/rpcsvc/ypupd.h: Likewise.
37053         * nis/yp_xdr.c: Likewise.
37054         * nis/ypupdate_xdr.c: Likewise.
37055
37056         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
37057         mainly the body of pmap_getport.  Add parameters to specify timeouts.
37058         (pmap_getport): Use __libc_rpc_getport.
37059         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
37060         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
37061         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
37062
37063 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
37064
37065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
37066         fanotify_mark.
37067
37068 2010-08-27  Roland McGrath  <roland@redhat.com>
37069
37070         * sysdeps/i386/i686/multiarch/Makefile
37071         (CFLAGS-varshift.c): New variable.
37072
37073 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
37074
37075         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
37076         * sysdeps/i386/i686/multiarch/varshift.c: New file.
37077
37078         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
37079
37080         * sysdeps/x86_64/strlen.S: Minimal code improvement.
37081
37082 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
37083
37084         * sysdeps/x86_64/strlen.S: Unroll the loop.
37085         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37086         strlen-sse2 strlen-sse2-bsf.
37087         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
37088         __strlen_no_bsf if bit_Slow_BSF is set.
37089         (__strlen_sse42): Removed.
37090         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
37091         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
37092
37093 2010-08-25  Roland McGrath  <roland@redhat.com>
37094
37095         * sysdeps/x86_64/multiarch/varshift.S: File removed.
37096         * sysdeps/x86_64/multiarch/varshift.c: New file.
37097         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
37098         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
37099         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
37100         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
37101
37102 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
37103
37104         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37105         strlen-sse2 strlen-sse2-bsf.
37106         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
37107         __strlen_sse2_bsf if bit_Slow_BSF is unset.
37108         (__strlen_sse2): Removed.
37109         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
37110         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
37111         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
37112         bit_Slow_BSF for Atom.
37113         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
37114         (index_Slow_BSF): Define.
37115         (HAS_SLOW_BSF): Define.
37116
37117 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
37118
37119         [BZ #10851]
37120         * resolv/res_init.c (__res_vinit): When no server address at all
37121         is given default to loopback.
37122
37123 2010-08-24  Roland McGrath  <roland@redhat.com>
37124
37125         * configure.in: Remove config-name.h generation.
37126         * configure: Regenerated.
37127         * config-name.in: File removed.
37128         * scripts/config-uname.sh: New file.
37129         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
37130         ($(objdir)config-name.h): New target.
37131
37132         * sunrpc/rpc_parse.h: Avoid nested comment.
37133
37134 2010-08-24  Richard Henderson  <rth@redhat.com>
37135             Ulrich Drepper  <drepper@redhat.com>
37136             H.J. Lu  <hongjiu.lu@intel.com>
37137
37138         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
37139         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
37140         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
37141         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
37142         _mm_alignr_epi8 with _mm_loadu_si128.
37143         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
37144         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
37145         (__m128i_shift_right): Removed.
37146         * sysdeps/i386/i686/multiarch/varshift.h: New file.
37147         * sysdeps/i386/i686/multiarch/varshift.S: New file.
37148         * sysdeps/x86_64/multiarch/varshift.h: New file.
37149         * sysdeps/x86_64/multiarch/varshift.S: New file.
37150
37151 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
37152
37153         * configure.in: Move assembler checks to before sysdep dir checking.
37154
37155 2010-08-20  Petr Baudis  <pasky@suse.cz>
37156
37157         * LICENSES: Sync the sunrpc license.
37158
37159 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
37160
37161         * sunrpc/auth_des.c: Update copyright notice once again.
37162         * sunrpc/auth_none.c: Likewise.
37163         * sunrpc/auth_unix.c: Likewise.
37164         * sunrpc/authdes_prot.c: Likewise.
37165         * sunrpc/authuxprot.c: Likewise.
37166         * sunrpc/bindrsvprt.c: Likewise.
37167         * sunrpc/clnt_gen.c: Likewise.
37168         * sunrpc/clnt_perr.c: Likewise.
37169         * sunrpc/clnt_raw.c: Likewise.
37170         * sunrpc/clnt_simp.c: Likewise.
37171         * sunrpc/clnt_tcp.c: Likewise.
37172         * sunrpc/clnt_udp.c: Likewise.
37173         * sunrpc/clnt_unix.c: Likewise.
37174         * sunrpc/des_crypt.c: Likewise.
37175         * sunrpc/des_soft.c: Likewise.
37176         * sunrpc/get_myaddr.c: Likewise.
37177         * sunrpc/getrpcport.c: Likewise.
37178         * sunrpc/key_call.c: Likewise.
37179         * sunrpc/key_prot.c: Likewise.
37180         * sunrpc/openchild.c: Likewise.
37181         * sunrpc/pm_getmaps.c: Likewise.
37182         * sunrpc/pm_getport.c: Likewise.
37183         * sunrpc/pmap_clnt.c: Likewise.
37184         * sunrpc/pmap_prot.c: Likewise.
37185         * sunrpc/pmap_prot2.c: Likewise.
37186         * sunrpc/pmap_rmt.c: Likewise.
37187         * sunrpc/rpc/auth.h: Likewise.
37188         * sunrpc/rpc/auth_unix.h: Likewise.
37189         * sunrpc/rpc/clnt.h: Likewise.
37190         * sunrpc/rpc/des_crypt.h: Likewise.
37191         * sunrpc/rpc/key_prot.h: Likewise.
37192         * sunrpc/rpc/netdb.h: Likewise.
37193         * sunrpc/rpc/pmap_clnt.h: Likewise.
37194         * sunrpc/rpc/pmap_prot.h: Likewise.
37195         * sunrpc/rpc/pmap_rmt.h: Likewise.
37196         * sunrpc/rpc/rpc.h: Likewise.
37197         * sunrpc/rpc/rpc_des.h: Likewise.
37198         * sunrpc/rpc/rpc_msg.h: Likewise.
37199         * sunrpc/rpc/svc.h: Likewise.
37200         * sunrpc/rpc/svc_auth.h: Likewise.
37201         * sunrpc/rpc/types.h: Likewise.
37202         * sunrpc/rpc/xdr.h: Likewise.
37203         * sunrpc/rpc_clntout.c: Likewise.
37204         * sunrpc/rpc_cmsg.c: Likewise.
37205         * sunrpc/rpc_common.c: Likewise.
37206         * sunrpc/rpc_cout.c: Likewise.
37207         * sunrpc/rpc_dtable.c: Likewise.
37208         * sunrpc/rpc_hout.c: Likewise.
37209         * sunrpc/rpc_main.c: Likewise.
37210         * sunrpc/rpc_parse.c: Likewise.
37211         * sunrpc/rpc_parse.h: Likewise.
37212         * sunrpc/rpc_prot.c: Likewise.
37213         * sunrpc/rpc_sample.c: Likewise.
37214         * sunrpc/rpc_scan.c: Likewise.
37215         * sunrpc/rpc_scan.h: Likewise.
37216         * sunrpc/rpc_svcout.c: Likewise.
37217         * sunrpc/rpc_tblout.c: Likewise.
37218         * sunrpc/rpc_util.c: Likewise.
37219         * sunrpc/rpc_util.h: Likewise.
37220         * sunrpc/rpcinfo.c: Likewise.
37221         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
37222         * sunrpc/rpcsvc/key_prot.x: Likewise.
37223         * sunrpc/rpcsvc/klm_prot.x: Likewise.
37224         * sunrpc/rpcsvc/mount.x: Likewise.
37225         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
37226         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
37227         * sunrpc/rpcsvc/rex.x: Likewise.
37228         * sunrpc/rpcsvc/rstat.x: Likewise.
37229         * sunrpc/rpcsvc/rusers.x: Likewise.
37230         * sunrpc/rpcsvc/sm_inter.x: Likewise.
37231         * sunrpc/rpcsvc/spray.x: Likewise.
37232         * sunrpc/rpcsvc/yppasswd.x: Likewise.
37233         * sunrpc/rtime.c: Likewise.
37234         * sunrpc/svc.c: Likewise.
37235         * sunrpc/svc_auth.c: Likewise.
37236         * sunrpc/svc_authux.c: Likewise.
37237         * sunrpc/svc_raw.c: Likewise.
37238         * sunrpc/svc_run.c: Likewise.
37239         * sunrpc/svc_simple.c: Likewise.
37240         * sunrpc/svc_tcp.c: Likewise.
37241         * sunrpc/svc_udp.c: Likewise.
37242         * sunrpc/svc_unix.c: Likewise.
37243         * sunrpc/svcauth_des.c: Likewise.
37244         * sunrpc/xcrypt.c: Likewise.
37245         * sunrpc/xdr.c: Likewise.
37246         * sunrpc/xdr_array.c: Likewise.
37247         * sunrpc/xdr_float.c: Likewise.
37248         * sunrpc/xdr_mem.c: Likewise.
37249         * sunrpc/xdr_rec.c: Likewise.
37250         * sunrpc/xdr_ref.c: Likewise.
37251         * sunrpc/xdr_sizeof.c: Likewise.
37252         * sunrpc/xdr_stdio.c: Likewise.
37253
37254         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
37255         handling.
37256
37257 2010-08-19  Andreas Schwab  <schwab@redhat.com>
37258
37259         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
37260
37261 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
37262
37263         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
37264         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
37265         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
37266         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
37267         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
37268         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
37269         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
37270         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
37271         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
37272         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
37273         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
37274         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
37275         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
37276         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
37277
37278 2010-07-26  Anton Blanchard  <anton@samba.org>
37279
37280         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
37281         * malloc/arena.c (heap_trim): Likewise.
37282
37283 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
37284
37285         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
37286         here.  Not...
37287         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
37288         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
37289
37290 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
37291
37292         * sysdeps/i386/elf/Makefile: New file.
37293
37294 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
37295
37296         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
37297         from fanotify_init.
37298         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
37299         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
37300
37301 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
37302
37303         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
37304         of strncasecmp_l.
37305         * sysdeps/multiarch/strcmp.S: Likewise.
37306
37307 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
37308
37309         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
37310         strncase_l-nonascii.
37311         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
37312         Add strncase_l-ssse3.
37313         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
37314         * sysdeps/x86_64/strcmp.S: Likewise.
37315         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
37316         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
37317         * sysdeps/x86_64/strncase.S: New file.
37318         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
37319         * sysdeps/x86_64/strncase_l.S: New file.
37320         * string/Makefile (strop-tests): Add strncasecmp.
37321         * string/test-strncasecmp.c: New file.
37322
37323         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
37324         warning.
37325
37326         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
37327         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
37328
37329 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
37330
37331         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
37332
37333 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
37334
37335         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
37336         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
37337         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
37338
37339 2010-05-01  Alan Modra  <amodra@gmail.com>
37340
37341         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
37342         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
37343         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
37344         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
37345         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
37346         tidying.  Don't tail-call __sigjmp_save for static lib.
37347         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
37348         save location.
37349         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
37350         (CALL_MCOUNT): Add eh info, and nop after bl.
37351         (TAIL_CALL_SYSCALL_ERROR): New macro.
37352         (PSEUDO_RET): Use it.
37353         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
37354         Correct save location of integer regs and cr.
37355         (_dl_profile_resolve): Correct cr save location.  Delete nops
37356         after bl when SHARED.  Reduce cfi size a little by better
37357         placement of cfi directives.
37358         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
37359         make a stack frame.  Instead use parm save area as a temp.
37360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
37361         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
37362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
37363         Don't make a stack frame for parent, use parm save area.
37364         Increase child stack frame to 112 bytes.  Don't save unused reg,
37365         and adjust reg usage.  Set up cfi on error recovery and
37366         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
37367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
37368         (__makecontext): Add dummy nop after jump to exit.
37369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
37370         Use correct parm save area and cr save, reduce stack frame.
37371         Correct cfi for possible PSEUDO_RET frame setup.
37372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
37373         Branch to local label emitted by PSEUDO_RET rather than
37374         __syscall_error.
37375
37376 2010-08-12  Andreas Schwab  <schwab@redhat.com>
37377
37378         [BZ #11904]
37379         * locale/programs/locale.c (print_assignment): New function.
37380         (show_locale_vars): Use it.
37381
37382 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
37383
37384         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
37385         field.
37386         (struct statfs64): Likewise.
37387         (_STATFS_F_FLAGS): Define.
37388         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
37389         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37390         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
37391         (ST_VALID): Define locally.
37392         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
37393         __statvfs_getflags, use the provided value.
37394         * sysdeps/unix/sysv/linux/kernel-features.h: Define
37395         __ASSUME_STATFS_F_FLAGS.
37396
37397         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
37398
37399         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
37400         Add sys/fanotify.h.
37401         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
37402         fanotify_mask for GLIBC_2.13.
37403         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
37404         fanotify_init and fanotify_mark.
37405         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
37406         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
37407
37408         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
37409         Add prlimit.
37410         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
37411         prlimit64 for GLIBC_2.13.
37412         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
37413         prlimit64.
37414         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
37415         syscall.
37416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
37417         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
37418         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
37419         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
37420         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
37421         add prlimit alias.
37422         * sysdeps/unix/sysv/linux/prlimit.c: New file.
37423
37424         [BZ #11903]
37425         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
37426         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
37427
37428         * nss/Makefile: Add rules to build and run tst-nss-test1.
37429         * shlib-versions: Add entry for libnss_test1.
37430         * nss/nss_test1.c: New file.
37431         * nss/tst-nss-test1.c: New file.
37432
37433         * nss/nsswitch.c (__nss_database_custom): Define new variable.
37434         (__nss_configure_lookup): Set appropriate entry in
37435         __nss_configure_lookup to true.
37436         * nss/nsswitch.h: Define enum with indeces of databases in
37437         databases and __nss_database_custom arrays.  Declare
37438         __nss_database_custom.
37439         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
37440         to avoid using nscd when custom rules are installed.
37441         * nss/getXXbyYY_r.c: Likewise.
37442         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
37443
37444         * nss/nss_files/files-parse.c: Whitespace fixes.
37445
37446 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
37447
37448         [BZ #11883]
37449         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
37450         * posix/fnmatch_loop.c: Likewise.
37451
37452 2010-07-17  Andi Kleen  <ak@linux.intel.com>
37453
37454         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
37455         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
37456         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
37457         * Versions.def [GLIBC_2.13]: Add.
37458
37459 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
37460
37461         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37462         Also fail if tpwd after pwuid call is NULL.
37463
37464 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37465
37466         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
37467         when converting to ms.
37468
37469 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37470
37471         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
37472         EOPNOTSUPP errors with ENOTTY.
37473         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
37474         EOPNOTSUPP errors with ENOTTY.
37475
37476 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
37477
37478         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
37479         Add strcasecmp_l-ssse3.
37480         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
37481         strcasecmp.
37482         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
37483         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
37484         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
37485
37486 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
37487
37488         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
37489
37490         * string/Makefile (strop-tests): Add strcasecmp.
37491         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
37492         strcasecmp_l-nonascii.
37493         (gen-as-const-headers): Add locale-defines.sym.
37494         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
37495         * sysdeps/x86_64/strcasecmp.S: New file.
37496         * sysdeps/x86_64/strcasecmp_l.S: New file.
37497         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
37498         * sysdeps/x86_64/locale-defines.sym: New file.
37499         * string/test-strcasecmp.c: New file.
37500
37501         * string/test-strcasestr.c: Test both ends of the range of characters.
37502         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
37503
37504 2010-07-29  Roland McGrath  <roland@redhat.com>
37505
37506         [BZ #11856]
37507         * manual/locale.texi (Yes-or-No Questions): Fix example code.
37508
37509 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
37510
37511         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
37512         for ld.so.
37513
37514 2010-07-27  Andreas Schwab  <schwab@redhat.com>
37515
37516         * manual/memory.texi (Malloc Tunable Parameters): Document
37517         M_PERTURB.
37518
37519 2010-07-26  Roland McGrath  <roland@redhat.com>
37520
37521         [BZ #11840]
37522         * configure.in (-fgnu89-inline check): Set and substitute
37523         gnu89_inline, not libc_cv_gnu89_inline.
37524         * configure: Regenerated.
37525         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
37526
37527 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
37528
37529         * string/test-strnlen.c: New file.
37530         * string/Makefile (strop-tests): Add strnlen.
37531         * string/tester.c (test_strnlen): Add a few more test cases.
37532         * string/tst-strlen.c: Better error reporting.
37533
37534         * sysdeps/x86_64/strnlen.S: New file.
37535
37536 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
37537
37538         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
37539         lower-latency instructions.
37540
37541 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
37542
37543         * string/test-strcasestr.c: New file.
37544         * string/test-strstr.c: New file.
37545         * string/Makefile (strop-tests): Add strstr and strcasestr.
37546         * string/str-two-way.h: Don't undefine MAX.
37547         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
37548
37549 2010-07-21  Andreas Schwab  <schwab@redhat.com>
37550
37551         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37552         strcasestr-nonascii.
37553         (CFLAGS-strcasestr-nonascii.c): Define.
37554         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
37555         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
37556         Remove unused attribute.
37557
37558 2010-07-20  Roland McGrath  <roland@redhat.com>
37559
37560         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
37561         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
37562         ld.so.cache was broken.  With it, there is no way to disable dsocaps
37563         like LD_HWCAP_MASK can disable hwcaps.
37564
37565 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
37566
37567         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
37568
37569 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
37570
37571         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
37572         call in strcasestr.
37573         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
37574         __strcasestr_sse42_nonascii.
37575         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
37576         strcasestr-nonascii.c.
37577         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
37578
37579 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
37580
37581         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
37582         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
37583         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
37584         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
37585
37586 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
37587
37588         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
37589         fcntl.
37590
37591 2010-07-06  Andreas Schwab  <schwab@redhat.com>
37592
37593         [BZ #11577]
37594         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
37595         dl_signal_cerror.
37596
37597 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
37598
37599         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
37600         _PC_PIPE_BUF using F_GETPIPE_SZ.
37601
37602 2010-07-05  Roland McGrath  <roland@redhat.com>
37603
37604         * manual/arith.texi (Rounding Functions): Fix rint description
37605         implicit in round description.
37606
37607 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
37608
37609         * elf/Makefile: Fix linking for a few tests to make recent linker
37610         happy.
37611
37612 2010-06-30  Andreas Schwab  <schwab@redhat.com>
37613
37614         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
37615         $(common-objpfx)libc_nonshared.a.
37616
37617 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
37618
37619         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
37620         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
37621         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
37622         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
37623         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
37624         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
37625         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
37626         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
37627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
37628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
37629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
37630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
37631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
37632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
37633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
37634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
37635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
37636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
37637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
37638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
37639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
37640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
37641         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
37642         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
37643         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
37644         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
37645         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
37646         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
37647         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
37648         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
37649         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
37650         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
37651         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
37652         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
37653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
37654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
37655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
37656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
37657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
37658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
37659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
37660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
37661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
37662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
37663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
37664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
37665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
37666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
37667
37668 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
37669
37670         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
37671         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
37672         * string/memmove.c (memmove): Renamed to ...
37673         (MEMMOVE): ...this.  Default to memmove.
37674         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
37675         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
37676         (END_CHK): Define.
37677         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37678         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
37679         mempcpy-ssse3-back memmove-ssse3-back.
37680         * sysdeps/x86_64/multiarch/bcopy.S: New file .
37681         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
37682         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
37683         * sysdeps/x86_64/multiarch/memcpy.S: New file.
37684         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
37685         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
37686         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
37687         * sysdeps/x86_64/multiarch/memmove.c: New file.
37688         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
37689         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
37690         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
37691         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
37692         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
37693         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
37694         Define.
37695         (index_Fast_Copy_Backward): Define.
37696         (HAS_ARCH_FEATURE): Define.
37697         (HAS_FAST_REP_STRING): Define.
37698         (HAS_FAST_COPY_BACKWARD): Define.
37699
37700 2010-06-21  Andreas Schwab  <schwab@redhat.com>
37701
37702         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37703         Restore proper fallback handling.
37704
37705 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
37706
37707         [BZ #11701]
37708         * posix/group_member.c (__group_member): Correct checking loop.
37709
37710         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
37711         OOM in getpwuid_r correctly.  Return error number when the caller
37712         should return, otherwise -1.
37713         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
37714         call returning > 0 value.
37715         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
37716
37717 2010-06-07  Andreas Schwab  <schwab@redhat.com>
37718
37719         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
37720         libc_nonshared.a from targets in modules-names.
37721
37722 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
37723
37724         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
37725         requires it.
37726
37727 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
37728
37729         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
37730         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
37731         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
37732         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
37733
37734 2010-06-02  Andreas Schwab  <schwab@redhat.com>
37735
37736         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
37737
37738 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
37739
37740         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
37741         and F_GETPIPE_SZ.
37742         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
37743         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
37744         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
37745         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
37746         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
37747         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
37748
37749 2010-06-14  Roland McGrath  <roland@redhat.com>
37750
37751         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
37752
37753 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
37754
37755         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
37756         __REDIRECT followed by __THROW.
37757         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
37758         * posix/getopt.h (getopt): Likewise.
37759
37760 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
37761
37762         * hurd/lookup-at.c (__file_name_lookup_at): Accept
37763         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
37764         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
37765         in AT_FLAGS.
37766         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
37767         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
37768
37769 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
37770
37771         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
37772
37773 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
37774
37775         [BZ #11640]
37776         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37777         Properly check family and model.
37778
37779 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
37780
37781         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
37782
37783 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
37784
37785         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
37786
37787 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
37788
37789         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
37790         symbol reference.
37791
37792 2010-05-19  Andreas Schwab  <schwab@redhat.com>
37793
37794         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
37795         symbol reference.
37796
37797 2010-05-21  Andreas Schwab  <schwab@redhat.com>
37798
37799         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
37800         and internal_recvmmsg.
37801         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
37802         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
37803         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
37804         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
37805
37806         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
37807         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
37808         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
37809
37810 2010-05-20  Andreas Schwab  <schwab@redhat.com>
37811
37812         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
37813
37814 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
37815
37816         POWER7 optimizations.
37817         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
37818         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
37819
37820 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
37821
37822         * version.h: Update for 2.13 development version.
37823
37824 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
37825
37826         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
37827         exceptions.  Return 0.
37828
37829 2010-05-07  Roland McGrath  <roland@redhat.com>
37830
37831         * elf/ldconfig.c (main): Add a const.
37832
37833 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
37834
37835         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
37836         (args_options): Add no-idn option.
37837         (ahosts_keys_int): Add idn_flags to ai_flags.
37838         (parse_option): Handle 'i' option to clear idn_flags.
37839
37840         * malloc/malloc.c (_int_free): Possible race in the most recently
37841         added check.  Only act on the data if no current modification
37842         happened.
37843
37844 See ChangeLog.17 for earlier changes.