soft-fp: add macro FP_NO_EXCEPTIONS.
[platform/upstream/glibc.git] / ChangeLog
1 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
2
3         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
4         Undefine and redefine.
5         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
6         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
7         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
8         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
9         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
10         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
11         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
13         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
14         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
15         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
16         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
17         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
18         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
19         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
20
21         [BZ #16032]
22         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
23         without decrementing exponent if mantissa >= that for the
24         denominator, not >.
25         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
26         denominator, not >.  Decrement exponent in < case instead of
27         incrementing in >= case.
28         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
29         without decrementing exponent if mantissa >= that for the
30         denominator, not >.
31
32         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
33         computing saturated result for unsigned overflow.
34
35 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
36             Jeff Law  <law@redhat.com>
37
38         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
39         (atan2Mp): Add systemtap probe marker.
40         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
41         (__ieee754_log): Add systemtap probe marker.
42         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
43         (atanMp): Add systemtap probe marker.
44         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
45         (tanMp): Add systemtap probe marker.
46         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
47         (__slowexp): Add systemtap probe marker.
48         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
49         (__slowpow): Add systemtap probe marker.
50         * manual/probes.texi: Document probes.
51
52 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
53
54         [BZ #15362]
55         * libio/fileops.c (_IO_new_file_write): Return count of bytes
56         written.
57         (_IO_new_file_xsputn): Don't return EOF if nothing has been
58         written.
59         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
60         written to buffer but not flushed.
61         * libio/iofwrite_u.c:  Likewise.
62         * libio/iopadn.c:  Return bytes returned even if EOF was
63         encountered.
64         * libio/iowpadn.c:  Likewise.
65         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
66         if _IO_padn does not write the whole buffer.
67         [!COMPILE_WPRINTF] (PAD): Likewise.
68
69 2013-10-10  David S. Miller  <davem@davemloft.net>
70
71         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
72         directory block.
73
74 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
75
76         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
77         instead of FSF address.
78         * soft-fp/fixdfti.c: Likewise.
79         * soft-fp/fixsfti.c: Likewise.
80         * soft-fp/fixtfti.c: Likewise.
81         * soft-fp/fixunsdfti.c: Likewise.
82         * soft-fp/fixunssfti.c: Likewise.
83         * soft-fp/fixunstfti.c: Likewise.
84         * soft-fp/floattidf.c: Likewise.
85         * soft-fp/floattisf.c: Likewise.
86         * soft-fp/floattitf.c: Likewise.
87         * soft-fp/floatuntidf.c: Likewise.
88         * soft-fp/floatuntisf.c: Likewise.
89         * soft-fp/floatuntitf.c: Likewise.
90         * soft-fp/trunctfxf2.c: Likewise.
91
92         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
93         * soft-fp/fixdfti.c: Likewise.
94         * soft-fp/fixsfti.c: Likewise.
95         * soft-fp/fixtfti.c: Likewise.
96         * soft-fp/fixunsdfti.c: Likewise.
97         * soft-fp/fixunssfti.c: Likewise.
98         * soft-fp/fixunstfti.c: Likewise.
99         * soft-fp/floattidf.c: Likewise.
100         * soft-fp/floattisf.c: Likewise.
101         * soft-fp/floattitf.c: Likewise.
102         * soft-fp/floatuntidf.c: Likewise.
103         * soft-fp/floatuntisf.c: Likewise.
104         * soft-fp/floatuntitf.c: Likewise.
105         * soft-fp/trunctfxf2.c: Likewise.
106
107 2013-10-10  David S. Miller  <davem@davemloft.net>
108
109         * sysdeps/sparc/fpu/libm-test-ulps: Update.
110
111 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
112
113         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
114         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
115         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
116         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
117         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
118         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
119         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
120
121         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
122         for NaNs before doing comparisons on argument.
123         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
124         Likewise.
125
126 2013-10-10  Will Newton  <will.newton@linaro.org>
127
128         * malloc/hooks.c (memalign_check): Ensure the value of bytes
129         passed to _int_memalign does not overflow.
130
131 2013-10-10  Torvald Riegel  <triegel@redhat.com>
132
133         * scripts/bench.pl: Add include-sources directive.
134         * benchtests/README: Update documentation.
135
136 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
137
138         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
139         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
140         instead of FP_INIT_ROUNDMODE.
141         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
142         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
143
144         [BZ #16034]
145         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
146         copy class of input value.
147         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
148         not handle exceptions.
149         * soft-fp/negsf2.c (__negsf2): Likewise.
150         * soft-fp/negtf2.c (__negtf2): Likewise.
151         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
152
153 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
154
155         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
156         semicolon.  From Linux kernel.
157
158 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
159
160         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
161
162 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
163
164         [BZ #156]
165         * manual/socket.texi: Added statement about buffer
166         for gethostbyname2_r.
167
168 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
169
170         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
171         Use .p2align directive instead, throughout.
172         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
173         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
174         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
175         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
176         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
177         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
178         * sysdeps/x86_64/strchr.S: Likewise.
179         * sysdeps/x86_64/strrchr.S: Likewise.
180
181 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
182
183         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
184
185         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
186
187         * sysdeps/generic/math_private.h (__mpsin1): Remove
188         declaration.
189         (__mpcos1): Likewise.
190         (__mpsin): New argument __range_reduce.
191         (__mpcos): Likewise.
192         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
193         (slow): Use __mpsin and __mpcos.
194         (slow1): Likewise.
195         (slow2): Likewise.
196         (sloww): Likewise.
197         (sloww1): Likewise.
198         (sloww2): Likewise.
199         (bsloww): Likewise.
200         (bsloww1): Likewise.
201         (bsloww2): Likewise.
202         (cslow2): Likewise.
203         (csloww): Likewise.
204         (csloww1): Likewise.
205         (csloww2): Likewise.
206         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
207         range_reduce.  Merge in __mpsin1.
208         (__mpcos): Likewise.
209         (__mpsin1): Remove.
210         (__mpcos1): Likewise.
211
212 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
213
214         * locale/loadlocale.c (_nl_intern_locale_data): Use
215         LOCFILE_ALIGNED_P.
216         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
217         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
218         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
219         obstack data is appropriately aligned.
220         (obstack_int32_grow_fast): Likewise.
221         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
222         * locale/programs/locfile.c (add_locale_uint32): Likewise.
223         (add_locale_uint32_array): Likewise.
224
225 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
226
227         * benchtests/Makefile: Remove ARGLIST and RET variables.
228         ($(objpfx)bench-%.c): Pass only function name to the script.
229         * benchtests/README: Update documentation.
230         * benchtests/acos-inputs: Add new directives.
231         * benchtests/acosh-inputs: Likewise.
232         * benchtests/asin-inputs: Likewise.
233         * benchtests/asinh-inputs: Likewise.
234         * benchtests/atan-inputs: Likewise.
235         * benchtests/atanh-inputs: Likewise.
236         * benchtests/cos-inputs: Likewise.
237         * benchtests/cosh-inputs: Likewise.
238         * benchtests/exp-inputs: Likewise.
239         * benchtests/log-inputs: Likewise.
240         * benchtests/pow-inputs: Likewise.
241         * benchtests/rint-inputs: Likewise.
242         * benchtests/sin-inputs: Likewise.
243         * benchtests/sinh-inputs: Likewise.
244         * benchtests/tan-inputs: Likewise.
245         * benchtests/tanh-inputs: Likewise.
246         * scripts/bench.pl: Add support for new directives.
247
248 2013-10-07  Alan Modra  <amodra@gmail.com>
249
250         * README: Fix careless merge.
251
252 2013-10-05  Alan Modra  <amodra@gmail.com>
253
254         * NEWS: Mention powerpc64le support and bugs fixed.
255         * README: Both big-endian and little-endian powerpc64 supported.
256
257 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
258
259         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
260         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
261         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
262         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
263
264 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
265
266         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
267         match prototype.
268
269 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
270
271         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
272         Move -mhard-float appending from
273         ports/sysdeps/powerpc/powerpc32/Makefile.
274         [$(with-fp) = yes] (ASFLAGS): Likewise.
275         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
276         * sysdeps/powerpc/nofpu: Move directory from
277         ports/sysdeps/powerpc/nofpu.
278         * sysdeps/powerpc/soft-fp: Move directory from
279         ports/sysdeps/powerpc/soft-fp.
280         * sysdeps/powerpc/powerpc32/405: Move directory from
281         ports/sysdeps/powerpc/powerpc32/405.
282         * sysdeps/powerpc/powerpc32/440: Move directory from
283         ports/sysdeps/powerpc/powerpc32/440.
284         * sysdeps/powerpc/powerpc32/464: Move directory from
285         ports/sysdeps/powerpc/powerpc32/464.
286         * sysdeps/powerpc/powerpc32/476: Move directory from
287         ports/sysdeps/powerpc/powerpc32/476.
288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
289         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
291         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
293         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
295         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
297         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
298         * README: Update for powerpc-*-linux-gnu software floating point
299         support in libc.
300
301         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
302         case to powerpc/powerpc32*.
303         * sysdeps/unix/sysv/linux/configure: Regenerated.
304
305         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
306         (_FPU_MASK_OM): Define as 0x04.
307         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
308         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
309         0x00c10080.
310         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
311         0x0000003c.
312         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
313
314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
315         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
316         getcontext_e500.
317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
318         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
319         setcontext_e500.
320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
321         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
322         and setcontext_e500.
323
324 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
325
326         * locale/iso-3166.def: Update iso-1366.def and related occurrences
327
328 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
329
330         * manual/threads.texi (Default Thread Attributes): Fix typo.
331
332 2013-10-04  Will Newton  <will.newton@linaro.org>
333
334         * malloc/Makefile: Add tst-memalign.
335         * malloc/tst-memalign.c: New file.
336
337         * malloc/tst-posix_memalign.c: Add comments.
338         (do_test): Add comments and call free on all potentially
339         allocated pointers. Add space after cast.
340
341         * malloc/tst-pvalloc.c: Add comments.
342         (do_test): Add comments and call free on all potentially
343         allocated pointers. Remove duplicate check for NULL pointer.
344         Add space after cast.
345
346         * malloc/tst-valloc.c: Add comments.
347         (do_test): Add comments and call free on all potentially
348         allocated pointers. Remove duplicate check for NULL pointer.
349         Add space after cast.
350
351 2013-10-04  Alan Modra  <amodra@gmail.com>
352
353         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
354         Use stdint types in rather than __attribute__((mode())).
355         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
356
357 2013-10-04  Alan Modra  <amodra@gmail.com>
358
359         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
360         Correct handling of unaligned relocs for little-endian.
361         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
362
363 2013-10-04  Alan Modra  <amodra@gmail.com>
364
365         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
366         * configure: Regenerate.
367         * nptl/shlib-versions: Powerpc*le starts at 2.18.
368         * shlib-versions: Likewise.
369
370 2013-10-04  Alan Modra  <amodra@gmail.com>
371
372         * string/tester.c (test_memrchr): Increment reported test cycle.
373
374 2013-10-04  Alan Modra  <amodra@gmail.com>
375
376         * string/test-memcpy.c (do_one_test): When reporting errors, print
377         string address and don't overrun end of string.
378
379 2013-10-04  Alan Modra  <amodra@gmail.com>
380
381         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
382         insrdi.  Make better use of reg selection to speed exit slightly.
383         Schedule entry path a little better.  Remove useless "are we done"
384         checks on entry to main loop.  Handle wrapping around zero address.
385         Correct main loop count.  Handle single left-over word from main
386         loop inline rather than by using loop_small.  Remove extra word
387         case in loop_small caused by wrong loop count.  Add little-endian
388         support.
389         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
390         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
391         cache hint.
392         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
393         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
394         support.  Avoid rlwimi.
395         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
396
397 2013-10-04  Alan Modra  <amodra@gmail.com>
398
399         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
400         insrdi.  Formatting.
401         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
402         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
403         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
404         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
405         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
406         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
407
408 2013-10-04  Alan Modra  <amodra@gmail.com>
409
410         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
411         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
412         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
413         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
414         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
415         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
416         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
417         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
418         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
419         use of regs.  Use power7 mtocrf.  Tidy function tails.
420
421 2013-10-04  Alan Modra  <amodra@gmail.com>
422
423         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
424         Formatting.  Consistently use rXXX register defines or rN defines.
425         Use early exit labels that avoid restoring unused non-volatile regs.
426         Make cr field use more consistent with rWORDn compares.  Rename
427         regs used as shift registers for unaligned loop, using rN defines
428         for short lifetime/multiple use regs.
429         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
430         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
431         addi 1,1,64 to pop stack frame.  Simplify return value code.
432         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
433
434 2013-10-04  Alan Modra  <amodra@gmail.com>
435
436         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
437         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
438         rather than rlwimi.
439         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
440         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
441         little-endian support.  Correct typos.
442         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
443         rather than rlwimi.
444         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
445         in loop and entry code to keep "and." results.
446         (strchr): Add little-endian support.  Comment.  Move cntlzd
447         earlier in tail.
448         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
449
450 2013-10-04  Alan Modra  <amodra@gmail.com>
451
452         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
453         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
454         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
455         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
456
457 2013-10-04  Alan Modra  <amodra@gmail.com>
458
459         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
460         (rTMP): Define as r11.
461         (strcmp): Add little-endian support.  Optimise tail.
462         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
463         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
464         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
465         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
466         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
467         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
468         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
469
470 2013-10-04  Alan Modra  <amodra@gmail.com>
471
472         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
473         little-endian support.  Remove unnecessary "are we done" tests.
474         Handle "s" wrapping around zero and extremely large "size".
475         Correct main loop count.  Handle single left-over word from main
476         loop inline rather than by using small_loop.  Correct comments.
477         Delete "zero" tail, use "end_max" instead.
478         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
479
480 2013-10-04  Alan Modra  <amodra@gmail.com>
481
482         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
483         support.  Don't branch over align.
484         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
485         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
486         support.  Rearrange tmp reg use to suit.  Comment.
487         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
488
489 2013-10-04  Alan Modra  <amodra@gmail.com>
490
491         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
492
493 2013-10-04  Alan Modra  <amodra@gmail.com>
494
495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
496         conditional form of branch and link when obtaining pc.
497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
498
499 2013-10-04  Alan Modra  <amodra@gmail.com>
500
501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
502         HIWORD/LOWORD.
503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
505
506 2013-10-04  Alan Modra  <amodra@gmail.com>
507
508         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
509         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
510         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
511         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
512         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
513         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
514         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
515         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
516         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
517         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
518
519 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
520             Alistair Popple <alistair@ozlabs.au.ibm.com>
521             Alan Modra <amodra@gmail.com>
522
523         [BZ #15723]
524         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
525         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
526         _dl_hwcap access for little-endian.
527         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
528         destroy vmx regs when saving unaligned.
529         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
530         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
531         destroy vmx regs when saving unaligned.
532
533 2013-10-04  Alan Modra  <amodra@gmail.com>
534
535         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
536         Don't use a union to pack hi/low value.
537
538 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
539
540         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
541         for little-endian.
542         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
543         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
544         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
545         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
546         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
547
548 2013-10-04  Alan Modra  <amodra@gmail.com>
549
550         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
551         constants to usual value for .cst8 section, and remove redundant
552         high address load.
553         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
554         constant for 0x1p52.  Load little-endian words of double from
555         correct stack offsets.
556
557 2013-10-04  Alan Modra  <amodra@gmail.com>
558
559         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
560         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
561         words of double from correct stack offsets.
562         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
563         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
564         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
565         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
566         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
567         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
568         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
569         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
570         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
571         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
572         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
573         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
574         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
575         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
576         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
577         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
578         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
579
580 2013-10-04  Alan Modra  <amodra@gmail.com>
581
582         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
583         64-bit int/double union.
584         (_FPU_SETCW): Likewise.
585         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
586         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
587
588 2013-10-04  Alan Modra  <amodra@gmail.com>
589
590         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
591         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
592
593 2013-10-04  Alan Modra  <amodra@gmail.com>
594
595         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
596         use vector int constants.
597         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
598
599 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
600
601         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
602         array with long long.
603         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
604         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
605         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
606         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
607         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
608         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
609         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
610         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
611         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
612         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
613         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
614         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
615         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
616
617 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
618
619         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
620         (__signbit): Likewise.  Correct for little-endian.
621         (__signbitl): Call __signbit.
622         (lrint): Correct for little-endian.
623         (lrintf): Call lrint.
624
625 2013-10-04  Alan Modra  <amodra@gmail.com>
626
627         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
628         union 32-bit int array member with 64-bit int array.
629         (t515, tm256): Double rather than long double.
630         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
631
632 2013-10-04  Alan Modra  <amodra@gmail.com>
633
634         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
635         Delete.
636         (IEEE854_LONG_DOUBLE_BIAS): Delete.
637         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
638         version of math_ldbl.h.
639
640 2013-10-04  Alan Modra  <amodra@gmail.com>
641
642         [BZ #15734], [BZ #15735]
643         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
644         all uses of ieee875 long double macros and unions.  Simplify test
645         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
646         ldbl_extract_mantissa value for ix,iy exponents.  Properly
647         normalize after ldbl_extract_mantissa, and don't add hidden bit
648         already handled.  Don't treat low word of ieee854 mantissa like
649         low word of IBM long double and mask off bit when testing for
650         zero.
651         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
652         all uses of ieee875 long double macros and unions.  Simplify tests
653         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
654         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
655         two1022, instead use their values.  Recognise that tests for large
656         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
657         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
658         Rewrite all uses of ieee875 long double macros and unions.  Simplify
659         test for 0.0L and nan.  Correct negation.
660         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
661         ieee875 long double macros and unions.  Correct output for large
662         magnitude x.  Correct absolute value calculation.
663         (__erfcl): Likewise.
664         * math/libm-test.inc: Add tests for errors discovered in IBM long
665         double versions of fmodl, remainderl, erfl and erfcl.
666
667 2013-10-04  Alan Modra  <amodra@gmail.com>
668
669         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
670         all uses of ieee854 long double macros and unions.  Simplify tests
671         for long doubles that are fully specified by the high double.
672         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
673         Likewise.
674         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
675         Remove dead code too.
676         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
677         (__ieee754_ynl): Likewise.
678         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
679         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
680         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
681         Remove dead code too.
682         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
683         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
684         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
685         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
686         Simplify.
687         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
688         Simplify.
689         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
690         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
691         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
692         Comment on variable precision.
693         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
694         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
695         Likewise.
696         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
697         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
698         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
699         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
700         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
701
702 2013-10-04  Alan Modra  <amodra@gmail.com>
703
704         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
705         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
706         all uses of ieee854 long double macros and unions.
707         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
708         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
709         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
710         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
711         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
712         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
713         Likewise.
714         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
715         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
716         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
717         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
718         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
719         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
720         Simplify sign and nan test too.
721         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
722         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
723         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
724         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
725         Likewise.
726         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
727         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
728         Likewise.
729         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
730         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
731         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
732         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
733         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
734         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
735
736 2013-10-04  Alan Modra  <amodra@gmail.com>
737
738         * stdio-common/printf_size.c (__printf_size): Don't use
739         union ieee854_long_double in fpnum union.
740         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
741         signbit macro to retrieve sign from long double.
742         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
743         retrieve sign from long double.
744         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
745         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
746         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
747         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
748         * math/test-misc.c (main): Don't use union ieee854_long_double.
749
750 2013-10-04  Alan Modra  <amodra@gmail.com>
751
752         [BZ #15680]
753         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
754         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
755         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
756         calculation.  Remove unnecessary test for denormal exponent.
757         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
758         Correct handling of denormals.  Avoid undefined shift behaviour.
759         Correct normalisation of low mantissa when low double is denormal.
760         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
761         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
762         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
763         Correct normalisation of low mantissa.  Test for overflow of high
764         mantissa and normalise.
765         (ldbl_nearbyint): Use more readable constant for two52.
766         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
767         (__mpn_construct_long_double): Fix test for overflow of high
768         mantissa and correct normalisation.  Avoid undefined shift.
769
770 2013-10-04  Alan Modra  <amodra@gmail.com>
771
772         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
773         (union ibm_extended_long_double): Define as an array of ieee754_double.
774         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
775         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
776         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
777         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
778         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
779         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
780         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
781         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
782         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
783         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
784         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
785
786 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
787
788         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
789         page size instead of calling getpagesize.
790
791         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
792         (LOCFILE_ALIGN_MASK): Likewise.
793         (LOCFILE_ALIGN_UP): Likewise.
794         (LOCFILE_ALIGNED_P): Likewise.
795         * locale/programs/ld-collate.c (collate_output): Use the new
796         macros instead of __alignof__ (int32_t).
797         * locale/weight.h (findidx): Likewise.
798
799 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
800
801         [BZ #431]
802         * manual/string.texi: Fix strncat and wcsncat.
803
804 2013-10-03  Brooks Moses  <bmoses@google.com>
805
806         [BZ #15915]
807         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
808         * Makerules: ...here, and adjust associated comments.
809
810 2013-10-02  Will Newton  <will.newton@linaro.org>
811
812         * malloc/Makefile: Add tst-pvalloc.
813         * malloc/tst-pvalloc.c: New file.
814
815 2013-10-02  Will Newton  <will.newton@linaro.org>
816
817         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
818         improve test coverage.
819
820 2013-10-02  Will Newton  <will.newton@linaro.org>
821
822         * malloc/Makefile: Add tst-posix_memalign.
823         * malloc/tst-posix_memalign.c: New file.
824
825 2013-10-01  Eric Blake  <eblake@redhat.com>
826
827         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
828         Use __THROWNL rather than __THROW on static functions.
829
830 2013-09-30  Petr Machata  <pmachata@redhat.com>
831
832         * elf/elf.h (R_AARCH64_ABS16): New macro.
833         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
834         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
835         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
836         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
837         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
838         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
839         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
840         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
841         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
842         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
843         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
844         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
845         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
846         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
847         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
848         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
849         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
850         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
851         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
852         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
853         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
854         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
855         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
856         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
857         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
858         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
859         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
860         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
861         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
862         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
863         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
864         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
865         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
866         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
867         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
868         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
869         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
870         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
871         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
872         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
873         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
874         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
875         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
876         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
877         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
878         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
879         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
880         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
881         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
882         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
883         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
884         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
885         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
886         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
887         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
888         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
889         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
890         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
891         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
892         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
893         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
894         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
895         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
896         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
897         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
898         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
899         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
900         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
901         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
902         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
903         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
904         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
905         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
906         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
907         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
908         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
909         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
910         (R_AARCH64_TLSDESC_LDR): Likewise.
911         (R_AARCH64_TLSDESC_ADD): Likewise.
912         (R_AARCH64_TLSDESC_CALL): Likewise.
913
914 2013-09-30  Andreas Schwab  <schwab@suse.de>
915
916         [BZ #15048]
917         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
918         the nss database lookup.
919         * nscd/initgrcache.c (addinitgroupsX): Likewise.
920         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
921
922 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
923
924         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
925
926 2013-09-28  P. J. McDermott  <pj@pehjota.net>
927
928         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
929         ${Bash-specific parameter/pattern/string} parameter expansion.
930         * sysdeps/unix/make-syscalls.sh: Likewise.
931
932 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
933
934         * sysdeps/sh/stackguard-macros.h: New file.
935
936 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
937
938         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
939         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
940         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
941         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
942         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
943         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
944
945 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
946
947         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
948         Fix thread ID register.
949
950 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
951
952         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
953         [POSIX || UNIX98]: Require rather than permitting all symbols from
954         <time.h>.
955         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
956         element of struct sched_param.
957         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
958         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
959         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
960         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
961         constant.
962
963 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
964
965         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
966         argument calculation.
967
968 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
969
970         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
971         Expect macro.
972         [POSIX] (pthread_attr_t): Do not require type.
973         [POSIX] (pthread_cond_t): Likewise.
974         [POSIX] (pthread_condattr_t): Likewise.
975         [POSIX] (pthread_key_t): Likewise.
976         [POSIX] (pthread_mutex_t): Likewise.
977         [POSIX] (pthread_mutexattr_t): Likewise.
978         [POSIX] (pthread_once_t): Likewise.
979         [POSIX] (pthread_t): Likewise.
980         [POSIX-based standards] (pthread_atfork): Expect function.
981
982 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
983             Richard Sandiford  <richard@codesourcery.com>
984
985         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
986         (swap_endianness_p): New extern variable.
987         (set_big_endian): New inline function.
988         (maybe_swap_uint32): Likewise.
989         (maybe_swap_uint32_array): Likewise.
990         (maybe_swap_uint32_obstack): Likewise.
991         * locale/programs/locfile.c: Include <stdbool.h>.
992         (swap_endianness_p): New variable.
993         (add_locale_uint32): Call maybe_swap_uint32.
994         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
995         (write_locale_data): Call maybe_swap_uint32_array.
996         * locale/programs/ld-collate.c (obstack_int32_grow): Call
997         maybe_swap_uint32.
998         (obstack_int32_grow_fast): Likewise.
999         (output_weightwc): Call maybe_swap_uint32_obstack.
1000         (collate_output): Likewise.
1001         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
1002         (OPT_LITTLE_ENDIAN): Likewise.
1003         (options): Add --little-endian and --big-endian options.
1004         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
1005         * locale/programs/locarchive.c: Include "locfile.h".
1006         (GET): New macro.
1007         (SET): Likewise.
1008         (INC): Likewise.
1009         (create_archive): Use the new macros to access fields of
1010         structures directly mapped from or written to locale archives.
1011         (oldlocrecentcmp): Likewise.
1012         (enlarge_archive): Likewise.
1013         (insert_name): Likewise.
1014         (add_alias): Likewise.
1015         (add_locale): Likewise.
1016         (delete_locales_from_archive): Likewise.
1017         (show_archive_content): Likewise.
1018         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
1019         locale data.
1020
1021 2013-09-24  Roland McGrath  <roland@hack.frob.com>
1022
1023         * manual/freemanuals.texi: Updated from (newly) canonical copy at
1024         http://www.gnu.org/doc/freemanuals.texi.
1025         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
1026
1027 2013-09-24  Will Newton  <will.newton@linaro.org>
1028
1029         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
1030         macro.
1031
1032 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
1033
1034         * locale/hashval.h (compute_hashval): Interpret bytes of key as
1035         unsigned char.
1036
1037 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
1038
1039         * manual/threads.texi (POSIX Threads): Fix a typo.
1040
1041 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1042
1043         [BZ #14547]
1044         * string/tst-strcoll-overflow.c: New test case.
1045         * string/Makefile (xtests): Add tst-strcoll-overflow.
1046         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
1047         cache if string sizes may cause integer overflow.
1048
1049         [BZ #14547]
1050         * string/strcoll_l.c (coll_seq): New members rule, idx,
1051         save_idx and back_us.
1052         (get_next_seq_nocache): New function.
1053         (do_compare_nocache): New function.
1054         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
1055         when malloc fails.
1056
1057 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
1058
1059         [BZ #15754]
1060         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
1061         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
1062         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
1063
1064         [BZ #15754]
1065         * elf/Makefile (tests): Add tst-ptrguard1.
1066         (tests-static): Add tst-ptrguard1-static.
1067         (tst-ptrguard1-ARGS): Define.
1068         (tst-ptrguard1-static-ARGS): Define.
1069         * elf/tst-ptrguard1.c: New file.
1070         * elf/tst-ptrguard1-static.c: New file.
1071         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
1072         * sysdeps/i386/stackguard-macros.h: Likewise.
1073         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
1074         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
1075         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
1076         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
1077         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
1078         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
1079
1080 2013-09-23  Hector Marco  <hecmargi@upv.es>
1081             Ismael Ripoll  <iripoll@disca.upv.es>
1082             Carlos O'Donell  <carlos@redhat.com>
1083
1084         [BZ #15754]
1085         * sysdeps/generic/stackguard-macros.h: Define
1086         __pointer_chk_guard_local and POINTER_CHK_GUARD.
1087         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
1088         Define __pointer_chk_guard_local.
1089         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
1090         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
1091
1092 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
1093
1094         [BZ #15859]
1095         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
1096
1097 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1098
1099         * include/string.h (__ffs): Declare as hidden.
1100         * string/ffs.c (__ffs): Define as hidden.
1101         * sysdeps/i386/ffs.c (__ffs): Likewise.
1102         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
1103         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
1104         * sysdeps/s390/ffs.c (__ffs): Likewise.
1105         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
1106
1107 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
1108
1109         * NEWS: Mention malloc probes.
1110
1111         * malloc/arena.c (new_heap): New memory_heap_new probe.
1112         (grow_heap): New memory_heap_more probe.
1113         (shrink_heap): New memory_heap_less probe.
1114         (heap_trim): New memory_heap_free probe.
1115         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
1116         (systrim): New memory_sbrk_less probe.
1117         * manual/probes.texi: Document them.
1118
1119         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
1120         * manual/probes.texi: Document it.
1121
1122         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
1123         (__libc_realloc): Add memory_realloc_retry probe.
1124         (__libc_memalign): Add memory_memalign_retry probe.
1125         (__libc_valloc): Add memory_valloc_retry probe.
1126         (__libc_pvalloc): Add memory_pvalloc_retry probe.
1127         (__libc_calloc): Add memory_calloc_retry probe.
1128         * manual/probes.texi: Document them.
1129
1130         * malloc/arena.c (get_free_list): Add probe
1131         memory_arena_reuse_free_list.
1132         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
1133         and memory_arena_reuse.
1134         (arena_get2) [!PER_THREAD]: Likewise.
1135         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
1136         memory_arena_reuse_realloc.
1137         * manual/probes.texi: Document them.
1138
1139         * malloc/malloc.c (__libc_free): Add
1140         memory_mallopt_free_dyn_thresholds probe.
1141         (__libc_mallopt): Add multiple memory_mallopt probes.
1142         * manual/probes.texi: Document them.
1143
1144         * malloc/malloc.c: Include stap-probe.h.
1145         (__libc_mallopt): Add memory_mallopt probe.
1146         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
1147         * manual/probes.texi: New.
1148         * manual/Makefile (chapters): Add probes.
1149         * manual/threads.texi: Set next node.
1150
1151 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
1152
1153         [BZ #15963, #13985]
1154         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
1155         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
1156         Add `Chinese' to `nan' entry name.
1157
1158 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1159
1160         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
1161         (POLYNOMIAL): Likewise.
1162         (TAYLOR_SINCOS): Likewise.
1163         (TAYLOR_SLOW): Likewise.
1164         (__sin): Use TAYLOR_SINCOS.
1165         (__cos): Likewise.
1166         (slow): Use TAYLOR_SLOW.
1167         (sloww): Likewise.
1168         (bsloww): Likewise.
1169         (csloww): Likewise.
1170
1171 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1172
1173         * stdlib/strtod_l.c: Fix buffer overrun.
1174
1175 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1176
1177         * benchtests/Makefile (bench): Add sincos.
1178         * benchtests/bench-sincos.c: New file.
1179
1180         * math/libm-test.inc (cos_test_data): New test inputs.
1181         (sin_test_data): Likewise.
1182
1183         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
1184         macro.
1185         (__sin): Use it.
1186         (__cos): Likewise.
1187         (slow1): Likewise.
1188         (slow2): Likewise.
1189         (sloww1): Likewise.
1190         (sloww2): Likewise.
1191         (bsloww1): Likewise.
1192         (bsloww2): Likewise.
1193         (cslow2): Likewise.
1194         (csloww1): Likewise.
1195         (csloww2): Likewise.
1196
1197         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
1198         function.
1199         (__sin): Use it.
1200         (__cos): Likewise.
1201
1202         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
1203         gotos.
1204         (__cos): Likewise.
1205
1206 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
1207
1208         * config.h.in (HAVE_MIPS_NAN2008): New macro.
1209         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
1210         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
1211         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
1212         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
1213         * elf/cache.c (print_entry): Handle the new cache flags.
1214
1215 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
1216             Aldy Hernandez  <aldyh@redhat.com>
1217
1218         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
1219         Change condition to [_SOFT_FLOAT].
1220         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
1221         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
1222         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
1223         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
1224         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
1225         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
1226         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
1227         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
1228         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
1229         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
1230         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
1231         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
1232         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
1233         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
1234         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
1235         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
1236         declaration.
1237
1238 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
1239
1240         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
1241         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
1242         (__longjmp): Use LOAD_GP to load saved GPRs.
1243         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
1244         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
1245         (__sigsetjmp): Use SAVE_GP to save GPRs.
1246
1247         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
1248         Do not append -msoft-float.
1249         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
1250
1251 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1252
1253         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
1254
1255 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
1256
1257         [BZ #15966]
1258         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
1259         (_FPU_GETCW): Use initial "__" on variable and field names but not
1260         on macro parameter name.
1261         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
1262         parentheses around reference to macro parameter.
1263
1264 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
1265
1266         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
1267         prototype.
1268         (ctype_startup): Use uint32_t in cast and sizeof for
1269         ctype->charnames.
1270
1271 2013-09-11  Jia Liu  <proljc@gmail.com>
1272
1273         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
1274         __daddr_t_defined.
1275         [__FreeBSD__]: Likewise.
1276
1277 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
1278
1279         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1280         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
1281         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
1282         (strchr): Remove __strchr_sse42 ifunc selection.
1283         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
1284         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
1285
1286 2013-09-11  Will Newton  <will.newton@linaro.org>
1287
1288         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
1289         parameter to RES. Remove hardcoded 1000 value.
1290         * benchtests/bench-skeleton.c (main): Pass RES parameter
1291         to TIMING_INIT and multiply result by 1000.
1292
1293 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1294
1295         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1296
1297 2013-09-11  Andreas Schwab  <schwab@suse.de>
1298
1299         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
1300         if not defined.
1301         (O_TMPFILE) [__USE_GNU]: Define.
1302         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
1303         Define.
1304
1305 2013-09-11  Will Newton  <will.newton@linaro.org>
1306
1307         [BZ #15857]
1308         * malloc/malloc.c (__libc_memalign): Check the value of bytes
1309         does not overflow.
1310
1311 2013-09-11  Will Newton  <will.newton@linaro.org>
1312
1313         [BZ #15856]
1314         * malloc/malloc.c (__libc_valloc): Check the value of bytes
1315         does not overflow.
1316
1317 2013-09-11  Will Newton  <will.newton@linaro.org>
1318
1319         [BZ #15855]
1320         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
1321         does not overflow.
1322
1323 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
1324
1325         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
1326         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1327         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
1328         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
1329         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
1330
1331 2013-09-10  Allan McRae  <allan@archlinux.org>
1332
1333         [BZ #15748]
1334         * manual/arith.texi (Parsing of Floats): Clarify
1335         cross-reference.
1336
1337         [BZ #15849]
1338         * manual/install.texi (Running make install): Mention
1339         --enable-pt-chown.
1340         * INSTALL: Regenerated.
1341
1342 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
1343
1344         * csu/init-first.c (_init): Remove the !SHARED condition around
1345         FPU control word initialization.
1346         * elf/dl-support.c (_dl_fpu_control): New variable.
1347         (_dl_aux_init) <AT_FPUCW>: Initialize it.
1348         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
1349         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
1350         * math/test-fpucw-static.c: New file.
1351         * math/test-fpucw-ieee.c: New file.
1352         * math/test-fpucw-ieee-static.c: New file.
1353         * math/Makefile (tests): Add `test-fpucw-ieee' and
1354         `$(tests-static)'.
1355         (tests-static): New variable.
1356         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
1357         dependency to...
1358         [($(build-shared),yes)]
1359         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
1360         ... this.
1361         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
1362         New dependency.
1363
1364 2013-09-09  Allan McRae  <allan@archlinux.org>
1365
1366         [BZ #15939]
1367         * manual/string.texi (Collation Functions): Fix typo in
1368         strcoll example.
1369         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
1370
1371         [BZ #15893]
1372         * stdlib/isomac.c (get_null_defines): Fix memory leak.
1373
1374         [BZ #15892]
1375         * libio/memstream.c (open_memstream): Fix memory leak.
1376         * libio/wmemstream.c (open_wmemstream): Likewise.
1377
1378         [BZ #15895]
1379         * nscd/netgroupcache.c: Fix nesting of ifdefs.
1380
1381 2013-09-09  Will Newton  <will.newton@linaro.org>
1382
1383         * malloc/Makefile: Add tst-realloc to tests.
1384         * malloc/tst-realloc.c: New file.
1385
1386 2013-09-09  Allan McRae  <allan@archlinux.org>
1387
1388         [BZ #15844]
1389         * COPYING: Update from GNU website to fix FSF address.
1390         * COPYING.LIB: Likewise.
1391
1392 2013-09-06  David S. Miller  <davem@davemloft.net>
1393
1394         * po/zh_TW.po: Update Chinese (traditional) translation from
1395         translation project.
1396
1397 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
1398             Joseph Myers  <joseph@codesourcery.com>
1399
1400         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
1401         "localeinfo.h".
1402         (obstack_chunk_alloc): New macro.
1403         (obstack_chunk_free): Likewise.
1404         (record_offset): New function.
1405         (init_locale_data): Likewise.
1406         (align_locale_data): Likewise.
1407         (add_locale_empty): Likewise.
1408         (add_locale_raw_data): Likewise.
1409         (add_locale_raw_obstack): Likewise.
1410         (add_locale_string): Likewise.
1411         (add_locale_wstring): Likewise.
1412         (add_locale_uint32): Likewise.
1413         (add_locale_uint32_array): Likewise.
1414         (add_locale_char): Likewise.
1415         (start_locale_structure): Likewise.
1416         (end_locale_structure): Likewise.
1417         (start_locale_prelude): Likewise.
1418         (end_locale_prelude): Likewise.
1419         (write_locale_data): Take locale_file structure rather than an
1420         iovec.
1421         * locale/programs/locfile.h: Include "obstack.h".
1422         (struct locale_file): Change to store locale file contents instead
1423         of header.
1424         (init_locale_data): New prototype.
1425         (align_locale_data): Likewise.
1426         (add_locale_empty): Likewise.
1427         (add_locale_raw_data): Likewise.
1428         (add_locale_raw_obstack): Likewise.
1429         (add_locale_string): Likewise.
1430         (add_locale_wstring): Likewise.
1431         (add_locale_uint32): Likewise.
1432         (add_locale_uint32_array): Likewise.
1433         (add_locale_char): Likewise.
1434         (start_locale_structure): Likewise.
1435         (end_locale_structure): Likewise.
1436         (start_locale_prelude): Likewise.
1437         (end_locale_prelude): Likewise.
1438         (write_locale_data): Update prototype.
1439         * locale/programs/3level.h (struct TABLE): Remove result field.
1440         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
1441         Use new locale_file interface.
1442         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
1443         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
1444         * locale/programs/ld-address.c (address_output): Use new
1445         locale_file interface.
1446         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
1447         NO_ADD_LOCALE.
1448         (collate_finish): Don't call collseq_table_finalize.
1449         (collate_output): Use new locale_file interface.
1450         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
1451         in file.
1452         (NO_FINALIZE): Change to NO_ADD_LOCALE.
1453         (TABLE): Move defines earlier in file.
1454         (ELEMENT): Likewise.
1455         (DEFAULT): Likewise.
1456         (wctrans_table_add): Move macro and inline function earlier in
1457         file.
1458         (struct wctype_table): Move type earlier in file.
1459         (add_locale_wctype_table): New static prototype.
1460         (struct locale_ctype_t): Use logical types instead of struct iovec
1461         pointers for members.
1462         (ctype_output): Use new locale_file interface.
1463         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
1464         new locale_file interface.
1465         (allocate_arrays): Update for use of new locale_file interface.
1466         * locale/programs/ld-identification.c (identification_output): Use
1467         new locale_file interface.
1468         * locale/programs/ld-measurement.c (measurement_output): Likewise.
1469         * locale/programs/ld-messages.c (messages_output): Likewise.
1470         * locale/programs/ld-monetary.c (monetary_output): Likewise.
1471         * locale/programs/ld-name.c (name_output): Likewise.
1472         * locale/programs/ld-numeric.c (numeric_output): Likewise.
1473         * locale/programs/ld-paper.c (paper_output): Likewise.
1474         * locale/programs/ld-telephone.c (telephone_output): Likewise.
1475         * locale/programs/ld-time.c (time_output): Likewise.
1476
1477 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1478
1479         * benchtests/Makefile: Add memrchr benchmark.
1480         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
1481         benchmark as memrchr.
1482         * benchtests/bench-memrchr-ifunc.c: New file.
1483         * benchtests/bench-memrchr.c: New file.
1484
1485 2013-09-06   Will Newton  <will.newton@linaro.org>
1486
1487         * benchtests/Makefile (string-bench): Add memcpy.
1488
1489 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
1490             Cong Wang  <amwang@redhat.com>
1491
1492         * sysdeps/unix/sysv/linux/bits/in.h
1493         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
1494         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
1495         before __USE_KERNEL_IPV6_DEFS uses.
1496         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
1497         IPPROTO_BEETPH.
1498         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
1499         sockaddr_in6, or ipv6_mreq.
1500
1501 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1502
1503         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
1504         memory access for final bytes in some large inputs.
1505         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
1506
1507 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1508
1509         * string/test-memrchr.c: New file.
1510         * string/test-memrchr-ifunc.c: New file.
1511         * string/Makefile: Add new memrchr testcase.
1512
1513 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
1514
1515         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
1516         fanotify_init returns EPERM.
1517
1518 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
1519
1520         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
1521         errors.
1522         (top level): Treat second token from macro or constant entries for
1523         allowed headers as allowed.
1524         * include/complex.h: Condition internal declarations on
1525         [!_ISOMAC].
1526         * include/fenv.h: Condition include of <stdbool.h> and internal
1527         declarations on [!_ISOMAC].
1528
1529 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
1530
1531         [BZ #15923]
1532         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
1533
1534 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
1535
1536         * configure.in (--enable-versioning): Remove configure option.
1537         (libc_cv_asm_symver_directive): Remove configure test.
1538         (libc_cv_ld_version_script_option): Likewise.
1539         (VERSIONING): Remove variable and AC_SUBST.
1540         (DO_VERSIONING): Remove AC_DEFINE.
1541         * configure: Regenerated.
1542         * config.h.in (DO_VERSIONING): Remove macro.
1543         * Makerules [$(versioning) = yes]: Change conditionals to
1544         [$(build-shared) = yes].
1545         * config.make.in (versioning): Remove variable.
1546         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
1547         [$(build-shared) = yes].
1548         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
1549         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
1550         * elf/Makefile [$(versioning) = yes]: Change conditionals to
1551         [$(build-shared) = yes].
1552         * extra-lib.mk [$(versioning) = yes]: Likewise.
1553         * hurd/Makefile [$(versioning) = yes]: Likewise.
1554         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
1555         [SHARED].
1556         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
1557         [SHARED].
1558         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
1559         [SHARED && !NO_HIDDEN].
1560         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
1561         [SHARED].
1562         [SHARED && DO_VERSIONING]: Likewise..
1563         * libio/Makefile [$(versioning) = yes]: Change conditionals to
1564         [$(build-shared) = yes].
1565         * manual/install.texi (--disable-versioning): Remove
1566         documentation.
1567         * INSTALL: Regenerated.
1568         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
1569         to [SHARED].
1570         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
1571         [$(build-shared) = yes].
1572         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
1573         * sysdeps/i386/i686/multiarch/strstr-c.c
1574         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
1575         [SHARED && !NO_HIDDEN].
1576         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
1577         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
1578         * sysdeps/powerpc/powerpc32/dl-machine.c
1579         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
1580         * sysdeps/powerpc/powerpc32/sysdep.h
1581         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
1582         to [SHARED && PIC && !NO_HIDDEN].
1583         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
1584         conditional to [SHARED].
1585
1586 2013-09-04   Will Newton  <will.newton@linaro.org>
1587
1588         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
1589         * benchtests/bench-string.h: Include bench-timing.h instead
1590         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
1591         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
1592         call to HP_TIMING_DIFF_INIT.
1593         * benchtests/bench-memccpy.c: Use bench-timing.h macros
1594         instead of hp-timing.h macros.
1595         * benchtests/bench-memchr.c: Likewise.
1596         * benchtests/bench-memcmp.c: Likewise.
1597         * benchtests/bench-memcpy.c: Likewise.
1598         * benchtests/bench-memmem.c: Likewise.
1599         * benchtests/bench-memmove.c: Likewise.
1600         * benchtests/bench-memset.c: Likewise.
1601         * benchtests/bench-rawmemchr.c: Likewise.
1602         * benchtests/bench-strcasecmp.c: Likewise.
1603         * benchtests/bench-strcasestr.c: Likewise.
1604         * benchtests/bench-strcat.c: Likewise.
1605         * benchtests/bench-strchr.c: Likewise.
1606         * benchtests/bench-strcmp.c: Likewise.
1607         * benchtests/bench-strcpy.c: Likewise.
1608         * benchtests/bench-strcpy_chk.c: Likewise.
1609         * benchtests/bench-strlen.c: Likewise.
1610         * benchtests/bench-strncasecmp.c: Likewise.
1611         * benchtests/bench-strncat.c: Likewise.
1612         * benchtests/bench-strncmp.c: Likewise.
1613         * benchtests/bench-strncpy.c: Likewise.
1614         * benchtests/bench-strnlen.c: Likewise.
1615         * benchtests/bench-strpbrk.c: Likewise.
1616         * benchtests/bench-strrchr.c: Likewise.
1617         * benchtests/bench-strspn.c: Likewise.
1618         * benchtests/bench-strstr.c: Likewise.
1619
1620 2013-09-04  Will Newton  <will.newton@linaro.org>
1621
1622         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
1623
1624 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
1625
1626         [BZ #15427]
1627         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
1628         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
1629         * math/libm-test.inc (lgamma_test_data): Add more tests.
1630         * sysdeps/i386/fpu/libm-test-ulps: Update.
1631         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1632
1633 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
1634
1635         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
1636         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1637         Add ifunc.
1638         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
1639         Add strcmp-sse2-unaligned
1640         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
1641
1642 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
1643
1644         * Versions.def (libc): Add GLIBC_2.19.
1645
1646 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
1647
1648         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
1649         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
1650
1651 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
1652
1653         [BZ #14155]
1654         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
1655         intermediate calculations in recurrence.
1656         (__ieee754_ynf): Likewise.
1657         * math/libm-test.inc (jn_test_data): Do not allow spurious
1658         underflow exception.  Add more tests.
1659         (yn_test_data): Add more tests.
1660         * sysdeps/i386/fpu/libm-test-ulps: Update.
1661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1662
1663 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
1664
1665         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
1666
1667 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
1668
1669         * csu/init-first.c: Fix then/than typos.
1670         * locale/programs/ld-collate.c: Likewise.
1671         * locale/programs/linereader.h: Likewise.
1672         * manual/charset.texi: Likewise.
1673         * manual/filesys.texi: Likewise.
1674         * manual/stdio.texi: Likewise.
1675         * manual/string.texi: Likewise.
1676         * stdlib/fmtmsg.c: Likewise.
1677         * sysdeps/i386/stpncpy.S: Likewise.
1678         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
1679         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
1680         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
1681         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
1682
1683 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
1684
1685         * elf/dl-open.c: Fix typos.
1686         * iconvdata/gbbig5.c: Likewise.
1687         * iconvdata/iso-2022-jp.c: Likewise.
1688         * iconv/gconv_int.h: Likewise.
1689         * iconv/loop.c: Likewise.
1690         * nis/rpcsvc/nis.h: Likewise.
1691         * resolv/ns_name.c: Likewise.
1692         * stdio-common/vfscanf.c: Likewise.
1693         * streams/stropts.h: Likewise.
1694         * sunrpc/rpc_thread.c: Likewise.
1695         * sysdeps/i386/strpbrk.S: Likewise.
1696         * sysdeps/ieee754/k_standard.c: Likewise.
1697         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1698         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
1699         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1700         * sysdeps/mach/hurd/profil.c: Likewise.
1701         * sysdeps/s390/dl-procinfo.h: Likewise.
1702         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
1703         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1704         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1705         * sysdeps/x86_64/dl-trampoline.S: Likewise.
1706         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1707
1708 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
1709
1710         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
1711         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
1712
1713 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
1714
1715         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
1716         aix specific files.
1717         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
1718         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
1719         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
1720         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
1721         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
1722         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
1723         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
1724         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
1725
1726 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
1727             Roland McGrath  <roland@hack.frob.com>
1728
1729         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
1730         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
1731
1732 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1733
1734         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
1735         __executable_start symbol instead of _start.
1736
1737 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
1738
1739         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
1740         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
1741         Move macros to...
1742         * sysdeps/gnu/ldsodefs.h: ... this new file.
1743
1744         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
1745         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
1746         instead of ELFOSABI_LINUX.
1747
1748         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
1749         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
1750         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
1751         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
1752         Likewise.
1753         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
1754         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
1755         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
1756         Likewise.
1757         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
1758         (ibm_extended_long_double): Add ieee_nan member.
1759         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
1760         (do_test): New function.
1761
1762         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
1763         TEST_TRUNC.
1764         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
1765         functions, renamed from truncdfsf_test, trunctfsf_test,
1766         trunctfdf_test.
1767         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
1768         functions.
1769         (do_test): Run all these.
1770
1771 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
1772
1773         * argp/argp-help.c: Fix typos.
1774         * argp/argp-parse.c: Likewise.
1775         * debug/backtracesyms.c: Likewise.
1776         * elf/elf.h: Likewise.
1777         * malloc/malloc.c: Likewise.
1778         * nis/nis_print.c: Likewise.
1779         * resolv/res_comp.c: Likewise.
1780         * stdlib/stdlib.h: Likewise.
1781         * sunrpc/clnt_tcp.c: Likewise.
1782         * sunrpc/clnt_udp.c: Likewise.
1783         * sunrpc/clnt_unix.c: Likewise.
1784         * sysdeps/unix/bsd/ptsname.c: Likewise.
1785         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1786         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
1787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
1788         Likewise.
1789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1790         Likewise.
1791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1792         Likewise.
1793         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1794
1795 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1796
1797         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
1798         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1799
1800 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
1801
1802         [BZ #15897]
1803         * dlfcn/Makefile (tests): Add bug-dl-leaf.
1804         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
1805         ($(objpfx)bug-dl-leaf): New rule.
1806         ($(objpfx)bug-dl-leaf.so): Likewise.
1807         ($(objpfx)bug-dl-leaf.out): Likewise.
1808         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
1809         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
1810         * dlfcn/bug-dl-leaf.c: New test.
1811         * dlfcn/bug-dl-leaf-lib.c: Likewise.
1812         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
1813         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
1814         (dlclose): Likewise.
1815         (dlmopen): Likewise.
1816
1817 2013-08-27  Roland McGrath  <roland@hack.frob.com>
1818
1819         * include/netdb.h [!_ISOMAC]:
1820         Don't include <tls.h>.
1821         (h_errno, __libc_h_errno): Move declaration and macros out of
1822         [_LIBC_REENTRANT].
1823
1824         * include/resolv.h [_RESOLV_H_]:
1825         Don't include <tls.h>.
1826         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
1827         * resolv/res_libc.c: Don't include <tls.h>.
1828         (_res): Use __attribute__ ((nocommon)) in place of
1829         __attribute__ ((section (".bss"))).
1830
1831         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
1832         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
1833
1834         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
1835
1836         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
1837         only under [SIOCGIFCONF && SIOCGIFNETMASK].
1838
1839         * resolv/res_mkquery.c: Include <sys/time.h>.
1840
1841         * inet/ifreq.c: Moved to ...
1842         * sysdeps/unix/ifreq.c: ... here.
1843         * inet/ifreq.c: New file, true stub version.
1844
1845         * socket/sa_len.c: New file.
1846         * socket/Makefile (aux): Add it.
1847         * sysdeps/unix/sysv/linux/Makefile
1848         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
1849         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
1850         and #include <socket/sa_len.c>.
1851         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
1852         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
1853
1854         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
1855         * bits/socket.h: ... here.
1856
1857         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
1858         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
1859         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
1860
1861 2013-08-27  Andreas Schwab  <schwab@suse.de>
1862
1863         [BZ #15736]
1864         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
1865         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
1866         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
1867         * string/test-strcasecmp.c (test_main): Run tests in several
1868         locales.
1869         * string/test-strncasecmp.c (test_main): Likewise.
1870
1871         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
1872         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
1873         to __strcasecmp_nonascii and __strncasecmp_nonascii.
1874         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
1875         (__strncasecmp_ssse3) [PIC]: Likewise.
1876
1877 2013-08-26  Roland McGrath  <roland@hack.frob.com>
1878
1879         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
1880
1881         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
1882         instead of explicitly declaring xdecrypt.
1883         * nis/nss_nis/nis-publickey.c: Likewise.
1884
1885 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1886
1887         [BZ #15890]
1888         * nscd/aicache.c: Include res_hconf.h.
1889         (addhstaiX): Initialize res_hconf.
1890
1891 2013-08-26  Andreas Schwab  <schwab@suse.de>
1892
1893         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
1894         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
1895
1896 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1897
1898         * nscd/aicache.c (addhstaiX): Fix indentation.
1899
1900 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
1901
1902         * configure.ac: Quote $build_pt_chown test.
1903         * configure: Regenerated.
1904
1905 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
1906
1907         [BZ #15532]
1908         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
1909         * math/s_cexpf.c (__cexpf): Likewise.
1910         * math/s_cexpl.c (__cexpl): Likewise.
1911         * math/libm-test.inc (cexp_test_data): Correct expected return
1912         value for NaN + i0.  Add another test.
1913
1914 2013-08-22  David S. Miller  <davem@davemloft.net>
1915
1916         * po/ca.po: Update Catalan translation from translation project.
1917         * po/uk.po: Add Ukrainian translations from translation project.
1918
1919 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
1920
1921         [BZ #15797]
1922         * math/s_fdim.c (__fdim): Check for infinite arguments if result
1923         is infinite, not alongside NaN test.
1924         * math/s_fdimf.c (__fdimf): Likewise.
1925         * math/s_fdiml.c (__fdiml): Likewise.
1926         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
1927         errno is unchanged.
1928
1929 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
1930
1931         * argp/argp-help.c: Fix typos.
1932         * crypt/speeds.c: Likewise.
1933         * csu/check_fds.c: Likewise.
1934         * elf/dl-load.c: Likewise.
1935         * elf/dl-open.c: Likewise.
1936         * elf/reldep3.c: Likewise.
1937         * elf/reldep.c: Likewise.
1938         * elf/sprof.c: Likewise.
1939         * iconv/iconv_charmap.c: Likewise.
1940         * iconv/skeleton.c: Likewise.
1941         * iconv/strtab.c: Likewise.
1942         * io/lockf64.c: Likewise.
1943         * libio/libioP.h: Likewise.
1944         * resolv/gai_notify.c: Likewise.
1945         * resolv/ns_name.c: Likewise.
1946         * resolv/ns_samedomain.c: Likewise.
1947         * resolv/res_send.c: Likewise.
1948         * stdlib/random.c: Likewise.
1949         * sunrpc/rpc/xdr.h: Likewise.
1950         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
1951         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
1952         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
1953         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
1954         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
1955         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
1956         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
1957         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
1958         * sysdeps/mach/hurd/check_fds.c: Likewise.
1959         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
1960         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
1961         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
1962         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
1963         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
1964         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
1965         * sysdeps/pthread/aio_notify.c: Likewise.
1966         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
1967         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
1968         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
1969         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1970         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
1971
1972 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1973
1974         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
1975         version if bit_Slow_SSE4_2 is set.
1976         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1977         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1978
1979 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1980
1981         [BZ #15867]
1982         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
1983         trampoline stack frame information.
1984         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
1985         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
1986         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
1987         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
1988         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
1989         * sysdeps/unix/sysv/linux/powerpc/init-first.c
1990         (_libc_vdso_platform_setup): Initialize the signal trampolines.
1991         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
1992         sa_flags value.
1993         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
1994         interrupting a syscall and set with option SA_SIGINFO.
1995
1996 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
1997
1998         [BZ #15531]
1999         * math/s_cproj.c (__cproj): Only return an infinity if one part of
2000         argument is infinite.
2001         * math/s_cprojf.c (__cprojf): Likewise.
2002         * math/s_cprojl.c (__cprojl): Likewise.
2003         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
2004         * math/libm-test.inc (cproj_test_data): Add more tests.
2005
2006         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
2007
2008         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
2009         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
2010         size.  Use __ffs to determine corresponding shift.
2011
2012 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
2013             Roland McGrath  <roland@hack.frob.com>
2014
2015         * Makefile (INSTALL): Remove trailing blank lines from output of
2016         makeinfo.
2017
2018 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2019
2020         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
2021         Align 32 bit compat elf_greg to 8 bytes.
2022
2023 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2024
2025         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
2026
2027 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2028
2029         * string/strcoll_l.c (coll_seq): New structure.
2030         (get_next_seq_cached): New function.
2031         (get_next_seq): New function.
2032         (do_compare): New function.
2033         (STRCOLL): Use GNU style definition.  Simplify implementation
2034         by using get_next_seq, get_next_seq_cached and do_compare.
2035
2036 2013-08-16  Florian Weimer  <fweimer@redhat.com>
2037
2038         [BZ #14699]
2039         CVE-2013-4237
2040         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
2041         member.
2042         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
2043         member.
2044         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
2045         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
2046         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
2047         conditional.
2048         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
2049         GETDENTS_64BIT_ALIGNED.
2050         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2051         * manual/filesys.texi (Reading/Closing Directory): Document
2052         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
2053         strongly.
2054         * manual/conf.texi (Limits for Files): Add portability note to
2055         NAME_MAX, PATH_MAX.
2056         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
2057
2058 2013-08-13  Andreas Schwab  <schwab@suse.de>
2059
2060         [BZ #15749]
2061         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
2062         of fabs.
2063         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
2064         LDBL_MAX_EXP >= 16384]: Add tests for it.
2065
2066 2013-08-12  David S. Miller  <davem@davemloft.net>
2067
2068         * version.h (RELEASE): Set to "development".
2069         (VERSION): Set to "2.18.90".
2070         * NEWS: Add 2.19 section.
2071
2072 2013-08-03  David S. Miller  <davem@davemloft.net>
2073
2074         * po/ko.po: Update Korean translation from translation project.
2075
2076 2013-08-01  David S. Miller  <davem@davemloft.net>
2077
2078         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
2079         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
2080         Bilka.
2081
2082 2013-07-30  David S. Miller  <davem@davemloft.net>
2083
2084         * po/fr.po: Update French translation from translation project.
2085
2086 2013-07-28  David S. Miller  <davem@davemloft.net>
2087
2088         * po/cs.po: Update Czech translation from translation project.
2089
2090         * po/sv.po: Update Swedish translation from translation project.
2091
2092 2013-07-27  David S. Miller  <davem@davemloft.net>
2093
2094         * po/eo.po: Update Esperanto translation from translation project.
2095
2096         * po/vi.po: Update Vietnamese translation from translation project.
2097
2098         * po/de.po: Update German translation from translation project.
2099
2100 2013-07-26  David S. Miller  <davem@davemloft.net>
2101
2102         * po/bg.po: Update Bulgarian translation from translation project.
2103
2104         * po/nl.po: Update Dutch translation from translation project.
2105         * po/pl.po: Update Polish translation from translation project.
2106         * po/ru.po: Update Russian translation from translation project.
2107
2108 2013-07-24  David S. Miller  <davem@davemloft.net>
2109
2110         * po/libc.pot: Update.
2111
2112 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2113
2114         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
2115         variable page size.
2116         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
2117         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
2118         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
2119
2120 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2121
2122         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
2123
2124 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2125             Andreas Schwab  <schwab@suse.de>
2126             Roland McGrath  <roland@hack.frob.com>
2127             Joseph Myers  <joseph@codesourcery.com>
2128             Carlos O'Donell  <carlos@redhat.com>
2129
2130         [BZ #15755]
2131         * config.h.in: Define HAVE_PT_CHOWN.
2132         * config.make.in (build-pt-chown): New variable.
2133         * configure.in (--enable-pt_chown): New configure option.
2134         * configure: Regenerate.
2135         * login/Makefile: Include Makeconfig.  Build pt_chown only if
2136         build-pt-chown is enabled.
2137         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
2138         pt_chown to fix pty ownership.
2139         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
2140         CLOSE_ALL_FDS.
2141         * manual/install.texi (Configuring and compiling): Mention
2142         --enable-pt_chown. Add @findex for grantpt.
2143         * INSTALL: Regenerate.
2144
2145 2013-07-20  David S. Miller  <davem@davemloft.net>
2146
2147         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
2148         difference between 32-bit and 64-bit.
2149
2150 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
2151
2152         [BZ #15711]
2153         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
2154         Avoid system header dependency with -ffreestanding.
2155         ($(objpfx)bits/syscall%d): Likewise.
2156
2157 2013-07-13  David S. Miller  <davem@davemloft.net>
2158
2159         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
2160         underflows from atanl/atan2l due to bug 15319.
2161         (casinh_test_data): Likewise.
2162
2163 2013-07-07  David S. Miller  <davem@davemloft.net>
2164
2165         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
2166
2167 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
2168
2169         * sysdeps/i386/fpu/libm-test-ulps: Update.
2170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2171
2172 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2173
2174         * configure.in (--enable-lock-elision): Fix message text.
2175         * INSTALL: Regenerate.
2176         * configure: Regenerate.
2177
2178 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2179
2180         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2181
2182 2013-07-03  Andreas Jaeger  <aj@suse.de>
2183
2184         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
2185         define.
2186         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
2187         (ptrace_peeksiginfo_args): Add.
2188         (__ptrace_peeksiginfo_flags): Add.
2189         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2190         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2191         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2192
2193 2013-07-03  Allan McRae  <allan@archlinux.org>
2194
2195         * sysdeps/i386/fpu/libm-test-ulps: Update.
2196
2197 2013-07-02  David S. Miller  <davem@davemloft.net>
2198
2199         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2200
2201 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
2202
2203         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2204
2205 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
2206
2207         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2209
2210 2013-07-02  Andi Kleen <ak@linux.intel.com>
2211
2212         * config.h.in (ENABLE_LOCK_ELISION): Add.
2213         * configure.in (--enable-lock-elision): Add option.
2214         * manual/install.texi: Document --enable lock elision.
2215         * configure: Regenerate
2216         * INSTALL: Regenerate.
2217
2218 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2219
2220         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
2221         SSE4.2 strcasecmp for libc.a.
2222         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
2223
2224 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
2225
2226         [BZ #13304]
2227         * soft-fp/op-common.h (_FP_FMA): New macro.
2228         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
2229         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
2230         (_FP_MUL_MEAT_1_imm): ... here.
2231         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
2232         (_FP_MUL_MEAT_1_wide): ... here.
2233         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
2234         (_FP_MUL_MEAT_1_hard): ... here.
2235         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
2236         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
2237         (_FP_MUL_MEAT_2_wide): ... here.
2238         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
2239         (_FP_MUL_MEAT_2_wide_3mul): ... here.
2240         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
2241         (_FP_MUL_MEAT_2_gmp): ... here.
2242         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
2243         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
2244         (_FP_MUL_MEAT_4_wide): ... here.
2245         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
2246         (_FP_MUL_MEAT_4_gmp): ... here.
2247         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
2248         (_FP_WFRACBITS_DW_S): Likewise.
2249         (_FP_WFRACXBITS_DW_S): Likewise.
2250         (_FP_HIGHBIT_DW_S): Likewise.
2251         (FP_FMA_S): Likewise.
2252         (_FP_FRAC_HIGH_DW_S): Likewise.
2253         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
2254         (_FP_WFRACBITS_DW_D): Likewise.
2255         (_FP_WFRACXBITS_DW_D): Likewise.
2256         (_FP_HIGHBIT_DW_D): Likewise.
2257         (FP_FMA_D): Likewise.
2258         (_FP_FRAC_HIGH_DW_D): Likewise.
2259         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
2260         (_FP_WFRACBITS_DW_E): Likewise.
2261         (_FP_WFRACXBITS_DW_E): Likewise.
2262         (_FP_HIGHBIT_DW_E): Likewise.
2263         (FP_FMA_E): Likewise.
2264         (_FP_FRAC_HIGH_DW_E): Likewise.
2265         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
2266         (_FP_WFRACBITS_DW_Q): Likewise.
2267         (_FP_WFRACXBITS_DW_Q): Likewise.
2268         (_FP_HIGHBIT_DW_Q): Likewise.
2269         (FP_FMA_Q): Likewise.
2270         (_FP_FRAC_HIGH_DW_Q): Likewise.
2271         * soft-fp/fmasf4.c: New file.
2272         * soft-fp/fmadf4.c: Likewise.
2273         * soft-fp/fmatf4.c: Likewise.
2274
2275 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2276
2277         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
2278         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
2279         Silvermont.
2280         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
2281         macro.
2282         (index_Slow_SSE4_2): Likewise.
2283         (index_Prefer_PMINUB_for_stringop): Likewise.
2284         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
2285         bit_Slow_SSE4_2 is set.
2286         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2287         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2288
2289 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2290
2291         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
2292         rtld_global._dl_hwcap2.
2293         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
2294         POWER8.
2295         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
2296         POWER8 feature descriptions defined in _dl_hwcap2.
2297         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
2298         string handling for POWER8 feature bits.
2299         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
2300         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
2301         _dl_powerpc_cap_flags.
2302         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
2303         * sysdeps/powerpc/rtld-global-offsets.sym
2304         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
2305         _dl_hwcap2 in the rtld_global_ro structure.
2306
2307 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2308
2309         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
2310         hardware capabilities in support of AT_HWCAP2.
2311         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
2312         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
2313         GLRO(dl_hwcap2).
2314         (_dl_show_auxv): Add support for calling _dl_procinfo to display
2315         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
2316         explicitly the unknown a_type display mechanism is used.
2317         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
2318         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
2319         struct member.
2320         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
2321         to macro prototype for AT_HWCAP2 support.
2322         * sysdeps/i386/dl-procinfo.h: Likewise.
2323         * sysdeps/s390/dl-procinfo.h: Likewise.
2324         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
2325         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
2326         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
2327         return -1 for unknown a_type display fallback.
2328         * sysdeps/sparc/dl-procinfo.h: Likewise.
2329         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2330         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
2331
2332 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
2333
2334         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
2335         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
2336
2337 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
2338
2339         [BZ #12492]
2340         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
2341         mprotect making __stack_prot writable.
2342
2343 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
2344             Joseph Myers  <joseph@codesourcery.com>
2345
2346         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
2347         as being properly aligned.
2348
2349 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
2350
2351         * dlfcn/modstatic5.c: New file.
2352         * dlfcn/tststatic5.c: New file.
2353         * dlfcn/Makefile (tests): Add tststatic5.
2354         (tests-static): Likewise.
2355         (modules-names): Add modstatic5.
2356         (tststatic5-ENV): New variable.
2357         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
2358
2359         [BZ #15022]
2360         * elf/dl-support.c (_dl_main_map): New variable.
2361         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
2362         (_dl_nns, _dl_load_adds): Set to 1.
2363         (_dl_initial_searchlist): Refer to _dl_main_map.
2364         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
2365         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
2366         call to _dl_get_origin.
2367         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
2368         around call_map.
2369         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
2370         * dlfcn/modstatic3.c: New file.
2371         * dlfcn/tststatic3.c: New file.
2372         * dlfcn/tststatic4.c: New file.
2373         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
2374         (tests-static): Likewise.
2375         (modules-names): Add modstatic3.
2376         (tststatic3-ENV, tststatic4-ENV): New variables.
2377         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
2378         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
2379
2380 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
2381
2382         * configure.in (CC): Require GCC version 4.4 or later.
2383         * configure: Regenerated.
2384         * manual/install.texi (Tools for Compilation): Update GCC version
2385         requirement.
2386         * INSTALL: Regenerated.
2387
2388 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2389
2390         [BZ #15674]
2391         * string/test-memcmp.c (check2): New.
2392         (main): Call check2.
2393
2394         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
2395
2396 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
2397
2398         [BZ #15022]
2399         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
2400         over to...
2401         (dl_open_worker) [!SHARED]: ... here.
2402
2403 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2404
2405         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
2406
2407 2013-06-25  Richard Henderson  <rth@redhat.com>
2408
2409         * locale/programs/locarchive.c: Include <libc-internal.h>
2410
2411 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
2412
2413         * manual/texinfo.tex: Update to version 2013-06-21.17, with
2414         trailing whitespace removed.
2415
2416 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
2417
2418         [BZ #10283]
2419         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
2420         * locale/programs/locarchive.c: Include libc-mmap.h.
2421         (prepare_address_space): Take two new outputs (the mmap base and len).
2422         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
2423         values.
2424         (create_archive): Declare new mmap base and len values for
2425         prepare_address_space, and store the result in ah.
2426         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
2427         (enlarge_archive): If ah->mmap_base is not NULL, use that and
2428         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
2429         Declare new mmap base and len values for
2430         prepare_address_space, and store the result in new_ah.
2431         (open_archive): Declare new mmap base and len values for
2432         prepare_address_space, and store the result in ah.
2433         (close_archive): If ah->mmap_base is not NULL, use that and
2434         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
2435         * sysdeps/generic/libc-mmap.h: New file.
2436
2437 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
2438
2439         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
2440         (ALIGN_UP): Likewise.
2441         (PTR_ALIGN_DOWN): Likewise.
2442         (PTR_ALIGN_UP): Likewise.
2443
2444 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2445
2446         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
2447         entry mapped to PPC_PLATFORM_POWER8.
2448         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
2449         POWER8.
2450         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
2451         (_dl_string_platform): Add case for exporting platform position for
2452         POWER8.
2453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
2454         search path to sysdeps/powerpc/powerpc32/power8 directory.
2455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
2456         search path to sysdeps/powerpc/powerpc64/power8 directory.
2457         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
2458         power7 directories.
2459         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
2460         power7 directories.
2461
2462 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2463
2464         * INSTALL: Regenerate.
2465
2466         * nscd/connections.c (nscd_init): Fix comment.
2467
2468 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
2469
2470         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
2471
2472         [BZ #15667]
2473         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
2474         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
2475
2476 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
2477
2478         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
2479         DL_DST_REQ_STATIC.
2480         (DL_DST_REQ_STATIC): Remove macro.
2481
2482 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
2483
2484         [BZ #7006]
2485         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
2486         with a shift of 0 bits.
2487
2488 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
2489
2490         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
2491         $(tststatic-ENV).
2492
2493 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2494
2495         [BZ #15655]
2496         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
2497
2498 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2499
2500         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
2501         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
2502         accepts -fno-tree-loop-distribute-patterns.
2503         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
2504         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
2505         recursive call.
2506         * string/memset.c (memset): Likewise.
2507         * string/test-memmove.c (simple_memmove): Disable loop transformation
2508         to library calls.
2509         * string/test-memset.c (simple_memset): Likewise.
2510         * benchtests/bench-memmove.c (simple_memmove): Likewise.
2511         * benchtests/bench-memset.c (simple_memset): Likewise.
2512         * configure: Regenerated.
2513
2514 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
2515
2516         * math/test-misc.c (main): Ignore fesetround failure when failures
2517         of subsequent rounding tests would be ignored.
2518
2519         [BZ #15654]
2520         * math/fedisblxcpt.c (fedisableexcept): Return 0.
2521         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
2522         * math/fegetenv.c (__fegetenv): Return 0.
2523         * math/fegetexcept.c (fegetexcept): Return 0.
2524         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
2525         FE_TONEAREST.
2526         * math/feholdexcpt.c (feholdexcept): Return 0.
2527         * math/fesetenv.c (__fesetenv): Return 0.
2528         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
2529         argument FE_TONEAREST.
2530         * math/feupdateenv.c (__feupdateenv): Return 0.
2531         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
2532
2533 2013-06-18  Roland McGrath  <roland@hack.frob.com>
2534
2535         * elf/rtld-Rules (rtld-compile-command.S): New variable.
2536         (rtld-compile-command.s, rtld-compile-command.c): New variables.
2537         ($(objpfx)rtld-%.os rules): Use them.
2538
2539 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2540
2541         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
2542         fields.
2543
2544 2013-06-17  Roland McGrath  <roland@hack.frob.com>
2545
2546         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
2547         length of target pattern, then descending length of dependency pattern.
2548         * configure.in (AWK): Require gawk 3.1.2 or newer.
2549         * manual/install.texi (Tools for Compilation): Say that we do.
2550         * configure: Regenerated.
2551
2552         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
2553         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
2554         * scripts/sysd-rules.awk: ... this new script.
2555         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
2556         than a glob-style pattern.
2557
2558 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
2559
2560         * math/test-misc.c (main): Do not treat incorrectly rounded
2561         conversions as failure unless ROUNDING_TESTS passes.
2562
2563 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
2564
2565         [BZ #15631]
2566         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
2567         restore exception state around main square root computation, then
2568         check for inexactness explicitly.
2569
2570         * math/libm-test.inc (fma_test_data): Add another test.
2571
2572 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2573
2574         * manual/threads.texi (Non-POSIX Extensions): New document
2575         node.  Document pthread_getattr_default_np and
2576         pthread_setattr_default_np.
2577
2578         * Versions.def (libpthread): Add GLIBC_2.18.
2579         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
2580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2581         Likewise.
2582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2583         Likewise.
2584         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2585         Likewise.
2586         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2587         Likewise.
2588         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
2589         Likewise.
2590         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
2591         Likewise.
2592         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
2593         Likewise.
2594         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
2595         Likewise.
2596         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
2597         Likewise.
2598
2599 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2600
2601         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2602         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
2603
2604 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2605             H.J. Lu  <hjl.tools@gmail.com>
2606
2607         [BZ #15627]
2608         * sysdeps/x86_64/rtld-memset.c: Remove file.
2609         * sysdeps/x86_64/rtld-memset.S: New file.
2610
2611 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
2612
2613         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
2614         (test_in_one_mode): Take arguments for whether the rounding mode
2615         is supported for each floating-point type.
2616         (do_test): Pass new arguments to test_in_one_mode using
2617         ROUNDING_TESTS.
2618
2619 2013-06-13  Roland McGrath  <roland@hack.frob.com>
2620
2621         * posix/tst-waitid.c (do_test): Distinguish different instances of
2622         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
2623         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
2624         before entering the kernel for waitpid.
2625
2626 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
2627
2628         * NEWS: Fix note on clock function precision.  Text by Roland
2629         McGrath.
2630
2631 2013-06-13  Roland McGrath  <roland@hack.frob.com>
2632
2633         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
2634         it into place only when and if the sanity check passes.
2635
2636 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
2637
2638         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
2639         output for whether conversion result is exact.  Take argument
2640         indicating whether type is IBM long double.
2641         (round_for_all): Change need_exact field to ibm_ld.
2642         * stdlib/tst-strtod-round.c (struct exactness): New type.
2643         (struct test): Change bool ld_ok field to struct exactness exact.
2644         (TEST): Update all definitions for change to field.
2645         (tests): Regenerate array contents.
2646         (test_in_one_mode): Take pointer to new field instead of old ld_ok
2647         field value.  Check for IBM long double here.
2648         (do_test): Update calls to test_in_one_mode.
2649
2650 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
2651
2652         [BZ #12515]
2653         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
2654         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
2655
2656 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2657
2658         [BZ #15605]
2659         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
2660         generated by the compiler on loop optimizations.
2661         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
2662         general definitions.
2663
2664 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
2665
2666         * math/bug-nextafter.c: Include <math-tests.h>.
2667         (main): Only test for exceptions if EXCEPTION_TESTS is true for
2668         the relevant type.
2669         * math/bug-nexttoward.c: Include <math-tests.h>.
2670         (main): Only test for exceptions if EXCEPTION_TESTS is true for
2671         the relevant type.
2672         * math/test-misc.c: Include <math-tests.h>.
2673         (main): Only test for exceptions if EXCEPTION_TESTS is true for
2674         the relevant type.
2675
2676 2013-06-12  Andreas Jaeger  <aj@suse.de>
2677
2678         * po/ia.po: Update Interlingua translation from translation
2679         project.
2680
2681 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
2682
2683         * include/fenv.h: Include stdbool.h.
2684         (struct rm_ctx): New structure.
2685         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
2686         Define macro.
2687         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
2688         (SET_RESTORE_ROUNDF): Likewise.
2689         (SET_RESTORE_ROUNDL): Likewise.
2690         (SET_RESTORE_ROUND_NOEX): Likewise.
2691         (SET_RESTORE_ROUND_NOEXF): Likewise.
2692         (SET_RESTORE_ROUND_NOEXL): Likewise.
2693         (SET_RESTORE_ROUND_53BIT): Likewise.
2694         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
2695         (libc_feresetround_noexf_ctx): Likewise.
2696         (libc_feresetround_noexl_ctx): Likewise.
2697         (libc_feholdsetround_53bit_ctx): Likewise.
2698         (libc_feresetround_53bit_ctx): Likewise.
2699         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
2700         (libc_feholdexcept_setround_sse_ctx): New function.
2701         (libc_fesetenv_sse_ctx): Likewise.
2702         (libc_feupdateenv_sse_ctx): Likewise.
2703         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
2704         (libc_feholdexcept_setround_387_ctx): Likewise.
2705         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
2706         (libc_feholdsetround_387_prec_ctx): Likewise.
2707         (libc_feholdsetround_387_ctx): Likewise.
2708         (libc_feholdsetround_387_53bit_ctx): Likewise.
2709         (libc_feholdsetround_sse_ctx): Likewise.
2710         (libc_feresetround_sse_ctx): Likewise.
2711         (libc_feresetround_387_ctx): Likewise.
2712         (libc_feupdateenv_387_ctx): Likewise.
2713         (libc_feholdexcept_setroundf_ctx): Define macro.
2714         (libc_fesetenvf_ctx): Likewise.
2715         (libc_feupdateenvf_ctx): Likewise.
2716         (libc_feholdsetroundf_ctx): Likewise.
2717         (libc_feresetroundf_ctx): Likewise.
2718         (libc_feholdexcept_setround_ctx): Likewise.
2719         (libc_fesetenv_ctx): Likewise.
2720         (libc_feupdateenv_ctx): Likewise.
2721         (libc_feholdsetround_ctx): Likewise.
2722         (libc_feresetround_ctx): Likewise.
2723         (libc_feholdexcept_setroundl_ctx): Likewise.
2724         (libc_feupdateenvl_ctx): Likewise.
2725         (libc_feholdsetroundl_ctx): Likewise.
2726         (libc_feresetroundl_ctx): Likewise.
2727         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
2728         (libc_feresetround_53bit_ctx): Likewise.
2729
2730 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2731
2732         * locale/iso-639.def: Convert to UTF-8.
2733
2734 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
2735
2736         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
2737         (EXCEPTION_TESTS_double): Likewise.
2738         (EXCEPTION_TESTS_long_double): Likewise.
2739         (EXCEPTION_TESTS): Likewise.
2740         * math/libm-test.inc (test_exceptions): Only test exceptions if
2741         EXCEPTION_TESTS (FLOAT).
2742
2743 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2744
2745         * benchtests/Makefile (string-bench): Add strcpy_chk and
2746         stpcpy_chk.
2747         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
2748         * benchtests/bench-stpcpy_chk.c: New file.
2749         * benchtests/bench-strcpy_chk-ifunc.c: New file.
2750         * benchtests/bench-strcpy_chk.c: New file.
2751         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
2752         code.
2753         (do_test): Likewise.
2754
2755 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2756
2757         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
2758         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
2759         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
2760         with tabs where appropriate.
2761         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
2762         dl-procinfo.h.
2763         [PPC_PLATFORM_PPC440]: Likewise.
2764         [PPC_PLATFORM_PPC464]: Likewise.
2765         [PPC_PLATFORM_PPC476]: Likewise.
2766         (_dl_string_platform): Add support for detecting ppc405, ppc440,
2767         ppc464, and ppc476 platform strings merging from ports/
2768         dl-procinfo.h.
2769
2770 2013-06-11  Andreas Schwab  <schwab@suse.de>
2771
2772         [BZ #14991]
2773         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
2774         (from_ucs4_idx): Regenerate.
2775         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
2776         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
2777         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
2778         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
2779         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
2780         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
2781         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
2782         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
2783         from FROM_LOOP and TO_LOOP specific macros.
2784         (BODY): Handle combining characters.
2785         * iconvdata/BIG5HKSCS.irreversible: Update.
2786         * iconvdata/BIG5HKSCS.precomposed: New file.
2787         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
2788         characters.
2789         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
2790
2791 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2792
2793         * include/sys/time.h: Fix indentation and add copyright header.
2794
2795         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
2796         (do_test): Likewise.
2797         * string/test-memchr.c (do_one_test): Likewise.
2798         (do_test): Likewise.
2799         * string/test-memcmp.c (do_one_test): Likewise.
2800         (do_test): Likewise.
2801         * string/test-memcpy.c (do_one_test): Likewise.
2802         (do_test): Likewise.
2803         * string/test-memmem.c (do_one_test): Likewise.
2804         (do_test): Likewise.
2805         (do_random_tests): Likewise.
2806         * string/test-memmove.c (do_one_test): Likewise.
2807         (do_test): Likewise.
2808         * string/test-memset.c (do_one_test): Likewise.
2809         (do_test): Likewise.
2810         * string/test-rawmemchr.c (do_one_test): Likewise.
2811         (do_test): Likewise.
2812         * string/test-strcasecmp.c (do_one_test): Likewise.
2813         (do_test): Likewise.
2814         * string/test-strcasestr.c (do_one_test): Likewise.
2815         (do_test): Likewise.
2816         * string/test-strcat.c (do_one_test): Likewise.
2817         (do_test): Likewise.
2818         * string/test-strchr.c (do_one_test): Likewise.
2819         (do_test): Likewise.
2820         * string/test-strcmp.c (do_one_test): Likewise.
2821         (do_test): Likewise.
2822         * string/test-strcpy.c (do_one_test): Likewise.
2823         (do_test): Likewise.
2824         * string/test-string.h: Likewise.
2825         (test_init): Likewise.
2826         * string/test-strlen.c (do_one_test): Likewise.
2827         (do_test): Likewise.
2828         * string/test-strncasecmp.c (do_one_test): Likewise.
2829         (do_test): Likewise.
2830         * string/test-strncat.c (do_one_test): Likewise.
2831         (do_test): Likewise.
2832         * string/test-strncmp.c (do_one_test): Likewise.
2833         (do_test_limit): Likewise.
2834         (do_test): Likewise.
2835         * string/test-strncpy.c (do_one_test): Likewise.
2836         (do_test): Likewise.
2837         * string/test-strnlen.c (do_one_test): Likewise.
2838         (do_test): Likewise.
2839         * string/test-strpbrk.c (do_one_test): Likewise.
2840         (do_test): Likewise.
2841         * string/test-strrchr.c (do_one_test): Likewise.
2842         (do_test): Likewise.
2843         * string/test-strspn.c (do_one_test): Likewise.
2844         (do_test): Likewise.
2845         * string/test-strstr.c (do_one_test): Likewise.
2846         (do_test): Likewise.
2847
2848         * benchtests/Makefile (string-bench): Add string benchmarks.
2849         * benchtests/bench-bcopy-ifunc.c: New file.
2850         * benchtests/bench-bcopy.c: New file.
2851         * benchtests/bench-bzero-ifunc.c: New file.
2852         * benchtests/bench-bzero.c: New file.
2853         * benchtests/bench-memccpy-ifunc.c: New file.
2854         * benchtests/bench-memccpy.c: New file.
2855         * benchtests/bench-memchr-ifunc.c: New file.
2856         * benchtests/bench-memchr.c: New file.
2857         * benchtests/bench-memcmp-ifunc.c: New file.
2858         * benchtests/bench-memcmp.c: New file.
2859         * benchtests/bench-memmem-ifunc.c: New file.
2860         * benchtests/bench-memmem.c: New file.
2861         * benchtests/bench-memmove-ifunc.c: New file.
2862         * benchtests/bench-memmove.c: New file.
2863         * benchtests/bench-mempcpy-ifunc.c: New file.
2864         * benchtests/bench-mempcpy.c: New file.
2865         * benchtests/bench-memset-ifunc.c: New file.
2866         * benchtests/bench-memset.c: New file.
2867         * benchtests/bench-rawmemchr-ifunc.c: New file.
2868         * benchtests/bench-rawmemchr.c: New file.
2869         * benchtests/bench-stpcpy-ifunc.c: New file.
2870         * benchtests/bench-stpcpy.c: New file.
2871         * benchtests/bench-stpncpy-ifunc.c: New file.
2872         * benchtests/bench-stpncpy.c: New file.
2873         * benchtests/bench-strcasecmp-ifunc.c: New file.
2874         * benchtests/bench-strcasecmp.c: New file.
2875         * benchtests/bench-strcasestr-ifunc.c: New file.
2876         * benchtests/bench-strcasestr.c: New file.
2877         * benchtests/bench-strcat-ifunc.c: New file.
2878         * benchtests/bench-strcat.c: New file.
2879         * benchtests/bench-strchr-ifunc.c: New file.
2880         * benchtests/bench-strchr.c: New file.
2881         * benchtests/bench-strchrnul-ifunc.c: New file.
2882         * benchtests/bench-strchrnul.c: New file.
2883         * benchtests/bench-strcmp-ifunc.c: New file.
2884         * benchtests/bench-strcmp.c: New file.
2885         * benchtests/bench-strcpy-ifunc.c: New file.
2886         * benchtests/bench-strcpy.c: New file.
2887         * benchtests/bench-strcspn-ifunc.c: New file.
2888         * benchtests/bench-strcspn.c: New file.
2889         * benchtests/bench-strlen-ifunc.c: New file.
2890         * benchtests/bench-strlen.c: New file.
2891         * benchtests/bench-strncasecmp-ifunc.c: New file.
2892         * benchtests/bench-strncasecmp.c: New file.
2893         * benchtests/bench-strncat-ifunc.c: New file.
2894         * benchtests/bench-strncat.c: New file.
2895         * benchtests/bench-strncmp-ifunc.c: New file.
2896         * benchtests/bench-strncmp.c: New file.
2897         * benchtests/bench-strncpy-ifunc.c: New file.
2898         * benchtests/bench-strncpy.c: New file.
2899         * benchtests/bench-strnlen-ifunc.c: New file.
2900         * benchtests/bench-strnlen.c: New file.
2901         * benchtests/bench-strpbrk-ifunc.c: New file.
2902         * benchtests/bench-strpbrk.c: New file.
2903         * benchtests/bench-strrchr-ifunc.c: New file.
2904         * benchtests/bench-strrchr.c: New file.
2905         * benchtests/bench-strspn-ifunc.c: New file.
2906         * benchtests/bench-strspn.c: New file.
2907         * benchtests/bench-strstr-ifunc.c: New file.
2908         * benchtests/bench-strstr.c: New file.
2909
2910         * benchtests/Makefile: Disable parallel execution of targets.
2911         (string-bench): Add memcpy.
2912         (benchset): New variable to store a list of benchmark sets.
2913         (bench-func): Renamed from bench.
2914         (bench-set): New target.
2915         (bench): Depend on bench-func and bench-set.
2916         * benchtests/README: Add section on benchmark sets.
2917         * benchtests/bench-memcpy-ifunc.c: New file.
2918         * benchtests/bench-memcpy.c: New file.
2919         * benchtests/bench-string.h: New file.
2920
2921 2013-06-11  Andreas Schwab  <schwab@suse.de>
2922
2923         [BZ #15577]
2924         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
2925         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
2926         values in the triple.
2927         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
2928         terminator in the group key.
2929
2930 2013-06-11  Andreas Jaeger  <aj@suse.de>
2931
2932         * po/zh_TW.po: Update Chinese (traditional) translation from
2933         translation project.
2934
2935 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2936
2937         * include/time.h (__clock_gettime): Add libc_hidden_proto.
2938         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
2939         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
2940         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2941         (clock_getcpuclockid): Likewise.
2942         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
2943         Add weak_alias and libc_hidden_def.
2944         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
2945         * rt/clock_gettime.c (clock_gettime): Rename to
2946         __clock_gettime.  Add weak_alias and libc_hidden_def.
2947         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
2948         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
2949         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
2950         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
2951         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
2952         Likewise.
2953         * rt/clock_settime.c (clock_settime): Rename to
2954         __clock_settime.  Add weak_alias and libc_hidden_def.
2955         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
2956
2957 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
2958
2959         * mach/err_boot.sub: Remove trailing whitespace.
2960         * mach/err_ipc.sub: Likewise.
2961         * mach/err_mach.sub: Likewise.
2962
2963         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
2964         (ROUNDING_TESTS_double): Likewise.
2965         (ROUNDING_TESTS_long_double): Likewise.
2966         (ROUNDING_TESTS): Likewise.
2967         * math/libm-test.inc: Include <math-tests.h>.
2968         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
2969         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
2970         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
2971         (IF_ROUND_INIT_FE_UPWARD): Likewise.
2972
2973 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2974
2975         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
2976         of assigning.
2977
2978 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
2979
2980         * sysdeps/gnu/errlist.awk: Do not generate space at end of
2981         otherwise empty TRANS lines.
2982         * sysdeps/gnu/errlist.c: Regenerated.
2983
2984         * catgets/gencat.c (error_print): Use (void) in function
2985         definition.
2986         * crypt/crypt_util.c (__init_des): Likewise.
2987         * crypt/speeds.c (Stop): Likewise.
2988         (main): Likewise.
2989         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
2990         * inet/ruserpass.c (token): Likewise.
2991         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
2992         * intl/localealias.c (extend_alias_table): Likewise.
2993         * intl/plural-exp.c (init_germanic_plural): Likewise.
2994         * libio/fcloseall.c (__fcloseall): Likewise.
2995         * libio/genops.c (_IO_flush_all): Likewise.
2996         (_IO_flush_all_linebuffered): Likewise.
2997         (_IO_cleanup): Likewise.
2998         (_IO_iter_begin): Likewise.
2999         (_IO_iter_end): Likewise.
3000         (_IO_list_lock): Likewise.
3001         (_IO_list_unlock): Likewise.
3002         (_IO_list_resetlock): Likewise.
3003         * libio/getchar.c (getchar): Likewise.
3004         * libio/getchar_u.c (getchar_unlocked): Likewise.
3005         * libio/getwchar.c (getwchar): Likewise.
3006         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3007         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
3008         * login/getpt.c (__getpt): Likewise.
3009         * login/tst-utmp.c (main): Likewise.
3010         * malloc/hooks.c (__malloc_check_init): Likewise.
3011         * malloc/malloc.c (__malloc_stats): Likewise.
3012         * malloc/mtrace.c (tr_break): Likewise.
3013         (mtrace): Likewise.
3014         (muntrace): Likewise.
3015         * misc/fstab.c (endfsent): Likewise.
3016         * misc/getclktck.c (__getclktck): Likewise.
3017         * misc/getdtsz.c (__getdtablesize): Likewise.
3018         * misc/gethostid.c (gethostid): Likewise.
3019         * misc/getpagesize.c (__getpagesize): Likewise.
3020         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
3021         (__get_nprocs): Likewise.
3022         (__get_phys_pages): Likewise.
3023         (__get_avphys_pages): Likewise.
3024         * misc/getttyent.c (getttyent): Likewise.
3025         (setttyent): Likewise.
3026         (endttyent): Likewise.
3027         * misc/getusershell.c (getusershell): Likewise.
3028         (endusershell): Likewise.
3029         (setusershell): Likewise.
3030         (initshells): Likewise.
3031         * misc/hsearch.c (__hdestroy): Likewise.
3032         * misc/sync.c (sync): Likewise.
3033         * misc/syslog.c (closelog_internal): Likewise.
3034         (closelog): Likewise.
3035         * misc/ttyslot.c (ttyslot): Likewise.
3036         * misc/vhangup.c (vhangup): Likewise.
3037         * posix/fork.c (__fork): Likewise.
3038         * posix/getegid.c (__getegid): Likewise.
3039         * posix/geteuid.c (__geteuid): Likewise.
3040         * posix/getgid.c (__getgid): Likewise.
3041         * posix/getpid.c (__getpid): Likewise.
3042         * posix/getppid.c (__getppid): Likewise.
3043         * posix/getuid.c (__getuid): Likewise.
3044         * posix/pause.c (pause): Likewise.
3045         * posix/setpgrp.c (setpgrp): Likewise.
3046         * posix/setsid.c (__setsid): Likewise.
3047         * posix/test-vfork.c (noop): Likewise.
3048         * resolv/gethnamaddr.c (_endhtent): Likewise.
3049         (_gethtent): Likewise.
3050         (ht_endhostent): Likewise.
3051         (gethostent): Likewise.
3052         (dns_service): Likewise.
3053         * stdlib/drand48.c (drand48): Likewise.
3054         * stdlib/lrand48.c (lrand48): Likewise.
3055         * stdlib/mrand48.c (mrand48): Likewise.
3056         * stdlib/rand.c (rand): Likewise.
3057         * stdlib/random.c (__random): Likewise.
3058         * stdlib/setenv.c (clearenv): Likewise.
3059         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
3060         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
3061         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3062         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
3063         (__get_nprocs): Likewise.
3064         (__get_phys_pages): Likewise.
3065         (__get_avphys_pages): Likewise.
3066         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
3067         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
3068         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
3069         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
3070         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
3071         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
3072         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
3073         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
3074         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3075         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
3076         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
3077         * sysdeps/mach/hurd/sync.c (sync): Likewise.
3078         * sysdeps/posix/clock.c (clock): Likewise.
3079         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
3080         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
3081         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
3082         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3083         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
3084         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
3085         (__get_nprocs_conf): Likewise.
3086         (__get_phys_pages): Likewise.
3087         (__get_avphys_pages): Likewise.
3088         * time/clock.c (clock): Likewise.
3089         * time/tzset.c (__tzname_max): Likewise.
3090
3091 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
3092
3093         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
3094         (__bswap_32): Do not use "register".
3095         * crypt/crypt.c (_ufc_doit_r): Likewise.
3096         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
3097         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
3098         * gmon/gmon.c (__monstartup): Likewise.
3099         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
3100         * hurd/hurdmalloc.c (more_memory): Likewise.
3101         (malloc): Likewise.
3102         (free): Likewise.
3103         (realloc): Likewise.
3104         (malloc_fork_prepare): Likewise.
3105         (malloc_fork_parent): Likewise.
3106         (malloc_fork_child): Likewise.
3107         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
3108         (_svcauth_des): Likewise.
3109         * inet/inet_lnaof.c (inet_lnaof): Likewise.
3110         * inet/inet_net.c (inet_network): Likewise.
3111         * inet/inet_netof.c (inet_netof): Likewise.
3112         * inet/rcmd.c (__validuser2_sa): Likewise.
3113         * io/fts.c (fts_open): Likewise.
3114         (fts_load): Likewise.
3115         (fts_close): Likewise.
3116         (fts_read): Likewise.
3117         (fts_children): Likewise.
3118         (fts_build): Likewise.
3119         (fts_stat): Likewise.
3120         (fts_sort): Likewise.
3121         (fts_alloc): Likewise.
3122         (fts_lfree): Likewise.
3123         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
3124         (_IO_file_xsgetn): Likewise.
3125         (_IO_file_xsgetn_mmap): Likewise.
3126         * libio/iofopncook.c (_IO_cookie_read): Likewise.
3127         (_IO_cookie_write): Likewise.
3128         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
3129         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
3130         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
3131         * malloc/obstack.c (_obstack_begin): Likewise.
3132         (_obstack_begin_1): Likewise.
3133         (_obstack_newchunk): Likewise.
3134         (_obstack_allocated_p): Likewise.
3135         (obstack_free): Likewise.
3136         (_obstack_memory_used): Likewise.
3137         * misc/getttyent.c (getttynam): Likewise.
3138         (getttyent): Likewise.
3139         (skip): Likewise.
3140         (value): Likewise.
3141         * misc/getusershell.c (initshells): Likewise.
3142         * misc/syslog.c (__vsyslog_chk): Likewise.
3143         * misc/ttyslot.c (ttyslot): Likewise.
3144         * nis/nis_hash.c (__nis_hash): Likewise.
3145         * posix/fnmatch_loop.c (FCT): Likewise.
3146         * posix/getconf.c (print_all): Likewise.
3147         (main): Likewise.
3148         * posix/getopt.c (exchange): Likewise.
3149         * posix/glob.c (globfree): Likewise.
3150         (prefix_array): Likewise.
3151         (__glob_pattern_type): Likewise.
3152         * resolv/arpa/nameser.h (NS_GET16): Likewise.
3153         (NS_GET32): Likewise.
3154         (NS_PUT16): Likewise.
3155         (NS_PUT32): Likewise.
3156         * resolv/gethnamaddr.c (getanswer): Likewise.
3157         (gethostbyname2): Likewise.
3158         (gethostbyaddr): Likewise.
3159         (_gethtent): Likewise.
3160         (_gethtbyname2): Likewise.
3161         (_gethtbyaddr): Likewise.
3162         * resolv/ns_print.c (dst_s_get_int16): Likewise.
3163         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
3164         * resolv/res_init.c (__res_vinit): Likewise.
3165         (net_mask): Likewise.
3166         * resolv/res_mkquery.c (outchar): Likewise.
3167         (PRINT): Likewise.
3168         * stdio-common/printf_fp.c (outchar): Likewise.
3169         (PRINT): Likewise.
3170         * stdio-common/printf_fphex.c (outchar): Likewise.
3171         (PRINT): Likewise.
3172         * stdio-common/printf_size.c (outchar): Likewise.
3173         (PRINT): Likewise.
3174         * stdio-common/test_rdwr.c (main): Likewise.
3175         * stdio-common/tfformat.c (matches): Likewise.
3176         * stdio-common/vfprintf.c (outchar): Likewise.
3177         (printf_unknown): Likewise.
3178         (buffered_vfprintf): Likewise.
3179         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
3180         * stdio-common/xbug.c (AppendToBuffer): Likewise.
3181         (ReadFile): Likewise.
3182         * stdlib/qsort.c (SWAP): Likewise.
3183         (_quicksort): Likewise.
3184         * stdlib/setenv.c (__add_to_environ): Likewise.
3185         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
3186         * stdlib/strtol_l.c (__strtol_l): Likewise.
3187         * stdlib/tst-strtod.c (main): Likewise.
3188         * stdlib/tst-strtol.c (main): Likewise.
3189         * stdlib/tst-strtoll.c (main): Likewise.
3190         * string/bits/string2.h (__strcmp_cc): Likewise.
3191         (__strcmp_cg): Likewise.
3192         (__strcspn_c1): Likewise.
3193         (__strcspn_c2): Likewise.
3194         (__strcspn_c3): Likewise.
3195         (__strspn_c1): Likewise.
3196         (__strspn_c2): Likewise.
3197         (__strspn_c3): Likewise.
3198         (__strsep_1c): Likewise.
3199         (__strsep_2c): Likewise.
3200         (__strsep_3c): Likewise.
3201         * string/memccpy.c (__memccpy): Likewise.
3202         * string/stpcpy.c (__stpcpy): Likewise.
3203         * string/strcmp.c (strcmp): Likewise.
3204         * string/strrchr.c (strrchr): Likewise.
3205         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
3206         Likewise.
3207         * sysdeps/mach/hurd/getcwd.c
3208         (_hurd_canonicalize_directory_name_internal): Likewise.
3209         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
3210         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
3211         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
3212         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
3213         Likewise, in both definitions.
3214         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
3215         definitions.
3216         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
3217         64] (__bswap_64): Likewise.
3218         * time/test_time.c (main): Likewise.
3219         * time/tzfile.c (__tzfile_read): Likewise.
3220         (__tzfile_compute): Likewise.
3221         * time/tzset.c (__tzset_parse_tz): Likewise.
3222         (tzset_internal): Likewise.
3223         (compute_change): Likewise.
3224         * wcsmbs/wcscat.c (__wcscat): Likewise.
3225         * wcsmbs/wcschr.c (wcschr): Likewise.
3226         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
3227         * wcsmbs/wcscspn.c (wcscspn): Likewise.
3228         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3229         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
3230         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3231         * wcsmbs/wcsstr.c (wcsstr): Likewise.
3232         * wcsmbs/wmemchr.c (wmemchr): Likewise.
3233         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
3234         * wcsmbs/wmemset.c (wmemset): Likewise.
3235
3236 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
3237
3238         * scripts/config.guess: Update to version 2013-05-16.
3239         * scripts/config.sub: Update to version 2013-04-24.
3240         * scripts/install-sh: Update to version 2011-11-20.07.
3241         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
3242         * scripts/move-if-change: Update to version 2012-01-06 07:23.
3243
3244 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
3245
3246         * debug/fgetws_u_chk.c: Fix leading whitespaces.
3247         * elf/sln.c: Likewise.
3248         * hurd/hurd/ioctl.h: Likewise.
3249         * hurd/hurdmalloc.c: Likewise.
3250         * hurd/xattr.c: Likewise.
3251         * include/shlib-compat.h: Likewise.
3252         * inet/ruserpass.c: Likewise.
3253         * libio/iofgets_u.c: Likewise.
3254         * libio/iofgetws_u.c: Likewise.
3255         * locale/programs/ld-identification.c: Likewise.
3256         * locale/programs/ld-time.c: Likewise.
3257         * mach/msg-destroy.c: Likewise.
3258         * nss/nss_files/files-netgrp.c: Likewise.
3259         * resolv/res_data.c: Likewise.
3260         * soft-fp/op-1.h: Likewise.
3261         * soft-fp/op-2.h: Likewise.
3262         * soft-fp/op-4.h: Likewise.
3263         * soft-fp/op-common.h: Likewise.
3264         * stdio-common/printf_fphex.c: Likewise.
3265         * stdlib/strtod_l.c: Likewise.
3266         * sunrpc/rpc/clnt.h: Likewise.
3267         * sysdeps/generic/framestate.c: Likewise.
3268         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3269         * sysdeps/i386/bsd-setjmp.S: Likewise.
3270         * sysdeps/i386/__longjmp.S: Likewise.
3271         * sysdeps/i386/setjmp.S: Likewise.
3272         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3273         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3274         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3275         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3276         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3277         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
3278         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
3279         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
3280         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
3281         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
3282         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
3283         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3284         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3285         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3286         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3287         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3288         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3289         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
3290         * sysdeps/ieee754/support.c: Likewise.
3291         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
3292         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
3293         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
3294         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
3295         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
3296         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
3297         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
3298         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
3299         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
3300         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
3301         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
3302         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
3303         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
3304         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
3305         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
3306         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
3307         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
3308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
3309
3310 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
3311
3312         * posix/transbug.c: Remove executable mode.
3313
3314 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
3315
3316         * crypt/speeds.c: Remove trailing whitespace.
3317         * dlfcn/default.c: Likewise.
3318         * elf/ifuncdep2.c: Likewise.
3319         * elf/ifuncmain1.c: Likewise.
3320         * elf/ifuncmain1vis.c: Likewise.
3321         * elf/testobj.h: Likewise.
3322         * elf/tst-stackguard1.c: Likewise.
3323         * gmon/sys/gmon.h: Likewise.
3324         * hurd/hurdmsg.c: Likewise.
3325         * hurd/new-fd.c: Likewise.
3326         * hurd/ports-get.c: Likewise.
3327         * iconvdata/ibm1008_420.c: Likewise.
3328         * inet/tst-getni1.c: Likewise.
3329         * inet/tst-getni2.c: Likewise.
3330         * libio/ioungetc.c: Likewise.
3331         * libio/wfiledoalloc.c: Likewise.
3332         * manual/libm-err-tab.pl: Likewise.
3333         * math/w_dremf.c: Likewise.
3334         * misc/ftruncate.c: Likewise.
3335         * posix/bug-glob2.c: Likewise.
3336         * posix/tst-pcre.c: Likewise.
3337         * posix/wait4.c: Likewise.
3338         * resolv/README: Likewise.
3339         * resolv/res_debug.h: Likewise.
3340         * resolv/tst-inet_ntop.c: Likewise.
3341         * setjmp/bug269-setjmp.c: Likewise.
3342         * soft-fp/extended.h: Likewise.
3343         * soft-fp/op-1.h: Likewise.
3344         * soft-fp/op-2.h: Likewise.
3345         * soft-fp/op-4.h: Likewise.
3346         * soft-fp/op-8.h: Likewise.
3347         * soft-fp/testit.c: Likewise.
3348         * stdio-common/bug16.c: Likewise.
3349         * stdlib/random.c: Likewise.
3350         * sunrpc/rpcsvc/rquota.x: Likewise.
3351         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3352         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3353         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3354         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3355         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
3356         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
3357         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3358         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
3359         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
3360         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
3361         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
3362         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
3363         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3364         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
3365         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3366         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
3367         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
3368         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
3369         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
3370         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3371         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3372         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3373         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
3374         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
3375         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
3376         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
3377         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
3378         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
3379         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
3380         * sysdeps/ieee754/s_lib_version.c: Likewise.
3381         * sysdeps/mach/hurd/check_fds.c: Likewise.
3382         * sysdeps/mach/hurd/getsockname.c: Likewise.
3383         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
3384         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3385         * sysdeps/powerpc/bits/link.h: Likewise.
3386         * sysdeps/powerpc/dl-procinfo.c: Likewise.
3387         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
3388         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
3389         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
3390         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
3391         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3392         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
3393         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
3394         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
3395         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
3396         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3397         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
3398         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
3399         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
3400         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
3401         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
3402         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3403         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3404         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
3405         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
3406         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
3407         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
3408         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3409         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
3410         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
3411         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
3412         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
3413         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
3414         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
3415         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3416         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3417         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
3418         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3419         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3420         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
3421         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
3422         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
3423         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3424         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3425         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
3426         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3427         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3428         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3429         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
3430         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3431         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
3432         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
3433         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3434         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
3435         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
3436         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
3437         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
3438         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3439         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3440         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3441         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3442         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3443         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
3444         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
3445         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3446         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3447         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3448         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
3449         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3450         * sysdeps/powerpc/sysdep.h: Likewise.
3451         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3452         * sysdeps/s390/s390-64/sub_n.S: Likewise.
3453         * sysdeps/sh/dl-trampoline.S: Likewise.
3454         * sysdeps/sh/memset.S: Likewise.
3455         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
3456         * sysdeps/sh/strlen.S: Likewise.
3457         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
3458         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
3459         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
3460         * sysdeps/sparc/sparc32/rem.S: Likewise.
3461         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
3462         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
3463         * sysdeps/sparc/sparc32/strchr.S: Likewise.
3464         * sysdeps/sparc/sparc32/udiv.S: Likewise.
3465         * sysdeps/sparc/sparc32/urem.S: Likewise.
3466         * sysdeps/sparc/sparc64/add_n.S: Likewise.
3467         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3468         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
3469         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
3470         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
3471         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
3472         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
3473         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
3474         * sysdeps/unix/bsd/times.c: Likewise.
3475         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
3476         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
3478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
3479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
3480         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
3481         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3482         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
3483         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
3484         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
3485         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
3486         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
3487         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
3488         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
3489         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
3490         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3491         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3492         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
3493         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
3494         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
3495         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
3496         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
3497         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
3498         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
3499         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
3500         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
3501         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
3502         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3503         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
3504         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
3505         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
3506         * sysdeps/x86_64/strcspn.S: Likewise.
3507
3508 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3509
3510         * locale/C-translit.h: Revert #include <stdint.h> because this is a
3511         generated file.  Regenerate properly from gen-translit.pl.
3512         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
3513         locale/C-translit.h.
3514
3515 2013-06-05  Andreas Schwab  <schwab@suse.de>
3516
3517         [BZ #15100]
3518         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
3519         week as 6 instead of -1.
3520         * time/tst-strptime.c (day_tests): Add test case.
3521
3522 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3523
3524         * sysdeps/generic/math_private.h
3525         (libc_feholdexcept_setround_53bit): Replace with
3526         libc_feholdsetround_53bit.
3527         (libc_feupdateenv_53bit): Replace with
3528         libc_feresetround_53bit.
3529         (SET_RESTORE_ROUND_53BIT): Adjust.
3530
3531 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
3532
3533         * string/test-strchrnul.c: Add copyright header.
3534
3535         * posix/tst-getaddrinfo4.c: Increase test timeout.
3536
3537 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
3538
3539         [BZ #15536]
3540         * math/libm-test.inc (MAX_EXP): Remove
3541         (MIN_EXP): Define.
3542         (ulp): Use MIN_EXP - MANT_DIG.
3543         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
3544
3545 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
3546
3547         * po/be.po: Revert last change.
3548         * po/zh_CN.po: Likewise.
3549         * po/header.pot: Likewise.
3550
3551 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
3552
3553         * Makefile ($(common-objpfx)linkobj/libc.so): Define
3554         link-libc-deps to empty as target-specific variable.
3555         * Makerules (link-libc-args): New variable.
3556         (libc-for-link): Likewise.
3557         (link-libc-deps): Likewise.
3558         (lib%.so): Depend on $(link-libc-deps).  Link with
3559         $(link-libc-args).
3560         (build-module): Link with $(link-libc-args).
3561         (build-module-asneeded): Likewise.
3562         (build-module-helper-objlist): Filter out $(link-libc-deps) from
3563         list of objects.
3564         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
3565         target-specific variable.
3566         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
3567         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
3568         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
3569         libc.
3570         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
3571         libc and ld.so.
3572         ($(objpfx)libpcprofile.so): Likewise.
3573         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
3574         libc_nonshared.a.
3575         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
3576         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
3577         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
3578         $(link-libc-deps).
3579         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
3580         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
3581         * login/Makefile ($(objpfx)libutil.so): Likewise.
3582         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
3583         * math/Makefile ($(objpfx)libm.so): Likewise.
3584         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
3585         $(objpfx)libnsl.so): Define libc-for-link as target-specific
3586         variable instead of depending directly on libc.
3587         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
3588         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
3589         $(link-libc-deps).
3590         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
3591         libc.
3592         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
3593         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
3594         ($(objpfx)libanl.so): Likewise.
3595         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
3596         ld.so.
3597         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
3598         $(link-libc-deps).
3599         * sysdeps/i386/fpu/Makefile: Remove file.
3600         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
3601         ($(objpfx)libm.so): Remove dependency on ld.so.
3602
3603 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
3604
3605         [BZ # 15553]
3606         * nis/yp_xdr.c (XDRMAXNAME): Define.
3607         (XDRMAXRECORD): Define.
3608         (xdr_domainname): Use XDRMAXNAME.
3609         (xdr_mapname): Likewise.
3610         (xdr_peername): Likewise.
3611         (xdr_keydat): Use XDRMAXRECORD.
3612         (xdr_valdat): Likewise.
3613
3614 2013-05-30  Jeff Law  <law@redhat.com>
3615
3616         [BZ #14256]
3617         * manual/errno.texi (ESTALE): Update to account for more than
3618         just NFS file systems.
3619         * sysdeps/gnu/errlist.c: Regenerated.
3620
3621 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3622
3623         [BZ #15465]
3624         * elf/Makefile (tests): Add tst-null-argv.
3625         (modules-names):  Add tst-null-argv-lib.
3626         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
3627         (tst-null-argv-ENV): Set environment for tst-null-argv.
3628         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
3629         (RTLD_PROGNAME): New macro.
3630         * elf/tst-null-argv.c: New test case.
3631         * elf/tst-null-argv-lib.c: Library for test case.
3632         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
3633         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
3634         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
3635         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
3636         * elf/dl-init.c (call_init): Likewise.
3637         (_dl_init): Likewise.
3638         * elf/dl-load.c (print_search_path): Likewise.
3639         (_dl_map_object): Likewise.
3640         * elf/dl-lookup.c (do_lookup_x): Likewise.
3641         (add_dependency): Likewise.
3642         (_dl_lookup_symbol_x): Likewise.
3643         (_dl_debug_bindings): Likewise.
3644         * elf/dl-open.c (_dl_show_scope): Likewise.
3645         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3646         * elf/dl-version.c (match_symbol): Likewise.
3647         (_dl_check_map_versions): Likewise.
3648         * elf/rtld.c (dl_main): Likewise.
3649         (print_unresolved): Use RTLD_PROGNAME.
3650         (print_missing_version): Likewise.
3651         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
3652         (elf_machine_rela): Likewise.
3653         * sysdeps/powerpc/powerpc32/dl-machine.c
3654         (__process_machine_rela): Likewise.
3655         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3656         Likewise.
3657         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3658         Likewise.
3659         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
3660         Likewise.
3661         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3662         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
3663         Likewise.
3664         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
3665         Likewise.
3666         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3667
3668 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
3669
3670         * po/be.po: Add descriptive title.
3671         * po/zh_CN.po: Likewise.
3672         * po/header.pot: Likewise.
3673
3674 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
3675
3676         * locale/programs/locarchive.c (create_archive): Inlucde fname in
3677         error message.
3678         (enlarge_archive): Likewise.
3679
3680 2013-05-28  Ben North  <ben@redfrontdoor.org>
3681
3682         * manual/arith.texi (frexp): It is the magnitude of the return
3683         value which lies in [0.5, 1), not the return value itself.
3684
3685 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3686
3687         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3688
3689 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
3690
3691         * stdio-common/bug26.c (main): Correct fscanf template.
3692
3693         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
3694         declare _dl_skip_args.
3695
3696         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
3697         Don't declare.
3698
3699         * manual/platform.texi: Add missing @end deftypefun.
3700
3701 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
3702
3703         [BZ #15529]
3704         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
3705         bit of mantissa of 2^16382.
3706         * math/libm-test.inc (hypot_test_data): Add more tests.
3707
3708         * math/libm-test.inc: Add drem and pow10 to list of tested
3709         functions.
3710         (pow10_test): New function.
3711         (drem_test): Likewise.
3712         (drem_test_tonearest): Likewise.
3713         (drem_test_towardzero): Likewise.
3714         (drem_test_downward): Likewise.
3715         (drem_test_upward): Likewise.
3716         (main): Call the new functions.
3717
3718         * math/libm-test.inc (finite_test_data): Remove.
3719         (finite_test): Run tests from isfinite_test_data.
3720         (gamma_test_data): Remove.
3721         (gamma_test): Run tests from lgamma_test_data.
3722         * sysdeps/i386/fpu/libm-test-ulps: Update.
3723         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3724
3725 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3726
3727         * manual/platform.texi: Add PowerPC PPR function set documentation.
3728         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
3729         implementation.
3730
3731 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
3732
3733         * math/libm-test.inc (MAX_EXP): Define.
3734         (ULPDIFF): Define.
3735         (ulp): New function.
3736         (check_float_internal): Use ULPDIFF.
3737         (cpow_test): Disable failing test.
3738         (check_ulp): Test ulp() implemetnation.
3739         (main): Call check_ulp before starting tests.
3740
3741 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
3742
3743         * math/gen-libm-test.pl (generate_testfile): Do not handle
3744         START_DATA and END_DATA.
3745         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
3746         END_DATA.
3747         (acos_tonearest_test_data): Likewise.
3748         (acos_towardzero_test_data): Likewise.
3749         (acos_downward_test_data): Likewise.
3750         (acos_upward_test_data): Likewise.
3751         (acosh_test_data): Likewise.
3752         (asin_test_data): Likewise.
3753         (asin_tonearest_test_data): Likewise.
3754         (asin_towardzero_test_data): Likewise.
3755         (asin_downward_test_data): Likewise.
3756         (asin_upward_test_data): Likewise.
3757         (asinh_test_data): Likewise.
3758         (atan_test_data): Likewise.
3759         (atanh_test_data): Likewise.
3760         (atan2_test_data): Likewise.
3761         (cabs_test_data): Likewise.
3762         (cacos_test_data): Likewise.
3763         (cacosh_test_data): Likewise.
3764         (carg_test_data): Likewise.
3765         (casin_test_data): Likewise.
3766         (casinh_test_data): Likewise.
3767         (catan_test_data): Likewise.
3768         (catanh_test_data): Likewise.
3769         (cbrt_test_data): Likewise.
3770         (ccos_test_data): Likewise.
3771         (ccosh_test_data): Likewise.
3772         (ceil_test_data): Likewise.
3773         (cexp_test_data): Likewise.
3774         (cimag_test_data): Likewise.
3775         (clog_test_data): Likewise.
3776         (clog10_test_data): Likewise.
3777         (conj_test_data): Likewise.
3778         (copysign_test_data): Likewise.
3779         (cos_test_data): Likewise.
3780         (cos_tonearest_test_data): Likewise.
3781         (cos_towardzero_test_data): Likewise.
3782         (cos_downward_test_data): Likewise.
3783         (cos_upward_test_data): Likewise.
3784         (cosh_test_data): Likewise.
3785         (cosh_tonearest_test_data): Likewise.
3786         (cosh_towardzero_test_data): Likewise.
3787         (cosh_downward_test_data): Likewise.
3788         (cosh_upward_test_data): Likewise.
3789         (cpow_test_data): Likewise.
3790         (cproj_test_data): Likewise.
3791         (creal_test_data): Likewise.
3792         (csin_test_data): Likewise.
3793         (csinh_test_data): Likewise.
3794         (csqrt_test_data): Likewise.
3795         (ctan_test_data): Likewise.
3796         (ctan_tonearest_test_data): Likewise.
3797         (ctan_towardzero_test_data): Likewise.
3798         (ctan_downward_test_data): Likewise.
3799         (ctan_upward_test_data): Likewise.
3800         (ctanh_test_data): Likewise.
3801         (ctanh_tonearest_test_data): Likewise.
3802         (ctanh_towardzero_test_data): Likewise.
3803         (ctanh_downward_test_data): Likewise.
3804         (ctanh_upward_test_data): Likewise.
3805         (erf_test_data): Likewise.
3806         (erfc_test_data): Likewise.
3807         (exp_test_data): Likewise.
3808         (exp_tonearest_test_data): Likewise.
3809         (exp_towardzero_test_data): Likewise.
3810         (exp_downward_test_data): Likewise.
3811         (exp_upward_test_data): Likewise.
3812         (exp10_test_data): Likewise.
3813         (exp2_test_data): Likewise.
3814         (expm1_test_data): Likewise.
3815         (fabs_test_data): Likewise.
3816         (fdim_test_data): Likewise.
3817         (finite_test_data): Likewise.
3818         (floor_test_data): Likewise.
3819         (fma_test_data): Likewise.
3820         (fma_towardzero_test_data): Likewise.
3821         (fma_downward_test_data): Likewise.
3822         (fma_upward_test_data): Likewise.
3823         (fmax_test_data): Likewise.
3824         (fmin_test_data): Likewise.
3825         (fmod_test_data): Likewise.
3826         (fpclassify_test_data): Likewise.
3827         (frexp_test_data): Likewise.
3828         (gamma_test_data): Likewise.
3829         (hypot_test_data): Likewise.
3830         (ilogb_test_data): Likewise.
3831         (isfinite_test_data): Likewise.
3832         (isgreater_test_data): Likewise.
3833         (isgreaterequal_test_data): Likewise.
3834         (isinf_test_data): Likewise.
3835         (isless_test_data): Likewise.
3836         (islessequal_test_data): Likewise.
3837         (islessgreater_test_data): Likewise.
3838         (isnan_test_data): Likewise.
3839         (isnormal_test_data): Likewise.
3840         (issignaling_test_data): Likewise.
3841         (isunordered_test_data): Likewise.
3842         (j0_test_data): Likewise.
3843         (j1_test_data): Likewise.
3844         (jn_test_data): Likewise.
3845         (ldexp_test_data): Likewise.
3846         (lgamma_test_data): Likewise.
3847         (lrint_test_data): Likewise.
3848         (lrint_tonearest_test_data): Likewise.
3849         (lrint_towardzero_test_data): Likewise.
3850         (lrint_downward_test_data): Likewise.
3851         (lrint_upward_test_data): Likewise.
3852         (llrint_test_data): Likewise.
3853         (llrint_tonearest_test_data): Likewise.
3854         (llrint_towardzero_test_data): Likewise.
3855         (llrint_downward_test_data): Likewise.
3856         (llrint_upward_test_data): Likewise.
3857         (log_test_data): Likewise.
3858         (log10_test_data): Likewise.
3859         (log1p_test_data): Likewise.
3860         (log2_test_data): Likewise.
3861         (logb_test_data): Likewise.
3862         (logb_downward_test_data): Likewise.
3863         (lround_test_data): Likewise.
3864         (llround_test_data): Likewise.
3865         (modf_test_data): Likewise.
3866         (nearbyint_test_data): Likewise.
3867         (nextafter_test_data): Likewise.
3868         (nexttoward_test_data): Likewise.
3869         (pow_test_data): Likewise.
3870         (pow_tonearest_test_data): Likewise.
3871         (pow_towardzero_test_data): Likewise.
3872         (pow_downward_test_data): Likewise.
3873         (pow_upward_test_data): Likewise.
3874         (remainder_test_data): Likewise.
3875         (remainder_tonearest_test_data): Likewise.
3876         (remainder_towardzero_test_data): Likewise.
3877         (remainder_downward_test_data): Likewise.
3878         (remainder_upward_test_data): Likewise.
3879         (remquo_test_data): Likewise.
3880         (rint_test_data): Likewise.
3881         (rint_tonearest_test_data): Likewise.
3882         (rint_towardzero_test_data): Likewise.
3883         (rint_downward_test_data): Likewise.
3884         (rint_upward_test_data): Likewise.
3885         (round_test_data): Likewise.
3886         (scalb_test_data): Likewise.
3887         (scalbn_test_data): Likewise.
3888         (scalbln_test_data): Likewise.
3889         (signbit_test_data): Likewise.
3890         (sin_test_data): Likewise.
3891         (sin_tonearest_test_data): Likewise.
3892         (sin_towardzero_test_data): Likewise.
3893         (sin_downward_test_data): Likewise.
3894         (sin_upward_test_data): Likewise.
3895         (sincos_test_data): Likewise.
3896         (sinh_test_data): Likewise.
3897         (sinh_tonearest_test_data): Likewise.
3898         (sinh_towardzero_test_data): Likewise.
3899         (sinh_downward_test_data): Likewise.
3900         (sinh_upward_test_data): Likewise.
3901         (sqrt_test_data): Likewise.
3902         (tan_test_data): Likewise.
3903         (tan_tonearest_test_data): Likewise.
3904         (tan_towardzero_test_data): Likewise.
3905         (tan_downward_test_data): Likewise.
3906         (tan_upward_test_data): Likewise.
3907         (tanh_test_data): Likewise.
3908         (tgamma_test_data): Likewise.
3909         (trunc_test_data): Likewise.
3910         (y0_test_data): Likewise.
3911         (y1_test_data): Likewise.
3912         (yn_test_data): Likewise.
3913         (significand_test_data): Likewise.
3914
3915         * math/gen-libm-test.pl (@functions): Remove variable.
3916         (generate_testfile): Don't handle START and END lines.
3917         * math/libm-test.inc (START): New macro.
3918         (END): Likewise.
3919         (END_COMPLEX): Likewise.
3920         (acos_test): Use END macro without arguments.
3921         (acos_test_tonearest): Likewise.
3922         (acos_test_towardzero): Likewise.
3923         (acos_test_downward): Likewise.
3924         (acos_test_upward): Likewise.
3925         (acosh_test): Likewise.
3926         (asin_test): Likewise.
3927         (asin_test_tonearest): Likewise.
3928         (asin_test_towardzero): Likewise.
3929         (asin_test_downward): Likewise.
3930         (asin_test_upward): Likewise.
3931         (asinh_test): Likewise.
3932         (atan_test): Likewise.
3933         (atanh_test): Likewise.
3934         (atan2_test): Likewise.
3935         (cabs_test): Likewise.
3936         (cacos_test): Use END_COMPLEX macro without arguments.
3937         (cacosh_test): Likewise.
3938         (carg_test): Use END macro without arguments.
3939         (casin_test): Use END_COMPLEX macro without arguments.
3940         (casinh_test): Likewise.
3941         (catan_test): Likewise.
3942         (catanh_test): Likewise.
3943         (cbrt_test): Use END macro without arguments.
3944         (ccos_test): Use END_COMPLEX macro without arguments.
3945         (ccosh_test): Likewise.
3946         (ceil_test): Use END macro without arguments.
3947         (cexp_test): Use END_COMPLEX macro without arguments.
3948         (cimag_test): Use END macro without arguments.
3949         (clog_test): Use END_COMPLEX macro without arguments.
3950         (clog10_test): Likewise.
3951         (conj_test): Likewise.
3952         (copysign_test): Use END macro without arguments.
3953         (cos_test): Likewise.
3954         (cos_test_tonearest): Likewise.
3955         (cos_test_towardzero): Likewise.
3956         (cos_test_downward): Likewise.
3957         (cos_test_upward): Likewise.
3958         (cosh_test): Likewise.
3959         (cosh_test_tonearest): Likewise.
3960         (cosh_test_towardzero): Likewise.
3961         (cosh_test_downward): Likewise.
3962         (cosh_test_upward): Likewise.
3963         (cpow_test): Use END_COMPLEX macro without arguments.
3964         (cproj_test): Likewise.
3965         (creal_test): Use END macro without arguments.
3966         (csin_test): Use END_COMPLEX macro without arguments.
3967         (csinh_test): Likewise.
3968         (csqrt_test): Likewise.
3969         (ctan_test): Likewise.
3970         (ctan_test_tonearest): Likewise.
3971         (ctan_test_towardzero): Likewise.
3972         (ctan_test_downward): Likewise.
3973         (ctan_test_upward): Likewise.
3974         (ctanh_test): Likewise.
3975         (ctanh_test_tonearest): Likewise.
3976         (ctanh_test_towardzero): Likewise.
3977         (ctanh_test_downward): Likewise.
3978         (ctanh_test_upward): Likewise.
3979         (erf_test): Use END macro without arguments.
3980         (erfc_test): Likewise.
3981         (exp_test): Likewise.
3982         (exp_test_tonearest): Likewise.
3983         (exp_test_towardzero): Likewise.
3984         (exp_test_downward): Likewise.
3985         (exp_test_upward): Likewise.
3986         (exp10_test): Likewise.
3987         (exp2_test): Likewise.
3988         (expm1_test): Likewise.
3989         (fabs_test): Likewise.
3990         (fdim_test): Likewise.
3991         (finite_test): Likewise.
3992         (floor_test): Likewise.
3993         (fma_test): Likewise.
3994         (fma_test_towardzero): Likewise.
3995         (fma_test_downward): Likewise.
3996         (fma_test_upward): Likewise.
3997         (fmax_test): Likewise.
3998         (fmin_test): Likewise.
3999         (fmod_test): Likewise.
4000         (fpclassify_test): Likewise.
4001         (frexp_test): Likewise.
4002         (gamma_test): Likewise.
4003         (hypot_test): Likewise.
4004         (ilogb_test): Likewise.
4005         (isfinite_test): Likewise.
4006         (isgreater_test): Likewise.
4007         (isgreaterequal_test): Likewise.
4008         (isinf_test): Likewise.
4009         (isless_test): Likewise.
4010         (islessequal_test): Likewise.
4011         (islessgreater_test): Likewise.
4012         (isnan_test): Likewise.
4013         (isnormal_test): Likewise.
4014         (issignaling_test): Likewise.
4015         (isunordered_test): Likewise.
4016         (j0_test): Likewise.
4017         (j1_test): Likewise.
4018         (jn_test): Likewise.
4019         (ldexp_test): Likewise.
4020         (lgamma_test): Likewise.
4021         (lrint_test): Likewise.
4022         (lrint_test_tonearest): Likewise.
4023         (lrint_test_towardzero): Likewise.
4024         (lrint_test_downward): Likewise.
4025         (lrint_test_upward): Likewise.
4026         (llrint_test): Likewise.
4027         (llrint_test_tonearest): Likewise.
4028         (llrint_test_towardzero): Likewise.
4029         (llrint_test_downward): Likewise.
4030         (llrint_test_upward): Likewise.
4031         (log_test): Likewise.
4032         (log10_test): Likewise.
4033         (log1p_test): Likewise.
4034         (log2_test): Likewise.
4035         (logb_test): Likewise.
4036         (logb_test_downward): Likewise.
4037         (lround_test): Likewise.
4038         (llround_test): Likewise.
4039         (modf_test): Likewise.
4040         (nearbyint_test): Likewise.
4041         (nextafter_test): Likewise.
4042         (nexttoward_test): Likewise.
4043         (pow_test): Likewise.
4044         (pow_test_tonearest): Likewise.
4045         (pow_test_towardzero): Likewise.
4046         (pow_test_downward): Likewise.
4047         (pow_test_upward): Likewise.
4048         (remainder_test): Likewise.
4049         (remainder_test_tonearest): Likewise.
4050         (remainder_test_towardzero): Likewise.
4051         (remainder_test_downward): Likewise.
4052         (remainder_test_upward): Likewise.
4053         (remquo_test): Likewise.
4054         (rint_test): Likewise.
4055         (rint_test_tonearest): Likewise.
4056         (rint_test_towardzero): Likewise.
4057         (rint_test_downward): Likewise.
4058         (rint_test_upward): Likewise.
4059         (round_test): Likewise.
4060         (scalb_test): Likewise.
4061         (scalbn_test): Likewise.
4062         (scalbln_test): Likewise.
4063         (signbit_test): Likewise.
4064         (sin_test): Likewise.
4065         (sin_test_tonearest): Likewise.
4066         (sin_test_towardzero): Likewise.
4067         (sin_test_downward): Likewise.
4068         (sin_test_upward): Likewise.
4069         (sincos_test): Likewise.
4070         (sinh_test): Likewise.
4071         (sinh_test_tonearest): Likewise.
4072         (sinh_test_towardzero): Likewise.
4073         (sinh_test_downward): Likewise.
4074         (sinh_test_upward): Likewise.
4075         (sqrt_test): Likewise.
4076         (tan_test): Likewise.
4077         (tan_test_tonearest): Likewise.
4078         (tan_test_towardzero): Likewise.
4079         (tan_test_downward): Likewise.
4080         (tan_test_upward): Likewise.
4081         (tanh_test): Likewise.
4082         (tgamma_test): Likewise.
4083         (trunc_test): Likewise.
4084         (y0_test): Likewise.
4085         (y1_test): Likewise.
4086         (yn_test): Likewise.
4087         (significand_test): Likewise.
4088
4089 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
4090
4091         [BZ #15381]
4092         * libio/genops.c (_IO_no_init): Initialize wide struct info.
4093
4094 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4095
4096         [BZ #14894]
4097         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
4098         __ppc_mdoio and __ppc_mdoom.
4099         * manual/platform.texi: Document new functions __ppc_yield,
4100         __ppc_mdoio and __ppc_mdoom.
4101
4102 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
4103
4104         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
4105         (main): Mention "tls" pseudo-hwcap is legacy.
4106         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
4107
4108 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
4109
4110         * math/gen-libm-test.pl (parse_args): Output only string of
4111         arguments as text for test name, not full call or descriptions of
4112         tests for extra outputs.
4113         (generate_testfile): Do not pass function name to parse_args.
4114         Generate this_func variable from START.
4115         * math/libm-test.inc (struct test_f_f_data): Rename test_name
4116         field to arg_str.
4117         (struct test_ff_f_data): Likewise.
4118         (test_ff_f_data_nexttoward): Likewise.
4119         (struct test_fi_f_data): Likewise.
4120         (struct test_fl_f_data): Likewise.
4121         (struct test_if_f_data): Likewise.
4122         (struct test_fff_f_data): Likewise.
4123         (struct test_c_f_data): Likewise.
4124         (struct test_f_f1_data): Likewise.  Remove field extra_name.
4125         (struct test_fF_f1_data): Likewise.
4126         (struct test_ffI_f1_data): Likewise.
4127         (struct test_c_c_data): Rename test_name field to arg_str.
4128         (struct test_cc_c_data): Likewise.
4129         (struct test_f_i_data): Likewise.
4130         (struct test_ff_i_data): Likewise.
4131         (struct test_f_l_data): Likewise.
4132         (struct test_f_L_data): Likewise.
4133         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
4134         and extra2_name.
4135         (COMMON_TEST_SETUP): New macro.
4136         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
4137         (COMMON_TEST_CLEANUP): Likewise.
4138         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
4139         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
4140         macros.
4141         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
4142         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
4143         macros.
4144         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
4145         (RUN_TEST_fff_f): Take argument string.  Call new setup and
4146         cleanup macros.
4147         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
4148         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
4149         macros.
4150         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
4151         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
4152         macros.
4153         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
4154         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
4155         cleanup macros.
4156         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
4157         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
4158         cleanup macros.
4159         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
4160         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
4161         cleanup macros.
4162         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
4163         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
4164         macros.
4165         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
4166         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
4167         macros.
4168         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
4169         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
4170         macros.
4171         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
4172         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
4173         cleanup macros.
4174         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
4175         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
4176         cleanup macros.
4177         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
4178         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
4179         macros.
4180         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
4181         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
4182         cleanup macros.
4183         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
4184         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
4185         macros.
4186         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
4187         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
4188         macros.
4189         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
4190         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
4191         cleanup macros.
4192         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
4193
4194 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4195
4196         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
4197         to _sifields.sigfault.
4198         (si_addr_lsb): Define new macro.
4199         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
4200         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4201         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
4202
4203 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
4204
4205         [BZ #15441]
4206         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
4207         returns -1.
4208         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
4209         null return -1.
4210         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
4211         loading the domain.
4212
4213 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
4214
4215         * math/gen-libm-test.pl (parse_args): Do not include expected
4216         result in test name.
4217         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
4218         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4219         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4220         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4221         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4223
4224 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4225
4226         * benchtests/Makefile: Sort function entries.
4227
4228         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
4229         tanh, asinh, acosh, atanh.
4230         * benchtests/acos-inputs: New file.
4231         * benchtests/acosh-inputs: New file.
4232         * benchtests/asin-inputs: New file.
4233         * benchtests/asinh-inputs: New file.
4234         * benchtests/atanh-inputs: New file.
4235         * benchtests/cosh-inputs: New file.
4236         * benchtests/log-inputs: New file.
4237         * benchtests/sinh-inputs: New file.
4238         * benchtests/tanh-inputs: New file.
4239
4240 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
4241
4242         [BZ #15339]
4243         * posix/tst-getaddrinfo4.c: New test.
4244         * posix/Makefile (tests): Add it.
4245
4246 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4247
4248         [BZ #15339]
4249         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
4250         when no services were used.
4251         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
4252         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
4253
4254 2013-05-21  Andreas Schwab  <schwab@suse.de>
4255
4256         [BZ #15014]
4257         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
4258         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
4259         successful.
4260         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
4261         redundant variable declarations and reallocation of buffer when
4262         parsing as IPv6 address.  Always set NSS status when called from
4263         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
4264         buffer too small.  Correct computation of needed size.
4265         * nss/Makefile (tests): Add test-digits-dots.
4266         * nss/test-digits-dots.c: New test.
4267
4268 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4269
4270         * benchtests/Makefile: Remove instructions for adding
4271         benchmark tests.
4272         * benchtests/README: New file to explain how to execute and
4273         enhance the benchmark tests.
4274
4275 2013-05-21  Andreas Schwab  <schwab@suse.de>
4276
4277         [BZ #15493]
4278         * setjmp/Makefile (tests): Add tst-sigsetjmp.
4279         * setjmp/tst-sigsetjmp.c: New test.
4280
4281 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4282
4283         * sysdeps/x86_64/memset.S (memset): New implementation.
4284         (__bzero): Likewise.
4285         (__memset_tail): New function.
4286
4287 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4288
4289         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
4290         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
4291         __memcpy_sse2_unaligned ifunc selection.
4292         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
4293         Add memcpy-sse2-unaligned.S.
4294         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
4295         Add: __memcpy_sse2_unaligned.
4296
4297 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
4298
4299         [BZ #15490]
4300         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4301         math_force_eval before restoring floating-point envrionment.
4302         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
4303         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4304         Likewise.
4305         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
4306         <math_private.h>.
4307         (__nearbyintl): Use math_force_eval before restoring
4308         floating-point environment.
4309         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
4310
4311         * math/gen-libm-test.pl (special_functions): Remove.
4312         (parse_args): Don't handle TEST_extra.  Handle functions with no
4313         return value.
4314         * math/libm-test.inc (struct test_sincos_data): Replace with
4315         struct test_fFF_11_data.
4316         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
4317         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
4318         (sincos_test_data): Change element type to struct
4319         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
4320         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
4321         RUN_TEST_LOOP_sincos.
4322         * math/README.libm-test: Don't mention special handling of
4323         individual functions.
4324         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
4325         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4326         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4327         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4328         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4330
4331         * math/gen-libm-test.pl (get_variable): Remove function.
4332         (parse_args): Don't show pointer parameters to call in test
4333         names.  Use "extra output N" in test names for extra outputs
4334         rather than naming variables.
4335
4336 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
4337
4338         [BZ #15488]
4339         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
4340         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
4341         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
4342         double tests.
4343         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
4344         disable.
4345         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
4346         check_long_double.
4347
4348         * math/gen-libm-test.pl (@tests): Remove variable.
4349         ($count): Likewise.
4350         (new_test): Remove function.
4351         (show_exceptions): New function.
4352         (special_functions): Use show_exceptions instead of new_test.
4353         (parse_args): Likewise.
4354         (generate_testfile): Pass only function name in generated call to
4355         print_max_error or print_complex_max_error.
4356         (get_ulps): Do not handle complex tests specially.
4357         (output_test): Rename to ...
4358         (get_all_ulps_for_test): ... this.  Return a string rather than
4359         printing to a file.  Require ulps to be present.
4360         (output_ulps): Generate arrays rather than #defines.
4361         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
4362         (struct ulp_data): New type.
4363         (BUILD_COMPLEX_ULP): Remove macro.
4364         (compare_ulp_data): New function.
4365         (find_ulps): Likewise.
4366         (find_test_ulps): Likewise.
4367         (find_function_ulps): Likewise.
4368         (find_complex_function_ulps): Likewise.
4369         (print_max_error): Determine allowed ulps using
4370         find_function_ulps.
4371         (print_complex_max_error): Determine allowed ulps using
4372         find_complex_function_ulps.
4373         (check_float_internal): Determine max ulps using find_test_ulps.
4374         (check_float): Do not take max_ulp parameter.  Update call to
4375         check_float_internal.
4376         (check_complex): Likewise.
4377         (check_int): Do not take max_ulp parameter.
4378         (check_long): Likewise.
4379         (check_bool): Likewise.
4380         (check_longlong): Likewise.
4381         (struct test_f_f_data): Remove max_ulp field.
4382         (struct test_ff_f_data): Likewise.
4383         (struct test_ff_f_data_nexttoward): Likewise.
4384         (struct test_fi_f_data): Likewise.
4385         (struct test_fl_f_data): Likewise.
4386         (struct test_if_f_data): Likewise.
4387         (struct test_fff_f_data): Likewise.
4388         (struct test_c_f_data): Likewise.
4389         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
4390         (struct test_fF_f1_data): Likewise.
4391         (struct test_ffI_f1_data): Likewise.
4392         (struct test_c_c_data): Remove max_ulp field.
4393         (struct test_cc_c_data): Likewise.
4394         (struct test_f_i_data): Likewise.
4395         (struct test_ff_i_data): Likewise.
4396         (struct test_f_l_data): Likewise.
4397         (struct test_f_L_data): Likewise.
4398         (struct test_sincos_data): Likewise.
4399         (RUN_TEST_f_f): Do not handle ulps.
4400         (RUN_TEST_LOOP_f_f): Likewise.
4401         (RUN_TEST_2_f): Likewise.
4402         (RUN_TEST_LOOP_2_f): Likewise.
4403         (RUN_TEST_fff_f): Likewise.
4404         (RUN_TEST_LOOP_fff_f): Likewise.
4405         (RUN_TEST_c_f): Likewise.
4406         (RUN_TEST_LOOP_c_f): Likewise.
4407         (RUN_TEST_f_f1): Likewise.
4408         (RUN_TEST_LOOP_f_f1): Likewise.
4409         (RUN_TEST_fF_f1): Likewise.
4410         (RUN_TEST_LOOP_fF_f1): Likewise.
4411         (RUN_TEST_fI_f1): Likewise.
4412         (RUN_TEST_LOOP_fI_f1): Likewise.
4413         (RUN_TEST_ffI_f1): Likewise.
4414         (RUN_TEST_LOOP_ffI_f1): Likewise.
4415         (RUN_TEST_c_c): Likewise.
4416         (RUN_TEST_LOOP_c_c): Likewise.
4417         (RUN_TEST_cc_c): Likewise.
4418         (RUN_TEST_LOOP_cc_c): Likewise.
4419         (RUN_TEST_f_i): Likewise.
4420         (RUN_TEST_LOOP_f_i): Likewise.
4421         (RUN_TEST_f_i_tg): Likewise.
4422         (RUN_TEST_LOOP_f_i_tg): Likewise.
4423         (RUN_TEST_ff_i_tg): Likewise.
4424         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4425         (RUN_TEST_f_b): Likewise.
4426         (RUN_TEST_LOOP_f_b): Likewise.
4427         (RUN_TEST_f_b_tg): Likewise.
4428         (RUN_TEST_LOOP_f_b_tg): Likewise.
4429         (RUN_TEST_f_l): Likewise.
4430         (RUN_TEST_LOOP_f_l): Likewise.
4431         (RUN_TEST_f_L): Likewise.
4432         (RUN_TEST_LOOP_f_L): Likewise.
4433         (RUN_TEST_sincos): Likewise.
4434         (RUN_TEST_LOOP_sincos): Likewise.
4435
4436 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
4437
4438         [BZ #15480]
4439         [BZ #15485]
4440         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
4441         main case of finite arguments, set rounding mode to FE_TONEAREST
4442         and discard exceptions.
4443         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
4444         exceptions.
4445         (remainder_tonearest_test_data): New variable.
4446         (remainder_test_tonearest): New function.
4447         (remainder_towardzero_test_data): New variable.
4448         (remainder_test_towardzero): New function.
4449         (remainder_downward_test_data): New variable.
4450         (remainder_test_downward): New function.
4451         (remainder_upward_test_data): New variable.
4452         (remainder_test_upward): New function.
4453         (main): Call the new test functions.
4454
4455         * math/libm-test.inc (struct test_f_f1_data): Remove field
4456         extra_init.
4457         (struct test_fF_f1_data): Likewise.
4458         (struct test_ffI_f1_data): Likewise.
4459         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
4460         based on value of EXTRA_EXPECTED.
4461         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
4462         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
4463         EXTRA_VAR based on value of EXTRA_EXPECTED.
4464         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
4465         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
4466         EXTRA_VAR based on value of EXTRA_EXPECTED.
4467         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
4468         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
4469         EXTRA_VAR based on value of EXTRA_EXPECTED.
4470         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
4471         * math/gen-libm-test.pl (parse_args): Don't output initializers
4472         for extra output values.
4473
4474         * math/libm-test.inc (check_int): Expect result to be exactly
4475         equal to expected value and do not handle ulps.
4476         (check_long): Likewise.
4477         (check_longlong): Likewise.
4478
4479         * math/libm-test.inc (ceil_test_data): Test for "inexact"
4480         exceptions.
4481         (cimag_test_data): Likewise.
4482         (conj_test_data): Likewise.
4483         (copysign_test_data): Likewise.
4484         (cproj_test_data): Likewise.
4485         (creal_test_data): Likewise.
4486         (fabs_test_data): Likewise.
4487         (fdim_test_data): Likewise.
4488         (finite_test_data): Likewise.
4489         (floor_test_data): Likewise.
4490         (fmax_test_data): Likewise.
4491         (fmin_test_data): Likewise.
4492         (fmod_test_data): Likewise.
4493         (fpclassify_test_data): Likewise.
4494         (frexp_test_data): Likewise.
4495         (ilogb_test_data): Likewise.
4496         (isfinite_test_data): Likewise.
4497         (isgreater_test_data): Likewise.
4498         (isgreaterequal_test_data): Likewise.
4499         (isinf_test_data): Likewise.
4500         (isless_test_data): Likewise.
4501         (islessequal_test_data): Likewise.
4502         (islessgreater_test_data): Likewise.
4503         (isnan_test_data): Likewise.
4504         (isnormal_test_data): Likewise.
4505         (issignaling_test_data): Likewise.
4506         (isunordered_test_data): Likewise.
4507         (ldexp_test_data): Likewise.
4508         (lrint_test_data): Likewise.
4509         (lrint_test_data) [TEST_FLOAT]: Disable one test.
4510         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
4511         (lrint_tonearest_test_data): Test for "inexact" exceptions.
4512         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
4513         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
4514         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
4515         test input.
4516         (lrint_towardzero_test_data): Test for "inexact" exceptions.
4517         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
4518         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
4519         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
4520         that test input.
4521         (lrint_downward_test_data): Test for "inexact" exceptions.
4522         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
4523         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
4524         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
4525         test input.
4526         (lrint_upward_test_data): Test for "inexact" exceptions.
4527         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
4528         test input.
4529         (llrint_test_data): Test for "inexact" exceptions.
4530         (llrint_test_data) [TEST_FLOAT]: Disable one test.
4531         (llrint_tonearest_test_data): Test for "inexact" exceptions.
4532         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
4533         (llrint_towardzero_test_data): Test for "inexact" exceptions.
4534         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
4535         (llrint_downward_test_data): Test for "inexact" exceptions.
4536         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
4537         (llrint_upward_test_data): Test for "inexact" exceptions.
4538         (logb_test_data): Likewise.
4539         (logb_downward_test_data): Likewise.
4540         (nextafter_test_data): Likewise.
4541         (nexttoward_test_data): Likewise.
4542         (remainder_test_data): Likewise.
4543         (remquo_test_data): Likewise.
4544         (scalbn_test_data): Likewise.
4545         (scalbln_test_data): Likewise.
4546         (signbit_test_data): Likewise.
4547         (sqrt_test_data): Likewise.
4548         (significand_test_data): Likewise.
4549
4550 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4551
4552         [BZ #15424]
4553         * benchtests/bench-modf.c (struct args): Mark arg0 as
4554         volatile.
4555         * scripts/bench.pl: Mark members of struct args as volatile.
4556
4557 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4558
4559         [BZ # 15497]
4560         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
4561         negative infinity on POWER6 or lower.
4562         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
4563
4564 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
4565
4566         [BZ #15442]
4567         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
4568         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
4569         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
4570         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
4571         (_FP_SETQNAN): New macro.
4572         (_FP_SETQNAN_SEMIRAW): Likewise.
4573         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
4574         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
4575         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
4576         (FP_EXTEND): Use _FP_FRAC_SNANP.
4577         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
4578         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
4579         into account.
4580         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
4581         New macro.
4582         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
4583         Likewise.
4584
4585 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
4586
4587         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
4588         with DIVIDE_BY_ZERO_EXCEPTION.
4589         (gamma_test_data): Likewise.
4590         (lgamma_test_data): Likewise.
4591         (log_test_data): Likewise.
4592         (log10_test_data): Likewise.
4593         (log2_test_data): Likewise.
4594         (tgamma_test_data): Likewise.
4595
4596         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
4597         (acos_test_tonearest): Likewise.
4598         (acos_test_towardzero): Likewise.
4599         (acos_test_downward): Likewise.
4600         (acos_test_upward): Likewise.
4601         (acosh_test): Likewise.
4602         (asin_test): Likewise.
4603         (asin_test_tonearest): Likewise.
4604         (asin_test_towardzero): Likewise.
4605         (asin_test_downward): Likewise.
4606         (asin_test_upward): Likewise.
4607         (asinh_test): Likewise.
4608         (atan_test): Likewise.
4609         (atanh_test): Likewise.
4610         (atan2_test): Likewise.
4611         (cabs_test): Likewise.
4612         (cacos_test): Likewise.
4613         (cacosh_test): Likewise.
4614         (casin_test): Likewise.
4615         (casinh_test): Likewise.
4616         (catan_test): Likewise.
4617         (catanh_test): Likewise.
4618         (cbrt_test): Likewise.
4619         (ccos_test): Likewise.
4620         (ccosh_test): Likewise.
4621         (cexp_test): Likewise.
4622         (clog_test): Likewise.
4623         (clog10_test): Likewise.
4624         (cos_test): Likewise.
4625         (cos_test_tonearest): Likewise.
4626         (cos_test_towardzero): Likewise.
4627         (cos_test_downward): Likewise.
4628         (cos_test_upward): Likewise.
4629         (cosh_test): Likewise.
4630         (cosh_test_tonearest): Likewise.
4631         (cosh_test_towardzero): Likewise.
4632         (cosh_test_downward): Likewise.
4633         (cosh_test_upward): Likewise.
4634         (cpow_test): Likewise.
4635         (csin_test): Likewise.
4636         (csinh_test): Likewise.
4637         (csqrt_test): Likewise.
4638         (ctan_test): Likewise.
4639         (ctan_test_tonearest): Likewise.
4640         (ctan_test_towardzero): Likewise.
4641         (ctan_test_downward): Likewise.
4642         (ctan_test_upward): Likewise.
4643         (ctanh_test): Likewise.
4644         (ctanh_test_tonearest): Likewise.
4645         (ctanh_test_towardzero): Likewise.
4646         (ctanh_test_downward): Likewise.
4647         (ctanh_test_upward): Likewise.
4648         (erf_test): Likewise.
4649         (erfc_test): Likewise.
4650         (exp_test): Likewise.
4651         (exp_test_tonearest): Likewise.
4652         (exp_test_towardzero): Likewise.
4653         (exp_test_downward): Likewise.
4654         (exp_test_upward): Likewise.
4655         (exp10_test): Likewise.
4656         (exp2_test): Likewise.
4657         (expm1_test): Likewise.
4658         (fmod_test): Likewise.
4659         (gamma_test): Likewise.
4660         (hypot_test): Likewise.
4661         (j0_test): Likewise.
4662         (j1_test): Likewise.
4663         (jn_test): Likewise.
4664         (lgamma_test): Likewise.
4665         (log_test): Likewise.
4666         (log10_test): Likewise.
4667         (log1p_test): Likewise.
4668         (log2_test): Likewise.
4669         (logb_test_downward): Likewise.
4670         (pow_test): Likewise.
4671         (pow_test_tonearest): Likewise.
4672         (pow_test_towardzero): Likewise.
4673         (pow_test_downward): Likewise.
4674         (pow_test_upward): Likewise.
4675         (remainder_test): Likewise.
4676         (remquo_test): Likewise.
4677         (sin_test): Likewise.
4678         (sin_test_tonearest): Likewise.
4679         (sin_test_towardzero): Likewise.
4680         (sin_test_downward): Likewise.
4681         (sin_test_upward): Likewise.
4682         (sincos_test): Likewise.
4683         (sinh_test): Likewise.
4684         (sinh_test_tonearest): Likewise.
4685         (sinh_test_towardzero): Likewise.
4686         (sinh_test_downward): Likewise.
4687         (sinh_test_upward): Likewise.
4688         (sqrt_test): Likewise.
4689         (tan_test): Likewise.
4690         (tan_test_tonearest): Likewise.
4691         (tan_test_towardzero): Likewise.
4692         (tan_test_downward): Likewise.
4693         (tan_test_upward): Likewise.
4694         (tanh_test): Likewise.
4695         (tgamma_test): Likewise.
4696         (y0_test): Likewise.
4697         (y1_test): Likewise.
4698         (yn_test): Likewise.
4699
4700         * math/gen-libm-test.pl (adjust_arg): Remove function.
4701         (special_function): Remove argument $in_func.  Only handle
4702         generating output for tables of tests, not inside functions.
4703         (parse_args): Likewise.
4704         (generate_testfile): Remove variable $in_func.  Update call to
4705         parse_args.
4706         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
4707         (MINUS_ZERO_INIT): Rename macro to minus_zero.
4708         (PLUS_INFTY_INIT): Rename macro to plus_infty.
4709         (MINUS_INFTY_INIT): Rename macro to minus_infty.
4710         (QNAN_VALUE_INIT): Rename macro to qnan_value.
4711         (MAX_VALUE_INIT): Rename macro to max_value.
4712         (MIN_VALUE_INIT): Rename macro to min_value.
4713         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
4714         (plus_zero): Remove variable.
4715         (minus_zero): Likewise.
4716         (plus_infty): Likewise.
4717         (minus_infty): Likewise.
4718         (qnan_value): Likewise.
4719         (max_value): Likewise.
4720         (min_value): Likewise.
4721         (min_subnorm_value): Likewise.
4722
4723 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4724
4725         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
4726         uint64_t or uint32_t usage.
4727         * crypt/sha256-block.c: Likewise.
4728         * crypt/sha256-crypt.c: Likewise.
4729         * crypt/sha256.c: Likewise.
4730         * crypt/sha512-block.c: Likewise.
4731         * crypt/sha512-crypt.c: Likewise.
4732         * crypt/sha512.c: Likewise.
4733         * debug/backtrace-tst.c: Likewise.
4734         * debug/pcprofiledump.c: Likewise.
4735         * elf/cache.c: Likewise.
4736         * elf/dl-cache.c: Likewise.
4737         * elf/dl-misc.c: Likewise.
4738         * elf/dl-profile.c: Likewise.
4739         * elf/dl-support.c: Likewise.
4740         * elf/ldconfig.c: Likewise.
4741         * elf/sprof.c: Likewise.
4742         * iconv/dummy-repertoire.c: Likewise.
4743         * iconv/iconv_charmap.c: Likewise.
4744         * iconv/skeleton.c: Likewise.
4745         * iconvdata/8bit-generic.c: Likewise.
4746         * iconvdata/cp737.h: Likewise.
4747         * iconvdata/cp775.h: Likewise.
4748         * iconvdata/ibm1008.h: Likewise.
4749         * iconvdata/ibm1025.h: Likewise.
4750         * iconvdata/ibm1046.h: Likewise.
4751         * iconvdata/ibm1097.h: Likewise.
4752         * iconvdata/ibm1112.h: Likewise.
4753         * iconvdata/ibm1122.h: Likewise.
4754         * iconvdata/ibm1123.h: Likewise.
4755         * iconvdata/ibm1124.h: Likewise.
4756         * iconvdata/ibm1129.h: Likewise.
4757         * iconvdata/ibm1130.h: Likewise.
4758         * iconvdata/ibm1132.h: Likewise.
4759         * iconvdata/ibm1133.h: Likewise.
4760         * iconvdata/ibm1137.h: Likewise.
4761         * iconvdata/ibm1140.h: Likewise.
4762         * iconvdata/ibm1141.h: Likewise.
4763         * iconvdata/ibm1142.h: Likewise.
4764         * iconvdata/ibm1143.h: Likewise.
4765         * iconvdata/ibm1144.h: Likewise.
4766         * iconvdata/ibm1145.h: Likewise.
4767         * iconvdata/ibm1146.h: Likewise.
4768         * iconvdata/ibm1147.h: Likewise.
4769         * iconvdata/ibm1148.h: Likewise.
4770         * iconvdata/ibm1149.h: Likewise.
4771         * iconvdata/ibm1153.h: Likewise.
4772         * iconvdata/ibm1154.h: Likewise.
4773         * iconvdata/ibm1155.h: Likewise.
4774         * iconvdata/ibm1156.h: Likewise.
4775         * iconvdata/ibm1157.h: Likewise.
4776         * iconvdata/ibm1158.h: Likewise.
4777         * iconvdata/ibm1160.h: Likewise.
4778         * iconvdata/ibm1161.h: Likewise.
4779         * iconvdata/ibm1162.h: Likewise.
4780         * iconvdata/ibm1163.h: Likewise.
4781         * iconvdata/ibm1164.h: Likewise.
4782         * iconvdata/ibm1166.h: Likewise.
4783         * iconvdata/ibm1167.h: Likewise.
4784         * iconvdata/ibm12712.h: Likewise.
4785         * iconvdata/ibm1390.h: Likewise.
4786         * iconvdata/ibm1399.h: Likewise.
4787         * iconvdata/ibm16804.h: Likewise.
4788         * iconvdata/ibm4517.h: Likewise.
4789         * iconvdata/ibm4899.h: Likewise.
4790         * iconvdata/ibm4909.h: Likewise.
4791         * iconvdata/ibm4971.h: Likewise.
4792         * iconvdata/ibm5347.h: Likewise.
4793         * iconvdata/ibm803.h: Likewise.
4794         * iconvdata/ibm856.h: Likewise.
4795         * iconvdata/ibm901.h: Likewise.
4796         * iconvdata/ibm902.h: Likewise.
4797         * iconvdata/ibm9030.h: Likewise.
4798         * iconvdata/ibm9066.h: Likewise.
4799         * iconvdata/ibm921.h: Likewise.
4800         * iconvdata/ibm922.h: Likewise.
4801         * iconvdata/ibm9448.h: Likewise.
4802         * iconvdata/isiri-3342.h: Likewise.
4803         * iconvdata/jis0201.h: Likewise.
4804         * include/link.h: Likewise.
4805         * include/netdb.h: Likewise.
4806         * inet/check_native.c: Likewise.
4807         * inet/check_pf.c: Likewise.
4808         * inet/getipv4sourcefilter.c: Likewise.
4809         * inet/getnameinfo.c: Likewise.
4810         * inet/getsourcefilter.c: Likewise.
4811         * inet/htonl.c: Likewise.
4812         * inet/setipv4sourcefilter.c: Likewise.
4813         * inet/setsourcefilter.c: Likewise.
4814         * inet/test-inet6_opt.c: Likewise.
4815         * inet/tst-network.c: Likewise.
4816         * locale/C-collate.c: Likewise.
4817         * locale/C-ctype.c: Likewise.
4818         * locale/C-time.c: Likewise.
4819         * locale/C-translit.h: Likewise.
4820         * locale/loadarchive.c: Likewise.
4821         * locale/programs/3level.h: Likewise.
4822         * locale/programs/charmap.c: Likewise.
4823         * locale/programs/charmap.h: Likewise.
4824         * locale/programs/ld-address.c: Likewise.
4825         * locale/programs/ld-collate.c: Likewise.
4826         * locale/programs/ld-ctype.c: Likewise.
4827         * locale/programs/ld-identification.c: Likewise.
4828         * locale/programs/ld-measurement.c: Likewise.
4829         * locale/programs/ld-messages.c: Likewise.
4830         * locale/programs/ld-monetary.c: Likewise.
4831         * locale/programs/ld-name.c: Likewise.
4832         * locale/programs/ld-numeric.c: Likewise.
4833         * locale/programs/ld-paper.c: Likewise.
4834         * locale/programs/ld-telephone.c: Likewise.
4835         * locale/programs/ld-time.c: Likewise.
4836         * locale/programs/linereader.c: Likewise.
4837         * locale/programs/locale.c: Likewise.
4838         * locale/programs/locarchive.c: Likewise.
4839         * locale/programs/locfile.h: Likewise.
4840         * locale/programs/repertoire.c: Likewise.
4841         * locale/programs/simple-hash.c: Likewise.
4842         * locale/programs/simple-hash.h: Likewise.
4843         * malloc/memusage.c: Likewise.
4844         * malloc/memusagestat.c: Likewise.
4845         * nis/nis_defaults.c: Likewise.
4846         * nis/nis_hash.c: Likewise.
4847         * nis/nis_print.c: Likewise.
4848         * nis/nis_xdr.c: Likewise.
4849         * nscd/connections.c: Likewise.
4850         * nscd/hstcache.c: Likewise.
4851         * nscd/nscd_gethst_r.c: Likewise.
4852         * nscd/nscd_getserv_r.c: Likewise.
4853         * nscd/nscd_helper.c: Likewise.
4854         * nscd/servicescache.c: Likewise.
4855         * nss/makedb.c: Likewise.
4856         * nss/nss_db/db-XXX.c: Likewise.
4857         * nss/nss_db/db-initgroups.c: Likewise.
4858         * nss/nss_db/db-netgrp.c: Likewise.
4859         * nss/nss_files/files-network.c: Likewise.
4860         * nss/nss_files/files-parse.c: Likewise.
4861         * posix/bug-regex5.c: Likewise.
4862         * posix/fnmatch_loop.c: Likewise.
4863         * posix/regcomp.c: Likewise.
4864         * posix/regexec.c: Likewise.
4865         * posix/tst-rfc3484-2.c: Likewise.
4866         * posix/tst-rfc3484-3.c: Likewise.
4867         * posix/tst-rfc3484.c: Likewise.
4868         * resolv/nss_dns/dns-canon.c: Likewise.
4869         * resolv/nss_dns/dns-network.c: Likewise.
4870         * resolv/res_init.c: Likewise.
4871         * resolv/res_mkquery.c: Likewise.
4872         * resolv/tst-aton.c: Likewise.
4873         * stdlib/cxa_atexit.c: Likewise.
4874         * stdlib/cxa_finalize.c: Likewise.
4875         * stdlib/gen-fpioconst.c: Likewise.
4876         * stdlib/strtol_l.c: Likewise.
4877         * string/tst-endian.c: Likewise.
4878         * sunrpc/auth_des.c: Likewise.
4879         * sunrpc/clnt_udp.c: Likewise.
4880         * sunrpc/rtime.c: Likewise.
4881         * sunrpc/svcauth_des.c: Likewise.
4882         * sunrpc/xdr.c: Likewise.
4883         * sunrpc/xdr_intXX_t.c: Likewise.
4884         * sunrpc/xdr_rec.c: Likewise.
4885         * sysdeps/generic/ldconfig.h: Likewise.
4886         * sysdeps/generic/ldsodefs.h: Likewise.
4887         * sysdeps/generic/memusage.h: Likewise.
4888         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
4889         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
4890         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
4891         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
4892         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
4893         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4894         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
4895         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
4896         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
4897         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
4898         * sysdeps/posix/getaddrinfo.c: Likewise.
4899         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
4900         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
4901         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
4902         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4903         * sysdeps/powerpc/test-gettimebase.c: Likewise.
4904         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
4905         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
4906         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
4907         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
4908         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
4909         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
4910         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4911         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
4912         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
4913         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
4914         * sysdeps/x86_64/dl-tls.h: Likewise.
4915         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
4916         * time/alt_digit.c: Likewise.
4917         * time/era.c: Likewise.
4918         * wcsmbs/tst-c16c32-1.c: Likewise.
4919
4920 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
4921
4922         * math/libm-test.inc (struct test_sincos_data): New type.
4923         (RUN_TEST_LOOP_sincos): New macro.
4924         (sincos_test_data): New variable.
4925         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
4926
4927 2013-05-16  Richard Henderson  <rth@redhat.com>
4928
4929         * math/atest-exp2.c (LIMB64): New macro.
4930         (CONSTSZ): New macro.
4931         (mp_exp1, mp_exp_m1, mp_log2): New variables.
4932         (hexdig): Move ...
4933         (print_mpn_fp): ... to function scope.
4934         (read_mpn_hex): Remove.
4935         (get_log2): Remove.
4936         (exp2_mpn): Use mp_log2.
4937         (main): Use mp_exp1.
4938
4939 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
4940
4941         * math/libm-test.inc: Remove comment about not testing "inexact"
4942         exceptions.
4943         (INEXACT_EXCEPTION): New macro.
4944         (NO_INEXACT_EXCEPTION): Likewise.
4945         (INVALID_EXCEPTION_OK): Update value.
4946         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4947         (OVERFLOW_EXCEPTION_OK): Likewise.
4948         (UNDERFLOW_EXCEPTION_OK): Likewise.
4949         (IGNORE_ZERO_INF_SIGN): Likewise.
4950         (ERRNO_UNCHANGED): Likewise.
4951         (ERRNO_EDOM): Likewise.
4952         (ERRNO_ERANGE): Likewise.
4953         (test_exceptions): Handle testing "inexact" exceptions.
4954         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
4955         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
4956         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
4957         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
4958         INEXACT_EXCEPTION.
4959         (rint_towardzero_test_data): Likewise.
4960         (rint_downward_test_data): Likewise.
4961         (rint_upward_test_data): Likewise.
4962
4963         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
4964         with OVERFLOW_EXCEPTION.
4965         (exp10_test_data): Likewise.
4966         (exp2_test_data): Likewise.
4967         (expm1_test_data): Likewise.
4968         (lgamma_test_data): Likewise.
4969         (pow_test_data): Likewise.
4970         (tgamma_test_data): Likewise.
4971         (yn_test_data): Remove duplicate test of overflow.
4972
4973         * math/libm-test.inc (struct test_cc_c_data): New type.
4974         (RUN_TEST_LOOP_cc_c): New macro.
4975         (cpow_test_data): New variable.
4976         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
4977
4978         * math/libm-test.inc (struct test_f_L_data): New type.
4979         (RUN_TEST_LOOP_f_L): New macro.
4980         (llrint_test_data): New variable.
4981         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
4982         (llrint_tonearest_test_data): New variable.
4983         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
4984         (llrint_towardzero_test_data): New variable.
4985         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
4986         (llrint_downward_test_data): New variable.
4987         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
4988         (llrint_upward_test_data): New variable.
4989         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
4990         (llround_test_data): New variable.
4991         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
4992
4993 2013-05-13  Peter Collingbourne  <pcc@google.com>
4994
4995         * math/atest-exp2.c (get_log2): Remove const attribute.
4996
4997 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
4998
4999         * math/libm-test.inc (struct test_f_l_data): New type.
5000         (RUN_TEST_LOOP_f_l): New macro.
5001         (lrint_test_data): New variable.
5002         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
5003         (lrint_tonearest_test_data): New variable.
5004         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
5005         (lrint_towardzero_test_data): New variable.
5006         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
5007         (lrint_downward_test_data): New variable.
5008         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
5009         (lrint_upward_test_data): New variable.
5010         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
5011         (lround_test_data): New variable.
5012         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
5013
5014 2013-05-15  Peter Collingbourne  <pcc@google.com>
5015
5016         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
5017         (EXTRACT_WORDS64) Use where appropriate.
5018         (INSERT_WORDS64) Likewise.
5019
5020         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
5021         constraints with x constraints.
5022         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
5023
5024         * malloc/obstack.c (_obstack_compat): Add initializer.
5025
5026 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5027
5028         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
5029         si_trapno and add si_addr_lsb to _sifields.sigfault.
5030         (si_trapno): Remove macro.
5031         (si_addr_lsb): Define new macro.
5032         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
5033
5034 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
5035
5036         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
5037         instead of TEST_f_l.
5038         (llrint_test_tonearest): Likewise.
5039         (llrint_test_towardzero): Likewise.
5040         (llrint_test_downward): Likewise.
5041         (llrint_test_upward): Likewise.
5042         (llround_test): Likewise.
5043
5044         * math/libm-test.inc (struct test_f_i_data): Add comment.
5045         (RUN_TEST_LOOP_f_b): New macro.
5046         (RUN_TEST_LOOP_f_b_tg): Likewise.
5047         (finite_test_data): New variable.
5048         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
5049         (isfinite_test_data): New variable.
5050         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5051         (isinf_test_data): New variable.
5052         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5053         (isnan_test_data): New variable.
5054         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5055         (isnormal_test_data): New variable.
5056         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5057         (issignaling_test_data): New variable.
5058         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5059         (signbit_test_data): New variable.
5060         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5061
5062         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
5063         with INVALID_EXCEPTION.
5064         (acosh_test_data): Likewise.
5065         (asin_test_data): Likewise.
5066         (atanh_test_data): Likewise.
5067         (fmod_test_data): Likewise.
5068         (log_test_data): Likewise.
5069         (log10_test_data): Likewise.
5070         (log2_test_data): Likewise.
5071         (pow_test_data): Likewise.
5072         (sqrt_test_data): Likewise.
5073         (y0_test_data): Likewise.
5074         (y1_test_data): Likewise.
5075         (yn_test_data): Likewise.
5076
5077         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
5078         function contents.
5079
5080         * math/libm-test.inc (struct test_ff_i_data): New type.
5081         (RUN_TEST_LOOP_ff_i_tg): New macro.
5082         (isgreater_test_data): New variable.
5083         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5084         (isgreaterequal_test_data): New variable.
5085         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5086         (isless_test_data): New variable.
5087         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5088         (islessequal_test_data): New variable.
5089         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5090         (islessgreater_test_data): New variable.
5091         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5092         (isunordered_test_data): New variable.
5093         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5094
5095 2013-05-14  David S. Miller  <davem@davemloft.net>
5096
5097         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5098
5099 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
5100
5101         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
5102
5103         * math/libm-test.inc (struct test_fF_f1_data): Change type of
5104         extra_test to int.
5105         (struct test_f_i_data): Change type of max_ulp to int.
5106
5107         * math/libm-test.inc (test_ffI_f1_data): New type.
5108         (RUN_TEST_LOOP_ffI_f1): New macro.
5109         (remquo_test_data): New variable.
5110         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
5111
5112         * setjmp/tst-setjmp-fp.c: New file.
5113         * setjmp/Makefile (tests): Add tst-setjmp-fp.
5114         (link-libm): New variable.
5115         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
5116
5117         * math/libm-test.inc (struct test_f_i_data): New type.
5118         (RUN_TEST_LOOP_f_i): New macro.
5119         (RUN_TEST_LOOP_f_i_tg): Likewise.
5120         (fpclassify_test_data): New variable.
5121         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
5122         (ilogb_test_data): New variable.
5123         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
5124
5125         * math/libm-test.inc (scalbln_test): Correct function name in END
5126         call.
5127
5128         * math/libm-test.inc (struct test_f_f1_data): Add comment.
5129         (RUN_TEST_LOOP_fI_f1): New macro.
5130         (frexp_test_data): New variable.
5131         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
5132
5133         * math/libm-test.inc (struct test_fF_f1_data): New type.
5134         (RUN_TEST_LOOP_fF_f1): New macro.
5135         (modf_test_data): New variable.
5136         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
5137
5138         * math/libm-test.inc (struct test_f_f1_data): New type.
5139         (RUN_TEST_LOOP_f_f1): New macro.
5140         (gamma_test_data): New variable.
5141         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
5142         (lgamma_test_data): New variable.
5143         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
5144
5145 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
5146
5147         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
5148         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
5149         (main): Comment "tls" pseudo-hwcap.
5150
5151 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
5152
5153         * math/libm-test.inc (struct test_fl_f_data): New type.
5154         (RUN_TEST_LOOP_fl_f): New variable.
5155         (scalbln_test_data): New variable.
5156         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
5157
5158         * math/libm-test.inc (struct test_fi_f_data): New type.
5159         (RUN_TEST_LOOP_fi_f): New macro.
5160         (ldexp_test_data): New variable.
5161         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
5162         (scalbn_test_data): New variable.
5163         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
5164
5165         * math/libm-test.inc (struct test_c_f_data): New type.
5166         (RUN_TEST_LOOP_c_f): New macro.
5167         (cabs_test_data): New variable.
5168         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
5169         (carg_test_data): New variable.
5170         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
5171         (cimag_test_data): New variable.
5172         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
5173         (creal_test_data): New variable.
5174         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
5175
5176         * math/libm-test.inc (struct test_if_f_data): New type.
5177         (RUN_TEST_LOOP_if_f): New macro.
5178         (jn_test_data): New variable.
5179         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
5180         (yn_test_data): New variable.
5181         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
5182
5183         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
5184
5185 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5186
5187         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
5188         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
5189
5190 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
5191
5192         * benchtests/Makefile (CPPFLAGS-nonlib): Add
5193         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
5194         (bench-deps): Add bench-timing.h.
5195         * benchtests-bench-skeleton.c: Include bench-timing.h.
5196         (main): Use TIMING_* macros instead of clock_gettime.
5197         * benchtests/bench-timing.h: New file.
5198
5199         [BZ #14582]
5200         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
5201         Renamed from _LIB_VERSION.
5202         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
5203
5204 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
5205
5206         * math/libm-test.inc (struct test_fff_f_data): New type.
5207         (RUN_TEST_LOOP_fff_f): New macro.
5208         (fma_test_data): New variable.
5209         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
5210         (fma_towardzero_test_data): New variable.
5211         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
5212         (fma_downward_test_data): New variable.
5213         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
5214         (fma_upward_test_data): New variable.
5215         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
5216
5217         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
5218         (struct test_c_c_data): New type.
5219         (RUN_TEST_LOOP_c_c): New macro.
5220         (cacos_test_data): New variable.
5221         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
5222         (cacosh_test_data): New variable.
5223         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
5224         (casin_test_data): New variable.
5225         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
5226         (casinh_test_data): New variable.
5227         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
5228         (catan_test_data): New variable.
5229         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
5230         (catanh_test_data): New variable.
5231         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
5232         (ccos_test_data): New variable.
5233         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
5234         (ccosh_test_data): New variable.
5235         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
5236         (cexp_test_data): New variable.
5237         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
5238         (clog_test_data): New variable.
5239         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
5240         (clog10_test_data): New variable.
5241         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
5242         (conj_test_data): New variable.
5243         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
5244         (cproj_test_data): New variable.
5245         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
5246         (csin_test_data): New variable.
5247         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
5248         (csinh_test_data): New variable.
5249         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
5250         (csqrt_test_data): New variable.
5251         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
5252         (ctan_test_data): New variable.
5253         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
5254         (ctan_tonearest_test_data): New variable.
5255         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5256         (ctan_towardzero_test_data): New variable.
5257         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5258         (ctan_downward_test_data): New variable.
5259         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5260         (ctan_upward_test_data): New variable.
5261         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5262         (ctanh_test_data): New variable.
5263         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
5264         (ctanh_tonearest_test_data): New variable.
5265         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5266         (ctanh_towardzero_test_data): New variable.
5267         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5268         (ctanh_downward_test_data): New variable.
5269         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5270         (ctanh_upward_test_data): New variable.
5271         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5272         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
5273         of BUILD_COMPLEX.
5274
5275         * math/libm-test.inc (struct test_ff_f_data): New type.
5276         (struct test_ff_f_data_nexttoward): Likewise.
5277         (RUN_TEST_LOOP_2_f): New macro.
5278         (RUN_TEST_LOOP_ff_f): Likewise.
5279         (atan2_test_data): New variable.
5280         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
5281         (copysign_test_data): New variable.
5282         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
5283         (fdim_test_data): New variable.
5284         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
5285         (fmax_test_data): New variable.
5286         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
5287         (fmin_test_data): New variable.
5288         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
5289         (fmod_test_data): New variable.
5290         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
5291         (hypot_test_data): New variable.
5292         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
5293         (nextafter_test_data): New variable.
5294         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
5295         (nexttoward_test_data): New variable.
5296         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
5297         (pow_test_data): New variable.
5298         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
5299         (pow_tonearest_test_data): New variable.
5300         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
5301         (pow_towardzero_test_data): New variable.
5302         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
5303         (pow_downward_test_data): New variable.
5304         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
5305         (pow_upward_test_data): New variable.
5306         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
5307         (remainder_test_data): New variable.
5308         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
5309         (scalb_test_data): New variable.
5310         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
5311         * sysdeps/i386/fpu/libm-test-ulps: Update.
5312
5313 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
5314
5315         * math/libm-test.inc (fma_test): Use max_value instead of local
5316         variable fltmax.
5317         (nextafter_test): Likewise.
5318
5319         * math/libm-test.inc (acos_towardzero_test_data): New variable.
5320         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5321         (acos_downward_test_data): New variable.
5322         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5323         (acos_upward_test_data): New variable.
5324         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5325         (acosh_test_data): New variable.
5326         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
5327         (asin_test_data): New variable.
5328         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
5329         (asin_tonearest_test_data): New variable.
5330         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5331         (asin_towardzero_test_data): New variable.
5332         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5333         (asin_downward_test_data): New variable.
5334         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5335         (asin_upward_test_data): New variable.
5336         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5337         (asinh_test_data): New variable.
5338         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
5339         (atan_test_data): New variable.
5340         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
5341         (atanh_test_data): New variable.
5342         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
5343         (cbrt_test_data): New variable.
5344         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
5345         (ceil_test_data): New variable.
5346         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
5347         (cos_test_data): New variable.
5348         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
5349         (cos_tonearest_test_data): New variable.
5350         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5351         (cos_towardzero_test_data): New variable.
5352         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5353         (cos_downward_test_data): New variable.
5354         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5355         (cos_upward_test_data): New variable.
5356         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5357         (cosh_test_data): New variable.
5358         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
5359         (cosh_tonearest_test_data): New variable.
5360         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5361         (cosh_towardzero_test_data): New variable.
5362         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5363         (cosh_downward_test_data): New variable.
5364         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5365         (cosh_upward_test_data): New variable.
5366         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5367         (erf_test_data): New variable.
5368         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
5369         (erfc_test_data): New variable.
5370         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
5371         (exp_test_data): New variable.
5372         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
5373         (exp_tonearest_test_data): New variable.
5374         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5375         (exp_towardzero_test_data): New variable.
5376         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5377         (exp_downward_test_data): New variable.
5378         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5379         (exp_upward_test_data): New variable.
5380         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5381         (exp10_test_data): New variable.
5382         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
5383         (exp2_test_data): New variable.
5384         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
5385         (expm1_test_data): New variable.
5386         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
5387         (fabs_test_data): New variable.
5388         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
5389         (floor_test_data): New variable.
5390         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
5391         (j0_test_data): New variable.
5392         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
5393         (j1_test_data): New variable.
5394         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
5395         (log_test_data): New variable.
5396         (log_test): Run tests with RUN_TEST_LOOP_f_f.
5397         (log10_test_data): New variable.
5398         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
5399         (log1p_test_data): New variable.
5400         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
5401         (log2_test_data): New variable.
5402         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
5403         (logb_test_data): New variable.
5404         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
5405         (logb_downward_test_data): New variable.
5406         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5407         (nearbyint_test_data): New variable.
5408         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
5409         (rint_test_data): New variable.
5410         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
5411         (rint_tonearest_test_data): New variable.
5412         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5413         (rint_towardzero_test_data): New variable.
5414         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5415         (rint_downward_test_data): New variable.
5416         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5417         (rint_upward_test_data): New variable.
5418         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5419         (round_test_data): New variable.
5420         (round_test): Run tests with RUN_TEST_LOOP_f_f.
5421         (sin_test_data): New variable.
5422         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
5423         (sin_tonearest_test_data): New variable.
5424         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5425         (sin_towardzero_test_data): New variable.
5426         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5427         (sin_downward_test_data): New variable.
5428         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5429         (sin_upward_test_data): New variable.
5430         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5431         (sinh_test_data): New variable.
5432         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
5433         (sinh_tonearest_test_data): New variable.
5434         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5435         (sinh_towardzero_test_data): New variable.
5436         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5437         (sinh_downward_test_data): New variable.
5438         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5439         (sinh_upward_test_data): New variable.
5440         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5441         (sqrt_test_data): New variable.
5442         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
5443         (tan_test_data): New variable.
5444         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
5445         (tan_tonearest_test_data): New variable.
5446         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5447         (tan_towardzero_test_data): New variable.
5448         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5449         (tan_downward_test_data): New variable.
5450         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5451         (tan_upward_test_data): New variable.
5452         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5453         (tanh_test_data): New variable.
5454         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
5455         (tgamma_test_data): New variable.
5456         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
5457         (trunc_test_data): New variable.
5458         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
5459         (y0_test_data): New variable.
5460         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
5461         (y1_test_data): New variable.
5462         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
5463         (significand_test_data): New variable.
5464         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
5465
5466 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
5467
5468         [BZ #12387]
5469         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
5470
5471 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5472
5473         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
5474
5475 2013-05-10  Andreas Jaeger  <aj@suse.de>
5476
5477         [BZ #15448]
5478         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
5479         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
5480
5481 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
5482
5483         * math/gen-libm-test.pl (adjust_arg): New function.
5484         (special_functions): Handle generating output in both functions
5485         and arrays.
5486         (parse_args): Likewise.
5487         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
5488         $in_func argument to parse_args.
5489         * math/libm-test.inc (struct test_f_f_data): New type.
5490         (IF_ROUND_INIT_): New macro.
5491         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
5492         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
5493         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
5494         (IF_ROUND_INIT_FE_UPWARD): Likewise.
5495         (ROUND_RESTORE_): Likewise.
5496         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
5497         (ROUND_RESTORE_FE_TONEAREST): Likewise.
5498         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
5499         (ROUND_RESTORE_FE_UPWARD): Likewise.
5500         (RUN_TEST_LOOP_f_f): New macro.
5501         (acos_test_data): New variable.
5502         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
5503         (acos_tonearest_test_data): New variable.
5504         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5505
5506 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5507
5508         * benchtests/bench-skeleton.c (startup): Fix coding style.
5509
5510 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
5511
5512         [BZ #6809]
5513         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
5514         negative infinity argument.
5515         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
5516         negative infinity argument.
5517         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
5518         negative infinity argument.
5519         * math/libm-test.inc (tgamma_test): Expect errno to be set for
5520         domain errors.
5521
5522 2013-05-10  Florian Weimer  <fweimer@redhat.com>
5523
5524         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
5525         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
5526         * iconv/iconv_prog.c (main): Likewise.
5527         * locale/programs/charmap-dir.c (charmap_readdir)
5528         (fopen_uncompressed): Likewise.
5529         * locale/programs/locfile.c (siblings_uncached)
5530         (write_locale_data): Use lstat64 instead of lstat.
5531         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
5532         stat.
5533
5534 2013-05-10  Andreas Jaeger  <aj@suse.de>
5535
5536         [BZ #15395]
5537         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
5538         localization.
5539         Include <locale.h>.
5540
5541 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
5542
5543         * elf/dl-close.c (_dl_close_worker): Add comments.
5544
5545 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
5546
5547         [BZ #15359]
5548         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
5549         high part of pi/2.
5550         (__ieee754_rem_pio2l): Update comments.
5551
5552         [BZ #15429]
5553         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
5554         high part of pi/2.
5555         (__ieee754_rem_pio2l): Update comments.
5556
5557         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
5558         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
5559
5560         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
5561         M_PI_4l.
5562
5563         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
5564         (M_PI_34_LOG10El): Likewise.
5565         (M_PI2_LOG10El): Likewise.
5566         (M_PI4_LOG10El): Likewise.
5567         (M_PI_LOG10El): Likewise.
5568
5569 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5570
5571         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5572
5573 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
5574
5575         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
5576         (MINUS_ZERO_INIT): Likewise.
5577         (PLUS_INFTY_INIT): Likewise.
5578         (MINUS_INFTY_INIT): Likewise.
5579         (QNAN_VALUE_INIT): Likewise.
5580         (MAX_VALUE_INIT): Likewise.
5581         (MIN_VALUE_INIT): Likewise.
5582         (MIN_SUBNORM_VALUE_INIT): Likewise.
5583         (plus_zero): Initialize with PLUS_ZERO_INIT.
5584         (minus_zero): Initialize with MINUS_ZERO_INIT.
5585         (plus_infty): Initialize with PLUS_INFTY_INIT.
5586         (minus_infty): Initialize with MINUS_INFTY_INIT.
5587         (qnan_value): Initialize with QNAN_VALUE_INIT.
5588         (max_value): Initialize with MAX_VALUE_INIT.
5589         (min_value): Initialize with MIN_VALUE_INIT.
5590         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
5591
5592         * math/libm-test.inc (RUN_TEST_if_f): New macro.
5593         (jn_test): Use TEST_if_f instead of TEST_ff_f.
5594         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
5595         (yn_test): Use TEST_if_f instead of TEST_ff_f.
5596
5597         * math/libm-test.inc (RUN_TEST_f_f): New macro.
5598         (RUN_TEST_2_f): Likewise.
5599         (RUN_TEST_ff_f): Likewise.
5600         (RUN_TEST_fi_f): Likewise.
5601         (RUN_TEST_fl_f): Likewise.
5602         (RUN_TEST_fff_f): Likewise.
5603         (RUN_TEST_c_f): Likewise.
5604         (RUN_TEST_f_f1): Likewise.
5605         (RUN_TEST_fF_f1): Likewise.
5606         (RUN_TEST_fI_f1): Likewise.
5607         (RUN_TEST_ffI_f1): Likewise.
5608         (RUN_TEST_c_c): Likewise.
5609         (RUN_TEST_cc_c): Likewise.
5610         (RUN_TEST_f_i): Likewise.
5611         (RUN_TEST_f_i_tg): Likewise.
5612         (RUN_TEST_ff_i_tg): Likewise.
5613         (RUN_TEST_f_b): Likewise.
5614         (RUN_TEST_f_b_tg): Likewise.
5615         (RUN_TEST_f_l): Likewise.
5616         (RUN_TEST_f_L): Likewise.
5617         (RUN_TEST_sincos): Likewise.
5618         * math/gen-libm-test.pl (new_test): Take new argument to indicate
5619         whether to show exceptions.  Do not include ");\n" in return
5620         value.
5621         (special_functions): Output call to RUN_TEST_sincos instead of
5622         check_float calls.  Update calls to new_test.
5623         (parse_args): Output call to single RUN_TEST_* macro instead of
5624         check_* calls and other assignments.  Update calls to new_test.
5625
5626         [BZ #2546]
5627         [BZ #2560]
5628         [BZ #5159]
5629         [BZ #15426]
5630         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
5631         input to result for tgamma overflow.
5632         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
5633         (gamma_coeff): New variable.
5634         (NCOEFF): New macro.
5635         (gamma_positive): New function.
5636         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
5637         underflow here.  Use gamma_positive instead of exp (lgamma) for
5638         other arguments.
5639         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
5640         (gamma_coeff): New variable.
5641         (NCOEFF): New macro.
5642         (gammaf_positive): New function.
5643         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
5644         underflow here.  Use gamma_positive instead of exp (lgamma) for
5645         other arguments.
5646         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
5647         (gamma_coeff): New variable.
5648         (NCOEFF): New macro.
5649         (gammal_positive): New function.
5650         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
5651         underflow here.  Use gamma_positive instead of exp (lgamma) for
5652         other arguments.
5653         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
5654         (gamma_coeff): New variable.
5655         (NCOEFF): New macro.
5656         (gammal_positive): New function.
5657         (__ieee754_gammal_r): Handle positive infinity, overflow and
5658         underflow here.  Handle NaN the same as positive infinity.  Remove
5659         check x < 0xffffffff for negative integers.  Use gamma_positive
5660         instead of exp (lgamma) for other arguments.
5661         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
5662         (gamma_coeff): New variable.
5663         (NCOEFF): New macro.
5664         (gammal_positive): New function.
5665         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
5666         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
5667         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
5668         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
5669         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
5670         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
5671         * sysdeps/generic/math_private.h (__gamma_productf): New
5672         prototype.
5673         (__gamma_product): Likewise.
5674         (__gamma_productl): Likewise.
5675         * math/Makefile (libm-calls): Add gamma_product.
5676         * math/libm-test.inc (tgamma_test): Add more tests.
5677         * sysdeps/i386/fpu/libm-test-ulps: Update.
5678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5679
5680 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
5681
5682         * benchtests/bench-skeleton.c (main): Preheat CPU.
5683
5684 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
5685
5686         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
5687
5688 2013-05-07  Roland McGrath  <roland@hack.frob.com>
5689
5690         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
5691         and _dl_skip_args_internal.
5692
5693 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
5694
5695         * manual/message.texi (Message Translation): Talk about users.
5696         Message to key mapping impacts design.
5697
5698 2013-05-06  Roland McGrath  <roland@hack.frob.com>
5699
5700         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
5701
5702         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
5703
5704         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
5705         * sysdeps/wordsize-64/glob64.c: ... here.
5706
5707         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
5708         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
5709         New macros.
5710
5711         * debug/getlogin_r_chk.c: Moved to ...
5712         * login/getlogin_r_chk.c: ... here.
5713         * debug/Makefile (routines): Move getlogin_r_chk to ...
5714         * login/Makefile (routines): ... here.
5715         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
5716         * login/Versions (libc: GLIBC_2.4): ... here.
5717
5718         * io/poll.c (__poll): Renamed from poll.
5719         Add libc_hidden_def.
5720         (poll): Define as weak alias.
5721
5722         * debug/ptsname_r_chk.c: Moved to ...
5723         * login/ptsname_r_chk.c: ... here.
5724         * debug/Makefile (routines): Move ptsname_r_chk to ...
5725         * login/Makefile (routines): ... here.
5726         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
5727         * login/Versions (libc: GLIBC_2.4): ... here.
5728
5729         * posix/getlogin.c: Moved to ...
5730         * login/getlogin.c: ... here.
5731         * posix/getlogin_r.c: Moved to ...
5732         * login/getlogin_r.c: ... here.
5733         * posix/getlogin_r.c: Moved to ...
5734         * login/getlogin_r.c: ... here.
5735         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
5736         * login/Makefile (routines): ... here.
5737         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
5738         * login/Versions (libc: GLIBC_2.0): ... here.
5739
5740         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
5741         (setrlimit): Define as weak alias.
5742
5743         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
5744         Call __ names for open, ftruncate, and close.
5745         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
5746         (truncate): Define as weak alias.
5747
5748 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
5749
5750         * math/gen-libm-test.pl (parse_args): Initialize x before each
5751         test of frexp, modf and remquo.
5752
5753         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
5754         test signgam value.
5755
5756 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5757
5758         [BZ #15418]
5759         [BZ #15419]
5760         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
5761         internal tests.
5762         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5763
5764 2013-05-06  Roland McGrath  <roland@hack.frob.com>
5765
5766         * elf/dl-writev.h: New file.
5767         * elf/dl-misc.c: Include it.
5768         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
5769         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
5770
5771 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
5772
5773         * math/libm-test.inc (noXFails): Remove variable.
5774         (noXPasses): Likewise.
5775         (BUILD_COMPLEX_INT): Remove macro.
5776         (print_screen): Remove xfail argument.
5777         (print_screen_max_error): Likewise.
5778         (update_stats): Likewise.
5779         (print_max_error): Likewise.  Update calls to other affected
5780         functions.
5781         (print_complex_max_error): Likewise.
5782         (test_single_exception): Update calls to print_screen.
5783         (test_single_errno): Likewise.
5784         (check_float_internal): Remove xfail argument.  Update calls to
5785         other affected functions.
5786         (check_float): Likewise.
5787         (check_complex): Likewise.
5788         (check_int): Likewise.
5789         (check_long): Likewise.
5790         (check_bool): Likewise.
5791         (check_longlong): Likewise.
5792         (main): Don't print noXFails and noXPasses.
5793         * math/gen-libm-test.pl (top level): Don't mention expected
5794         failure handling in comment.
5795         (new_test): Don't handle expected failures.
5796         (parse_args): Don't mention expected failure handling in comment.
5797         (generate_testfile): Don't handle expected failures.
5798         (parse_ulps): Likewise.
5799         (print_ulps_file): Likewise.
5800         (get_failure): Remove function.
5801         (output_test): Don't handle expected failures.
5802         * make/README.libm-test: Don't mention expected failure handling.
5803
5804         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
5805         (minus_zero): Likewise.
5806         (plus_infty): Likewise.
5807         (minus_infty): Likewise.
5808         (qnan_value): Likewise.
5809         (max_value): Likewise.
5810         (min_value): Likewise.
5811         (min_subnorm_value): Likewise.
5812         (initialize): Do not initialize those variables dynamically.
5813
5814 2013-05-03  Roland McGrath  <roland@hack.frob.com>
5815
5816         * io/open.c (__open_2): Moved to ...
5817         * io/open_2.c: ... this new file.
5818         * io/open64.c (__open64_2): Moved to ...
5819         * io/open64_2.c: ... this new file.
5820         * io/openat.c (__openat_2): Moved to ...
5821         * io/openat_2.c: ... this new file.
5822         * io/openat64.c (__openat64_2): Moved to ...
5823         * io/openat64_2.c: ... this new file.
5824         * io/Makefile (routines): Add them.
5825         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
5826         * sysdeps/unix/sysv/linux/open_2.c: File removed.
5827         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
5828         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
5829         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
5830         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
5831         (__openat64): Add hidden_ver.
5832         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
5833         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
5834
5835         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
5836         Separately conditionalize setting of GLRO(dl_sysinfo) so
5837         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
5838         as well, but the actual setting is only under [NEED_DL_SYSINFO].
5839
5840 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5841
5842         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
5843         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
5844         definition.
5845         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
5846         * sysdeps/unix/sysv/linux/powerpc/init-first.c
5847         (_libc_vdso_platform_setup): Add __vdso_time initialization.
5848         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
5849         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
5850
5851 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
5852
5853         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
5854         test signgam value.
5855
5856         * math/libm-test.inc (hypot_test): Do not use
5857         IGNORE_ZERO_INF_SIGN.
5858
5859 2013-05-03  Andreas Jaeger  <aj@suse.de>
5860
5861         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
5862         Linux 3.9.
5863         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
5864         (PF_MAX): Adjust for VSOCK change.
5865
5866 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5867
5868         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5869
5870 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
5871
5872         [BZ #15264]
5873         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
5874         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
5875         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
5876
5877 2013-05-02  David S. Miller  <davem@davemloft.net>
5878
5879         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5880
5881 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
5882
5883         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
5884
5885 2013-05-01  Roland McGrath  <roland@hack.frob.com>
5886
5887         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
5888
5889 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
5890
5891         [BZ #14952]
5892         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
5893         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
5894         Use __attribute__ ((__gnu_inline__)).
5895         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
5896         Don't use __attribute__ ((__gnu_inline__)).
5897
5898 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
5899
5900         [BZ #15423]
5901         * math/s_catan.c (__catan): Handle small real or imaginary part of
5902         input specially to avoid spurious underflow.
5903         * math/s_catanf.c (__catanf): Likewise.
5904         * math/s_catanh.c (__catanh): Likewise.
5905         * math/s_catanhf.c (__catanhf): Likewise.
5906         * math/s_catanhl.c (__catanhl): Likewise.
5907         * math/s_catanl.c (__catanl): Likewise.
5908         * math/libm-test.inc (catan_test): Add more tests.
5909         (catanh_test): Likewise.
5910         * sysdeps/i386/fpu/libm-test-ulps: Update.
5911         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5912
5913 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5914
5915         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5916
5917 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
5918
5919         [BZ #15416]
5920         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
5921         accurately for denominator in atan2.
5922         * math/s_catanf.c (__catanf): Likewise.
5923         * math/s_catanh.c (__catanh): Likewise.
5924         * math/s_catanhf.c (__catanhf): Likewise.
5925         * math/s_catanhl.c (__catanhl): Likewise.
5926         * math/s_catanl.c (__catanl): Likewise.
5927         * math/libm-test.inc (catan_test): Add more tests.
5928         (catanh_test): Likewise.
5929         * sysdeps/i386/fpu/libm-test-ulps: Update.
5930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5931
5932 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5933
5934         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
5935
5936         * benchtests/Makefile (bench): Remove slow benchmarks.
5937         * benchtests/atan-inputs: Add slow benchmark inputs.
5938         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
5939         (BENCH_FUNC): Accept variant offset.
5940         (VARIANT): Define.
5941         * benchtests/bench-skeleton.c (main): Run benchmark for each
5942         variant.
5943         * benchtests/cos-inputs: Add slow benchmark inputs.
5944         * benchtests/exp-inputs: Likewise.
5945         * benchtests/pow-inputs: Likewise.
5946         * benchtests/sin-inputs: Likewise.
5947         * benchtests/slowatan-inputs: Remove.
5948         * benchtests/slowatan.c: Remove.
5949         * benchtests/slowcos-inputs: Remove.
5950         * benchtests/slowcos.c: Remove.
5951         * benchtests/slowexp-inputs: Remove.
5952         * benchtests/slowexp.c: Remove.
5953         * benchtests/slowpow-inputs: Remove.
5954         * benchtests/slowpow.c: Remove.
5955         * benchtests/slowsin-inputs: Remove.
5956         * benchtests/slowsin.c: Remove.
5957         * benchtests/slowtan-inputs: Remove.
5958         * benchtests/slowtan.c: Remove.
5959         * benchtests/tan-inputs: Add slow benchmark inputs.
5960         * scripts/bench.pl: Parse comments and directives.
5961
5962         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
5963         in CPPFLAGS.
5964         ($(objpfx)bench-%.c): Remove *-ITER.
5965         * benchtests/bench-modf.c: Remove definition of ITER.
5966         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
5967         (main): Loop for DURATION seconds instead of fixed number of
5968         iterations.
5969         * scripts/bench.pl: Don't expect iterations in parameters.
5970
5971 2013-04-29  Roland McGrath  <roland@hack.frob.com>
5972
5973         * io/fchdir.c (__fchdir): Renamed from fchdir.
5974         (fchdir): Define as weak alias.
5975
5976 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
5977
5978         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
5979         (ERRNO_EDOM): Likewise.
5980         (ERRNO_ERANGE): Likewise.
5981         (noErrnoTests): New variable.
5982         (init_max_error): Set errno to 0.
5983         (test_single_errno): New function.
5984         (test_errno): Likewise.
5985         (check_float_internal): Call test_errno.  Set errno to 0.
5986         (check_complex): Refer to errno tests in comment.
5987         (check_int): Call test_errno.  Set errno to 0.
5988         (check_long): Likewise.
5989         (check_bool): Likewise.
5990         (check_longlong): Likewise.
5991         (cos_test): Use ERRNO_* flags for errno tests instead of
5992         check_int.
5993         (expm1_test): Likewise.
5994         (fmod_test): Likewise.
5995         (ilogb_test): Likewise.
5996         (lgamma_test): Likewise.
5997         (pow_test): Likewise.
5998         (remainder_test): Likewise.
5999         (sin_test): Likewise.
6000         (tan_test): Likewise.
6001         (yn_test): Likewise.
6002         (initialize): Set errno to 0.
6003         (main): Print number of errno tests.
6004         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
6005
6006 2013-04-29  Andreas Jaeger  <aj@suse.de>
6007
6008         [BZ #15084]
6009         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
6010         and RES_USEVC.
6011
6012         [BZ #15085]
6013         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
6014         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
6015         unimplemented.
6016
6017         [BZ #15380]
6018         * stdlib/random.c (__initstate): Return NULL if
6019         __initstate fails.
6020
6021         [BZ #15086]
6022         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
6023         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
6024         RES_SNGLKUPREOP.
6025
6026 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6027
6028         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6029
6030 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
6031
6032         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
6033         of individual tests.
6034         (casin_test): Likewise.
6035         (casinh_test): Likewise.
6036
6037 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
6038
6039         [BZ #15409]
6040         * math/s_catan.c (__catan): Handle arguments with large real or
6041         imaginary part separately without squaring.
6042         * math/s_catanf.c (__catanf): Likewise.
6043         * math/s_catanh.c (__catanh): Likewise.
6044         * math/s_catanhf.c (__catanhf): Likewise.
6045         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
6046         and redefine.
6047         (__catanhl): Handle arguments with large real or imaginary part
6048         separately without squaring.
6049         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
6050         and redefine.
6051         (__catanl): Handle arguments with large real or imaginary part
6052         separately without squaring.
6053         * math/libm-test.inc (catan_test): Add more tests.
6054         (catanh_test): Likewise.
6055         * sysdeps/i386/fpu/libm-test-ulps: Update.
6056         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6057
6058 2013-04-27  Andreas Jaeger  <aj@suse.de>
6059
6060         [BZ #15007]
6061         * stdlib/stdlib.h: Update guards for qecvt.
6062         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
6063         <stdlib.h>.
6064
6065 2013-04-27  Allan McRae  <allan@archlinux.org>
6066
6067         * sysdeps/i386/fpu/libm-test-ulps: Update.
6068
6069 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
6070
6071         [BZ #15406]
6072         * math/s_catan.c: Include <float.h>.
6073         (__catan): Ensure underflow exception occurs for underflowed
6074         result.
6075         * math/s_catanf.c: Include <float.h>.
6076         (__catanf): Ensure underflow exception occurs for underflowed
6077         result.
6078         * math/s_catanh.c: Include <float.h>.
6079         (__catanh): Ensure underflow exception occurs for underflowed
6080         result.
6081         * math/s_catanhf.c: Include <float.h>.
6082         (__catanhf): Ensure underflow exception occurs for underflowed
6083         result.
6084         * math/s_catanhl.c: Include <float.h>.
6085         (__catanhl): Ensure underflow exception occurs for underflowed
6086         result.
6087         * math/s_catanl.c: Include <float.h>.
6088         (__catanl): Ensure underflow exception occurs for underflowed
6089         result.
6090         * math/libm-test.inc (catan_test): Add more tests.
6091         (catanh_test): Likewise.
6092
6093         [BZ #15405]
6094         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
6095         underflowed result.
6096         * math/s_ccoshf.c (__ccoshf): Likewise.
6097         * math/s_ccoshl.c (__ccoshl): Likewise.
6098         * math/s_csin.c (__csin): Likewise.
6099         * math/s_csinf.c (__csinf): Likewise.
6100         * math/s_csinh.c (__csinh): Likewise.
6101         * math/s_csinhf.c (__csinhf): Likewise.
6102         * math/s_csinhl.c (__csinhl): Likewise.
6103         * math/s_csinl.c (__csinl): Likewise.
6104         * math/libm-test.inc (ccos_test): Add more tests.
6105         (ccosh_test): Likewise.
6106         (csin_test): Likewise.
6107         (csinh_test): Likewise.
6108
6109 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6110
6111         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
6112         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
6113         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
6114         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
6115         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
6116         powerpc/power5+/fpu folders.
6117         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
6118
6119
6120 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
6121
6122         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6123
6124 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
6125
6126         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
6127         additions to variable.
6128         [$(config-machine) = x86_64] (modules-names): Likewise.
6129         ($(objpfx)tst-audit3): Remove dependency.
6130         ($(objpfx)tst-audit3.out): Likewise.
6131         ($(objpfx)tst-audit4): Likewise.
6132         ($(objpfx)tst-audit4.out): Likewise.
6133         ($(objpfx)tst-audit5): Likewise.
6134         ($(objpfx)tst-audit5.out): Likewise.
6135         ($(objpfx)tst-audit6): Likewise.
6136         ($(objpfx)tst-audit6.out): Likewise.
6137         ($(objpfx)tst-audit7): Likewise.
6138         ($(objpfx)tst-audit7.out): Likewise.
6139         (tst-audit3-ENV): Remove variable.
6140         (tst-audit4-ENV): Likewise.
6141         (tst-audit5-ENV): Likewise.
6142         (tst-audit6-ENV): Likewise.
6143         (tst-audit7-ENV): Likewise.
6144         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
6145         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
6146         addition to variable.
6147         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
6148         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
6149         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
6150         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
6151         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
6152         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
6153         tst-audit3, tst-audit4 and tst-audit5.
6154         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
6155         tst-audit6 and tst-audit7.
6156         [$(subdir) = elf] (modules-names): Add audit modules for those
6157         tests.
6158         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
6159         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
6160         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
6161         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
6162         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
6163         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
6164         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
6165         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
6166         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
6167         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
6168         [$(subdir) = elf] (tst-audit3-ENV): New variable.
6169         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
6170         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
6171         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
6172         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
6173         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
6174         Likewise.
6175         [$(subdir) = elf && $(config-cflags-avx) = yes]
6176         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
6177         [$(subdir) = elf && $(config-cflags-avx) = yes]
6178         (CFLAGS-tst-auditmod4a.c): Likewise.
6179         [$(subdir) = elf && $(config-cflags-avx) = yes]
6180         (CFLAGS-tst-auditmod4b.c): Likewise.
6181         [$(subdir) = elf && $(config-cflags-avx) = yes]
6182         (CFLAGS-tst-auditmod6b.c): Likewise.
6183         [$(subdir) = elf && $(config-cflags-avx) = yes]
6184         (CFLAGS-tst-auditmod6c.c): Likewise.
6185         [$(subdir) = elf && $(config-cflags-avx) = yes]
6186         (CFLAGS-tst-auditmod7b.c): Likewise.
6187         * elf/tst-audit3.c: Move to ...
6188         * sysdeps/x86_64/tst-audit3.c: ... here.
6189         * elf/tst-audit4.c: Move to ...
6190         * sysdeps/x86_64/tst-audit4.c: ... here.
6191         * elf/tst-audit5.c: Move to ...
6192         * sysdeps/x86_64/tst-audit5.c: ... here.
6193         * elf/tst-audit6.c: Move to ...
6194         * sysdeps/x86_64/tst-audit6.c: ... here.
6195         * elf/tst-audit7.c: Move to ...
6196         * sysdeps/x86_64/tst-audit7.c: ... here.
6197         * elf/tst-auditmod3a.c: Move to ...
6198         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
6199         * elf/tst-auditmod3b.c: Move to ...
6200         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
6201         * elf/tst-auditmod4a.c: Move to ...
6202         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
6203         * elf/tst-auditmod4b.c: Move to ...
6204         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
6205         * elf/tst-auditmod5a.c: Move to ...
6206         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
6207         * elf/tst-auditmod5b.c: Move to ...
6208         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
6209         * elf/tst-auditmod6a.c: Move to ...
6210         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
6211         * elf/tst-auditmod6b.c: Move to ...
6212         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
6213         * elf/tst-auditmod6c.c: Move to ...
6214         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
6215         * elf/tst-auditmod7a.c: Move to ...
6216         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
6217         * elf/tst-auditmod7b.c: Move to ...
6218         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
6219
6220 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
6221
6222         [BZ #15366]
6223         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
6224         define unconditionally.
6225         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
6226         define unconditionally.
6227         (INT8_C, INT16_C, etc.): Likewise.
6228
6229 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
6230
6231         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
6232         __ehdr_start with hidden visibility.
6233
6234         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
6235
6236 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
6237
6238         * math/libm-test.inc (cos_test): Use accurate hex constants.
6239         (sincost_test): Likewise.
6240
6241 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
6242
6243         * math/libm-test.inc (catan_test): Add more tests.
6244         (catanh_test): Likewise.
6245
6246         * math/s_catanf.c (__catanf): Use suffixed floating-point
6247         constants.
6248         * math/s_catanhf.c (__catanhf): Likewise.
6249         * math/s_catanhl.c (__catanhl): Likewise.
6250         * math/s_catanl.c (__catanl): Likewise.
6251
6252         [BZ #15394]
6253         * math/s_catan.c (__catan): Calculate imaginary part of result
6254         with log1p not log unless computing log of number close to 0.
6255         * math/s_catanf.c (__catanf): Likewise.
6256         * math/s_catanl.c (__catanl): Likewise.
6257         * math/s_catanh.c (__catanh): Calculate real part of result with
6258         log1p not log unless computing log of number close to 0.
6259         * math/s_catanhf.c (__catanhf): Likewise.
6260         * math/s_catanhl.c (__catanhl): Likewise.
6261         * math/libm-test.inc (catan_test): Add more tests.
6262         (catanh_test): Likewise.
6263         * sysdeps/i386/fpu/libm-test-ulps: Update.
6264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6265
6266 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6267
6268         * benchtests/Makefile: Mention files in which fast and slow
6269         paths of math functions are implemented.
6270
6271 2013-04-23  Roland McGrath  <roland@hack.frob.com>
6272
6273         * sysdeps/posix/timespec_get.c: New file.
6274
6275 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6276
6277         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
6278         POWER.
6279         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
6280         for POWER.
6281         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
6282         powerpc/power5/fpu folders.
6283         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
6284         * benchtests/Makefile: Add modf testcase.
6285         * benchtests/bench-modf.c: New file: Benchmark test for mo
6286
6287 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
6288
6289         [BZ #14888]
6290         * time/Makefile (tests): Add tst-strptime-whitespace.
6291         * time/strptime_l.c (get_number): Use ISSPACE.
6292         (__strptime_internal): Likewise.
6293         * time/tst-strptime-whitespace.c: New test case.
6294
6295 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6296
6297         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
6298         member.
6299         (_nss_files_init): Set it here.
6300
6301 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
6302
6303         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
6304         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
6305         unsigned.
6306
6307 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
6308
6309         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
6310
6311 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
6312
6313         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
6314         size just once.
6315
6316 2013-04-21  David S. Miller  <davem@davemloft.net>
6317
6318         * po/ru.po: Update Russion translation from translation project.
6319
6320 2013-04-17  Adam Conrad  <adconrad@0c3.net>
6321
6322         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
6323         and setfsgid.
6324
6325 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
6326
6327         * configure.in: Remove i386 configure warning. Remove i386 case.
6328         * configure: Regenerate.
6329         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
6330         Add example to error message.
6331         * sysdeps/i386/configure: Regenerate.
6332
6333 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
6334
6335         * benchtests/Makefile (bench): Add cos, tan, slowcos and
6336         slowtan.
6337         * benchtests/cos-inputs: New file.
6338         * benchtests/slowcos-inputs: New file.
6339         * benchtests/slowcos.c: New file.
6340         * benchtests/slowtan-inputs: New file.
6341         * benchtests/slowtan.c: New file.
6342         * benchtests/tan-inputs: New file.
6343
6344 2013-04-16  Roland McGrath  <roland@hack.frob.com>
6345
6346         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
6347         considered kosher.
6348
6349 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6350
6351         * benchtests/Makefile: Include cppflags-iterator.mk to add
6352         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
6353
6354         * Makefile.in (bench-clean): New target.
6355         * benchtests/Makefile (bench-clean): Likewise.
6356
6357 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
6358
6359         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
6360
6361 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
6362
6363         * stdio-common/tstdiomisc.c: Fix coding-style violation.
6364
6365 2013-04-15  Andreas Schwab  <schwab@suse.de>
6366
6367         * nscd/grpcache.c (cache_addgr): Properly check for short write.
6368         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6369         * nscd/pwdcache.c (cache_addpw): Likewise.
6370         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
6371         more than recsize.
6372
6373 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6374
6375         * benchtests/Makefile (bench): Write all output to
6376         bench-out.tmp together.
6377
6378 2013-04-15  Andreas Schwab  <schwab@suse.de>
6379
6380         * nscd/nscd.c (main): Don't fork again after closing files.
6381
6382 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6383
6384         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
6385
6386         * benchtests/Rules (bench-deps): Collect dependencies into a
6387         single variable.  Add Makefile to dependencies.
6388         ($(objpfx)bench-%.c): Depend on bench-deps.
6389
6390 2013-04-12  Roland McGrath  <roland@hack.frob.com>
6391             Xavier Roche  <roche+kml2@exalead.com>
6392
6393         [BZ #15361]
6394         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
6395         just that it's a file descriptor.
6396         * manual/llio.texi (Synchronizing AIO Operations): Update description
6397         for EBADF error from aio_fsync.
6398
6399 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6400
6401         * Rules (bench): Move target definition...
6402         * benchtests/Makefile: ... here.
6403
6404 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
6405
6406         * math/libm-test.inc (cos_test): Fix PI/2 test.
6407         (sincos_test): Likewise.
6408         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6409         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6410
6411 2013-04-11  Andreas Schwab  <schwab@suse.de>
6412
6413         [BZ #13988]
6414         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
6415         accept exponent character only when digits were seen.
6416         * stdio-common/Makefile (tests): Add bug26.
6417         * stdio-common/bug26.c: New file.
6418
6419         [BZ #14293]
6420         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
6421         non-freeable.
6422
6423 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6424
6425         * Makeconfig (rtld-prefix): Define built linker prefix.
6426         * Rules (run-bench): Use it.
6427         * math/Makefile (run-regen-ulps): Likewise.
6428
6429         * Rules (bench): Remove eval.
6430
6431 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6432             Roland McGrath  <roland@hack.frob.com>
6433             Ondrej Bilka  <neleai@seznam.cz>
6434
6435         [BZ #15346]
6436         * time/getdate.c: Include ctype.h and alloca.h.
6437         (__getdate_r): Trim leading and trailing spaces of input.
6438         * time/tst-getdate.c (tests): Add tests with leading and
6439         trailing spaces.
6440
6441 2013-04-08  Roland McGrath  <roland@hack.frob.com>
6442
6443         [BZ #14280]
6444         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
6445         when computing value.
6446
6447 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6448
6449         * math/README.libm-test (How can I generate "libm-test-ulps"?):
6450         Use testrun.sh to run libm tests.
6451
6452         [BZ #15309]
6453         * elf/dl-open.c (dl_open_worker): memset all of seen array.
6454
6455 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
6456
6457         [BZ #15264]
6458         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
6459
6460 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6461
6462         * Makefile.in (regen-ulps): New target.
6463         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
6464         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
6465         [ifneq (no,$(PERL)] (regen-ulps): New target.
6466         [ifeq (no,$(PERL)] (regen-ulps): New target.
6467         * math/libm-test.inc (ulps_file_name): Define.
6468         (output_dir): New variable.
6469         (options): Add "output-dir" option.
6470         (parse_opt): Handle 'o' case.
6471         (main): If output_dir is non-NULL use it as a prefix
6472         otherwise use "".
6473         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
6474
6475 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6476
6477         [BZ #10060, #10062]
6478         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
6479         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
6480         fail configure if __sync_val_compare_and_swap is not inlined.
6481         * sysdeps/i386/configure: Regenerate.
6482         * configure.in: Build for i686 when configured for i386.
6483         * configure: Regenerate.
6484         * README: Remove i386 reference.
6485
6486 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6487
6488         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
6489         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6490
6491 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
6492
6493         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
6494         (lmsnanval): New variables.
6495         (F): Add conversion tests.
6496         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
6497         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
6498
6499         * stdio-common/tstdiomisc.c (F): Properly collect individual
6500         tests' results.
6501
6502         [BZ #14686, #15336]
6503         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
6504         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
6505         Instead, use input NaN values or generate a qNaN by arithmetic
6506         operation.  Also fix bugs to comply with the standard.
6507         * math/libm-test.inc (remainder_test): Add more tests.
6508
6509         [BZ #15335, #15342]
6510         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
6511         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
6512         input NaN values or generate a qNaN by arithmetic operation.
6513
6514         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
6515         unreachable code.
6516
6517         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
6518         definitions.
6519
6520 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
6521
6522         [BZ #14478]
6523         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
6524         underflowed result.
6525         * math/s_cexpf.c (__cexpf): Likewise.
6526         * math/s_cexpl.c (__cexpl): Likewise.
6527         * math/libm-test.inc (cexp_test): Add more tests.
6528
6529 2013-04-03  Andreas Schwab  <schwab@suse.de>
6530
6531         [BZ #15330]
6532         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
6533         order arrays from heap if bigger than alloca cutoff.
6534
6535 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
6536
6537         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
6538         (SNAN_TESTS_double): Refer to GCC PR56831.
6539         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
6540         GCC PR56828.
6541
6542 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6543
6544         * Rules (bench): Move bench.out after the run is complete.
6545
6546         * Rules (bench): Echo currently running benchmark.
6547
6548         * benchtests/Makefile (bench): Add atan and slowatan.
6549         * benchtests/atan-inputs: New file.
6550         * benchtests/slowatan-inputs: New file.
6551         * benchtests/slowatan.c: New file.
6552
6553         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
6554         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
6555         its value.
6556
6557         [BZ #15305]
6558         * sysdeps/unix/sysv/linux/kernel-features.h
6559         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
6560         __ASSUME_XFS_RESTRICTED_CHOWN.
6561         * sysdeps/unix/sysv/linux/pathconf.c
6562         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
6563         Save and restore errno.
6564
6565 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
6566
6567         [BZ #15327]
6568         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
6569         arguments using __kernel_casinh.
6570         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
6571         arguments using __kernel_casinhf.
6572         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
6573         arguments using __kernel_casinhl.
6574         * math/libm-test.inc (cacosh_test): Add more tests.
6575         * sysdeps/i386/fpu/libm-test-ulps: Update.
6576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6577
6578 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
6579
6580         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
6581         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
6582
6583         * bench/Makefile (bench): Add sin and slowsin.
6584         * benchtests/sin-inputs: New file.
6585         * benchtests/slowsin-inputs: New file.
6586         * benchtests/slowsin.c: New file.
6587
6588         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
6589         (bench): Add slowexp and slowpow.
6590         (exp-ITER): Increase iterations.
6591         (pow-ITER): Likewise.
6592         * benchtests/exp-inputs: Change input.
6593         * benchtests/pow-inputs: Likewise.
6594         * benchtests/slowexp-inputs: New file.
6595         * benchtests/slowexp.c: New file.
6596         * benchtests/slowpow-inputs: New file.
6597         * benchtests/slowpow.c: New file.
6598
6599 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6600
6601         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
6602         instructions.
6603         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
6604         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
6605         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
6606         * benchtests/Makefile: Add rint benchtest.
6607         * benchtests/rint-inputs: Input for rint benchtest.
6608
6609 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
6610
6611         * Versions.def (libm): Add GLIBC_2.18.
6612         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
6613         hidden libm prototypes.
6614         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
6615         * math/Makefile (libm-calls): Add s_issignaling.
6616         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
6617         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
6618         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
6619         declaration.
6620         * math/math.h [__USE_GNU] (issignaling): New macro.
6621         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
6622         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
6623         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
6624         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
6625         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
6626         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
6627         * manual/arith.texi (issignaling): New section.
6628         * manual/libm-err-tab.pl (@all_functions): Update comment.
6629         * math/gen-libm-test.pl (parse_args): Apply special handling for
6630         issignaling.
6631         * math/libm-test.inc (print_float, issignaling_test): New
6632         functions.
6633         (check_float_internal): Add issignaling checks.
6634         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
6635         default definition.
6636         * sysdeps/powerpc/math-tests.h: New file.
6637         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
6638         tests.
6639         * math/test-snan.c (TEST_FUNC): Likewise.
6640
6641 2013-03-30  David S. Miller  <davem@davemloft.net>
6642
6643         * po/de.po: Update from translation team.
6644
6645 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
6646
6647         [BZ #10357]
6648         * math/k_casinh.c (__kernel_casinh): Handle arguments with
6649         imaginary part less than 1.0 and real part less than 0.5
6650         specially.
6651         * math/k_casinhf.c (__kernel_casinhf): Likewise.
6652         * math/k_casinhl.c (__kernel_casinhl): Likewise.
6653         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
6654         (cacos_test): Add more tests.
6655         (casin_test): Likewise.
6656         (casinh_test): Likewise.
6657         * sysdeps/i386/fpu/libm-test-ulps: Update.
6658         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6659
6660 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
6661
6662         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
6663         ONE with its value.
6664
6665         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
6666         (__pow_mp): Replace ONE and MONE with their values.
6667         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6668         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
6669         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
6670         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
6671         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
6672         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
6673
6674         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
6675
6676         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
6677         (__pow_mp): Replace ZERO and MZERO with their values.
6678         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
6679         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6680         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
6681         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
6682         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
6683         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
6684         (__sqr): Likewise.
6685
6686         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
6687
6688         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
6689
6690 2013-03-28  Roland McGrath  <roland@hack.frob.com>
6691
6692         * include/stdlib.h [!SHARED] (__call_tls_dtors):
6693         Declare with __attribute__ ((weak)).
6694         * stdlib/exit.c (__libc_atexit) [!SHARED]:
6695         Call __call_tls_dtors only if it's not NULL.
6696
6697 2013-03-28  Roland McGrath  <roland@hack.frob.com>
6698
6699         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
6700         didn't do it already, then set _dl_phdr and _dl_phnum based on the
6701         magic __ehdr_start linker symbol if it's defined.
6702         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
6703         them up here if it was already done.
6704
6705         * elf/dl-support.c (_dl_phdr): Make pointer to const.
6706         (_dl_aux_init): Use const in cast when setting it.
6707         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
6708         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
6709         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
6710
6711         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
6712         Declare them here.
6713         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
6714         * csu/libc-tls.c: Nor here.
6715         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
6716
6717         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
6718         (__libc_message): Never call vsyslog.
6719
6720 2013-03-28  Alan Modra  <amodra@gmail.com>
6721
6722         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
6723         Define as empty.
6724         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
6725         Likewise.
6726
6727 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6728
6729         [BZ #15214]
6730         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
6731         underflow.
6732         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6733
6734 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6735
6736         [BZ #15304]
6737         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
6738         Don't add gid passed as argument.
6739
6740         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
6741
6742 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
6743
6744         [BZ #15307]
6745         * math/k_casinh.c (__kernel_casinh): Handle arguments with
6746         imaginary part between 1.0 and 1.5 and real part less than 0.5
6747         specially.
6748         * math/k_casinhf.c (__kernel_casinhf): Likewise.
6749         * math/k_casinhl.c (__kernel_casinhl): Likewise.
6750         * math/libm-test.inc (cacos_test): Add more tests.
6751         (casin_test): Likewise.
6752         (casinh_test): Likewise.
6753         * sysdeps/i386/fpu/libm-test-ulps: Update.
6754         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6755
6756 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6757
6758         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
6759         constants.
6760         (norm): Likewise.
6761         (denorm): Likewise.
6762         (__dbl_mp): Likewise.
6763         (add_magnitudes): Likewise.
6764         (sub_magnitudes): Likewise.
6765         (__add): Likewise.
6766         (__sub): Likewise.
6767         (__mul): Likewise.
6768         (__sqr): Likewise.
6769         (__inv): Likewise.
6770         (__dvd): Likewise.
6771
6772         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
6773         commented code.
6774         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
6775         (__dubcos): Likewise.
6776         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
6777         (__ieee754_acos): Likewise.
6778         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
6779         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
6780         (__exp1): Likewise.
6781         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6782         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
6783         (log1): Likewise.
6784         (my_log2): Likewise.
6785         (checkint): Likewise.
6786         * sysdeps/ieee754/dbl-64/e_remainder.c
6787         (__ieee754_remainder): Likewise.
6788         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
6789         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
6790         (bsloww): Likewise.
6791         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
6792
6793         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
6794         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
6795         MANTISSA_STORE_T to store computations on mantissa.  Use
6796         macros for rounding and division.
6797         (denorm): Likewise.
6798         (__dbl_mp): Likewise.
6799         (add_magnitudes): Likewise.
6800         (sub_magnitudes): Likewise.
6801         (__mul): Likewise.
6802         (__sqr): Likewise.
6803         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
6804         powers of two in terms of TWOPOW macro.
6805         (mp_no): Make type of mantissa as MANTISSA_T.
6806         [!RADIXI]: Define RADIXI.
6807         [!TWO52]: Define TWO52.
6808         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
6809
6810 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6811
6812         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
6813         llroundl symbol when building for PPC32.
6814
6815 2013-03-24  Mark H Weaver  <mhw@netris.org>
6816
6817         * manual/arith.texi (Normalization Functions): Fix prototypes for
6818         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
6819
6820 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6821
6822         [BZ #13889]
6823         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
6824         high value to check if expl overflow.
6825         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
6826         to check for underflow and overflow.
6827         * math/libm-test.inc: Add exp test.
6828
6829 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
6830
6831         [BZ #11120]
6832         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
6833         with NOT_IN_libc.
6834
6835 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6836
6837         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
6838         symbol.
6839
6840 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6841
6842         * math/gen-libm-test.pl (parse_args, special_functions): Properly
6843         wrap blocks consisting of several statements.
6844
6845         * sysdeps/generic/math-tests.h: New file.
6846         * sysdeps/i386/fpu/math-tests.h: Likewise.
6847         * math/test-snan.c: Include it.
6848         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
6849
6850 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
6851
6852         [BZ #15285]
6853         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
6854         (__ieee754_j0l): Do not improve calculations using cos of twice
6855         input for inputs above LDBL_MAX / 2.0L.
6856         (__ieee754_y0l): Likewise.
6857         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
6858         (__ieee754_j1l): Do not improve calculations using cos of twice
6859         input for inputs above LDBL_MAX / 2.0L.
6860         (__ieee754_y1l): Likewise.
6861         * math/libm-test.inc (j0_test): Add another test.
6862         (j1_test): Likewise.
6863         (y0_test): Likewise.
6864         (y1_test): Likewise.
6865         * sysdeps/i386/fpu/libm-test-ulps: Update.
6866
6867 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6868
6869         * Rules ($(objpfx)bench-%.c): Include code from a C source
6870         file.
6871
6872 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
6873
6874         [BZ #15287]
6875         * math/k_casinh.c (__kernel_casinh): Handle arguments with
6876         imaginary part 1.0 and real part less than 0.5 specially.
6877         * math/k_casinhf.c (__kernel_casinhf): Likewise.
6878         * math/k_casinhl.c (__kernel_casinhl): Likewise.
6879         * math/libm-test.inc (cacos_test): Add more tests.
6880         (casin_test): Likewise.
6881         (casinh_test): Likewise.
6882         * sysdeps/i386/fpu/libm-test-ulps: Update.
6883         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6884
6885 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6886
6887         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
6888         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
6889
6890 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
6891
6892         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
6893         * config.make.in (config-cflags-sse4): Remove variable.
6894         (config-cflags-avx): Likewise.
6895         (config-cflags-sse2avx): Likewise.
6896         (config-cflags-novzeroupper): Likewise.
6897         (config-asflags-i686): Likewise.
6898         (have-mfma4): Likewise.
6899         (have-as-vis3): Likewise.
6900         (MIG): Likewise.
6901         * configure.in (MIG): Do not AC_SUBST.
6902         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
6903         (libc_cv_cc_sse4): Do not AC_SUBST.
6904         (libc_cv_cc_avx): Likewise.
6905         (libc_cv_cc_sse2avx): Likewise.
6906         (libc_cv_cc_novzeroupper): Likewise.
6907         (libc_cv_cc_fma4): Likewise.
6908         (libc_cv_as_i686): Likewise.
6909         (libc_cv_sparc_as_vis3): Likewise.
6910         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
6911         LIBC_CONFIG_VAR.
6912         (config-asflags-i686): Likewise.
6913         (config-cflags-avx): Likewise.
6914         (config-cflags-sse2avx): Likewise.
6915         (have-mfma4): Likewise.
6916         (config-cflags-novzeroupper): Likewise.
6917         * sysdeps/mach/configure.in (MIG): Likewise.
6918         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
6919         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
6920         LIBC_CONFIG_VAR.
6921         (config-cflags-avx): Likewise.
6922         (config-cflags-sse2avx): Likewise.
6923         (have-mfma4): Likewise.
6924         (config-cflags-novzeroupper): Likewise.
6925         * configure: Regenerated.
6926         * sysdeps/i386/configure: Likewise.
6927         * sysdeps/mach/configure: Likewise.
6928         * sysdeps/sparc/configure: Likewise.
6929         * sysdeps/x86_64/configure: Likewise.
6930
6931 2013-03-20  Roland McGrath  <roland@hack.frob.com>
6932
6933         [BZ #14812]
6934         * locale/programs/localedef.c (options): Put N_ translation marker
6935         on argument names, not just descriptions.
6936
6937 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6938
6939         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
6940
6941 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
6942
6943         [BZ #14176]
6944         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
6945
6946 2013-03-19  Roland McGrath  <roland@hack.frob.com>
6947
6948         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
6949         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
6950         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
6951         [!BEFORE_ABORT] (before_abort): New function.
6952         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
6953         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
6954         (writev_for_fatal): New function.
6955         (WRITEV_FOR_FATAL): New macro; call that.
6956         (backtrace_and_maps): New function.
6957         (BEFORE_ABORT): New macro; call that.
6958         (struct str_list): Type removed.
6959         (__libc_message, __libc_fatal): Functions removed.
6960         Include <sysdeps/posix/libc_fatal.c> instead.
6961
6962 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
6963
6964         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
6965         constants.
6966         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
6967         double constants.
6968
6969 2013-03-19  Andreas Schwab  <schwab@suse.de>
6970
6971         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
6972         * sysdeps/gnu/configure: Regenerate.
6973
6974         * configure.in: Substitute libc_cv_rtlddir.
6975         * configure: Regenerate.
6976         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
6977         * Makeconfig (rtlddir, inst_rtlddir): New variables.
6978         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
6979         * elf/Makefile (install-others, CFLAGS-interp.c)
6980         (ldso_install, common-ldd-rewrite): Likewise.
6981         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
6982         $(inst_slibdir)/$(rtld-installed-name).
6983         * scripts/rellns-sh: Add -p option.
6984         * Makerules (make-shlib-link): Use rellns-sh to get relative name
6985         for source.
6986
6987 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
6988
6989         * manual/nptl.texi: Renamed to ...
6990         * manual/threads.texi: ... this.
6991         * manual/Makefile (chapters): Update.
6992
6993 2013-03-18  Roland McGrath  <roland@hack.frob.com>
6994
6995         [BZ #14812]
6996         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
6997         on argument names, not just descriptions.
6998         * malloc/memusagestat.c (options): Likewise.
6999         * nss/getent.c (options): Likewise.
7000
7001 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
7002
7003         [BZ #14812]
7004         * iconv/iconv_prog.c (options): Put N_ translation marker
7005         on argument names, not just descriptions.
7006         * iconv/iconvconfig.c (options): Likewise.
7007
7008 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
7009
7010         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
7011         implementation which is faster on all x86_64 architectures.
7012         Tested on AMD, Intel Nehalem, SNB, IVB.
7013         * sysdeps/x86_64/strnlen.S: Likewise.
7014
7015         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
7016         Remove all multiarch strlen and strnlen versions.
7017         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
7018         Remove strlen and strnlen related parts.
7019
7020         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
7021         Inline strlen part.
7022         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
7023
7024         * sysdeps/x86_64/multiarch/strlen.S: Remove.
7025         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
7026         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
7027         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
7028         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
7029         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
7030
7031 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
7032
7033         * manual/memory.texi (Malloc Tunable Parameters):
7034         Sort parameters alphabetically. Add comments for missing entries.
7035
7036 2013-03-17  David S. Miller  <davem@davemloft.net>
7037
7038         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7039
7040 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
7041
7042         [BZ #15283]
7043         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
7044         for arguments at most half maximum finite value.
7045         * math/libm-test.inc (j0_test): Add more tests.
7046         (j1_test): Likewise.
7047         (y0_test): Likewise.
7048         (y1_test): Likewise.
7049         * sysdeps/i386/fpu/libm-test-ulps: Update.
7050         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7051
7052         [BZ #14155]
7053         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
7054         1 / x and functions P and Q for arguments above 0x1p256L.
7055         (__ieee754_y0l): Likewise.
7056         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7057         (__ieee754_y1l): Likewise.
7058         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
7059         (j1_test): Likewise.
7060         (y0_test): Likewise.
7061         (y1_test): Likewise.
7062
7063 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
7064
7065         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
7066         variable.
7067
7068 2013-03-15  Roland McGrath  <roland@hack.frob.com>
7069
7070         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
7071         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
7072         zero since it's initialized to EXEC_PAGESIZE.
7073
7074         * sysdeps/unix/sysv/linux/ldsodefs.h
7075         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
7076         * sysdeps/generic/ldsodefs.h: ... here.
7077
7078 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
7079
7080         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
7081
7082         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
7083         math/test-snan.c.
7084         * math/test-snan.c: Renamed from
7085         sysdeps/powerpc/fpu/test-powerpc-snan.c.
7086         * math/Makefile (tests): Add test-snan.
7087         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
7088         test-powerpc-snan.
7089
7090         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
7091         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
7092         functions.
7093         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
7094         __builtin_nan family of functions.
7095         * math/libm-test.inc (initialize): Initialize qnan_value with
7096         __builtin_nan family of functions.
7097         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
7098         Remove variables.
7099         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
7100         Remove functions.
7101         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
7102         storage class.  Initialize qNaN_var and sNaN_var with
7103         __builtin_nan and __builtin_nans families of functions,
7104         respectively.
7105
7106         * math/libm-test.inc (acosh_test): Also test with qNaN input.
7107         (sqrt_test): Remove duplicate test with qNaN input.
7108         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
7109         (round_test, signbit_test, significand_test): Note missing +/-Inf
7110         as well as qNaN tests.
7111
7112         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
7113         qNaN_var.  Fix a few strings, too.
7114         * math/libm-test.inc (nan_value): Rename to qnan_value.
7115         * math/gen-libm-test.pl (%beautify): Adjust to that.
7116         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
7117         * math/test-misc.c (main): Likewise.
7118         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
7119         to __qnan_bytes, and __qnan_union, respectively.
7120         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
7121         Likewise.
7122         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
7123         and lqnanval, respectively.
7124         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
7125         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
7126         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
7127         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
7128
7129         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
7130         * math/test-misc.c (main) [__x86_64__]: Enable test for long
7131         doubles.
7132
7133         * math/test-misc.c (main): Fix copy'n'pastos.
7134         * misc/tst-efgcvt.c (special): Likewise.
7135
7136         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
7137         Remove declarations.
7138
7139 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7140
7141         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
7142         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
7143         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
7144         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
7145
7146 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7147
7148         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
7149         macro to return vdso values correctly in IFUNC implementations.
7150         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
7151         Optimization by using IFUNC.
7152
7153 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7154             Richard Henderson  <rth@redhat.com>
7155             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7156
7157         * Makefile.in (bench): New target.
7158         * NEWS: Mention the benchmark framework.
7159         * Rules (bench): Likewise.
7160         (binaries-bench): Generate binaries for functions to
7161         benchmark.
7162         * benchtests/Makefile: New makefile for benchmark tests.
7163         * benchtests/bench-skeleton.c: New skeleton file for benchmark
7164         programs.
7165         * benchtests/exp-inputs: New input file for EXP function.
7166         * benchtests/pow-inputs: New input file for POW function.
7167         * scripts/bench.pl: New script to generate source files for
7168         benchmark programs.
7169
7170 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7171
7172         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
7173         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
7174         computations on mantissa.  Use macros for rounding and
7175         division.
7176         (denorm): Likewise.
7177         (__dbl_mp): Likewise.
7178         (add_magnitudes): Likewise.
7179         (sub_magnitudes): Likewise.
7180         (__mul): Likewise.
7181         (__sqr): Likewise.
7182         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
7183         powers of two in terms of TWOPOW macro.
7184         (mp_no): Make type of mantissa as MANTISSA_T.
7185         [!RADIXI]: Define RADIXI.
7186         [!TWO52]: Define TWO52.
7187         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
7188
7189         * manual/nptl.texi (cindex): Modify threads to pthreads.
7190
7191 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
7192
7193         * sysdeps/x86_64/preconfigure: Regenerated.
7194
7195 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
7196
7197         [BZ #14155]
7198         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
7199         0x1p28 and above.
7200         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
7201         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
7202         0x1p28 and above.
7203         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
7204         * math/libm-test.inc (j0_test): Do not allow one spurious
7205         underflow exception.
7206         (y1_test): Likewise.
7207
7208 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7209
7210         * manual/Makefile (chapters): Add nptl.
7211         * manual/debug.texi (Debugging Support): Add link to Threads
7212         chapter.
7213         * manual/nptl.texi: New file.
7214
7215         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
7216
7217 2013-03-14  Petr Baudis  <pasky@ucw.cz>
7218
7219         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
7220         for non-NULL pointer before the memory validity test. Pointed
7221         out by Holger Brunck <holger.brunck@keymile.com>.
7222
7223 2013-03-13  Andreas Schwab  <schwab@suse.de>
7224
7225         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
7226         instead of .os.
7227
7228 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
7229
7230         * timezone/zic.c: Update from tzcode 2013b.
7231
7232 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
7233
7234         * manual/install.texi (Configuring and compiling):
7235         Mention i686 and i586.
7236         * INSTALL: Regenerate.
7237
7238 2013-03-12  Roland McGrath  <roland@hack.frob.com>
7239
7240         * sysdeps/init_array/elf-init.c: New file.
7241         * csu/elf-init.c
7242         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
7243         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
7244
7245         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
7246         __gmon_start__ as global, but as static with a .preinit_array pointer.
7247         * sysdeps/init_array/gmon-start.c: New file.  Use that.
7248         * sysdeps/init_array/crti.S: New file, empty except for comments.
7249         * sysdeps/init_array/crtn.S: Likewise.
7250
7251 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
7252
7253         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
7254         definining bcopy.
7255         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7256         Remove Prefer_SSE_for_memop.
7257         * sysdeps/x86_64/multiarch/init-arch.h: Remove
7258         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
7259         HAS_PREFER_SSE_FOR_MEMOP.
7260         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7261         memset-x86-64.
7262         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
7263         Remove bzero, memset ifunc support.
7264         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
7265         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
7266         * sysdeps/x86_64/multiarch/memset.S: Likewise.
7267         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
7268
7269 2013-03-11  Andreas Schwab  <schwab@suse.de>
7270
7271         [BZ #15234]
7272         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
7273         by SHLIB_COMPAT.
7274         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
7275         (GLIBC_2.16): Remove pthread_atfork.
7276
7277 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
7278
7279         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
7280         (ptestcases.h): Likewise.
7281
7282 2013-03-08  Roland McGrath  <roland@hack.frob.com>
7283
7284         * Makeconfig ($(common-objpfx)config.status): Depend on
7285         sysdeps/*/preconfigure{,.in} too.
7286
7287 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
7288
7289         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
7290         (__free_hook): Use void * instead of __malloc_ptr_t.
7291         (__malloc_hook): Likewise.
7292         (__realloc_hook): Likewise.
7293         (__memalign_hook): Likewise.
7294         (__after_morecore_hook): Likewise.
7295         * malloc/arena.c (save_malloc_hook): Likewise.
7296         (save_free_hook): Likewise.
7297         * malloc/hooks.c (malloc_hook_ini): Likewise.
7298         (realloc_hook_ini): Likewise.
7299         (memalign_hook_ini): Likewise.
7300         * malloc/malloc.c (malloc_hook_ini): Likewise.
7301         (realloc_hook_ini): Likewise.
7302         (memalign_hook_ini): Likewise.
7303         (__free_hook): Likewise.
7304         (__malloc_hook): Likewise.
7305         (__realloc_hook): Likewise.
7306         (__memalign_hook): Likewise.
7307         (__libc_malloc): Likewise.
7308         (__libc_free): Likewise.
7309         (__libc_realloc): Likewise.
7310         (__libc_memalign): Likewise.
7311         (__libc_valloc): Likewise.
7312         (__libc_pvalloc): Likewise.
7313         (__libc_calloc): Likewise.
7314         (__posix_memalign): Likewise.
7315         * malloc/morecore.c (__sbrk): Likewise.
7316         (__default_morecore): Likewise.
7317
7318         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
7319
7320         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
7321         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
7322         __malloc_ptrdiff_t.
7323
7324         * malloc/malloc.h (__malloc_size_t): Remove macro.
7325         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
7326         __malloc_size_t.
7327         (old_memalign_hook): Likewise.
7328         (old_realloc_hook): Likewise.
7329         (struct hdr): Likewise.
7330         (flood): Likewise.
7331         (mallochook): Likewise.
7332         (memalignhook): Likewise.
7333         (reallochook): Likewise.
7334         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
7335         (tr_old_realloc_hook): Likewise.
7336         (tr_old_memalign_hook): Likewise.
7337         (tr_mallochook): Likewise.
7338         (tr_reallochook): Likewise.
7339         (tr_memalignhook): Likewise.
7340
7341 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7342
7343         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
7344         default_ldbl_pack and using as default implementation.
7345         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
7346         implementation.
7347         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
7348         redundant definition.
7349         (ldbl_insert_mantissa): Likewise.
7350         (ldbl_canonicalize): Likewise.
7351         (ldbl_nearbyint): Likewise.
7352         (ldbl_pack): Rename to ldbl_pack_ppc.
7353         (ldbl_unpack): Rename to ldbl_unpack_ppc.
7354         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
7355         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
7356
7357 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
7358
7359         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
7360         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
7361         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
7362         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
7363         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
7364         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
7365         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
7366         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
7367
7368 2013-03-07  Andreas Jaeger  <aj@suse.de>
7369
7370         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7371         bits/mman-linux.h.
7372
7373 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
7374
7375         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
7376         Include mpa.h and declare __MPEXP.
7377         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
7378         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
7379         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
7380         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
7381         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
7382         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
7383         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
7384
7385         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
7386         (__slowpow): Use long double EXPL and LOGL functions to
7387         compute POW.
7388         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
7389         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
7390         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
7391         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
7392         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
7393         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
7394
7395         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
7396         intermediate variable to calculate exponent.
7397         (__sqr): Likewise.
7398         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
7399         Likewise.
7400         (__sqr): Likewise.
7401
7402         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
7403         [!NO__SQR]: Define __sqr.
7404         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
7405         and NO__SQR.  Remove all code except __mul and __sqr.  Include
7406         sysdeps/ieee754/dbl-64/mpa.c.
7407         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
7408
7409         [BZ #12723]
7410         * posix/Makefile (tests): Add tst-pathconf.
7411         * posix/tst-pathconf.c: New test case.
7412         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
7413         _PC_PIPE_BUF.
7414         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
7415
7416 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
7417
7418         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
7419
7420 2013-03-06  Andreas Jaeger  <aj@suse.de>
7421
7422         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
7423         definition via __MAP_ANONYMOUS.
7424
7425         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
7426         it's not part of Linux headers.
7427
7428         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
7429         (MAP_HUGE_MASK): Define.
7430
7431         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7432         Define.
7433         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7434         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7435         Define.
7436         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7437         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7438         Define.
7439         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7440         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
7441         Define.
7442         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7443
7444         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
7445         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
7446         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
7447         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
7448         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
7449         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
7450
7451         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
7452         Handle f2fs.
7453
7454         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7455         Handle f2fs and efivarfs.
7456
7457         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
7458         f2fs.
7459
7460         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
7461         (EFIVARFS_MAGIC): Add.
7462         (F2FS_LINK_MAX): Add.
7463
7464 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7465
7466         * stdio-common/vfprintf.c: Replace __builtin_expect with
7467         __glibc_unlikely.
7468
7469 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
7470
7471         [BZ #13550]
7472         * sysdeps/generic/bp-sym.h: Remove file.
7473         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
7474         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
7475         <bp-sym.h> and <bp-asm.h>.
7476         (__longjmp): Don't use BP_SYM.
7477         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
7478         and <bp-asm.h>.
7479         (memcpy): Don't use BP_SYM.
7480         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
7481         <bp-sym.h> and <bp-asm.h>.
7482         (memcpy): Don't use BP_SYM.
7483         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
7484         <bp-asm.h>.
7485         (memcpy): Don't use BP_SYM.
7486         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
7487         <bp-asm.h>.
7488         (memset): Don't use BP_SYM.
7489         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7490         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7491         (__bzero): Don't use BP_SYM.
7492         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7493         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7494         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
7495         <bp-sym.h> and <bp-asm.h>.
7496         (memcmp): Don't use BP_SYM.  Remove comment about bounded
7497         pointers.
7498         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
7499         <bp-sym.h> and <bp-asm.h>.
7500         (memcpy): Don't use BP_SYM.
7501         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
7502         <bp-sym.h> and <bp-asm.h>.
7503         (memset): Don't use BP_SYM.
7504         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7505         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7506         (__bzero): Don't use BP_SYM.
7507         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7508         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7509         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
7510         <bp-sym.h> and <bp-asm.h>.
7511         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7512         pointers.
7513         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
7514         <bp-sym.h> and <bp-asm.h>.
7515         (memcpy): Don't use BP_SYM.
7516         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
7517         <bp-sym.h> and <bp-asm.h>.
7518         (memset): Don't use BP_SYM.
7519         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7520         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7521         (__bzero): Don't use BP_SYM.
7522         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7523         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7524         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
7525         <bp-sym.h> and <bp-asm.h>.
7526         (__memchr): Don't use BP_SYM.
7527         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
7528         <bp-sym.h> and <bp-asm.h>.
7529         (memcmp): Don't use BP_SYM.  Remove comment about bounded
7530         pointers.
7531         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
7532         <bp-sym.h> and <bp-asm.h>.
7533         (memcpy): Don't use BP_SYM.
7534         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
7535         <bp-sym.h> and <bp-asm.h>.
7536         (__mempcpy): Don't use BP_SYM.
7537         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
7538         <bp-sym.h> and <bp-asm.h>.
7539         (__memrchr): Don't use BP_SYM.
7540         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
7541         <bp-sym.h> and <bp-asm.h>.
7542         (memset): Don't use BP_SYM.
7543         (__bzero): Likewise.
7544         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
7545         <bp-sym.h> and <bp-asm.h>.
7546         (__rawmemchr): Don't use BP_SYM.
7547         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
7548         <bp-sym.h> and <bp-asm.h>.
7549         (__STRCMP): Don't use BP_SYM.
7550         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
7551         <bp-sym.h> and <bp-asm.h>.
7552         (strchr): Don't use BP_SYM.
7553         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
7554         <bp-sym.h> and <bp-asm.h>.
7555         (__strchrnul): Don't use BP_SYM.
7556         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
7557         <bp-sym.h> and <bp-asm.h>.
7558         (strlen): Don't use BP_SYM.
7559         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
7560         <bp-sym.h> and <bp-asm.h>.
7561         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7562         pointers.
7563         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
7564         <bp-sym.h> and <bp-asm.h>.
7565         (__strnlen): Don't use BP_SYM.
7566         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
7567         <bp-sym.h> and <bp-asm.h>.
7568         (__GI__setjmp): Don't use BP_SYM.
7569         (_setjmp): Likewise.
7570         (__sigsetjmp): Likewise.
7571         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
7572         (L(start_addresses)): Don't use BP_SYM.
7573         (_start): Likewise.
7574         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
7575         <bp-asm.h>.
7576         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
7577         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
7578         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7579         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7580         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
7581         <bp-asm.h>.
7582         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
7583         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
7584         about bounded pointers.
7585         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
7586         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
7587         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
7588         <bp-asm.h>.
7589         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
7590         about bounded pointers.  Remove GKM FIXME comments.
7591         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
7592         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
7593         <bp-asm.h>.
7594         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
7595         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
7596         Remove GKM FIXME comments.
7597         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7598         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7599         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
7600         <bp-asm.h>.
7601         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
7602         about bounded pointers.  Remove GKM FIXME comment.
7603         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
7604         and <bp-asm.h>.
7605         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7606         pointers.
7607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
7608         <bp-sym.h> and <bp-asm.h>.
7609         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
7610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
7611         <bp-sym.h> and <bp-asm.h>.
7612         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
7613         comment.
7614
7615 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7616
7617         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
7618         call free(NULL).
7619
7620 2013-03-05  David S. Miller  <davem@davemloft.net>
7621
7622         * po/es.po: Update from translation team.
7623
7624 2013-03-05  Andreas Jaeger  <aj@suse.de>
7625
7626         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
7627         <bits/mman-linux.h>.
7628         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
7629         is fine.
7630         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
7631         <bits/mman-linux.h> to end of file.
7632         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
7633         is fine.
7634         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
7635         <bits/mman-linux.h> to end of file.
7636         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
7637         is fine.
7638         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
7639         <bits/mman-linux.h> to end of file.
7640
7641         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
7642         (MCL_CURRENT, MCL_FUTURE): Define here.
7643
7644 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7645
7646         [BZ #15232]
7647         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
7648         attribute_hidden.
7649         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
7650
7651 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7652
7653         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
7654         fourth parameter needed for rt_sigprocmask syscall.
7655         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
7656         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
7657         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7658         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
7659         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7660         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
7661
7662 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
7663
7664         [BZ #13550]
7665         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
7666         comment about bounded pointers.
7667         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
7668         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
7669
7670 2013-03-04  Andreas Jaeger  <aj@suse.de>
7671
7672         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
7673         common definitions.
7674
7675         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
7676         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
7677         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
7678         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7679         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
7680         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
7681
7682 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7683
7684         [BZ #15055]
7685         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
7686         __ieee754_sqrl instead of __sqrl.
7687
7688 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
7689
7690         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
7691         * sysdeps/powerpc/fpu_control.h: ... here.
7692         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
7693         * sysdeps/powerpc/bits/fenvinline.h: ... here.
7694         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
7695         * sysdeps/powerpc/bits/mathinline.h: ... here.
7696
7697 2013-03-01  Roland McGrath  <roland@hack.frob.com>
7698
7699         * elf/dl-hwcaps.c (_dl_important_hwcaps):
7700         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
7701         to just [NEED_DL_SYSINFO_DSO].
7702         * elf/dl-support.c: Likewise.
7703         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
7704         * elf/rtld.c (dl_main): Likewise.
7705         * elf/setup-vdso.h (setup_vdso): Likewise.
7706         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
7707         * sysdeps/unix/sysv/linux/dl-sysdep.c
7708         (_dl_discover_osversion): Likewise.
7709
7710 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
7711
7712         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
7713         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
7714
7715 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
7716
7717         * NEWS: Mention libm performance improvements and non-x86 PI
7718         futex support.
7719
7720         * csu/libc-start.c (__pthread_initialize_minimal): Change
7721         function arguments.
7722         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
7723
7724 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
7725
7726         [BZ #13550]
7727         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
7728         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
7729         <bp-sym.h> and <bp-asm.h>.
7730         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
7731         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
7732         and <bp-asm.h>.
7733         (memcpy): Don't use BP_SYM.
7734         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
7735         <bp-asm.h>.
7736         (__mpn_add_n): Don't use BP_SYM.
7737         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
7738         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
7739         and <bp-asm.h>.
7740         (__mpn_addmul_1): Don't use BP_SYM.
7741         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7742         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
7743         <bp-sym.h>.
7744         (_setjmp): Don't use BP_SYM.
7745         (__novmx_setjmp): Likewise.
7746         (__GI__setjmp): Likewise.
7747         (__vmx_setjmp): Likewise.
7748         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
7749         <bp-sym.h>.
7750         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
7751         (__bzero): Don't use BP_SYM.
7752         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7753         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7754         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
7755         <bp-sym.h> and <bp-asm.h>.
7756         (memcpy): Don't use BP_SYM.
7757         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
7758         <bp-sym.h> and <bp-asm.h>.
7759         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
7760         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
7761         <bp-sym.h> and <bp-asm.h>.
7762         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
7763         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
7764         <bp-asm.h>.
7765         (__mpn_lshift): Don't use BP_SYM.
7766         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7767         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
7768         <bp-asm.h>.
7769         (memset): Don't use BP_SYM.
7770         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7771         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7772         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
7773         <bp-asm.h>.
7774         (__mpn_mul_1): Don't use BP_SYM.
7775         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7776         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
7777         <bp-sym.h> and <bp-asm.h>.
7778         (memcmp): Don't use BP_SYM.
7779         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
7780         <bp-sym.h> and <bp-asm.h>.
7781         (memcpy): Don't use BP_SYM.
7782         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
7783         <bp-sym.h> and <bp-asm.h>.
7784         (memset): Don't use BP_SYM.
7785         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
7786         <bp-sym.h> and <bp-asm.h>.
7787         (strncmp): Don't use BP_SYM.
7788         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
7789         <bp-sym.h> and <bp-asm.h>.
7790         (memcpy): Don't use BP_SYM.
7791         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
7792         <bp-sym.h> and <bp-asm.h>.
7793         (memset): Don't use BP_SYM.
7794         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
7795         <bp-sym.h> and <bp-asm.h>.
7796         (__memchr): Don't use BP_SYM.
7797         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
7798         <bp-sym.h> and <bp-asm.h>.
7799         (memcmp): Don't use BP_SYM.
7800         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
7801         <bp-sym.h> and <bp-asm.h>.
7802         (memcpy): Don't use BP_SYM.
7803         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
7804         <bp-sym.h> and <bp-asm.h>.
7805         (__mempcpy): Don't use BP_SYM.
7806         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
7807         <bp-sym.h> and <bp-asm.h>.
7808         (__memrchr): Don't use BP_SYM.
7809         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
7810         <bp-sym.h> and <bp-asm.h>.
7811         (memset): Don't use BP_SYM.
7812         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
7813         <bp-sym.h> and <bp-asm.h>.
7814         (__rawmemchr): Don't use BP_SYM.
7815         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
7816         <bp-sym.h> and <bp-asm.h>.
7817         (__STRCMP): Don't use BP_SYM.
7818         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
7819         <bp-sym.h> and <bp-asm.h>.
7820         (strchr): Don't use BP_SYM.
7821         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
7822         <bp-sym.h> and <bp-asm.h>.
7823         (__strchrnul): Don't use BP_SYM.
7824         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
7825         <bp-sym.h> and <bp-asm.h>.
7826         (strlen): Don't use BP_SYM.
7827         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
7828         <bp-sym.h> and <bp-asm.h>.
7829         (strncmp): Don't use BP_SYM.
7830         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
7831         <bp-sym.h> and <bp-asm.h>.
7832         (__strnlen): Don't use BP_SYM.
7833         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
7834         <bp-asm.h>.
7835         (__mpn_rshift): Don't use BP_SYM.
7836         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7837         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
7838         <bp-sym.h> and <bp-asm.h>.
7839         (__sigsetjmp): Don't use BP_SYM.
7840         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
7841         (L(start_addresses)): Don't use BP_SYM.
7842         (_start): Likewise.
7843         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
7844         <bp-asm.h>.
7845         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
7846         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7847         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7848         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
7849         <bp-asm.h>.
7850         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
7851         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
7852         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
7853         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
7854         <bp-asm.h>.
7855         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
7856         comments.
7857         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
7858         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
7859         <bp-asm.h>.
7860         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
7861         FIXME comments.
7862         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7863         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7864         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
7865         <bp-asm.h>.
7866         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
7867         comment.
7868         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
7869         and <bp-asm.h>.
7870         (strncmp): Don't use BP_SYM,
7871         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
7872         <bp-asm.h>.
7873         (__mpn_sub_n): Don't use BP_SYM.
7874         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7875         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
7876         and <bp-asm.h>.
7877         (__mpn_submul_1): Don't use BP_SYM.
7878         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
7880         <bp-sym.h> and <bp-asm.h>.
7881         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
7882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
7883         <bp-sym.h> and <bp-asm.h>.
7884         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
7885         comment.
7886
7887 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7888
7889         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
7890         Use ZK to minimize writes to Z.
7891         (sub_magnitudes): Simplify code a bit.
7892         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
7893         Use ZK to minimize writes to Z.
7894         (sub_magnitudes): Simplify code a bit.
7895
7896 2013-02-27  Roland McGrath  <roland@hack.frob.com>
7897
7898         * csu/gmon-start.c: Add special exception to license text.
7899
7900 2013-02-27  Richard Henderson  <rth@redhat.com>
7901
7902         * scripts/config.guess: Update from config.git.
7903         * scripts/config.sub: Likewise.
7904
7905 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
7906
7907         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
7908
7909         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
7910
7911         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
7912
7913         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
7914
7915         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
7916
7917 2013-02-26  Roland McGrath  <roland@hack.frob.com>
7918
7919         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
7920         [$(build-shared = yes].
7921
7922 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7923
7924         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
7925         (__mul): Reduce iterations for calculating mantissa.
7926
7927         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
7928         MPTWO.
7929         (__mpranred): Likewise.
7930
7931         [BZ #15160]
7932         * malloc/memusagestat.c (main): Draw graphs for heap and stack
7933         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
7934
7935 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7936
7937         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
7938         Define __attribute__.
7939
7940 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7941
7942         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
7943         unused.
7944         * posix/regex_internal.h (__attribute): Remove.
7945         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
7946         (re_string_context_at): Likewise.
7947         (bitset_not): Use __attribute__ and mark function as possibly
7948         unused.
7949         (bitset_merge): Likewise.
7950         (bitset_mask): Likewise.
7951         (re_string_char_size_at): Likewise.
7952         (re_string_wchar_at): Likewise.
7953         (re_string_elem_size_at): Likewise.
7954
7955 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7956
7957         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
7958         code.
7959         (cc32): Likewise.
7960
7961         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
7962         (__acr): Likewise.
7963         (__cpy): Likewise.
7964         (norm): Likewise.
7965         (denorm): Likewise.
7966         (__dbl_mp): Likewise.
7967         (add_magnitudes): Likewise.
7968         (sub_magnitudes): Likewise.
7969         (__mul): Likewise.
7970         (__inv): Likewise.
7971
7972         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
7973         style.
7974
7975         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
7976         style.
7977
7978         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
7979         code.
7980
7981         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
7982         up changes with default code.
7983         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
7984         Likewise.
7985
7986 2013-02-24  Allan McRae  <allan@archlinux.org>
7987
7988         * manual/socket.texi (The Internet Namespace): Order menu items
7989         to match that in the file.
7990
7991         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
7992         node listing of the info page menu.
7993
7994 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
7995
7996         [BZ #13550]
7997         * sysdeps/i386/bp-asm.h: Remove file.
7998         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
7999         (PARMS): Do not use macros from bp-asm.h.
8000         (S1): Likewise.
8001         (S2): Likewise.
8002         (SIZE): Likewise.
8003         (__mpn_add_n): Do not use BP_SYM
8004         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
8005         "bp-asm.h".
8006         (PARMS): Do not use macros from bp-asm.h.
8007         (S1): Likewise.
8008         (SIZE): Likewise.
8009         (__mpn_addmul_1): Do not use BP_SYM
8010         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
8011         "bp-asm.h".
8012         (PARMS): Do not use macros from bp-asm.h.
8013         (SIGMSK): Likewise.
8014         (_setjmp): Likewise.  Do not use BP_SYM.
8015         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
8016         "bp-asm.h".
8017         (PARMS): Do not use macros from bp-asm.h.
8018         (SIGMSK): Likewise.
8019         (setjmp): Likewise.  Do not use BP_SYM.
8020         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
8021         "bp-asm.h".
8022         (PARMS): Do not use macros from bp-asm.h.
8023         (__frexp): Do not use BP_SYM.
8024         (frexp): Likewise.
8025         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
8026         "bp-asm.h".
8027         (PARMS): Do not use macros from bp-asm.h.
8028         (__frexpf): Do not use BP_SYM.
8029         (frexpf): Likewise.
8030         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
8031         "bp-asm.h".
8032         (PARMS): Do not use macros from bp-asm.h.
8033         (__frexpl): Do not use BP_SYM.
8034         (frexpl): Likewise.
8035         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
8036         "bp-asm.h".
8037         (PARMS): Do not use macros from bp-asm.h.
8038         (__remquo): Do not use BP_SYM.
8039         (remquo): Likewise.
8040         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
8041         "bp-asm.h".
8042         (PARMS): Do not use macros from bp-asm.h.
8043         (__remquof): Do not use BP_SYM.
8044         (remquof): Likewise.
8045         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
8046         "bp-asm.h".
8047         (PARMS): Do not use macros from bp-asm.h.
8048         (__remquol): Do not use BP_SYM.
8049         (remquol): Likewise.
8050         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
8051         "bp-asm.h".
8052         (PARMS): Do not use macros from bp-asm.h.
8053         (DEST): Likewise.
8054         (SRC): Likewise.
8055         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
8056         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
8057         "bp-asm.h".
8058         (PARMS): Do not use macros from bp-asm.h.
8059         (strlen): Do not use BP_SYM.
8060         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
8061         "bp-asm.h".
8062         (PARMS): Do not use macros from bp-asm.h.
8063         (S1): Likewise.
8064         (S2): Likewise.
8065         (SIZE): Likewise.
8066         (__mpn_add_n): Do not use BP_SYM.
8067         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
8068         "bp-asm.h".
8069         (PARMS): Do not use macros from bp-asm.h.
8070         (S1): Likewise.
8071         (SIZE): Likewise.
8072         (__mpn_addmul_1): Do not use BP_SYM.
8073         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
8074         weak_alias.
8075         (bzero): Likewise.
8076         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
8077         "bp-asm.h".
8078         (PARMS): Do not use macros from bp-asm.h.
8079         (S): Likewise.
8080         (SIZE): Likewise.
8081         (__mpn_lshift): Do not use BP_SYM.
8082         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
8083         "bp-asm.h".
8084         (PARMS): Do not use macros from bp-asm.h.
8085         (DEST): Likewise.
8086         (SRC): Likewise.
8087         (LEN): Likewise.
8088         (memcpy): Likewise.  Do not use BP_SYM.
8089         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
8090         libc_hidden_def and weak_alias.
8091         (mempcpy): Do not use BP_SYM in weak_alias.
8092         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
8093         "bp-asm.h".
8094         (PARMS): Do not use macros from bp-asm.h.
8095         (DEST): Likewise.
8096         (LEN): Likewise.
8097         [!BZERO_P] (CHR): Likewise.
8098         (memset): Likewise.  Do not use BP_SYM.
8099         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
8100         "bp-asm.h".
8101         (PARMS): Do not use macros from bp-asm.h.
8102         (S1): Likewise.
8103         (SIZE): Likewise.
8104         (__mpn_mul_1): Do not use BP_SYM.
8105         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
8106         "bp-asm.h".
8107         (PARMS): Do not use macros from bp-asm.h.
8108         (S): Likewise.
8109         (SIZE): Likewise.
8110         (__mpn_rshift): Do not use BP_SYM.
8111         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
8112         "bp-asm.h".
8113         (PARMS): Do not use macros from bp-asm.h.
8114         (STR): Likewise.
8115         (CHR): Likewise.
8116         (strchr): Likewise.  Do not use BP_SYM.
8117         (index): Do not use BP_SYM in weak_alias.
8118         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
8119         "bp-asm.h".
8120         (PARMS): Do not use macros from bp-asm.h.
8121         (DEST): Likewise.
8122         (SRC): Likewise.
8123         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
8124         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
8125         "bp-asm.h".
8126         (PARMS): Do not use macros from bp-asm.h.
8127         (strlen): Do not use BP_SYM.
8128         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
8129         "bp-asm.h".
8130         (PARMS): Do not use macros from bp-asm.h.
8131         (S1): Likewise.
8132         (S2): Likewise.
8133         (SIZE): Likewise.
8134         (__mpn_sub_n): Do not use BP_SYM.
8135         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
8136         "bp-asm.h".
8137         (PARMS): Do not use macros from bp-asm.h.
8138         (S1): Likewise.
8139         (SIZE): Likewise.
8140         (__mpn_submul_1): Do not use BP_SYM.
8141         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
8142         "bp-asm.h".
8143         (PARMS): Do not use macros from bp-asm.h.
8144         (S1): Likewise.
8145         (S2): Likewise.
8146         (SIZE): Likewise.
8147         (__mpn_add_n): Do not use BP_SYM.
8148         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
8149         weak_alias.
8150         (bzero): Likewise.
8151         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
8152         "bp-asm.h".
8153         (PARMS): Do not use macros from bp-asm.h.
8154         (BLK2): Likewise.
8155         (LEN): Likewise.
8156         (memcmp): Do not use BP_SYM.
8157         (bcmp): Do not use BP_SYM in weak_alias.
8158         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
8159         "bp-asm.h".
8160         (PARMS): Do not use macros from bp-asm.h.
8161         (DEST): Likewise.
8162         (SRC): Likewise.
8163         (LEN): Likewise.
8164         (memcpy): Likewise.  Do not use BP_SYM.
8165         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
8166         "bp-asm.h".
8167         (PARMS): Do not use macros from bp-asm.h.
8168         (DEST): Likewise.
8169         (SRC): Likewise.
8170         (LEN): Likewise.
8171         (memmove): Likewise.  Do not use BP_SYM.
8172         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
8173         "bp-asm.h".
8174         (PARMS): Do not use macros from bp-asm.h.
8175         (DEST): Likewise.
8176         (SRC): Likewise.
8177         (LEN): Likewise.
8178         (__mempcpy): Likewise.  Do not use BP_SYM.
8179         (mempcpy): Do not use BP_SYM in weak_alias.
8180         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
8181         "bp-asm.h".
8182         (PARMS): Do not use macros from bp-asm.h.
8183         (DEST): Likewise.
8184         (LEN): Likewise.
8185         [!BZERO_P] (CHR): Likewise.
8186         (memset): Likewise.  Do not use BP_SYM.
8187         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
8188         "bp-asm.h".
8189         (PARMS): Do not use macros from bp-asm.h.
8190         (STR2): Likewise.
8191         (strcmp): Do not use BP_SYM.
8192         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
8193         "bp-asm.h".
8194         (PARMS): Do not use macros from bp-asm.h.
8195         (STR): Likewise.
8196         (DELIM): Likewise.
8197         [USE_AS_STRTOK_R] (SAVE): Likewise.
8198         (FUNCTION): Likewise.  Do not use BP_SYM.
8199         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
8200         aliases.
8201         (strtok_r): Likewise.
8202         (__GI___strtok_r): Likewise.
8203         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
8204         (PARMS): Do not use macros from bp-asm.h.
8205         (S): Likewise.
8206         (SIZE): Likewise.
8207         (__mpn_lshift): Do not use BP_SYM.
8208         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8209         (PARMS): Do not use macros from bp-asm.h.
8210         (STR): Likewise.
8211         (CHR): Likewise.
8212         (__memchr): Do not use BP_SYM.
8213         (memchr): Do not use BP_SYM in weak_alias.
8214         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
8215         (PARMS): Do not use macros from bp-asm.h.
8216         (BLK2): Likewise.
8217         (LEN): Likewise.
8218         (memcmp): Do not use BP_SYM.
8219         (bcmp): Do not use BP_SYM in weak_alias.
8220         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
8221         (PARMS): Do not use macros from bp-asm.h.
8222         (S1): Likewise.
8223         (SIZE): Likewise.
8224         (__mpn_mul_1): Do not use BP_SYM.
8225         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
8226         "bp-asm.h".
8227         (PARMS): Do not use macros from bp-asm.h.
8228         (STR): Likewise.
8229         (CHR): Likewise.
8230         (__rawmemchr): Do not use BP_SYM.
8231         (rawmemchr): Do not use BP_SYM in weak_alias.
8232         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
8233         (PARMS): Do not use macros from bp-asm.h.
8234         (S): Likewise.
8235         (SIZE): Likewise.
8236         (__mpn_rshift): Do not use BP_SYM.
8237         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
8238         (PARMS): Do not use macros from bp-asm.h.
8239         (SIGMSK): Likewise.
8240         (__sigsetjmp): Likewise.  Do not use BP_SYM.
8241         * sysdeps/i386/start.S: Do not include "bp-sym.h".
8242         (_start): Do not use BP_SYM.
8243         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
8244         (PARMS): Do not use macros from bp-asm.h.
8245         (DEST): Likewise.
8246         (SRC): Likewise.
8247         (__stpcpy): Likewise.  Do not use BP_SYM.
8248         (stpcpy): Do not use BP_SYM in weak_alias.
8249         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
8250         "bp-asm.h".
8251         (PARMS): Do not use macros from bp-asm.h.
8252         (DEST): Likewise.
8253         (SRC): Likewise.
8254         (LEN): Likewise.
8255         (__stpncpy): Likewise.  Do not use BP_SYM.
8256         (stpncpy): Do not use BP_SYM in weak_alias.
8257         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8258         (PARMS): Do not use macros from bp-asm.h.
8259         (STR): Likewise.
8260         (CHR): Likewise.
8261         (strchr): Likewise.  Do not use BP_SYM.
8262         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
8263         "bp-asm.h".
8264         (PARMS): Do not use macros from bp-asm.h.
8265         (STR): Likewise.
8266         (CHR): Likewise.
8267         (__strchrnul): Likewise.  Do not use BP_SYM.
8268         (strchrnul): Do not use BP_SYM in weak_alias.
8269         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
8270         "bp-asm.h".
8271         (PARMS): Do not use macros from bp-asm.h.
8272         (STOP): Likewise.
8273         (strcspn): Do not use BP_SYM.
8274         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
8275         "bp-asm.h".
8276         (PARMS): Do not use macros from bp-asm.h.
8277         (STR): Likewise.
8278         (STOP): Likewise.
8279         (strpbrk): Likewise.  Do not use BP_SYM.
8280         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
8281         "bp-asm.h".
8282         (PARMS): Do not use macros from bp-asm.h.
8283         (STR): Likewise.
8284         (CHR): Likewise.
8285         (strrchr): Likewise.  Do not use BP_SYM.
8286         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
8287         (PARMS): Do not use macros from bp-asm.h.
8288         (SKIP): Likewise.
8289         (strspn): Do not use BP_SYM.
8290         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
8291         (PARMS): Do not use macros from bp-asm.h.
8292         (STR): Likewise.
8293         (DELIM): Likewise.
8294         (SAVE): Likewise.
8295         (FUNCTION): Likewise.  Do not use BP_SYM.
8296         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
8297         aliases.
8298         (strtok_r): Likewise.
8299         (__GI___strtok_r): Likewise.
8300         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
8301         (PARMS): Do not use macros from bp-asm.h.
8302         (S1): Likewise.
8303         (S2): Likewise.
8304         (SIZE): Likewise.
8305         (__mpn_sub_n): Do not use BP_SYM.
8306         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
8307         "bp-asm.h".
8308         (PARMS): Do not use macros from bp-asm.h.
8309         (S1): Likewise.
8310         (SIZE): Likewise.
8311         (__mpn_submul_1): Do not use BP_SYM.
8312         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
8313         <bp-sym.h>.
8314         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
8315         and <bp-asm.h>.
8316         (PARMS): Do not use macros from bp-asm.h.
8317         (FLAGS): Likewise.
8318         (PTID): Likewise.
8319         (TLS): Likewise.
8320         (CTID): Likewise.
8321         (__clone): Do not use BP_SYM.
8322         (clone): Do not use BP_SYM in weak_alias.
8323         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
8324         and <bp-asm.h>.
8325         (PARMS): Do not use macros from bp-asm.h.
8326         (LEN): Likewise.
8327         (__mmap64): Do not use BP_SYM.
8328         (mmap64): Do not use BP_SYM in weak_alias.
8329         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
8330         <bp-sym.h> and <bp-asm.h>.
8331         (PARMS): Do not use macros from bp-asm.h.
8332         (__posix_fadvise64_l64): Do not use BP_SYM.
8333         * sysdeps/unix/sysv/linux/i386/semtimedop.S
8334         (PARMS): Do not use macros from bp-asm.h.
8335         (NSOPS): Likewise.
8336         (semtimedop): Do not use BP_SYM.
8337         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
8338         and <bp-asm.h>.
8339
8340 2013-02-21  Allan McRae  <allan@archlinux.org>
8341
8342         * manual/message.texi (Charset conversion in gettext):
8343         Move @end statement to beginning of line.
8344
8345 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8346
8347         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
8348         static.
8349         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
8350         Likewise.
8351
8352         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
8353         (denorm): Likewise.
8354         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
8355         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
8356
8357 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8358
8359         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
8360         tail-call to the resolved function if pltexit isn't needed.
8361
8362 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8363
8364         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
8365         or Y being zero as being unlikely.
8366         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
8367         Likewise.
8368
8369 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
8370
8371         * manual/nss.texi (System Databases and Name Service Switch):
8372         Remove frobnicate @pxref.
8373
8374 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8375
8376         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
8377         __attribute__ ((unused)) to __attribute__ ((__unused__)).
8378
8379 2013-02-20  Petr Machata  <pmachata@redhat.com>
8380
8381         * elf/elf.h (R_ARM_TARGET1): New macro.
8382         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
8383         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
8384         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
8385         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
8386         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
8387         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
8388         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
8389         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
8390         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
8391         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
8392         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
8393         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
8394         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
8395         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
8396         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
8397         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
8398         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
8399         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
8400         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
8401         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
8402         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
8403         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
8404         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
8405         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
8406         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
8407         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
8408         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
8409         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
8410         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
8411         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
8412         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
8413         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
8414         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
8415         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
8416         (R_ARM_THM_GOT_BREL12): Likewise.
8417         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
8418         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
8419         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
8420         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
8421         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
8422         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
8423         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
8424         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
8425         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
8426
8427 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8428
8429         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
8430         __attribute_used__ to __attribute__ ((unused)).
8431
8432 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8433
8434         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
8435         powerpc mpa.c.
8436         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
8437         comment formatting.
8438         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
8439
8440 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
8441
8442         [BZ #13550]
8443         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
8444         Remove macro.
8445         (ENTER): Remove both macro definitions.
8446         (LEAVE): Likewise.
8447         (CHECK_BOUNDS_LOW): Likewise.
8448         (CHECK_BOUNDS_HIGH): Likewise.
8449         (CHECK_BOUNDS_BOTH): Likewise.
8450         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
8451         (RETURN_BOUNDED_POINTER): Likewise.
8452         (RETURN_NULL_BOUNDED_POINTER): Likewise.
8453         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
8454         (POP_ERRNO_LOCATION_RETURN): Likewise.
8455         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
8456         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8457         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
8458         macros.
8459         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8460         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
8461         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
8462         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
8463         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
8464         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
8465         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
8466         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
8467         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
8468         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
8469         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
8470         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
8471         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8472         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
8473         removed macros.
8474         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8475         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
8476         macros.
8477         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8478         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
8479         * sysdeps/i386/i586/memset.S (memset): Likewise.
8480         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
8481         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8482         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
8483         macros.
8484         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8485         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
8486         Change uses of L(2) to L(out).
8487         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
8488         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
8489         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
8490         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8491         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
8492         removed macros.
8493         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8494         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
8495         macros.
8496         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8497         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
8498         (RETURN): Do not use macro LEAVE.
8499         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
8500         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
8501         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
8502         * sysdeps/i386/i686/memset.S (memset): Likewise.
8503         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
8504         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
8505         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
8506         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
8507         Likewise.
8508         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8509         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
8510         L(1_2) and L(1_3) into L(1).
8511         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
8512         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
8513         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8514         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
8515         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
8516         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
8517         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
8518         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8519         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
8520         macros.
8521         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
8522         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8523         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
8524         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
8525         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
8526         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8527         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
8528         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
8529         * sysdeps/i386/strcspn.S (strcspn): Likewise.
8530         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
8531         * sysdeps/i386/strrchr.S (strrchr): Likewise.
8532         * sysdeps/i386/strspn.S (strspn): Likewise.
8533         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
8534         conditional code.
8535         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8536         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
8537         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
8538         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
8539         L(1_3) into L(1_1).
8540         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
8541         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8542         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
8543         macros.
8544         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8545
8546 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
8547
8548         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
8549         macro.
8550
8551 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
8552
8553         * math/atest-exp.c (exp_mpn): Remove ROUND.
8554         * math/atest-exp2.c (exp_mpn): Likewise.
8555         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
8556
8557         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
8558         * stdlib/tst-tls-atexit-lib.c: Likewise.
8559         * stdlib/tst-tls-atexit.c: Likewise.
8560
8561 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
8562
8563         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
8564         and __attribute_alloc_size__.
8565
8566 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
8567
8568         * include/programs/xmalloc.h: Change __attribute_alloc_size to
8569         __attribute_alloc_size__.
8570         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
8571         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
8572
8573 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
8574
8575         * include/programs/xmalloc.h: New file.
8576         * catgets/gencat.c: Include it.
8577         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
8578         * elf/pldd.c: Likewise.
8579         * iconv/iconv_charmap.c: Likewise.
8580         * iconv/iconvconfig.c: Likewise.
8581         * iconv/strtab.c: Likewise.
8582         * locale/programs/locale.c: Likewise.
8583         * locale/programs/localedef.h: Likewise.
8584         * locale/programs/simple-hash.c: Likewise.
8585         * nscd/nscd.h: Likewise.
8586         * nss/makedb.c: Likewise.
8587         * sysdeps/generic/ldconfig.h: Likewise.
8588
8589 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8590
8591         * Versions.def: Add GLIBC_2.18.
8592         * include/link.h (struct link_map): New member l_tls_dtor_count.
8593         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
8594         (__call_tls_dtors): Likewise.
8595         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
8596         __cxa_thread_atexit_impl.
8597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8598         Likewise.
8599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8600         Likewise.
8601         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8602         Likewise.
8603         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8604         Likewise.
8605         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8606         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
8607         Likewise.
8608         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
8609         Likewise.
8610         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8611         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
8612         Likewise.
8613         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
8614         (tests): Add test case tst-tls-atexit.
8615         (modules-names): Add shared library for tst-tls-atexit.
8616         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
8617         (GLIBC_PRIVATE): Add __call_tls_dtors.
8618         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
8619         for libstdc++.
8620         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
8621         * stdlib/tst-tls-atexit.c: New test case.
8622         * stdlib/tst-tls-atexit-lib.c: New test case.
8623
8624         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
8625
8626         * elf/Versions (ld): Add _dl_find_dso_for_object.
8627         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
8628         * elf/dl-open.c (_dl_find_dso_for_object): New function.
8629         (dl_open_worker): Use _dl_find_dso_for_object.
8630         * elf/dl-sym.c (do_sym): Likewise.
8631         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
8632
8633 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8634
8635         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
8636         Syntactic changes only.
8637         (_dl_runtime_profile): Do a tail-call to the resolved function.
8638
8639 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
8640
8641         [BZ #13550]
8642         * sysdeps/x86_64/bp-asm.h: Remove file.
8643         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
8644         <bp-sym.h> and <bp-asm.h>.
8645         (__clone): Do not use BP_SYM.
8646         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
8647         <bp-sym.h> and <bp-asm.h>.
8648         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8649         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
8650         "bp-asm.h".
8651         (_setjmp): Do not use BP_SYM.
8652         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
8653         "bp-asm.h".
8654         (setjmp): Do not use BP_SYM.
8655         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
8656         libc_hidden_def.
8657         (mempcpy): Do not use BP_SYM in weak_alias.
8658         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
8659         "bp-asm.h".
8660         (strchr): Do not use BP_SYM.
8661         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
8662         "bp-asm.h".
8663         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
8664         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
8665         (_start): Do not use BP_SYM.
8666         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
8667         "bp-asm.h".
8668         (strcat): Do not use BP_SYM.
8669         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
8670         "bp-asm.h".
8671         (STRCMP): Do not use BP_SYM.
8672         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
8673         "bp-asm.h".
8674         (STRCPY): Do not use BP_SYM.
8675         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
8676         "bp-asm.h".
8677         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
8678         "bp-asm.h".
8679         (FUNCTION): Do not use BP_SYM.
8680         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
8681         weak_alias.
8682         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
8683
8684 2013-02-17  Andreas Jaeger  <aj@suse.de>
8685
8686         * time/Versions: Sort entries.
8687         * string/Versions: Likewise.
8688         * resolv/Versions: Likewise.
8689         * posix/Versions: Likewise.
8690         * iconv/Versions: Likewise.
8691         * elf/Versions: Likewise.
8692         * wcsmbs/Versions: Likewise.
8693
8694 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
8695
8696         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
8697         loop termination condition.
8698
8699         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
8700         variable to calculate EZ.
8701         (__sqr): Likewise.
8702
8703         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
8704         the lower precision input.
8705
8706 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
8707
8708         [BZ #13550]
8709         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
8710         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
8711         (run-via-rtld-prefix): Do not handle %-bp tests.
8712         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
8713         (all-object-suffixes): Remove .ob.
8714         (bppfx): Remove variable.
8715         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
8716         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
8717         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
8718         [$(build-bounded) = yes] (libtype.ob): Likewise.
8719         * Makerules (elide-routines.ob): Remove variable.
8720         (do-tests-clean): Do not handle *-bp.out.
8721         (common-mostlyclean): Do not handle *-bp and *-bp.out.
8722         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
8723         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
8724         (tests): Do not include $(tests-bp.out).
8725         (xtests): Do not include $(xtests-bp.out).
8726         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
8727         [$(build-bounded) = yes] ($(addprefix
8728         $(objpfx),$(binaries-bounded))): Remove rule.
8729         ($(objpfx)%-bp.out): Remove rule.
8730         * config.make.in (build-bounded): Remove variable.
8731         * crypt/Makefile [$(build-bounded) = yes]
8732         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
8733         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
8734         append to variable.
8735         [$(build-bounded) = yes] (install-lib): Likewise.
8736         [$(build-bounded) = yes] (generated): Likewise.
8737         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
8738         Remove rule.
8739         * intl/Makefile [$(build-bounded) = yes]
8740         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
8741         * math/Makefile [$(build-bounded) = yes]
8742         ($(tests:%=$(objpfx)%-bp): Likewise.
8743         * misc/Makefile [$(build-bounded) = yes]
8744         ($(objpfx)tst-tsearch-bp): Likewise.
8745         * nptl/Makeconfig (bounded-thread-library): Remove variable.
8746         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
8747         Remove dependency.
8748         * string/Makefile (o-objects.ob): Remove variable.
8749         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
8750         (CFLAGS-.ob): Remove variable.
8751         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
8752         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
8753         both definitions of variable.
8754         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
8755         (ASFLAGS-.ob): Remove variable.
8756
8757 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
8758
8759         [BZ #13550]
8760         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
8761         Remove __BOUNDED_POINTERS__ from condition.
8762         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
8763         * string/bits/string2.h [!__NO_STRING_INLINES &&
8764         !__BOUNDED_POINTERS__]: Likewise.
8765         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
8766         Likewise.
8767         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
8768         Remove conditional code.
8769         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
8770         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
8771         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
8772         condition.
8773
8774         [BZ #13550]
8775         * csu/libc-start.c: Do not include <bp-sym.h>.
8776         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
8777         * elf/dl-open.c: Do not include <bp-sym.h>.
8778         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
8779         * math/fegetenv.c: Do not include <bp-sym.h>.
8780         (fegetenv): Do not use BP_SYM in versioned symbols.
8781         * nptl/sysdeps/pthread/bits/libc-lockP.h
8782         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
8783         <bp-sym.h>.
8784         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8785         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
8786         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8787         (__pthread_mutex_destroy): Likewise.
8788         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8789         (__pthread_mutex_lock): Likewise.
8790         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8791         (__pthread_mutex_trylock): Likewise.
8792         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8793         (__pthread_mutex_unlock): Likewise.
8794         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8795         (__pthread_mutexattr_init): Likewise.
8796         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8797         (__pthread_mutexattr_destroy): Likewise.
8798         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8799         (__pthread_mutexattr_settype): Likewise.
8800         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8801         (__pthread_rwlock_init): Likewise.
8802         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8803         (__pthread_rwlock_destroy): Likewise.
8804         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8805         (__pthread_rwlock_rdlock): Likewise.
8806         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8807         (__pthread_rwlock_tryrdlock): Likewise.
8808         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8809         (__pthread_rwlock_wrlock): Likewise.
8810         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8811         (__pthread_rwlock_trywrlock): Likewise.
8812         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8813         (__pthread_rwlock_unlock): Likewise.
8814         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8815         (__pthread_key_create): Likewise.
8816         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8817         (__pthread_setspecific): Likewise.
8818         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8819         (__pthread_getspecific): Likewise.
8820         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
8821         Likewise.
8822         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8823         (_pthread_cleanup_push_defer): Likewise.
8824         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8825         (_pthread_cleanup_pop_restore): Likewise.
8826         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8827         (pthread_setcancelstate): Likewise.
8828         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
8829         <bp-sym.h>.
8830         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
8831         (memchr): Do not use BP_SYM in weak_alias.
8832         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
8833         (fegetenv): Do not use BP_SYM in versioned symbols.
8834         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
8835         (fesetenv): Do not use BP_SYM in versioned symbols.
8836         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
8837         (feupdateenv): Do not use BP_SYM in versioned symbols.
8838         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
8839         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
8840         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
8841         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
8842         (open64): Do not use BP_SYM in weak_alias.
8843         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
8844         (fegetenv): Do not use BP_SYM in versioned symbols.
8845         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
8846         (fesetenv): Do not use BP_SYM in versioned symbols.
8847         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
8848         (feupdateenv): Do not use BP_SYM in versioned symbols.
8849         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
8850         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
8851         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
8852         (feraiseexcept): Do not use BP_SYM in versioned symbols.
8853         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
8854         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
8855         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
8856         <bp-sym.h>.
8857         (__libc_start_main): Do not use BP_SYM.
8858
8859 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
8860
8861         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
8862         redundant return line.
8863         (norm): Likewise.
8864         (denorm): Likewise.
8865         (dbl_mp): Likewise.
8866         (sub_magnitudes): Likewise.
8867         (__add): Likewise.
8868         (__sub): Likewise.
8869         (__mul): Likewise.
8870         (__inv): Likewise.
8871         (__dvd): Likewise.
8872         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
8873         (norm): Likewise.
8874         (denorm): Likewise.
8875         (dbl_mp): Likewise.
8876         (sub_magnitudes): Likewise.
8877         (__add): Likewise.
8878         (__sub): Likewise.
8879         (__mul): Likewise.
8880         (__inv): Likewise.
8881         (__dvd): Likewise.
8882
8883         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
8884         instead of __mul.
8885         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
8886         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
8887         (cc32): Likewise.
8888
8889         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
8890         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
8891         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
8892         of __mul for squares.
8893         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
8894         function
8895         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
8896         Likewise.
8897         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
8898         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
8899
8900 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
8901
8902         [BZ #13550]
8903         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
8904         code.
8905         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
8906         prototype or function definition.  Rename ubp_* variables and
8907         parameters.  Remove argv definitions conditional on
8908         [__BOUNDED_POINTERS__].
8909         * debug/backtrace.c (__backtrace): Do not use __unbounded.
8910         * elf/dl-runtime.c (_dl_fixup): Likewise.
8911         * include/set-hooks.h (RUN_HOOK): Likewise.
8912         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
8913         definition.
8914         * string/strcpy.c (strcpy): Do not use __unbounded.
8915         * sysdeps/generic/frame.h (struct layout): Likewise.
8916         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
8917         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
8918         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
8919         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
8920         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
8921         (__backtrace): Likewise.
8922         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
8923         use __ptrvalue.
8924         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
8925         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
8926         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8927         Likewise.
8928         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
8929         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
8930         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8931         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8932         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
8933         Do not use __unbounded.
8934         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
8935         Rename __unboundedrlimits parameter to rlimits in prototype.
8936         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
8937         Do not use __unbounded.
8938         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
8939         not use __ptrvalue.
8940         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8941         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
8942         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
8943         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
8944         __ptrvalue or __unbounded.
8945         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
8946         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
8947         use __unbounded.
8948         (__new_msgctl): Do not use __ptrvalue.
8949         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
8950         __unbounded.
8951         (__libc_msgrcv): Do not use __ptrvalue.
8952         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
8953         startup_info): Do not use __unbounded.
8954         (__libc_start_main): Likewise.  Rename ubp_* variables and
8955         parameters.  Remove argv definitions conditional on
8956         [__BOUNDED_POINTERS__].
8957         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
8958         __ptrvalue.
8959         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
8960         use __unbounded.
8961         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
8962         or __ptrvalue.
8963         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
8964         use __unbounded.
8965         (__new_shmctl): Do not use __ptrvalue.
8966         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8967         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8968         Likewise.
8969         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8970         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
8971         (__libc_sigaction): Likewise.
8972         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
8973         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
8974         Likewise.
8975         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
8976
8977 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
8978
8979         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
8980
8981         * string/mempcpy.c: Implement by calling memcpy.
8982
8983 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
8984
8985         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
8986
8987         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
8988         evaluation.
8989
8990         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
8991         values in the mantissa.
8992
8993         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
8994         minimize writes to Z.
8995         (sub_magnitudes): Simplify code a bit.
8996
8997 2013-02-12  Roland McGrath  <roland@hack.frob.com>
8998
8999         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
9000         from the message.  The linker prefixes all warnings with that already.
9001
9002 2013-02-12  Andreas Schwab  <schwab@suse.de>
9003
9004         [BZ #15078]
9005         * posix/regexec.c (extend_buffers): Add parameter min_len.
9006         (check_matching): Pass minimum needed length.
9007         (clean_state_log_if_needed): Likewise.
9008         (get_subexp): Likewise.
9009         * posix/Makefile (tests): Add bug-regex34.
9010         (bug-regex34-ENV): Define.
9011         * posix/bug-regex34.c: New file.
9012
9013         [BZ #11561]
9014         * posix/regcomp.c (parse_bracket_exp): When looking up collating
9015         elements compare against the byte sequence of it, not its name.
9016         * posix/Makefile (tests): Add bug-regex35.
9017         (bug-regex35-ENV): Define.
9018         * posix/bug-regex35.c: New file.
9019
9020 2013-02-11  Tom de Vries  <tom@codesourcery.com>
9021
9022         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
9023         comment.
9024         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
9025         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
9026         (CHECK_EOL): Add undef.
9027
9028 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
9029
9030         * bits/stdlib-bsearch.h: New file.
9031         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
9032         * stdlib/stdlib.h: Likewise.
9033
9034 2013-02-11  Roland McGrath  <roland@hack.frob.com>
9035
9036         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
9037         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
9038         declaration.
9039         * manual/search.texi (Array Search Function): Add missing const in
9040         lfind prototype.
9041         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
9042         declaration to use rlim_t.
9043         (Basic Scheduling Functions): Remove erroneous const from
9044         sched_getparam prototype.  Remove erroneous * from
9045         sched_get_priority_max and sched_get_priority_min prototypes.
9046         (Resource Usage): Fix summary @comment on vtimes to refer to
9047         sys/vtimes.h rather than vtimes.h.
9048         Add missing *s in vtimes prototype.
9049         (Limits on Resources): Fix ulimit prototype to return long int.
9050         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
9051         prototypes to use long int rather than double.
9052         (BSD Random): Fix initstate and setstate to use char *, not void *.
9053         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
9054         prototype to make second argument 'struct aiocb64 *const[]'.
9055         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
9056         (Status of AIO Operations): Remove erroneous const in aio_return and
9057         aio_return64 prototypes.
9058         (Synchronizing I/O): Fix sync prototype to return void.
9059         * manual/startup.texi (Suboptions): Remove an erroneous const in
9060         getsubopt prototype.
9061         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
9062         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
9063         use size_t rather than int.
9064         (Scanning All Users): Likewise for getpwent_r.
9065         (Setting Groups): Add missing const to setgroups prototype.
9066         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
9067         * manual/socket.texi (Host Names): Fix gethostbyaddr and
9068         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
9069         'const void *' rather than 'const char *'.
9070         (Host Address Functions): Likewise for inet_ntop.
9071         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
9072         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
9073         ssize_t for return value.
9074         (Sending Data): Likewise for send, sendto, sendmsg.
9075         (Socket Option Functions): Add a missing const in setsockopt prototype.
9076         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
9077         use wchar_t for the argument.
9078         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
9079         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
9080         take no arguments.
9081         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
9082         double/float/long double for second argument.
9083         Fix return types of significand, significandf, significandl.
9084         * manual/filesys.texi (Setting Permissions): Use mode_t for second
9085         argument in fchmod prototype.
9086         (File Owner): Use uid_t and gid_t in fchown prototype.
9087         (File Times): Add const to utimes, futimes, and lutimes prototypes.
9088         (Making Special Files): Use mode_t and dev_t in mknod prototype.
9089         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
9090         use 'const struct dirent **' as argument types to CMP function pointer
9091         argument.
9092         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
9093         (File Times): Fix summary magic @comment for struct utimbuf and utime
9094         to refer to utime.h, not time.h.
9095         * manual/string.texi (Argz Functions): Add missing const in
9096         argz_extract and argz_next prototypes.
9097         (Finding Tokens in a String): Likewise for basename.
9098         (String/Array Comparison): Fix typo in wcscasecmp prototype.
9099         (Copying and Concatenation): Fix typo in wmemmove prototype.
9100         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
9101         (Signal Stack): Remove erroneous const in sigstack prototype.
9102         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
9103         prototype.
9104         (Simple Calendar Time): Likewise for stime.
9105         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
9106         prototype.
9107         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
9108         say sys/sysctl.h instead.
9109         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
9110         and vsyslog prototypes.
9111
9112 2013-02-11  Tom de Vries  <tom@codesourcery.com>
9113
9114         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
9115         Remove.
9116
9117 2013-02-11  Roland McGrath  <roland@hack.frob.com>
9118
9119         * misc/sys/mman.h: Fix typo in mremap comment.
9120
9121 2013-02-08  Roland McGrath  <roland@hack.frob.com>
9122
9123         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
9124         the '\0' terminator.
9125
9126 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
9127
9128         [BZ #13550]
9129         * debug/segfault.c: Don't include <bp-checks.h>.
9130         * sysdeps/generic/bp-checks.h: Remove file.
9131         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
9132         (__GETDENTS): Don't use CHECK_N.
9133         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
9134         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
9135         (__getgroups): Don't use CHECK_N.
9136         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
9137         (setgroups): Don't use CHECK_N.
9138         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
9139         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9140         (__libc_msgrcv): Don't use CHECK_N.
9141         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
9142         (__libc_msgsnd): Don't use CHECK_N.
9143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
9144         <bp-checks.h>.
9145         (__libc_pread): Don't use CHECK_N.
9146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
9147         include <bp-checks.h>.
9148         (__libc_pread64): Don't use CHECK_N.
9149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
9150         include <bp-checks.h>.
9151         (__libc_pwrite): Don't use CHECK_N.
9152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
9153         include <bp-checks.h>.
9154         (__libc_pwrite64): Don't use CHECK_N.
9155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
9156         <bp-checks.h>.
9157         (__libc_pread): Don't use CHECK_N.
9158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
9159         include <bp-checks.h>.
9160         (__libc_pread64): Don't use CHECK_N.
9161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
9162         include <bp-checks.h>.
9163         (__libc_pwrite): Don't use CHECK_N.
9164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
9165         include <bp-checks.h>.
9166         (__libc_pwrite64): Don't use CHECK_N.
9167         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
9168         (do_pread): Don't use CHECK_N.
9169         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
9170         (do_pread64): Don't use CHECK_N.
9171         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
9172         (do_pwrite): Don't use CHECK_N.
9173         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
9174         (do_pwrite64): Don't use CHECK_N.
9175         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
9176         (__libc_readv): Don't use CHECK_N.
9177         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
9178         (semop): Don't use CHECK_N.
9179         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
9180         <bp-checks.h>.
9181         (semtimedop): Don't use CHECK_N.
9182         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
9183         (__libc_pread): Don't use CHECK_N.
9184         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
9185         <bp-checks.h>.
9186         (__libc_pread64): Don't use CHECK_N.
9187         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
9188         <bp-checks.h>.
9189         (__libc_pwrite): Don't use CHECK_N.
9190         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
9191         <bp-checks.h>.
9192         (__libc_pwrite64): Don't use CHECK_N.
9193         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
9194         <bp-checks.h>.
9195         (__libc_msgrcv): Don't use CHECK_N.
9196         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
9197         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
9198         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
9199         (__libc_writev): Don't use CHECK_N.
9200
9201 2013-02-08  Roland McGrath  <roland@hack.frob.com>
9202
9203         * string/strcpy.c: Removed unused variable.
9204
9205         * Makeconfig (+sysdep-includes): Define with := rather than =.
9206         Use an existing include/ subdir of each sysdeps dir before it.
9207
9208 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9209
9210         * nscd/connection.c (register_traced_file): Comment function.
9211         [HAVE_INOTIFY] (union __inev): Define.
9212         [HAVE_INOTIFY] (inotify_check_files): New function.
9213         [HAVE_INOTIFY] (clear_db_cache): Likewise.
9214         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
9215         clear_db_cache.
9216         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
9217
9218 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9219
9220         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
9221         loaded if not already and that a failure is permanent.
9222
9223 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9224
9225         [BZ #15006]
9226         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
9227         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
9228
9229 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
9230
9231         [BZ #13550]
9232         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
9233         (CHECK_1_NULL_OK): Likewise.
9234         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
9235         (__fxstat): Do not use CHECK_1.
9236         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
9237         <bp-checks.h>.
9238         (___fxstat64): Do not use CHECK_1.
9239         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
9240         <bp-checks.h>.
9241         (__fxstatat): Do not use CHECK_1.
9242         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
9243         <bp-checks.h>.
9244         (__fxstatat64): Do not use CHECK_1.
9245         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
9246         <bp-checks.h>.
9247         (__fxstat): Do not use CHECK_1.
9248         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
9249         <bp-checks.h>.
9250         (__fxstatat): Do not use CHECK_1.
9251         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
9252         <bp-checks.h>.
9253         (__getresgid): Do not use CHECK_1.
9254         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
9255         <bp-checks.h>.
9256         (__getresuid): Do not use CHECK_1.
9257         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
9258         <bp-checks.h>.
9259         (__lxstat): Do not use CHECK_1.
9260         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
9261         <bp-checks.h>.
9262         (__old_msgctl): Do not use CHECK_1.
9263         (__new_msgctl): Likewise.
9264         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
9265         <bp-checks.h>.
9266         (__new_setrlimit): Do not use CHECK_1.
9267         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
9268         <bp-checks.h>.
9269         (__old_shmctl): Do not use CHECK_1.
9270         (__new_shmctl): Likewise.
9271         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
9272         <bp-checks.h>.
9273         (__xstat): Do not use CHECK_1.
9274         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
9275         (__lxstat): Do not use CHECK_1.
9276         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
9277         <bp-checks.h>.
9278         (___lxstat64): Do not use CHECK_1.
9279         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
9280         (__old_msgctl): Do not use CHECK_1.
9281         (__new_msgctl): Likewise.
9282         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
9283         <bp-checks.h>.
9284         (__gettimeofday): Do not use CHECK_1.
9285         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
9286         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
9287         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
9288         <bp-checks.h>.
9289         (__gettimeofday): Do not use CHECK_1.
9290         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
9291         (__old_shmctl): Do not use CHECK_1_NULL_OK.
9292         (__new_shmctl): Do not use CHECK_1.
9293         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
9294         <bp-checks.h>.
9295         (do_sigtimedwait): Do not use CHECK_1.
9296         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
9297         <bp-checks.h>.
9298         (do_sigwaitinfo): Do not use CHECK_1.
9299         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
9300         <bp-checks.h>.
9301         (msgctl): Do not use CHECK_1.
9302         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
9303         <bp-checks.h>.
9304         (shmctl): Do not use CHECK_1.
9305         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
9306         (ustat): Do not use CHECK_1.
9307         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
9308         <bp-checks.h>.
9309         (__fxstat): Do not use CHECK_1.
9310         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
9311         <bp-checks.h>.
9312         (__fxstatat): Do not use CHECK_1.
9313         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
9314         <bp-checks.h>.
9315         (__lxstat): Do not use CHECK_1.
9316         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
9317         <bp-checks.h>.
9318         (__xstat): Do not use CHECK_1.
9319         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
9320         (__xstat): Do not use CHECK_1.
9321         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
9322         (___xstat64): Do not use CHECK_1.
9323
9324         [BZ #13550]
9325         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
9326         definitions.
9327         (CHECK_BOUNDS_HIGH): Likewise.
9328         * string/strcpy.c: Do not include <bp-checks.h>.
9329         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
9330
9331 2013-02-07  Roland McGrath  <roland@hack.frob.com>
9332
9333         * nscd/nscd-client.h (__nscd_drop_map_ref):
9334         Add __attribute__ ((unused)).
9335         * nis/nss-nisplus.h (niserr2nss): Likewise.
9336
9337         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
9338         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
9339
9340         * csu/libc-tls.c (init_static_tls, init_slotinfo):
9341         Remove inline keyword.
9342         * include/rounding-mode.h (round_away): Likewise.
9343         * libio/wfileops.c (adjust_wide_data): Likewise.
9344         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
9345         (__m128i_strloadu_tolower): Likewise.
9346         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
9347         (__m128i_strloadu_tolower): Likewise.
9348         * time/mktime.c (ydhms_diff): Likewise.
9349         * locale/elem-hash.h (elem_hash): Likewise.
9350         * locale/setlocale.c (setdata): Likewise.
9351         * posix/regex_internal.h (re_string_char_size_at): Likewise.
9352         (re_string_wchar_at): Likewise.
9353         (bitset_not, bitset_merge, bitset_mask): Likewise.
9354         [!(__GNUC__ > 3)] (inline): Remove macro.
9355         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
9356         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
9357         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
9358         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
9359         * string/memcmp.c (memcmp_bytes): Likewise.
9360         * locale/programs/locarchive.c (compute_hashval): Likewise.
9361         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
9362         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
9363         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
9364         * nss/getent.c (print_rpc, print_protocols): Likewise.
9365         (print_passwd, print_group, print_aliases): Likewise.
9366         * nis/nss-nisplus.h (niserr2nss): Likewise.
9367         * nscd/connections.c (restart_p): Likewise.
9368         Change return type to bool.
9369
9370 2013-02-05  Roland McGrath  <roland@hack.frob.com>
9371
9372         * Makeconfig (all-Depend-files): Add existing
9373         $(sorted-subdirs:=/Depend) files.
9374         (all-subdirs): Remove nss.
9375         * sysdeps/unix/inet/Subdirs: Add it here instead.
9376         * hesiod/Depend: New file.
9377
9378         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
9379         instead of calling alloca.
9380
9381         * io/lseek.c (__lseek): Rename to __libc_lseek.
9382         Define __lseek as an alias.
9383
9384         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
9385
9386 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
9387
9388         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
9389         else clause and remove check for non-standard endianness.
9390
9391 2013-02-04  David S. Miller  <davem@davemloft.net>
9392
9393         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9394
9395 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
9396
9397         [BZ #13550]
9398         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
9399         (__ubp_memchr): Remove prototype.
9400         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
9401         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
9402         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
9403         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
9404         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
9405         Remove alias.
9406         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
9407         (__ubp_memchr): Likewise.
9408         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
9409         (__ubp_memchr): Likewise.
9410         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
9411         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
9412         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
9413         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
9414         CHECK_STRING.
9415         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9416         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
9417         (__getcwd): Do not use CHECK_STRING.
9418         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
9419         <bp-checks.h>.
9420         (__real_chown): Do not use CHECK_STRING.
9421         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
9422         <bp-checks.h>.
9423         (fchownat): Do not use CHECK_STRING.
9424         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
9425         CHECK_STRING.
9426         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
9427         <bp-checks.h>.
9428         (__lchown): Do not use CHECK_STRING.
9429         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9430         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9431         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9432         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
9434         include <bp-checks.h>.
9435         (truncate64): Do not use CHECK_STRING.
9436         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
9437         <bp-checks.h>.
9438         (__real_chown): Do not use CHECK_STRING.
9439         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
9440         <bp-checks.h>.
9441         (__lchown): Do not use CHECK_STRING.
9442         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
9443         <bp-checks.h>.
9444         (__chown): Do not use CHECK_STRING.
9445         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
9446         <bp-checks.h>.
9447         (truncate64): Do not use CHECK_STRING.
9448         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
9449         Likewise.
9450         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
9451         (__xmknod): Do not use CHECK_STRING.
9452         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
9453         <bp-checks.h>.
9454         (__xmknodat): Do not use CHECK_STRING.
9455         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9456         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
9457
9458 2013-02-04  Andreas Schwab  <schwab@suse.de>
9459
9460         [BZ #14142]
9461         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
9462         * include/netdb.h: Likewise for h_errno.
9463         * elf/tst-stackguard1.c: Include <tls.h>.
9464
9465 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9466
9467         * elf/link.h (struct link_map): Extend the l_addr comment.
9468         * include/link.h (struct link_map): Likewise.
9469
9470 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
9471
9472         [BZ #13550]
9473         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
9474         (BOUNDED_1): Remove macro.
9475         * debug/backtrace.c: Don't include <bp-checks.h>.
9476         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
9477         (__backtrace): Likewise.
9478         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
9479         <bp-checks.h>.
9480         (__backtrace): Don't use BOUNDED_1.
9481         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
9482         <bp-checks.h>.
9483         (__backtrace): Don't use BOUNDED_1.
9484         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
9485         (__backtrace): Don't use BOUNDED_1.
9486         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
9487         (shmat): Don't use BOUNDED_N.
9488
9489 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
9490
9491         [BZ #13550]
9492         * sysdeps/generic/bp-start.h: Remove file.
9493         * csu/libc-start.c: Don't include <bp-start.h>.
9494         (LIBC_START_MAIN): Set up __environ directly instead of using
9495         INIT_ARGV_and_ENVIRON.
9496         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
9497         <bp-start.h>.
9498
9499         [BZ #13550]
9500         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
9501         definitions.
9502         (CHECK_FCNTL): Likewise.
9503         (CHECK_N_PAGES): Likewise.
9504
9505         [BZ #13550]
9506         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
9507         definitions.
9508         (CHECK_SIGSET_NULL_OK): Likewise.
9509         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
9510         <bp-checks.h>.
9511         (sigpending): Don't use CHECK_SIGSET.
9512         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
9513         <bp-checks.h>.
9514         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9515         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
9516         <bp-checks.h>.
9517         (do_sigsuspend): Don't use CHECK_SIGSET.
9518         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
9519         use CHECK_SIGSET.
9520         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
9521         (do_sigwait): Don't use CHECK_SIGSET.
9522         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
9523         use CHECK_SIGSET.
9524         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
9525         include <bp-checks.h>.
9526         (sigpending): Don't use CHECK_SIGSET.
9527         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
9528         include <bp-checks.h>.
9529         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9530         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
9531         <bp-checks.h>.
9532         (sigpending): Don't use CHECK_SIGSET.
9533         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
9534         <bp-checks.h>.
9535         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9536
9537         [BZ #13550]
9538         * sysdeps/generic/bp-semctl.h: Remove file.
9539         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
9540         <bp-checks.h> and <bp-semctl.h>.
9541         (__old_semctl): Don't use CHECK_SEMCTL.
9542         (__new_semctl): Likewise.
9543         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
9544         and <bp-semctl.h>.
9545         (__old_semctl): Don't use CHECK_SEMCTL.
9546         (__new_semctl): Likewise.
9547         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
9548         <bp-checks.h> and <bp-semctl.h>.
9549         (__old_semctl): Don't use CHECK_SEMCTL.
9550         (__new_semctl): Likewise.
9551         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
9552         <bp-checks.h> and <bp-semctl.h>.
9553         (semctl): Don't use CHECK_SEMCTL.
9554
9555         [BZ #13550]
9556         * Makerules (elide-bp-thunks): Remove variable.
9557         (elide-routines.oS): Don't use $(elide-bp-thunks).
9558         (elide-routines.os): Likewise.
9559         (elide-routines.o): Likewise.
9560         (elide-routines.op): Likewise.
9561         (elide-routines.og): Likewise.
9562         (objects): Don't use $(bp-thunks).
9563         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
9564         include.
9565         (common-generated): Do not add s-proto-bp.d.
9566         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
9567         (int): Likewise.
9568         (typ): Likewise.
9569         Do not generate makefile rules for bounded-pointer thunks.
9570         * sysdeps/generic/bp-thunks.h: Remove file.
9571         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
9572         * sysdeps/unix/s-proto-bp.S: Likewise.
9573
9574         [BZ #15062]
9575         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
9576         parts of result separately when argument is not close to line from
9577         -i to i and one part of argument is small.
9578         * math/k_casinhf.c (__kernel_casinhf): Likewise.
9579         * math/k_casinhl.c (__kernel_casinhl): Likewise.
9580         * math/libm-test.inc (cacos_test): Add more tests.
9581         (casin_test): Likewise.
9582         (casinh_test): Likewise.
9583         * sysdeps/i386/fpu/libm-test-ulps: Update.
9584         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9585
9586 2013-01-31  David S. Miller  <davem@davemloft.net>
9587
9588         * po/de.po: Update from translation team.
9589
9590 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
9591
9592         * time/tzfile.c: Include stdint.h for SIZE_MAX.
9593
9594 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
9595
9596         * configure.in (_AC_PROG_CC_C89): New definition.
9597         * configure: Regenerate.
9598
9599         * configure.in (AC_PROG_CPP): New definition.
9600         * configure: Regenerate.
9601
9602 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
9603
9604         * debug/tst-backtrace.h: New file.
9605         * debug/tst-backtrace2.c: Include tst-backtrace.h.
9606         (ret): Remove variable.
9607         (x): Likewise.
9608         (FAIL): Remove macro.
9609         (NO_INLINE): Likewise.
9610         (fn1): Use match function instead of strstr.
9611         * debug/tst-backtrace3.c: Include tst-backtrace.h.
9612         (ret): Remove variable.
9613         (x): Likewise.
9614         (FAIL): Remove macro.
9615         (NO_INLINE): Likewise.
9616         (fn): Use match function instead of strstr.
9617         * debug/tst-backtrace4.c: Include tst-backtrace.h.
9618         (ret): Remove variable.
9619         (x): Likewise.
9620         (FAIL): Remove macro.
9621         (NO_INLINE): Likewise.
9622         (handle_signal): Use match function instead of strstr.
9623         * debug/tst-backtrace5.c: Include tst-backtrace.h.
9624         (ret): Remove variable.
9625         (x): Likewise.
9626         (FAIL): Remove macro.
9627         (NO_INLINE): Likewise.
9628         (handle_signal): Use match function instead of strstr.
9629
9630 2013-01-23  Roland McGrath  <roland@hack.frob.com>
9631
9632         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
9633
9634 2013-01-23  David S. Miller  <davem@davemloft.net>
9635
9636         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
9637         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
9638         argument of CAS if possible.
9639         * sysdeps/sparc/sparc64/bits/atomic.h
9640         (__arch_compare_and_exchange_val_32_acq): Likewise.
9641         (__arch_compare_and_exchange_val_64_acq): Likewise.
9642
9643 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
9644
9645         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
9646         * sysdeps/posix/ulimit.c: ... this.
9647         Include <limits.h>.
9648         * sysdeps/unix/bsd/ulimit.c: Remove file.
9649
9650 2013-01-23  Adam Conrad  <adconrad@0c3.net>
9651
9652         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
9653         (LDFLAGS-tst-array5): Likewise.
9654
9655 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
9656
9657         [BZ #15036]
9658         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
9659         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
9660         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
9661         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
9662
9663 2013-01-21  David S. Miller  <davem@davemloft.net>
9664
9665         * sysdeps/sparc/backtrace.c: New file.
9666         * sysdeps/sparc/sparc32/backtrace.h: New file.
9667         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
9668         * sysdeps/sparc/sparc64/backtrace.h: New file.
9669         * sysdeps/sparc/sparc64/backtrace.c: Delete.
9670         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
9671         -funwind-tables.
9672
9673 2013-01-21  Andreas Schwab  <schwab@suse.de>
9674
9675         [BZ #15020]
9676         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
9677         closed its stdout.
9678
9679 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
9680
9681         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
9682         "mpa2.h".
9683         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
9684
9685 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
9686             Mark Mitchell  <mark@codesourcery.com>
9687             Tom de Vries  <tom@codesourcery.com>
9688             Paul Pluzhnikov  <ppluzhnikov@google.com>
9689
9690         * debug/tst-backtrace2.c: New file.
9691         * debug/tst-backtrace3.c: Likewise.
9692         * debug/tst-backtrace4.c: Likewise.
9693         * debug/tst-backtrace5.c: Likewise.
9694         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
9695         (CFLAGS-tst-backtrace3.c): Likewise.
9696         (CFLAGS-tst-backtrace4.c): Likewise.
9697         (CFLAGS-tst-backtrace5.c): Likewise.
9698         (LDFLAGS-tst-backtrace2): Likewise.
9699         (LDFLAGS-tst-backtrace3): Likewise.
9700         (LDFLAGS-tst-backtrace4): Likewise.
9701         (LDFLAGS-tst-backtrace5): Likewise.
9702         (tests): Add new tests tst-backtrace2, tst-backtrace3,
9703         tst-backtrace4 and tst-backtrace5.
9704
9705 2013-01-18  Anton Blanchard  <anton@samba.org>
9706             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9707
9708         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
9709         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
9710         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
9711         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
9712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9713         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
9714         "+r" and remove output regs list as redundant.  Add explicit inline
9715         asm to specify register of return val to work around compiler codegen
9716         bug.  Remove (int) cast on return value.  Add return type parameter to
9717         use in macro so that this macro does not truncate return value for
9718         64-bit values.
9719         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
9720         pass to INTERNAL_VSYSCALL_NCS.
9721         (INLINE_VSYSCALL): Add 'long int' as return type to
9722         INTERNAL_VSYSCALL_NCS macro invocation.
9723         (INTERNAL_VSYSCALL): Add 'long int' as return type to
9724         INTERNAL_VSYSCALL_NCS macro invocation.
9725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9726
9727 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
9728
9729         [BZ #14496]
9730         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
9731         Fix application of SIMD FP exception mask.
9732
9733         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
9734         mp_no from a power of two.
9735         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
9736         __mpexp_twomm1.  Use __pow_mp.
9737
9738         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
9739         multiplication.
9740
9741 2013-01-17  David S. Miller  <davem@davemloft.net>
9742
9743         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9744
9745 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
9746
9747         [BZ #15023]
9748         * include/complex.h: Condition contents on [!_COMPLEX_H].
9749         (__kernel_casinhf): New prototype.
9750         (__kernel_casinh): Likewise.
9751         (__kernel_casinhl): Likewise.
9752         * math/Makefile (libm_calls): Add k_casinh.
9753         * math/k_casinh.c: New file.
9754         * math/k_casinhf.c: Likewise.
9755         * math/k_casinhl.c: Likewise.
9756         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
9757         finite nonzero arguments.
9758         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
9759         finite nonzero arguments.
9760         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
9761         finite nonzero arguments.
9762         * math/s_casinh.c: Do not include <float.h>.
9763         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
9764         * math/s_casinhf.c: Do not include <float.h>.
9765         (__casinhf): Move code for finite nonzero arguments to
9766         k_casinhf.c.
9767         * math/s_casinhl.c: Do not include <float.h>.
9768         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
9769         redefine.
9770         (__casinhl): Move code for finite nonzero arguments to
9771         k_casinhl.c.
9772         * math/libm-test.inc (cacos_test): Add more tests.
9773         * sysdeps/i386/fpu/libm-test-ulps: Update.
9774         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9775
9776 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
9777
9778         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
9779         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
9780         [!HAVE_MREMAP]: Remove [defined linux] case.
9781         * malloc/arena.c: Do not include <malloc-sysdep.h>.
9782
9783 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9784
9785         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
9786
9787 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9788
9789         * elf/elf.h (R_386_SIZE32): New relocation.
9790         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
9791         R_386_SIZE32.
9792         (elf_machine_rela): Likewise.
9793         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
9794         R_X86_64_SIZE64 and R_X86_64_SIZE32.
9795
9796 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
9797
9798         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
9799         (FP_FAST_FMA): Do not define.
9800         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
9801         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
9802         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
9803         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
9804         !_SOFT_FLOAT]: Likewise.
9805         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
9806         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
9807         value.
9808         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
9809         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
9810         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
9811         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
9812         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
9813         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
9814         file.
9815
9816 2013-01-16  Andreas Schwab  <schwab@suse.de>
9817
9818         [BZ #14327]
9819         * include/stdlib.h (__mktemp): Add declaration.
9820         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
9821         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
9822
9823 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9824
9825         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
9826         definitions.
9827         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
9828         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
9829         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
9830         definitions here.
9831         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
9832         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
9833         definitions.
9834         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
9835         and ONE.
9836         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
9837         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
9838         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
9839         definitions.
9840         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
9841         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
9842         definitions.
9843         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
9844
9845         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
9846
9847 2013-01-15  David S. Miller  <davem@davemloft.net>
9848
9849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
9850         trunc{,f} to libm-sysdep_routes.
9851         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
9852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
9853         file.
9854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
9855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
9856         file.
9857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
9858         file.
9859         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
9860         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
9861         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
9862         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
9863         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
9864         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
9865         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
9866         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
9867
9868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
9869         nearbyint{,f} to libm-sysdep_routes.
9870         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
9871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
9872         New file.
9873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
9874         file.
9875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
9876         New file.
9877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
9878         file.
9879         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
9880         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
9881         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
9882         file.
9883         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
9884         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
9885         file.
9886         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
9887         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
9888         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
9889
9890         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
9891         libc_feholdexcept and libc_fesetenv.
9892
9893 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
9894
9895         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
9896
9897 2013-01-14  David S. Miller  <davem@davemloft.net>
9898
9899         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
9900         (SPARC_ASM_VIS2_IFUNC): Likewise.
9901         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
9902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
9903         use of 'siam' instruction.
9904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
9905         Likewise.
9906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
9907         Likewise.
9908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
9909         Likewise.
9910         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
9911         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
9912         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
9913         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
9914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
9915         file.
9916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
9917         file.
9918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
9919         file.
9920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
9921         file.
9922         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
9923         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
9924         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
9925         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
9926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
9927         new VIS2 routines.
9928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9931         Likewise.
9932         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9933         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9934         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9935         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
9937         routines to libm-sysdep_routines.
9938         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
9939
9940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
9941         fdim/fdimf to libm-sysdep_routines.
9942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
9943         file.
9944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
9945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
9946         file.
9947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
9948         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
9949         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
9950         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
9951         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
9952         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
9953         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
9954
9955 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
9956
9957         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
9958         to optimize copies.
9959
9960         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
9961         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9962         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
9963
9964         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
9965         local variable MPTWO.
9966         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
9967         Likewise.
9968
9969 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
9970
9971         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
9972         GLOB_NOESCAPE.
9973
9974 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
9975
9976         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
9977
9978 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
9979
9980         * manual/pattern.texi (glob_t): Document gl_flags.
9981         (glob64_t): Likewise.
9982
9983 2013-01-11  David S. Miller  <davem@davemloft.net>
9984
9985         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
9986         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
9987         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
9988         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
9989         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
9990         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
9991         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
9992         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
9993         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
9994         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
9995         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
9996         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
9997         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
9998
9999         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
10000         sparc V9 rather than using V8 code.
10001         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10002         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10003
10004         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10005         Move to...
10006         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
10007         Here.
10008
10009 2013-01-11  Roland McGrath  <roland@hack.frob.com>
10010
10011         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
10012         not in the main loop.
10013         * configure: Regenerated.
10014
10015 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
10016
10017         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
10018         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
10019         to just #else.
10020         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
10021         [!__GLIBC_HAVE_LONG_LONG] case.
10022         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
10023         condition to just #else.
10024         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
10025         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
10026         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
10027         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
10028         unconditional.
10029         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
10030         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
10031         #elif condition to just #else.
10032         * sysdeps/unix/sysv/linux/sys/sysmacros.h
10033         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
10034         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
10035         #elif condition to just #else.
10036
10037 2013-01-11  Steve Ellcey  <sellcey@mips.com>
10038
10039         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
10040         (EF_MIPS_ARCH_64): Fix value.
10041         (EF_MIPS_ARCH_32R2): New.
10042         (EF_MIPS_ARCH_64R2): New.
10043
10044 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
10045
10046         * Makeconfig (+link-pie-before-libc): New.
10047         (+link-pie-after-libc): Likewise.
10048         (+link-pie-tests): Likewise.
10049         (+link-pie): Rewritten.
10050         (link-before-libc): Remove $(config-LDFLAGS).
10051         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
10052         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
10053         (config-LDFLAGS): Renamed to ...
10054         (rtld-LDFLAGS): This.
10055         (rtld-tests-LDFLAGS): New macro.
10056         (link-libc-rpath-link): Likewise.
10057         (link-libc-tests-rpath-link): Likewise.
10058         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
10059         (link-libc): Prepand $(link-libc-rpath-link).
10060         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
10061         (test-program-prefix): New macro.
10062         (test-via-rtld-prefix): Likewise.
10063         (test-program-cmd): Likewise.
10064         (host-test-program-cmd): Likewise.
10065         * Makefile ($(common-objpfx)testrun.sh): Replace
10066         $(run-program-prefix) with $(test-program-prefix).
10067         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
10068         $(rtld-LDFLAGS).
10069         ($(common-objpfx)shlib.lds): Likewise.
10070         (build-module-helper): Likewise.
10071         ($(common-objpfx)format.lds): Likewise.
10072         * Rules (binaries-pie-tests): New.
10073         (binaries-pie-notests): Likewise.
10074         (binaries-pie): Rewritten.
10075         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
10076         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
10077         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
10078         (make-test-out): Replace $(host-built-program-cmd) with
10079         $(host-test-program-cmd).
10080         * config.make.in (build-hardcoded-path-in-tests): New variable.
10081         * configure.in (--enable-hardcoded-path-in-tests): New configure
10082         option.
10083         (hardcoded_path_in_tests): New AC_SUBST.
10084         * configure: Regenerated.
10085         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
10086         $(built-program-cmd) with $(test-program-cmd).
10087         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
10088         (test_program_cmd): This.
10089         * elf/Makefile ($(objpfx)order.out): Run test with
10090         $(test-program-prefix).
10091         ($(objpfx)order2.out): Likewise.
10092         ($(objpfx)tst-initorder.out): Likewise.
10093         ($(objpfx)tst-initorder2.out): Likewise.
10094         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
10095         $(test-program-cmd).
10096         ($(objpfx)tst-array1-static.out): Likewise.
10097         ($(objpfx)tst-array2.out): Likewise.
10098         ($(objpfx)tst-array3.out): Likewise.
10099         ($(objpfx)tst-array4.out): Likewise.
10100         ($(objpfx)tst-array5.out): Likewise.
10101         ($(objpfx)tst-array5-static.out): Likewise.
10102         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
10103         $(test-program-cmd).
10104         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
10105         $(run-program-prefix) with $(test-program-prefix).
10106         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
10107         (test_program_prefix): This.
10108         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
10109         $(run-program-prefix) with $(test-program-prefix).
10110         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
10111         (test_program_prefix): This.
10112         * iconvdata/tst-tables.sh: Likewise.
10113         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
10114         $(run-program-prefix) with $(test-program-prefix).
10115         ($(objpfx)tst-translit.out): Likewise.
10116         ($(objpfx)tst-gettext2.out): Likewise.
10117         ($(objpfx)tst-gettext4.out): Likewise.
10118         ($(objpfx)tst-gettext6.out): Likewise.
10119         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
10120         (test_program_prefix): This.
10121         * intl/tst-gettext2.sh: Likewise.
10122         * intl/tst-gettext4.sh  Likewise.
10123         * intl/tst-gettext6.sh: Likewise.
10124         * intl/tst-translit.sh: Likewise.
10125         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
10126         with $(test-program-cmd).
10127         * libio/Makefile ($(objpfx)test-freopen.out): Replace
10128         $(run-program-prefix) with $(test-program-prefix).
10129         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
10130         (test_program_prefix): This.
10131         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
10132         $(run-program-prefix) with $(test-program-prefix).
10133         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
10134         (test_program_prefix): This.
10135         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
10136         * posix/Makefile ($(objpfx)globtest.out): Replace
10137         $(run-via-rtld-prefix) and $(test-wrapper) with
10138         $(test-program-prefix) and $(test-via-rtld-prefix).
10139         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
10140         $(test-program-prefix).
10141         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
10142         $(host-test-program-cmd).
10143         (tst-spawn-ARGS): Likewise.
10144         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
10145         $(test-program-prefix).
10146         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
10147         (test_via_rtld_prefix): This.
10148         (test_wrapper): Renamed to ...
10149         (test_program_prefix): This.
10150         (run_program_prefix): Replaced by test_program_prefix.
10151         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
10152         (test_program_prefix): This.
10153         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
10154         with $(host-test-program-cmd).
10155         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
10156         $(run-program-prefix) with $(test-program-prefix).
10157         ($(objpfx)tst-printf.out): Likewise.
10158         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
10159         $(test-program-cmd).
10160         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
10161         (test_program_prefix): This.
10162         * stdio-common/tst-unbputc.sh: Likewise.
10163         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
10164         $(run-program-prefix) with $(test-program-prefix).
10165         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
10166         (test_program_prefix): This.
10167         * string/Makefile ($(objpfx)tst-svc.out):  Replace
10168         $(built-program-cmd) with $(test-program-cmd).
10169
10170 2013-01-11  Andreas Jaeger  <aj@suse.de>
10171
10172         [BZ #15003]
10173         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
10174         value. Sync with Linux 3.7.
10175
10176 2013-01-10  David S. Miller  <davem@davemloft.net>
10177
10178         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
10179         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10180         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10181
10182 2013-01-10  Roland McGrath  <roland@hack.frob.com>
10183
10184         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
10185         never set.
10186         * configure: Regenerated.
10187
10188 2013-01-10  David S. Miller  <davem@davemloft.net>
10189
10190         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
10191         sparc V9 rather than using V8 code.
10192         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10193         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10194
10195 2013-01-10  Roland McGrath  <roland@hack.frob.com>
10196
10197         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
10198         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
10199         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
10200         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
10201         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
10202         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
10203         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
10204         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
10205         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
10206         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
10207         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
10208         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
10209         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
10210         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
10211         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
10212         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
10213         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
10214         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
10215         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
10216         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
10217         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
10218         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
10219         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
10220         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
10221         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
10222         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
10223         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
10224
10225 2013-01-10  David S. Miller  <davem@davemloft.net>
10226
10227         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10228
10229 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10230
10231         * posix/Makefile (tests-static): New variable.
10232         (tests): Add $(tests-static).
10233         (tst-exec-static-ARGS): New variable.
10234         (tst-spawn-static-ARGS): Likewise.
10235         * posix/tst-exec-static.c: New file.
10236         * posix/tst-spawn-static.c: Likewise.
10237         * posix/tst-exec.c: Support run directly.
10238         * posix/tst-spawn.c: Likewise.
10239
10240 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
10241
10242         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
10243         long.
10244         * math/bits/mathcalls.h (llrint): Likewise.
10245         (llround): Likewise.
10246         * stdlib/stdlib.h (struct drand48_data): Likewise.
10247         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
10248         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
10249         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
10250         Likewise.
10251         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
10252         Likewise.
10253         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
10254         (elf_greg_t): Likewise.
10255         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
10256         (__jmp_buf): Likewise.
10257         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
10258         definitions.
10259         (llrint): Likewise, for all definitions.
10260         (llrintl): Likewise.
10261
10262         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
10263         Remove [__GNUC__] condition.
10264         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
10265         condition to just [__USE_ISOC99].
10266         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
10267
10268 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10269
10270         [BZ #14200]
10271         * sysdeps/unix/sysv/linux/x86/bits/environments.h
10272         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
10273         defined.
10274         (_POSIX_V6_ILP32_OFF32): Likewise.
10275         (_XBS5_ILP32_OFF32): Likewise.
10276         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
10277         (__ILP32_OFFBIG_LDFLAGS): Likewise.
10278
10279 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10280
10281         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
10282
10283         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
10284         doubles __mpexp_twomm1.  Adjust usage.
10285         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
10286         Remove.
10287
10288 2013-01-10  Andreas Schwab  <schwab@suse.de>
10289
10290         [BZ #14964]
10291         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
10292         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
10293
10294 2013-01-09  David S. Miller  <davem@davemloft.net>
10295
10296         [BZ #15003]
10297         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
10298         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
10299         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
10300         TCP_FASTOPEN): Define.
10301         (tcp_repair_opt): New structure.
10302         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
10303         enum values.
10304         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
10305         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
10306         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
10307         (tcp_cookie_transactions): New structure.
10308
10309 2013-01-09  Anton Blanchard  <anton@samba.org>
10310
10311         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
10312         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
10313         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
10314         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
10315
10316 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
10317
10318         * include/features.h (__USE_ANSI): Remove.
10319
10320 2013-01-09  Roland McGrath  <roland@hack.frob.com>
10321
10322         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
10323
10324         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
10325
10326 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
10327
10328         * sysdeps/s390/fpu/libm-test-ulps: Update.
10329
10330         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10331
10332         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
10333         (__acr): Likewise.
10334         (__cpy): Likewise.
10335         (norm): Likewise.
10336         (denorm): Likewise.
10337         (__mp_dbl): Likewise.
10338         (__dbl_mp): Likewise.
10339         (add_magnitudes): Likewise.
10340         (sub_magnitudes): Likewise.
10341         (__add): Likewise.
10342         (__sub): Likewise.
10343         (__mul): Likewise.
10344         (__inv): Likewise.
10345         (__dvd): Likewise.
10346         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
10347         (__acr): Likewise.
10348         (__cpy): Likewise.
10349         (norm): Likewise.
10350         (denorm): Likewise.
10351         (__mp_dbl): Likewise.
10352         (__dbl_mp): Likewise.
10353         (add_magnitudes): Likewise.
10354         (sub_magnitudes): Likewise.
10355         (__add): Likewise.
10356         (__sub): Likewise.
10357         (__mul): Likewise.
10358         (__inv): Likewise.
10359         (__dvd): Likewise.
10360         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
10361         (__acr): Likewise.
10362         (__cpy): Likewise.
10363         (norm): Likewise.
10364         (denorm): Likewise.
10365         (__mp_dbl): Likewise.
10366         (__dbl_mp): Likewise.
10367         (add_magnitudes): Likewise.
10368         (sub_magnitudes): Likewise.
10369         (__add): Likewise.
10370         (__sub): Likewise.
10371         (__mul): Likewise.
10372         (__inv): Likewise.
10373         (__dvd): Likewise.
10374
10375 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
10376
10377         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
10378         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
10379         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
10380         2 && __USE_EXTERN_INLINES]: Likewise.
10381
10382 2013-01-08  Andreas Jaeger  <aj@suse.de>
10383
10384         [BZ# 14985]
10385         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
10386         Remove.
10387         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
10388         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
10389
10390 2013-01-07  Anton Blanchard  <anton@samba.org>
10391
10392         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
10393         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
10394         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
10395         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
10396         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
10397         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10398         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
10399         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
10400         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10401         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10402         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
10403         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
10404         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10405         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
10406         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
10407         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
10408         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
10409         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10410         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
10411         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
10412         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
10413         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
10414         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
10415         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
10416         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
10417         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
10418         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10419         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
10420         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
10421         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10422         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
10423         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10424         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10425         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10426         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10427         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
10428         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
10429         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10430         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
10431         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
10432         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
10433         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10434         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
10435
10436 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
10437
10438         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
10439         (__MALLOC_PMT): Likewise.
10440         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
10441         [__GNUC__], only on [_LIBC].
10442         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
10443         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
10444         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
10445         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
10446         forward declaration.
10447         (realloc_hook_ini): Likewise.
10448         (memalign_hook_ini): Likewise.
10449         (__libc_memalign): Do not use __MALLOC_PMT in variable
10450         declaration.
10451         (__libc_valloc): Likewise.
10452         (__libc_pvalloc): Likewise.
10453         (__libc_calloc): Likewise.
10454         (__posix_memalign): Likewise.
10455
10456         [BZ #14996]
10457         * math/s_casinh.c: Include <float.h>.
10458         (__casinh): Do not do computation with squaring and square root
10459         for large arguments.
10460         * math/s_casinhf.c: Include <float.h>.
10461         (__casinhf): Do not do computation with squaring and square root
10462         for large arguments.
10463         * math/s_casinhl.c: Include <float.h>.
10464         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
10465         (__casinhl): Do not do computation with squaring and square root
10466         for large arguments.
10467         * math/libm-test.inc (casin_test): Add more tests.
10468         (casinh_test): Likewise.
10469         * sysdeps/i386/fpu/libm-test-ulps: Update.
10470         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10471
10472 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
10473
10474         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
10475         (__x86_64_raw_data_cache_size): Likewise.
10476         (__x86_64_data_cache_size_half): Likewise.
10477         (__x86_64_raw_data_cache_size_half): Likewise.
10478         (__x86_64_shared_cache_size): Likewise.
10479         (__x86_64_raw_shared_cache_size): Likewise.
10480         (__x86_64_shared_cache_size_half): Likewise.
10481         (__x86_64_raw_shared_cache_size_half): Likewise.
10482         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
10483         to ...
10484         (__x86_data_cache_size): This.
10485         (__x86_64_raw_data_cache_size): Renamed to ...
10486         (__x86_raw_data_cache_size): This.
10487         (__x86_64_data_cache_size_half): Renamed to ...
10488         (__x86_data_cache_size_half): This.
10489         (__x86_64_raw_data_cache_size_half): Renamed to ...
10490         (__x86_raw_data_cache_size_half): This.
10491         (__x86_64_shared_cache_size): Renamed to ...
10492         (__x86_shared_cache_size): This.
10493         (__x86_64_raw_shared_cache_size): Renamed to ...
10494         (__x86_raw_shared_cache_size): This.
10495         (__x86_64_shared_cache_size_half): Renamed to ...
10496         (__x86_shared_cache_size_half): This.
10497         (__x86_64_raw_shared_cache_size_half): Renamed to ...
10498         (__x86_raw_shared_cache_size_half): This.
10499         * sysdeps/x86_64/memcpy.S: Updated.
10500         * sysdeps/x86_64/memset.S: Likewise.
10501         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
10502         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
10503         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10504
10505 2013-01-04  David S. Miller  <davem@davemloft.net>
10506
10507         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10508
10509 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
10510
10511         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
10512         1 to avoid redefinition warning.
10513         (__USE_GNU): Don't define.
10514         (init_signaling_nan): Protoize.
10515
10516         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10517
10518 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10519
10520         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
10521         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
10522         (__cpymn): Likewise.
10523         (norm): Remove commented code.
10524         (denorm): Likewise.
10525         (__mp_dbl): Likewise.
10526         (__inv): Likewise.
10527         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
10528         (__cpymn): Likewise.
10529         (norm): Remove commented code.
10530         (denorm): Likewise.
10531         (__mp_dbl): Likewise.
10532         (__inv): Likewise.
10533
10534         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
10535         mp_no value for 1.0 and 2.0.
10536         (norm): Use RADIXI instead of radixi.d.
10537         (denorm): Likewise.
10538         (__mul): Use 0.0 instead of zero.d.
10539         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
10540         mp_no value for 1.0 and 2.0.
10541         (norm): Use RADIXI instead of radixi.d.
10542         (denorm): Likewise.
10543         (__mul): Use 0.0 instead of zero.d.
10544
10545 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
10546
10547         [BZ #14994]
10548         * math/s_casinh.c (__casinh): Reduce finite argument to first
10549         quadrant then set signs of results at the end.
10550         * math/s_casinhf.c (__casinhf): Likewise.
10551         * math/s_casinhl.c (__casinhl): Likewise.
10552         * math/libm-test.inc (casin_test): Add more tests.
10553         (casinh_test): Likewise.
10554         * sysdeps/i386/fpu/libm-test-ulps: Update.
10555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10556
10557 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10558
10559         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
10560
10561         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
10562
10563         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
10564         declarations.
10565         (denorm): Likewise.
10566         (__mp_dbl): Likewise.
10567         (__inv): Likewise.
10568
10569         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
10570         and adjust the header comment.
10571
10572         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
10573         variable name from declaration.
10574
10575 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10576
10577         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10578         Initialize COMMON_CPUID_INDEX_7 element.
10579         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
10580         (CPUID_RTM): Likewise.
10581         (HAS_RTM): Likewise.
10582         (COMMON_CPUID_INDEX_7): New enum.
10583
10584 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
10585
10586         [BZ #14981]
10587         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
10588         size is zero, record memory as freed.
10589
10590 2013-01-03  Andreas Jaeger  <aj@suse.de>
10591
10592         * po/ia.po: Add new Interlingua translation.
10593
10594 2012-01-03  Allan McRae  <allan@archlinux.org>
10595
10596         * locale/programs/localedef.c: Fix description of '--posix' flag.
10597
10598 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
10599
10600         * NEWS: Update dates in second copyright notice.
10601         * README: Update copyright dates in example.
10602         * manual/libc.texinfo: Update copyright dates.
10603         * scripts/test-installation.pl: Update copyright date in --version
10604         output.
10605
10606         * hurd/ctty-input.c: Fix copyright notice formatting.
10607         * hurd/ctty-output.c: Likewise.
10608         * hurd/dtable.c: Likewise.
10609         * hurd/hurd-raise.c: Likewise.
10610         * hurd/hurdprio.c: Likewise.
10611         * hurd/msgportdemux.c: Likewise.
10612         * misc/sys/file.h: Likewise.
10613         * misc/sys/ioctl.h: Likewise.
10614         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
10615         * sysdeps/mach/hurd/chdir.c: Likewise.
10616         * sysdeps/mach/hurd/fchdir.c: Likewise.
10617         * sysdeps/mach/hurd/rename.c: Likewise.
10618         * sysdeps/mach/hurd/rmdir.c: Likewise.
10619         * sysdeps/mach/hurd/seekdir.c: Likewise.
10620         * sysdeps/mach/hurd/setsid.c: Likewise.
10621         * sysdeps/posix/wait3.c: Likewise.
10622
10623         * All files with FSF copyright notices: Update copyright dates
10624         using scripts/update-copyrights.
10625         * intl/plural.c: Regenerated.
10626         * locale/programs/charmap-kw.h: Likewise.
10627         * locale/programs/locfile-kw.h: Likewise.
10628
10629 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10630
10631         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
10632         four values.
10633
10634         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
10635         calculation loop and add branch prediction.
10636
10637         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
10638         check access beyond bounds of m1np.
10639
10640         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
10641         MPTWO.
10642         (__inv): Remove local variable MPTWO to use the global
10643         constant.
10644         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
10645         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
10646         variable MPTWO.
10647         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
10648         MP3HALFS static const.
10649
10650 2013-01-01  David S. Miller  <davem@davemloft.net>
10651
10652         * po/ca.po: Update from translation team.
10653
10654 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
10655
10656         * scripts/update-copyrights: New file.
10657         * Makeconfig: Reformat copyright notice.
10658         * ctype/ctype.h: Likewise.
10659         * debug/swprintf_chk.c: Likewise.
10660         * elf/dl-cache.c: Likewise.
10661         * elf/dl-debug.c: Likewise.
10662         * elf/dl-object.c: Likewise.
10663         * grp/initgroups.c: Likewise.
10664         * hurd/Makefile: Likewise.
10665         * hurd/hurd/signal.h: Likewise.
10666         * hurd/hurdfault.c: Likewise.
10667         * hurd/hurdioctl.c: Likewise.
10668         * hurd/hurdlookup.c: Likewise.
10669         * hurd/intr-msg.c: Likewise.
10670         * iconv/gconv_open.c: Likewise.
10671         * libio/swprintf.c: Likewise.
10672         * locale/lc-ctype.c: Likewise.
10673         * locale/nl_langinfo.c: Likewise.
10674         * mach/Machrules: Likewise.
10675         * mach/Makefile: Likewise.
10676         * malloc/obstack.h: Likewise.
10677         * manual/Makefile: Likewise.
10678         * manual/tsort.awk: Likewise.
10679         * misc/bits/stab.def: Likewise.
10680         * nis/nis_print_group_entry.c: Likewise.
10681         * nis/nis_table.c: Likewise.
10682         * nis/nss_compat/compat-pwd.c: Likewise.
10683         * nis/nss_compat/compat-spwd.c: Likewise.
10684         * po/Makefile: Likewise.
10685         * posix/fnmatch.c: Likewise.
10686         * posix/regex.h: Likewise.
10687         * resolv/Makefile: Likewise.
10688         * resolv/nss_dns/dns-network.c: Likewise.
10689         * resolv/res_hconf.c: Likewise.
10690         * scripts/gen-sorted.awk: Likewise.
10691         * soft-fp/soft-fp.h: Likewise.
10692         * stdio-common/printf.h: Likewise.
10693         * stdlib/monetary.h: Likewise.
10694         * stdlib/random.c: Likewise.
10695         * stdlib/random_r.c: Likewise.
10696         * sysdeps/generic/Makefile: Likewise.
10697         * sysdeps/gnu/Makefile: Likewise.
10698         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10699         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10700         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10701         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10702         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10703         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10704         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10705         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10706         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10707         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10708         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
10709         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
10710         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
10711         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
10712         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
10713         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
10714         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
10715         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10716         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10717         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10718         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10719         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10720         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10721         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
10722         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
10723         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
10724         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
10725         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
10726         * sysdeps/mach/hurd/errnos.awk: Likewise.
10727         * sysdeps/mach/hurd/fork.c: Likewise.
10728         * sysdeps/mach/hurd/getcwd.c: Likewise.
10729         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
10730         * sysdeps/mach/hurd/mmap.c: Likewise.
10731         * sysdeps/mach/hurd/utimes.c: Likewise.
10732         * sysdeps/mach/hurd/xmknod.c: Likewise.
10733         * sysdeps/posix/profil.c: Likewise.
10734         * sysdeps/posix/readdir_r.c: Likewise.
10735         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10736         * sysdeps/powerpc/bits/setjmp.h: Likewise.
10737         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
10738         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
10739         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10740         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10741         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10742         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10743         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10744         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10745         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10746         * sysdeps/pthread/lio_listio.c: Likewise.
10747         * sysdeps/sparc/dl-procinfo.h: Likewise.
10748         * sysdeps/unix/i386/sysdep.S: Likewise.
10749         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
10750         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
10751         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
10752         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
10753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10754         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10755         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10756         * sysdeps/unix/sysv/linux/speed.c: Likewise.
10757         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
10758         * sysdeps/wordsize-32/divdi3.c: Likewise.
10759         * time/sys/time.h: Likewise.
10760         * wcsmbs/Makefile: Likewise.
10761
10762 2013-01-01  David S. Miller  <davem@davemloft.net>
10763
10764         * po/fr.po: Update from translation team.
10765
10766         * catgets/gencat.c: Update copyright year.
10767         * csu/version.c: Likewise.
10768         * debug/catchsegv.sh: Likewise.
10769         * debug/pcprofiledump.c: Likewise.
10770         * debug/xtrace.sh: Likewise.
10771         * elf/ldconfig.c: Likewise.
10772         * elf/ldd.bash.in: Likewise.
10773         * elf/pldd.c: Likewise.
10774         * elf/sotruss.ksh: Likewise.
10775         * elf/sprof.c: Likewise.
10776         * iconv/iconv_prog.c: Likewise.
10777         * iconv/iconvconfig.c: Likewise.
10778         * locale/programs/locale.c: Likewise.
10779         * locale/programs/localedef.c: Likewise.
10780         * login/programs/pt_chown.c: Likewise.
10781         * malloc/memusage.sh: Likewise.
10782         * malloc/memusagestat.c: Likewise.
10783         * malloc/mtrace.pl: Likewise.
10784         * nscd/nscd.c: Likewise.
10785         * nss/getent.c: Likewise.
10786         * nss/makedb.c: Likewise.
10787         * posix/getconf.c: Likewise.
10788
10789 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10790
10791         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
10792         numbers.
10793
10794 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
10795
10796         * math/bits/mathcalls.h (modf): Use __nonnull.
10797
10798 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10799
10800         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
10801         (split): Use macro CN instead of the bare value.
10802         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
10803         could be used.
10804         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
10805         instead of the bare value.
10806         (power1): Likewise.
10807
10808 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10809
10810         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
10811         __ATAN_TWOM.
10812         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
10813
10814         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
10815         their values.
10816         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
10817         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
10818         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
10819         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
10820
10821 2012-12-28  Andreas Jaeger  <aj@suse.de>
10822
10823         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
10824         values are from Linux 3.7.
10825
10826         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
10827         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
10828
10829 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10830
10831         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
10832         TRUE case.
10833
10834         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
10835         (norm): Likewise.
10836         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
10837         variables with preprocessor constants.
10838         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
10839         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
10840         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
10841
10842 2012-12-27  Bruno Haible  <bruno@clisp.org>
10843
10844         [BZ #14317]
10845         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
10846         only if needed.
10847
10848 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
10849
10850         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
10851         and use variable directly.
10852         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
10853
10854         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
10855         MPONE.
10856         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
10857         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
10858         variable MPONE.
10859         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
10860         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
10861         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
10862         include directive.  Remove local variable MPONE.
10863         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
10864         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
10865         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
10866
10867 2012-12-25  David S. Miller  <davem@davemloft.net>
10868
10869         * version.h (RELEASE): Set to "development".
10870         (VERSION): Set to "2.17.90".
10871         * NEWS: Add 2.18 section.
10872
10873 2012-12-21  David S. Miller  <davem@davemloft.net>
10874
10875         * po/hr.po: Update from translation team.
10876
10877 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10878
10879         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
10880
10881 2012-12-19  Steve Ellcey  <sellcey@mips.com>
10882
10883         * NEWS:  Mention new memcpy for MIPS.
10884
10885 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10886
10887         * manual/contrib.texi (Contributors): Spelling correction.
10888
10889 2012-12-15  David S. Miller  <davem@davemloft.net>
10890
10891         * po/ru.po: Update from translation team.
10892
10893 2012-12-13  David S. Miller  <davem@davemloft.net>
10894
10895         * NEWS: Mention IFUNC testsuite enhancements.
10896
10897         * po/pl.po: Update from translation team.
10898         * po/bg.po: Likewise.
10899
10900         * manual/contrib.texi (Contributors): Update entries for Hongjiu
10901         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
10902
10903 2012-12-11  David S. Miller  <davem@davemloft.net>
10904
10905         * po/sv.po: Update from translation team.
10906
10907         * po/vi.po: Update from translation team.
10908
10909         * po/cs.po: Update from translation team.
10910
10911         * po/de.po: Update from translation team.
10912         * po/eo.po: Likewise.
10913         * po/nl.po: Likewise.
10914
10915 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10916
10917         [BZ #14246]
10918         * manual/argp.texi (Argp Helper Functions): Move node to follow
10919         Argp Parsing State.
10920
10921         [BZ #14872]
10922         * manual/conf.texi (Limits on File System Capacity): Mention if
10923         terminating null is included in the max size.
10924
10925 2012-12-10  Andreas Jaeger  <aj@suse.de>
10926
10927         * po/cs.po: Update from translation team.
10928
10929 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
10930
10931         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
10932         void pointer and cast to uintptr_t.
10933         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
10934         path.
10935         * sysdeps/s390/s390-64/memcpy.S: Likewise.
10936         * sysdeps/s390/s390-64/memset.S: Likewise.
10937
10938 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
10939
10940         [BZ #14833]
10941         * menual/message.texi (Message Translation): Fix typos.
10942         (Helper programs for gettext): Likewise.
10943
10944 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
10945
10946         [BZ #14898]
10947         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
10948         Change to -1.
10949
10950 2012-12-07  David S. Miller  <davem@davemloft.net>
10951
10952         * po/libc.pot: Update.
10953
10954 2012-12-07  Richard Henderson  <rth@redhat.com>
10955
10956         [BZ #10114]
10957         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
10958         normal/normal case to before the switch.
10959         (_FP_DIV): Likewise.
10960
10961 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
10962             Mike Frysinger  <vapier@gentoo.org>
10963
10964         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
10965         check for __NR_fadvise64_64.
10966
10967 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
10968
10969         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
10970         0, not just to plain "0" as a statement.
10971         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
10972         with cw.
10973
10974 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
10975
10976         * NEWS: Use sourceware.org in Bugzilla URL.
10977
10978 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
10979
10980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
10981         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
10982
10983         * stdio-common/tst-put-error.c (do_test): Add newline to the
10984         padded test to ensure flush.
10985
10986 2012-12-05  Jeff Law  <law@redhat.com>
10987
10988         * sunrpc/etc.rpc (fedfs_admin): Add entry.
10989
10990 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
10991
10992         * README: Don't refer to ports add-on as distributed separately.
10993         Mention AArch64 in list of systems supported in the ports add-on.
10994
10995         * LICENSES: Add more non-FSF copyright and license notices.
10996
10997         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
10998         ((unused)).
10999
11000         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
11001
11002         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
11003         10000 as width of padded output.
11004
11005 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
11006
11007         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
11008
11009         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
11010         variable LX with __attribute__ ((unused)).
11011         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
11012         Likewise.
11013         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
11014         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11015         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
11016         with __attribute__ ((unused)).
11017
11018 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
11019
11020         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
11021
11022 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
11023
11024         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
11025         (CFLAGS-nldbl-acos.c): New variable.
11026         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
11027         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
11028         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
11029         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
11030         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
11031         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
11032         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
11033         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
11034         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
11035         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
11036         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
11037         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
11038         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
11039         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
11040         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
11041         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
11042         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
11043         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
11044         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
11045         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
11046         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
11047         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
11048         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
11049         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
11050         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
11051         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
11052         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
11053         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
11054         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
11055         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
11056         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
11057         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
11058         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
11059         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
11060         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
11061         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
11062         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
11063         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
11064         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
11065         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
11066         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
11067         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
11068         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
11069         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
11070         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
11071         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
11072         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
11073         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
11074         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
11075         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
11076         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
11077         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
11078         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
11079         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
11080         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
11081         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
11082         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
11083         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
11084         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
11085         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
11086         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
11087         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
11088         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
11089         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
11090         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
11091         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
11092         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
11093         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
11094         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
11095         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
11096         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
11097         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
11098         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
11099         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
11100         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
11101         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
11102         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
11103         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
11104         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
11105         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
11106         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
11107         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
11108         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
11109         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
11110         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
11111         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
11112         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
11113         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
11114         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
11115         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
11116         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
11117         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
11118         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
11119         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
11120         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
11121         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
11122         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
11123
11124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11125         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
11126
11127         [BZ #14914]
11128         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
11129         whole low double instead of just low 47 bits when splitting values
11130         into two parts.
11131
11132 2012-12-03  Allan McRae  <allan@archlinux.org>
11133
11134         * manual/stdio.texi (Predefined Printf Handlers): Remove
11135         @hsep and @vsep usage.
11136
11137 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
11138
11139         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
11140         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
11141
11142 2012-12-03  Jeff Law  <law@redhat.com>
11143
11144         * time/sys/time.h (settimeofday): Do not mark TV argument
11145         as __nonnull.
11146
11147 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
11148
11149         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
11150         when currently writing and seek to current position when not.
11151         * libio/Makefile (tests): Remove bug-fclose1.
11152         * libio/bug-fclose1.c: Delete.
11153
11154 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
11155
11156         * manual/arith.texi (feenableexcept): Fix typo.
11157         (fedisableexcept): Likewise.
11158
11159 2012-11-30  Roland McGrath  <roland@hack.frob.com>
11160
11161         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
11162         second, differently-typed declaration, rather than a cast.
11163
11164 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11165
11166         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
11167         * include/rpc/svc.h: ... here.
11168
11169 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
11170
11171         [BZ #13013]
11172         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
11173         depending n and resplen2 to catch cases where answer
11174         equals answerp2.
11175
11176 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
11177
11178         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
11179         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
11180
11181 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
11182
11183         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
11184
11185 2012-11-29  Roland McGrath  <roland@hack.frob.com>
11186
11187         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
11188
11189 2012-11-28  Jeff Law  <law@redhat.com>
11190
11191         [BZ #13761]
11192         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
11193         dataset_temporary.  Track alloca usage into alloca_used.
11194         If dataset is large allocate and release it via malloc/free.
11195
11196 2012-06-04  Florian Weimer  <fweimer@redhat.com>
11197
11198         [BZ #14197]
11199         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
11200
11201 2012-11-28  David S. Miller  <davem@davemloft.net>
11202
11203         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11204
11205 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
11206
11207         [BZ #14803]
11208         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
11209         of pi/2 rounded to nearest to 64 bits.
11210         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
11211         nearest to 64 bits.
11212         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
11213         bits.
11214
11215 2012-11-28  Jeff Law <law@redhat.com>
11216             Martin Osvald <mosvald@redhat.com>
11217
11218         [BZ #14889]
11219         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
11220         * sunrpc/svc.c: Include time.h.
11221         (__svc_accept_failed): New function.
11222         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
11223         any reason other than EINTR, call __svc_accept_failed.
11224         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
11225         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
11226
11227 2012-11-28  Andreas Schwab  <schwab@suse.de>
11228
11229         * scripts/abilist.awk: Also handle indirect functions in .opd
11230         section.
11231
11232 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
11233
11234         [BZ #13881]
11235         * sysdeps/x86/fpu/powl_helper.c: New file.
11236         * sysdeps/x86/fpu/Makefile: Likewise.
11237         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
11238         (p3): New object.
11239         (__ieee754_powl): Use __powl_helper for finite arguments except
11240         integer exponents below 8.
11241         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
11242         (p3): New object.
11243         (__ieee754_powl): Use __powl_helper for finite arguments except
11244         integer exponents below 8.
11245         * math/libm-test.inc (pow_test): Add more tests and enable some
11246         previously disabled tests.
11247         * sysdeps/i386/fpu/libm-test-ulps: Update.
11248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11249
11250 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11251             Carlos O'Donell  <carlos_odonell@mentor.com>
11252
11253         * nss/makedb.c (is_prime): Assert that input is odd and greater
11254         than 4.  Note that fact in a comment too.
11255         (next_prime): Add 4 to input.
11256
11257 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11258
11259         [BZ #11741]
11260         * libio/Makefile (tests): Add test case tst-fwrite-error.
11261         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
11262         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
11263         * libio/tst-fwrite-error.c: New test case.
11264
11265 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
11266
11267         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
11268         before casting to void *.
11269         * include/libc-internal.h (__pointer_type): New macro.
11270         (__integer_if_pointer_type_sub): Likewise.
11271         (__integer_if_pointer_type): Likewise.
11272         (cast_to_integer): Likewise.
11273         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
11274         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
11275         before casting to atomic64_t.
11276         (atomic_exchange_acq): Likewise.
11277         (__arch_exchange_and_add_body): Likewise.
11278         (__arch_add_body): Likewise.
11279         (atomic_add_negative): Likewise.
11280         (atomic_add_zero): Likewise.
11281
11282 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
11283
11284         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
11285         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
11286         (add_fdes): Likewise.
11287         (linear_search_fdes): Likewise.
11288         (binary_search_unencoded_fdes): Likewise.
11289
11290 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
11291
11292         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
11293
11294 2012-11-24  Adam Conrad  <adconrad@0c3.net>
11295
11296         * configure.in: Autodetect C++ header directories.
11297         * configure: Regenerated.
11298
11299 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
11300
11301         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
11302
11303 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
11304
11305         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11306
11307 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
11308
11309         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
11310         LDBL_MANT_DIG == 106]: Disable some tests.
11311         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11312         Likewise.
11313         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11314         Likewise.
11315
11316         [BZ #14871]
11317         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
11318         input for small inputs.  Return +/- pi/2 for large inputs.
11319         * math/libm-test.inc (atan_test): Add more tests.
11320
11321         * sysdeps/generic/unwind-dw2-fde-glibc.c
11322         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
11323         __attribute__ ((unused)).
11324
11325         [BZ #14645]
11326         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
11327         x * y if x and y are nonzero and z is zero.
11328
11329         [BZ #14811]
11330         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
11331         nonzero exponents with absolute value below 0x1p-117 to +/-
11332         0x1p-117.
11333
11334         [BZ #14869]
11335         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
11336         up arguments below 2**-450, not just those below 2**-500.
11337         * math/libm-test.inc (hypot_test): Add another test.
11338
11339         [BZ #14868]
11340         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11341         Return a+b for ratio over 2**120, not 2**60.
11342         * math/libm-test.inc (hypot_test): Add another test.
11343
11344         * math/libm-test.inc (clog_test): Use
11345         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
11346         (clog10_test): Likewise.
11347
11348         [BZ #6778]
11349         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
11350
11351 2012-11-22  Andreas Schwab  <schwab@suse.de>
11352
11353         * sysdeps/i386/fpu/libm-test-ulps: Update.
11354
11355 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
11356
11357         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
11358         printf output with newline.
11359
11360 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
11361
11362         [BZ #14865]
11363         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
11364         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
11365         -z nodlopen, -z initfirst and -z execstack support.
11366         * configure: Regenerated.
11367
11368         * elf/elf.h (DF_1_NODIRECT): New macro.
11369         (DF_1_IGNMULDEF): Likewise.
11370         (DF_1_NOKSYMS): Likewise.
11371         (DF_1_NOHDR): Likewise.
11372         (DF_1_EDITED): Likewise.
11373         (DF_1_NORELOC): Likewise.
11374         (DF_1_SYMINTPOSE): Likewise.
11375         (DF_1_GLOBAUDIT): Likewise.
11376         (DF_1_SINGLETON): Likewise.
11377         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
11378         DT_1_SUPPORTED_MASK bits.
11379         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
11380
11381 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
11382
11383         * sysdeps/unix/make-syscalls.sh: Document prefixes.
11384
11385 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
11386
11387         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
11388         macro.
11389
11390         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
11391         (sendmmsg): Move declarations...
11392         * socket/sys/socket.h: ... here.
11393         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
11394         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
11395         include it from...
11396         * socket/recvmmsg.c: ... this new file.
11397         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
11398         (sendmmsg): Rename to __sendmmsg, create weak alias and make
11399         definition of __sendmmsg hidden.
11400         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
11401         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
11402         Move ENOSYS stub into and include it from...
11403         * socket/sendmmsg.c: ... this new file.
11404         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
11405         (sysdep_routines): Move recvmmsg and sendmmsg...
11406         * socket/Makefile (routines): ... here.
11407         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
11408         (GLIBC_PRIVATE): Add __sendmmsg.
11409         * include/sys/socket.h (__sendmmsg): Add declarations.
11410         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
11411         sendmmsg.
11412
11413 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
11414
11415         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
11416         variable I1 with __attribute__ ((unused)).
11417         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11418
11419 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
11420
11421         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
11422         DUMMY variables with __attribute__ ((unused)).
11423
11424         * bits/byteswap.h: Include <bits/types.h>.
11425         (__bswap_64): Use __uint64_t instead of unsigned long long int.
11426
11427 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
11428
11429         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
11430         string_t.  Do not manually set errno.
11431         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
11432         length with __strnlen.  Make sure to both set errno and return it on
11433         failure.
11434
11435 2012-11-19  David S. Miller  <davem@davemloft.net>
11436
11437         With help from Joseph Myers.
11438         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
11439         very large arguments properly.
11440         * math/libm-test.inc (atan_test): New tests.
11441         (atan2_test): New tests.
11442         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11443         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11444
11445 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
11446
11447         [BZ #14856]
11448         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
11449         Define to 3.
11450
11451         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
11452         [POSIX] (EADDRNOTAVAIL): Likewise.
11453         [POSIX] (EAFNOSUPPORT): Likewise.
11454         [POSIX] (EALREADY): Likewise.
11455         [POSIX] (ECONNABORTED): Likewise.
11456         [POSIX] (ECONNREFUSED): Likewise.
11457         [POSIX] (ECONNRESET): Likewise.
11458         [POSIX] (EDESTADDRREQ): Likewise.
11459         [POSIX] (EDQUOT): Likewise.
11460         [POSIX] (EHOSTUNREACH): Likewise.
11461         [POSIX] (EIDRM): Likewise.
11462         [POSIX] (EISCONN): Likewise.
11463         [POSIX] (ELOOP): Likewise.
11464         [POSIX] (EMULTIHOP): Likewise.
11465         [POSIX] (ENETDOWN): Likewise.
11466         [POSIX] (ENETUNREACH): Likewise.
11467         [POSIX] (ENOBUFS): Likewise.
11468         [POSIX] (ENODATA): Likewise.
11469         [POSIX] (ENOLINK): Likewise.
11470         [POSIX] (ENOMSG): Likewise.
11471         [POSIX] (ENOPROTOOPT): Likewise.
11472         [POSIX] (ENOSR): Likewise.
11473         [POSIX] (ENOSTR): Likewise.
11474         [POSIX] (ENOTCONN): Likewise.
11475         [POSIX] (ENOTSOCK): Likewise.
11476         [POSIX] (EOPNOTSUPP): Likewise.
11477         [POSIX] (EOVERFLOW): Likewise.
11478         [POSIX] (EPROTO): Likewise.
11479         [POSIX] (EPROTONOSUPPORT): Likewise.
11480         [POSIX] (EPROTOTYPE): Likewise.
11481         [POSIX] (ESTALE): Likewise.
11482         [POSIX] (ETIME): Likewise.
11483         [POSIX] (ETXTBSY): Likewise.
11484         [POSIX] (EWOULDBLOCK): Likewise.
11485         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
11486         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
11487         [POSIX] (SEEK_CUR): Likewise.
11488         [POSIX] (SEEK_END): Likewise.
11489         [POSIX || UNIX98] (mode_t): Do not require.
11490         [POSIX] (off_t): Likewise.
11491         [POSIX] (pid_t): Likewise.
11492         [POSIX] (sys/stat.h): Do not allow header.
11493         [POSIX] (unistd.h): Likewise.
11494         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
11495         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
11496         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
11497         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
11498         require.
11499         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
11500         sigevent): Specify elements.
11501         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
11502         entry.
11503         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
11504         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
11505
11506         * conform/data/cpio.h-data [POSIX]: Disable whole file.
11507         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
11508         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
11509         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
11510         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
11511         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
11512         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
11513         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
11514         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
11515         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
11516         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
11517         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
11518         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
11519         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
11520         Likewise.
11521         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
11522         Likewise.
11523         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
11524         Likewise.
11525         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
11526         Likewise.
11527         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
11528         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
11529         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
11530         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
11531         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
11532         Specify lower bound on value.
11533         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
11534         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
11535         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
11536         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
11537         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
11538         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
11539         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
11540         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
11541         value.
11542         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
11543         as optional.
11544         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
11545         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
11546         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
11547         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
11548         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
11549         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
11550         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
11551         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
11552         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
11553         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
11554         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
11555         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
11556         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
11557         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
11558         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
11559         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
11560         entry.
11561         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
11562         optional.
11563         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
11564         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
11565         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
11566         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
11567         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
11568         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
11569         Likewise.
11570         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
11571         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
11572         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
11573         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
11574         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
11575         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
11576         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
11577         as optional.
11578         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
11579         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
11580         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
11581         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
11582         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
11583         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
11584         specify as optional.
11585         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
11586         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
11587         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
11588         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
11589         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
11590         [XPG3] (NL_LANGMAX): Likewise.
11591         [POSIX || XPG3] (NL_MSGMAX): Likewise.
11592         [POSIX || XPG3] (NL_NMAX): Likewise.
11593         [POSIX || XPG3] (NL_SETMAX): Likewise.
11594         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
11595         [XPG3] (NZERO): Likewise.
11596         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
11597         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
11598         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
11599         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
11600         (REG_ERANGE): Expect.
11601         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
11602         optional-constant.
11603         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
11604         Use (void) in prototype.
11605         [POSIX] (*_t): Allow.
11606         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
11607         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
11608         (WRDE_BADVAL): Expect.
11609
11610         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
11611         expect.
11612         [XPG3 || XPG4] (O_RSYNC): Likewise.
11613         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
11614         Likewise.
11615         [XPG3 || XPG4] (pthread_sigmask): Likewise.
11616         [XPG3 || XPG4] (sigqueue): Likewise.
11617         [XPG3 || XPG4] (sigtimedwait): Likewise.
11618         [XPG3 || XPG4] (sigwaitinfo): Likewise.
11619         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
11620         [XPG3 || XPG4] (vsnprintf): Likewise.
11621         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
11622         Likewise.
11623         [XPG3 || XPG4] (blksize_t): Likewise.
11624         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
11625         Likewise.
11626         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
11627         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
11628         [XPG3 || XPG4] (struct itimerspec): Likewise.
11629         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
11630         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
11631         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
11632         [XPG3 || XPG4] (clockid_t): Likewise.
11633         [XPG3 || XPG4] (timer_t): Likewise.
11634         [XPG3 || XPG4] (clock_getres): Likewise.
11635         [XPG3 || XPG4] (clock_gettime): Likewise.
11636         [XPG3 || XPG4] (clock_settime): Likewise.
11637         [XPG3 || XPG4] (nanosleep): Likewise.
11638         [XPG3 || XPG4] (timer_create): Likewise.
11639         [XPG3 || XPG4] (timer_delete): Likewise.
11640         [XPG3 || XPG4] (timer_gettime): Likewise.
11641         [XPG3 || XPG4] (timer_getoverrun): Likewise.
11642         [XPG3 || XPG4] (timer_settime): Likewise.
11643         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
11644         [XPG3 || XPG4] (getlogin_r): Likewise.
11645         [XPG3 || XPG4] (pread): Likewise.
11646         [XPG3 || XPG4] (pthread_atfork): Likewise.
11647         [XPG3 || XPG4] (pwrite): Likewise.
11648
11649         [BZ #14835]
11650         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
11651         <bits/siginfo.h>.
11652
11653 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
11654
11655         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
11656         finalizing MALLSTREAM.
11657
11658         * sysdeps/mach/hurd/syncfs.c: New file.
11659
11660 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11661
11662         [BZ #14719]
11663         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
11664         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
11665         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
11666         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
11667         (_nss_dns_gethostbyname4_r): Likewise.
11668         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
11669         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
11670
11671 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
11672
11673         [BZ #13763]
11674         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
11675
11676 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
11677
11678         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
11679         * elf/cache.c (print_entry): Print ",AArch64" for
11680         FLAG_AARCH64_LIB64
11681
11682         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
11683         * elf/cache.c (print_entry): Print ",hard-float" for
11684         FLAG_ARM_LIBHF.
11685
11686 2012-11-18  David S. Miller  <davem@davemloft.net>
11687
11688         With help from Joseph Myers.
11689         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
11690         cutoff to 2**-13.
11691         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
11692         cutoff to 2**-25.
11693         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
11694         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
11695         small.
11696         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
11697         * math/libm-test.inc (y0_test): New tests.
11698         (y1_test): New tests.
11699         * sysdeps/i386/fpu/libm-test-ulps: Update.
11700         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11701         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11702
11703 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
11704
11705         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
11706         64-bit targets.
11707         * configure: Regenerated.
11708
11709 2012-11-17  David S. Miller  <davem@davemloft.net>
11710
11711         [BZ #14811]
11712         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
11713         nonzero exponents with absolute value below 0x1p-128 to +/-
11714         0x1p-128.
11715
11716 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
11717
11718         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
11719
11720         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
11721
11722         * posix/getconf-speclist.c: New file.
11723         * posix/posix-envs.def: Likewise.
11724         * posix/confstr.c (START_ENV_GROUP): New macro.
11725         (END_ENV_GROUP): Likewise.
11726         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
11727         (KNOWN_PRESENT_ENV_STRING): Likewise.
11728         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
11729         (UNKNOWN_ENVIRONMENT): Likewise.
11730         (confstr): Include posix-envs.def instead of handling
11731         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
11732         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
11733         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
11734         (END_ENV_GROUP): Likewise.
11735         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
11736         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
11737         (UNKNOWN_ENVIRONMENT): Likewise.
11738         (__sysconf): Include posix-envs.def instead of handling associated
11739         cases directly here.
11740         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
11741         preprocessing getconf-speclist.c rather than running getconf or
11742         generating empty file.
11743
11744 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
11745
11746         * scripts/check-local-headers.sh: Ignore 'mach' headers.
11747
11748 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
11749
11750         [BZ #14672]
11751         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
11752
11753 2012-11-16  David S. Miller  <davem@davemloft.net>
11754
11755         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
11756         smaller than LDBL_EPSILON/2.0L, just return xm1.
11757
11758 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
11759
11760         * elf/tst-array1.c (init): Set constructor priority to 1000.
11761         (fini): Set destructor priority to 1000.
11762         * elf/tst-array2dep.c: Likewise.
11763
11764 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
11765
11766         [BZ #11741]
11767         * libio/fileops.c (_IO_new_file_write): Correctly return error.
11768         (_IO_new_file_xsputn): Also return EOF if none of the input
11769         data was written when overflow failed.
11770         * libio/iopadn.c (_IO_padn): Likewise.
11771         * libio/iowpadn.c (_IO_wpadn): Likewise.
11772         * stdio-common/tst-put-error.c: Add copyright notice.
11773         (do_test): Add case for printing padded string.
11774         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
11775         _IO_padn returned error.
11776         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
11777         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
11778         return EOF.
11779
11780 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
11781
11782         * libio/libioP.h: Add comment note that the references to C++
11783         bits are now obsolete.
11784
11785 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11786
11787         * math/libm-test.inc (check_complex): Use asprintf.
11788
11789 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
11790
11791         * debug/pcprofiledump.c (print_version): Update copyright year.
11792         * malloc/memusagestat.c (print_version): Likewise.
11793
11794 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
11795
11796         [BZ #14831]
11797         * elf/Makefile (tests): Add tst-audit8.
11798         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
11799         ($(objpfx)tst-audit8.out): New target.
11800         (tst-audit8-ENV): New variable.
11801         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
11802         audit if l_reloc_result is NULL.
11803         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
11804         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
11805         * elf/tst-audit8.c: New file.
11806
11807 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11808
11809         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
11810         * misc/Makefile (CFLAGS-select.c): Define.
11811         * posix/Makefile (CFLAGS-pause.c): Define.
11812
11813 2012-11-13  David S. Miller  <davem@davemloft.net>
11814
11815         * crypt/Makefile: Move test targets after toplevel Rules
11816         inclusion.  Grab any necessary sysdep routines when linking.
11817         * crypt/md5.c (md5_process_block): Remove define, we will always
11818         name it __md5_process_block.
11819         (md5_finish_ctx): Update md5_process_block call.
11820         (md5_stream): Likewise.
11821         (md5_process_bytes): Likewise.
11822         (md5_process_block): Rename to __md5_process_block and move to ...
11823         * crypt/md5-block.c: ... here.
11824         * crypt/sha256.c (sha256_process_block): Move to ...
11825         * crypt/sha256-block.c: ... here.
11826         * crypt/sha512.c (sha512_process_block): Move to ...
11827         * crypt/sha512-block.c: ... here.
11828         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
11829         path.
11830         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
11831         * sysdeps/sparc/sparc64/multiarch/Makefile
11832         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
11833         crypt subdir.
11834         (localedef-aux): Add md5 crypto assembler when in locale subdir.
11835         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
11836         multiarch changes.
11837         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
11838         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
11839         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
11840         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
11841         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
11842         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
11843         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
11844         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
11845         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
11846         file.
11847         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
11848         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
11849         file.
11850         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
11851
11852 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
11853
11854         * timezone/tzselect.ksh: Update from tzcode git revision
11855         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
11856         * timezone/zdump.c: Likewise.
11857         * timezone/zic.c: Likewise.
11858         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
11859         in TZVERSION setting, not $(PKGVERSION).
11860         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
11861         REPORT_BUGS_TO settings.
11862
11863         [BZ #14838]
11864         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
11865         macro.
11866
11867 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11868
11869         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
11870         detection to immediately after _FP_ROUND().
11871         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
11872         bits are 0.
11873
11874 2012-11-11  David S. Miller  <davem@davemloft.net>
11875
11876         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
11877         inttypes.h
11878         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
11879         __close rather than their public counterparts.
11880
11881 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
11882
11883         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
11884         file.
11885         [UNIX98] (sem_timedwait): Do not expect.
11886         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
11887         [XPG4 || UNIX98] (sockatmark): Do not expect.
11888         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
11889         (clock_getcpuclockid): Do not expect.
11890         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
11891         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
11892         Do not expect.
11893         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
11894         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
11895         [UNIX98] (vwscanf): Likewise.
11896         [UNIX98] (vswscanf): Likewise.
11897
11898 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
11899
11900         * timezone/version.h: Remove file.
11901         * timezone/README: Do not refer to version.h.
11902         * timezone/Makefile ($(objpfx)zic.o): New dependency on
11903         $(objpfx)version.h.
11904         ($(objpfx)zdump.o): Likewise.
11905         ($(objpfx)version.h): New target.
11906
11907         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
11908         2012i.
11909         * timezone/README: Don't mention modification to tzselect.ksh.
11910         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
11911         work on unmodified tzselect.ksh.  Substitute version numbers in
11912         tzselect.ksh.
11913
11914         * Makefile (format-me): Remove.
11915         (INSTALL): Adjust indentation.  Use commands directly instead of
11916         using $(format-me).
11917
11918         * aclocal.m4 (ACX_PKGVERSION): New macro.
11919         (ACX_BUGURL): Likewise.
11920         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
11921         (PKGVERSION): New AC_DEFINE_UNQUOTED.
11922         (REPORT_BUGS_TO): Likewise.
11923         * configure: Regenerated.
11924         * config.h.in (PKGVERSION): New macro.
11925         (REPORT_BUGS_TO): Likewise.
11926         * config.make.in (PKGVERSION): New variable.
11927         (PKGVERSION_TEXI): Likewise.
11928         (REPORT_BUGS_TO): Likewise.
11929         (REPORT_BUGS_TEXI): Likewise.
11930         * Makefile (format-me): Use -I$(common-objpfx)manual.
11931         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
11932         ($(common-objpfx)manual/%): New target.
11933         (manual/%): Remove target.
11934         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
11935         (print_version): Use PKGVERSION.
11936         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
11937         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
11938         and REPORT_BUGS_TO.
11939         ($(objpfx)xtrace): Likewise.
11940         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
11941         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
11942         (print_version): Use PKGVERSION.
11943         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
11944         (do_version): Use PKGVERSION.
11945         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
11946         REPORT_BUGS_TO.
11947         (common-ldd-rewrite): Likewise.
11948         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
11949         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
11950         (print_version): Use PKGVERSION.
11951         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
11952         * elf/pldd.c (argp_program_bug_address): Remove variable.
11953         (more_help): New function.
11954         (argp): Use more_help.
11955         (print_version): Use PKGVERSION.
11956         * elf/sln.c (main): Use PKGVERSION.
11957         (usage): Use REPORT_BUGS_TO.
11958         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
11959         (top level): Use PKGVERSION.
11960         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
11961         (print_version): Use PKGVERSION.
11962         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
11963         (print_version): Use PKGVERSION.
11964         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
11965         (print_version): Use PKGVERSION.
11966         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
11967         (print_version): Use PKGVERSION.
11968         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
11969         (print_version): Use PKGVERSION.
11970         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
11971         (print_version): Use PKGVERSION.
11972         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
11973         and BUGURL.
11974         ($(objpfx)memusage): Likewise.
11975         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
11976         (do_version): Use PKGVERSION.
11977         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
11978         (print_version): Use PKGVERSION.
11979         * malloc/mtrace.pl ($PACKAGE): Remove variable.
11980         ($PKGVERSION): New variable.
11981         ($REPORT_BUGS_TO): Likewise.
11982         (usage): Use $REPORT_BUGS_TO.
11983         (top level): Use $PKGVERSION.
11984         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
11985         ($(objpfx)pkgvers.texi): New rule.
11986         ($(objpfx)stamp-pkgvers): Likewise.
11987         * manual/install.texi: Include pkgvers.texi.
11988         (--with-pkgversion): Document new configure option.
11989         (--with-bugurl): Likewise.
11990         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
11991         than necessarily for this particular distribution.  Use
11992         REPORT_BUGS_TO for where to report bugs.
11993         * INSTALL: Regenerated.
11994         * manual/libc.texinfo: Include pkgvers.texi.
11995         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
11996         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
11997         (print_version): Use PKGVERSION.
11998         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
11999         (print_version): Use PKGVERSION.
12000         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
12001         (print_version): Use PKGVERSION.
12002         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
12003         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
12004         macro.
12005         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
12006         (print_version): Use PKGVERSION.
12007         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
12008         (print_version): Use PKGVERSION.
12009         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
12010         and PKGVERSION.
12011
12012         * timezone/checktab.awk: Update from tzcode 2012i.
12013         * timezone/ialloc.c: Likewise.
12014         * timezone/private.h: Likewise.
12015         * timezone/scheck.c: Likewise.
12016         * timezone/tzfile.h: Likewise.
12017         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
12018         (TZVERSION): Hardcode tzcode version number.
12019         * timezone/zdump.c: Update from tzcode 2012i.
12020         * timezone/zic.c: Likewise.
12021         * timezone/version.h: New file.
12022         * timezone/README: Describe version.h.  Update upstream location.
12023
12024         [BZ #14824]
12025         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
12026         (mktemp): Enable declaration.
12027         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
12028         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
12029         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
12030         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
12031         Likewise.
12032         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
12033         Likewise.
12034         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
12035         Likewise.
12036         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
12037         Likewise.
12038         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
12039         Likewise.
12040         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
12041         Likewise.
12042
12043         [BZ #14821]
12044         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
12045         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
12046         for copies of such integer values.
12047         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
12048         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
12049
12050 2012-11-09  Andreas Jaeger  <aj@suse.de>
12051
12052         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
12053         definitions and declarations that are provided by
12054         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
12055
12056 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12057
12058         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
12059         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
12060         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
12061         definition.
12062
12063 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12064
12065         * elf/elf.h: Update comment before AArch64 relocations.
12066
12067 2012-11-07  David S. Miller  <davem@davemloft.net>
12068
12069         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
12070         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12071         (__start_context): Declare.
12072         (__makecontext_ret): Delete.
12073         (__makecontext): Hook up __start_context instead of
12074         __makecontext_ret.
12075         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
12076         (sysdep_routines): Add __start_context when in stdlib.
12077
12078 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12079
12080         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
12081         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
12082         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
12083         hardcoded "nm".
12084         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
12085         (READELF): New variable.  Use it instead of hardcoded "readelf".
12086
12087 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
12088
12089         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
12090         * sysdeps/x86/Makefile: Here.
12091         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
12092         * sysdeps/x86/tst-xmmymm.sh: This.
12093
12094 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12095
12096         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
12097         expectations.
12098         [UNIX98] (pthread_barrier_t): Do not expect.
12099         [UNIX98] (pthread_barrierattr_t): Likewise.
12100         [UNIX98] (pthread_spinlock_t): Likewise.
12101         [UNIX98] (pthread_barrier_destroy): Likewise.
12102         [UNIX98] (pthread_barrier_init): Likewise.
12103         [UNIX98] (pthread_barrier_wait): Likewise.
12104         [UNIX98] (pthread_barrierattr_destroy): Likewise.
12105         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
12106         [UNIX98] (pthread_barrierattr_init): Likewise.
12107         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
12108         [UNIX98] (pthread_getcpuclockid): Likewise.
12109         [UNIX98] (pthread_mutex_timedlock): Likewise.
12110         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
12111         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
12112         [UNIX98] (pthread_sigmask): Likewise.
12113         [UNIX98] (pthread_spin_destroy): Likewise.
12114         [UNIX98] (pthread_spin_init): Likewise.
12115         [UNIX98] (pthread_spin_lock): Likewise.
12116         [UNIX98] (pthread_spin_trylock): Likewise.
12117         [UNIX98] (pthread_spin_unlock): Likewise.
12118         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
12119         Do not expect.
12120         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
12121         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
12122         [XPG3 || XPG4] (pthread_cond_t): Likewise.
12123         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
12124         [XPG3 || XPG4] (pthread_key_t): Likewise.
12125         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
12126         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
12127         [XPG3 || XPG4] (pthread_once_t): Likewise.
12128         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
12129         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
12130         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
12131         [XPG3 || XPG4] (pthread_t): Likewise.
12132
12133         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
12134         not expect.
12135         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
12136
12137         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
12138         Change function return type to int.
12139
12140         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
12141         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
12142         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
12143         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
12144         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
12145         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
12146         [!POSIX] (posix_madvise): Likewise.
12147         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
12148         && !UNIX98].
12149         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
12150         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
12151         (mode_t): Likewise.
12152         (posix_mem_offset): Likewise.
12153         (posix_typed_mem_get_info): Likewise.
12154         (posix_typed_mem_open): Likewise.
12155
12156         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
12157         Change condition to [XOPEN2K8].
12158
12159         * conform/conformtest.pl: Preprocess allow-header data with -x c
12160         instead of from stdin.
12161         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
12162         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
12163         [C99-based standards] (cerfc): Likewise.
12164         [C99-based standards] (cexp2): Likewise.
12165         [C99-based standards] (cexpm1): Likewise.
12166         [C99-based standards] (clog10): Likewise.
12167         [C99-based standards] (clog1p): Likewise.
12168         [C99-based standards] (clog2): Likewise.
12169         [C99-based standards] (clgamma): Likewise.
12170         [C99-based standards] (ctgamma): Likewise.
12171         [C99-based standards] (cerff): Likewise.
12172         [C99-based standards] (cerfcf): Likewise.
12173         [C99-based standards] (cexp2f): Likewise.
12174         [C99-based standards] (cexpm1f): Likewise.
12175         [C99-based standards] (clog10f): Likewise.
12176         [C99-based standards] (clog1pf): Likewise.
12177         [C99-based standards] (clog2f): Likewise.
12178         [C99-based standards] (clgammaf): Likewise.
12179         [C99-based standards] (ctgammaf): Likewise.
12180         [C99-based standards] (cerfl): Likewise.
12181         [C99-based standards] (cerfcl): Likewise.
12182         [C99-based standards] (cexp2l): Likewise.
12183         [C99-based standards] (cexpm1l): Likewise.
12184         [C99-based standards] (clog10l): Likewise.
12185         [C99-based standards] (clog1pl): Likewise.
12186         [C99-based standards] (clog2l): Likewise.
12187         [C99-based standards] (clgammal): Likewise.
12188         [C99-based standards] (ctgammal): Likewise.
12189         * conform/data/inttypes.h-data [C99-based standards]: Include
12190         stdint.h-data.  Remove all expectations for stdint.h contents.
12191         [C99-based standards] (PRI*): Do not allow.
12192         [C99-based standards] (SCN*): Likewise.
12193         [C99-based standards] (*_t): Likewise.
12194         [C99-based-standards] (PRId8): Expect macro.
12195         [C99-based-standards] (PRIi8): Likewise.
12196         [C99-based-standards] (PRIo8): Likewise.
12197         [C99-based-standards] (PRIu8): Likewise.
12198         [C99-based-standards] (PRIx8): Likewise.
12199         [C99-based-standards] (PRIX8): Likewise.
12200         [C99-based-standards] (SCNd8): Likewise.
12201         [C99-based-standards] (SCNi8): Likewise.
12202         [C99-based-standards] (SCNo8): Likewise.
12203         [C99-based-standards] (SCNu8): Likewise.
12204         [C99-based-standards] (SCNx8): Likewise.
12205         [C99-based-standards] (PRIdLEAST8): Likewise.
12206         [C99-based-standards] (PRIiLEAST8): Likewise.
12207         [C99-based-standards] (PRIoLEAST8): Likewise.
12208         [C99-based-standards] (PRIuLEAST8): Likewise.
12209         [C99-based-standards] (PRIxLEAST8): Likewise.
12210         [C99-based-standards] (PRIXLEAST8): Likewise.
12211         [C99-based-standards] (SCNdLEAST8): Likewise.
12212         [C99-based-standards] (SCNiLEAST8): Likewise.
12213         [C99-based-standards] (SCNoLEAST8): Likewise.
12214         [C99-based-standards] (SCNuLEAST8): Likewise.
12215         [C99-based-standards] (SCNxLEAST8): Likewise.
12216         [C99-based-standards] (PRIdFAST8): Likewise.
12217         [C99-based-standards] (PRIiFAST8): Likewise.
12218         [C99-based-standards] (PRIoFAST8): Likewise.
12219         [C99-based-standards] (PRIuFAST8): Likewise.
12220         [C99-based-standards] (PRIxFAST8): Likewise.
12221         [C99-based-standards] (PRIXFAST8): Likewise.
12222         [C99-based-standards] (SCNdFAST8): Likewise.
12223         [C99-based-standards] (SCNiFAST8): Likewise.
12224         [C99-based-standards] (SCNoFAST8): Likewise.
12225         [C99-based-standards] (SCNuFAST8): Likewise.
12226         [C99-based-standards] (SCNxFAST8): Likewise.
12227         [C99-based-standards] (PRId16): Likewise.
12228         [C99-based-standards] (PRIi16): Likewise.
12229         [C99-based-standards] (PRIo16): Likewise.
12230         [C99-based-standards] (PRIu16): Likewise.
12231         [C99-based-standards] (PRIx16): Likewise.
12232         [C99-based-standards] (PRIX16): Likewise.
12233         [C99-based-standards] (SCNd16): Likewise.
12234         [C99-based-standards] (SCNi16): Likewise.
12235         [C99-based-standards] (SCNo16): Likewise.
12236         [C99-based-standards] (SCNu16): Likewise.
12237         [C99-based-standards] (SCNx16): Likewise.
12238         [C99-based-standards] (PRIdLEAST16): Likewise.
12239         [C99-based-standards] (PRIiLEAST16): Likewise.
12240         [C99-based-standards] (PRIoLEAST16): Likewise.
12241         [C99-based-standards] (PRIuLEAST16): Likewise.
12242         [C99-based-standards] (PRIxLEAST16): Likewise.
12243         [C99-based-standards] (PRIXLEAST16): Likewise.
12244         [C99-based-standards] (SCNdLEAST16): Likewise.
12245         [C99-based-standards] (SCNiLEAST16): Likewise.
12246         [C99-based-standards] (SCNoLEAST16): Likewise.
12247         [C99-based-standards] (SCNuLEAST16): Likewise.
12248         [C99-based-standards] (SCNxLEAST16): Likewise.
12249         [C99-based-standards] (PRIdFAST16): Likewise.
12250         [C99-based-standards] (PRIiFAST16): Likewise.
12251         [C99-based-standards] (PRIoFAST16): Likewise.
12252         [C99-based-standards] (PRIuFAST16): Likewise.
12253         [C99-based-standards] (PRIxFAST16): Likewise.
12254         [C99-based-standards] (PRIXFAST16): Likewise.
12255         [C99-based-standards] (SCNdFAST16): Likewise.
12256         [C99-based-standards] (SCNiFAST16): Likewise.
12257         [C99-based-standards] (SCNoFAST16): Likewise.
12258         [C99-based-standards] (SCNuFAST16): Likewise.
12259         [C99-based-standards] (SCNxFAST16): Likewise.
12260         [C99-based-standards] (PRId32): Likewise.
12261         [C99-based-standards] (PRIi32): Likewise.
12262         [C99-based-standards] (PRIo32): Likewise.
12263         [C99-based-standards] (PRIu32): Likewise.
12264         [C99-based-standards] (PRIx32): Likewise.
12265         [C99-based-standards] (PRIX32): Likewise.
12266         [C99-based-standards] (SCNd32): Likewise.
12267         [C99-based-standards] (SCNi32): Likewise.
12268         [C99-based-standards] (SCNo32): Likewise.
12269         [C99-based-standards] (SCNu32): Likewise.
12270         [C99-based-standards] (SCNx32): Likewise.
12271         [C99-based-standards] (PRIdLEAST32): Likewise.
12272         [C99-based-standards] (PRIiLEAST32): Likewise.
12273         [C99-based-standards] (PRIoLEAST32): Likewise.
12274         [C99-based-standards] (PRIuLEAST32): Likewise.
12275         [C99-based-standards] (PRIxLEAST32): Likewise.
12276         [C99-based-standards] (PRIXLEAST32): Likewise.
12277         [C99-based-standards] (SCNdLEAST32): Likewise.
12278         [C99-based-standards] (SCNiLEAST32): Likewise.
12279         [C99-based-standards] (SCNoLEAST32): Likewise.
12280         [C99-based-standards] (SCNuLEAST32): Likewise.
12281         [C99-based-standards] (SCNxLEAST32): Likewise.
12282         [C99-based-standards] (PRIdFAST32): Likewise.
12283         [C99-based-standards] (PRIiFAST32): Likewise.
12284         [C99-based-standards] (PRIoFAST32): Likewise.
12285         [C99-based-standards] (PRIuFAST32): Likewise.
12286         [C99-based-standards] (PRIxFAST32): Likewise.
12287         [C99-based-standards] (PRIXFAST32): Likewise.
12288         [C99-based-standards] (SCNdFAST32): Likewise.
12289         [C99-based-standards] (SCNiFAST32): Likewise.
12290         [C99-based-standards] (SCNoFAST32): Likewise.
12291         [C99-based-standards] (SCNuFAST32): Likewise.
12292         [C99-based-standards] (SCNxFAST32): Likewise.
12293         [C99-based-standards] (PRId64): Likewise.
12294         [C99-based-standards] (PRIi64): Likewise.
12295         [C99-based-standards] (PRIo64): Likewise.
12296         [C99-based-standards] (PRIu64): Likewise.
12297         [C99-based-standards] (PRIx64): Likewise.
12298         [C99-based-standards] (PRIX64): Likewise.
12299         [C99-based-standards] (SCNd64): Likewise.
12300         [C99-based-standards] (SCNi64): Likewise.
12301         [C99-based-standards] (SCNo64): Likewise.
12302         [C99-based-standards] (SCNu64): Likewise.
12303         [C99-based-standards] (SCNx64): Likewise.
12304         [C99-based-standards] (PRIdLEAST64): Likewise.
12305         [C99-based-standards] (PRIiLEAST64): Likewise.
12306         [C99-based-standards] (PRIoLEAST64): Likewise.
12307         [C99-based-standards] (PRIuLEAST64): Likewise.
12308         [C99-based-standards] (PRIxLEAST64): Likewise.
12309         [C99-based-standards] (PRIXLEAST64): Likewise.
12310         [C99-based-standards] (SCNdLEAST64): Likewise.
12311         [C99-based-standards] (SCNiLEAST64): Likewise.
12312         [C99-based-standards] (SCNoLEAST64): Likewise.
12313         [C99-based-standards] (SCNuLEAST64): Likewise.
12314         [C99-based-standards] (SCNxLEAST64): Likewise.
12315         [C99-based-standards] (PRIdFAST64): Likewise.
12316         [C99-based-standards] (PRIiFAST64): Likewise.
12317         [C99-based-standards] (PRIoFAST64): Likewise.
12318         [C99-based-standards] (PRIuFAST64): Likewise.
12319         [C99-based-standards] (PRIxFAST64): Likewise.
12320         [C99-based-standards] (PRIXFAST64): Likewise.
12321         [C99-based-standards] (SCNdFAST64): Likewise.
12322         [C99-based-standards] (SCNiFAST64): Likewise.
12323         [C99-based-standards] (SCNoFAST64): Likewise.
12324         [C99-based-standards] (SCNuFAST64): Likewise.
12325         [C99-based-standards] (SCNxFAST64): Likewise.
12326         [C99-based-standards] (PRIdMAX): Likewise.
12327         [C99-based-standards] (PRIiMAX): Likewise.
12328         [C99-based-standards] (PRIoMAX): Likewise.
12329         [C99-based-standards] (PRIuMAX): Likewise.
12330         [C99-based-standards] (PRIxMAX): Likewise.
12331         [C99-based-standards] (PRIXMAX): Likewise.
12332         [C99-based-standards] (SCNdMAX): Likewise.
12333         [C99-based-standards] (SCNiMAX): Likewise.
12334         [C99-based-standards] (SCNoMAX): Likewise.
12335         [C99-based-standards] (SCNuMAX): Likewise.
12336         [C99-based-standards] (SCNxMAX): Likewise.
12337         [C99-based-standards] (PRIdPTR): Likewise.
12338         [C99-based-standards] (PRIiPTR): Likewise.
12339         [C99-based-standards] (PRIoPTR): Likewise.
12340         [C99-based-standards] (PRIuPTR): Likewise.
12341         [C99-based-standards] (PRIxPTR): Likewise.
12342         [C99-based-standards] (PRIXPTR): Likewise.
12343         [C99-based-standards] (SCNdPTR): Likewise.
12344         [C99-based-standards] (SCNiPTR): Likewise.
12345         [C99-based-standards] (SCNoPTR): Likewise.
12346         [C99-based-standards] (SCNuPTR): Likewise.
12347         [C99-based-standards] (SCNxPTR): Likewise.
12348         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
12349         allow.
12350         * conform/data/stdint.h-data: Update comments to clarify
12351         requirements.
12352         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
12353         type.
12354         [C99-based standards] (INT8_MAX): Likewise.
12355         [C99-based standards] (INT16_MIN): Likewise.
12356         [C99-based standards] (INT16_MAX): Likewise.
12357         [C99-based standards] (INT32_MIN): Likewise.
12358         [C99-based standards] (INT32_MAX): Likewise.
12359         [C99-based standards] (INT64_MIN): Likewise.
12360         [C99-based standards] (INT64_MAX): Likewise.
12361         [C99-based standards] (UINT8_MAX): Likewise.
12362         [C99-based standards] (UINT16_MAX): Likewise.
12363         [C99-based standards] (UINT32_MAX): Likewise.
12364         [C99-based standards] (UINT64_MAX): Likewise.
12365         [C99-based standards] (INT_LEAST8_MIN): Likewise.
12366         [C99-based standards] (INT_LEAST8_MAX): Likewise.
12367         [C99-based standards] (INT_LEAST16_MIN): Likewise.
12368         [C99-based standards] (INT_LEAST16_MAX): Likewise.
12369         [C99-based standards] (INT_LEAST32_MIN): Likewise.
12370         [C99-based standards] (INT_LEAST32_MAX): Likewise.
12371         [C99-based standards] (INT_LEAST64_MIN): Likewise.
12372         [C99-based standards] (INT_LEAST64_MAX): Likewise.
12373         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
12374         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
12375         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
12376         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
12377         [C99-based standards] (INT_FAST8_MIN): Likewise.
12378         [C99-based standards] (INT_FAST8_MAX): Likewise.
12379         [C99-based standards] (INT_FAST16_MIN): Likewise.
12380         [C99-based standards] (INT_FAST16_MAX): Likewise.
12381         [C99-based standards] (INT_FAST32_MIN): Likewise.
12382         [C99-based standards] (INT_FAST32_MAX): Likewise.
12383         [C99-based standards] (INT_FAST64_MIN): Likewise.
12384         [C99-based standards] (INT_FAST64_MAX): Likewise.
12385         [C99-based standards] (UINT_FAST8_MAX): Likewise.
12386         [C99-based standards] (UINT_FAST16_MAX): Likewise.
12387         [C99-based standards] (UINT_FAST32_MAX): Likewise.
12388         [C99-based standards] (UINT_FAST64_MAX): Likewise.
12389         [C99-based standards] (INTPTR_MIN): Likewise.
12390         [C99-based standards] (INTPTR_MAX): Likewise.
12391         [C99-based standards] (UINTPTR_MAX): Likewise.
12392         [C99-based standards] (INTMAX_MIN): Likewise.
12393         [C99-based standards] (INTMAX_MAX): Likewise.
12394         [C99-based standards] (UINTMAX_MAX): Likewise.
12395         [C99-based standards] (PTRDIFF_MIN): Likewise.
12396         [C99-based standards] (PTRDIFF_MAX): Likewise.
12397         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
12398         [C99-based standards] (SIZE_MAX): Likewise.
12399         [C99-based standards] (WCHAR_MAX): Likewise.
12400         [C99-based standards] (WINT_MAX): Likewise.
12401         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
12402         constraint on value.
12403         [C99-based standards] (WCHAR_MIN): Likewise.
12404         [C99-based standards] (WINT_MIN): Likewise.
12405         [C99-based standards] (*_t): Allow.
12406         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
12407         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
12408         Include math.h-data and complex.h-data.  Remove all expectations
12409         of math.h and complex.h contents.
12410         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
12411         at end of line.
12412         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
12413         (struct tm): Expect tag.
12414         [C99-based-standards] (wcstof): Expect function.
12415         [C99-based-standards] (wcstold): Likewise.
12416         [C99-based-standards] (wcstoll): Likewise.
12417         [C99-based-standards] (wcstoull): Likewise.
12418         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
12419         macro-int-constant.  Specify type.
12420         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
12421         constraint on value.
12422         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
12423         Specify type.
12424         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
12425         Specify value.
12426         [ISO C standards]: Do not allow headers.
12427         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
12428         wcs[abcdefghijklmnopqrstuvwxyz]*.
12429         [ISO C standards] (*_t): Do not allow.
12430         * conform/data/wctype.h-data [C99-based standards] (iswblank):
12431         Expect function.
12432         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
12433         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
12434         Specify type.
12435         [ISO C standards]: Do not allow headers.
12436         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
12437         is[abcdefghijklmnopqrstuvwxyz]*.
12438         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
12439         to[abcdefghijklmnopqrstuvwxyz]*.
12440         [ISO C standards] (*_t): Do not allow.
12441         * conform/data/stdalign.h-data: New file.
12442         * conform/data/stdbool.h-data: Likewise.
12443         * conform/data/stdnoreturn.h-data: Likewise.
12444
12445 2012-11-07  Roland McGrath  <roland@hack.frob.com>
12446
12447         [BZ #14815]
12448         * manual/filesys.texi (Directory Entries): Typo fix.
12449         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
12450
12451 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12452
12453         * elf/elf.h (EM_AARCH64): New macro.
12454         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
12455         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
12456         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
12457         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
12458         (R_AARCH64_TLSDESC): Likewise.
12459         (NT_ARM_TLS): Likewise.
12460         (NT_ARM_HW_BREAK): Likewise.
12461         (NT_ARM_HW_WATCH): Likewise.
12462
12463 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12464
12465         [BZ #14811]
12466         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
12467         (__ieee754_powl): Saturate nonzero exponents with absolute value
12468         below 0x1p-79 to +/- 0x1p-79.
12469         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
12470         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
12471         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
12472         nonzero exponents with absolute value below 0x1p-32 to +/-
12473         0x1p-32.
12474         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
12475         (__ieee754_powl): Saturate nonzero exponents with absolute value
12476         below 0x1p-79 to +/- 0x1p-79.
12477         * math/libm-test.inc (pow_test): Add more tests.
12478
12479 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12480
12481         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
12482         _dl_s390_cap_flags with kernel. Increase string length.
12483         (_dl_s390_platforms): Add z196 and zEC12.
12484
12485 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12486
12487         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
12488         Change XOPEN21K to XOPEN2K.
12489
12490 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
12491
12492         * string/memmove.c: Use memcpy when possible.
12493
12494 2012-11-06  Andreas Jaeger  <aj@suse.de>
12495
12496         * po/eo.po: Update from translation team.
12497
12498 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
12499
12500         [BZ #14793]
12501         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
12502         exponent and small x and y exponents, scale x or y up.  Increase
12503         by 2 the exponent used in scaling up.
12504         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12505         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12506         * math/libm-test.inc (fma_test): Add more tests.
12507         (fma_test_towardzero): Likewise.
12508         (fma_test_downward): Likewise.
12509         (fma_test_upward): Likewise.
12510
12511 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
12512
12513         [BZ #14805]
12514         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
12515         fenv_t *.
12516
12517         [BZ #14801]
12518         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
12519         namespace for names of struct fields.
12520         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
12521         fenv_t fields.
12522         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
12523         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
12524
12525 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12526
12527         [BZ #3665]
12528         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
12529
12530 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
12531
12532         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
12533         PTR_DEMANGLE.
12534
12535         [BZ #5246]
12536         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
12537         PTR_DEMANGLE.
12538
12539 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
12540
12541         [BZ #14797]
12542         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
12543         definitely overflow as x * y not x * y + z.
12544         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12545         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12546         * math/libm-test.inc (fma_test): Add more tests.
12547         (fma_test_towardzero): Likewise.
12548         (fma_test_downward): Likewise.
12549         (fma_test_upward): Likewise.
12550
12551 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
12552
12553         [BZ #157]
12554
12555         * include/stub-tag.h: Remove file.
12556         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
12557         '#include' of it.
12558         * manual/maint.texi (Porting): Don't reference it.
12559         * Makerules ($(objpfx)stubs): Likewise.
12560         * dirent/closedir.c: Don't include <stub-tag.h>.
12561         * dirent/dirfd.c: Likewise.
12562         * dirent/fdopendir.c: Likewise.
12563         * dirent/getdents.c: Likewise.
12564         * dirent/getdents64.c: Likewise.
12565         * dirent/opendir.c: Likewise.
12566         * dirent/readdir.c: Likewise.
12567         * dirent/readdir64.c: Likewise.
12568         * dirent/readdir64_r.c: Likewise.
12569         * dirent/readdir_r.c: Likewise.
12570         * dirent/rewinddir.c: Likewise.
12571         * dirent/seekdir.c: Likewise.
12572         * dirent/telldir.c: Likewise.
12573         * gmon/profil.c: Likewise.
12574         * grp/setgroups.c: Likewise.
12575         * inet/if_index.c: Likewise.
12576         * io/access.c: Likewise.
12577         * io/chdir.c: Likewise.
12578         * io/chmod.c: Likewise.
12579         * io/chown.c: Likewise.
12580         * io/close.c: Likewise.
12581         * io/dup.c: Likewise.
12582         * io/dup2.c: Likewise.
12583         * io/dup3.c: Likewise.
12584         * io/euidaccess.c: Likewise.
12585         * io/faccessat.c: Likewise.
12586         * io/fchdir.c: Likewise.
12587         * io/fchmod.c: Likewise.
12588         * io/fchmodat.c: Likewise.
12589         * io/fchown.c: Likewise.
12590         * io/fchownat.c: Likewise.
12591         * io/fcntl.c: Likewise.
12592         * io/flock.c: Likewise.
12593         * io/fstatfs.c: Likewise.
12594         * io/fstatfs64.c: Likewise.
12595         * io/fstatvfs.c: Likewise.
12596         * io/fstatvfs64.c: Likewise.
12597         * io/futimens.c: Likewise.
12598         * io/fxstat.c: Likewise.
12599         * io/fxstat64.c: Likewise.
12600         * io/fxstatat.c: Likewise.
12601         * io/fxstatat64.c: Likewise.
12602         * io/getcwd.c: Likewise.
12603         * io/isatty.c: Likewise.
12604         * io/lchmod.c: Likewise.
12605         * io/lchown.c: Likewise.
12606         * io/link.c: Likewise.
12607         * io/linkat.c: Likewise.
12608         * io/lseek.c: Likewise.
12609         * io/lseek64.c: Likewise.
12610         * io/lxstat64.c: Likewise.
12611         * io/mkdir.c: Likewise.
12612         * io/mkdirat.c: Likewise.
12613         * io/mkfifo.c: Likewise.
12614         * io/mkfifoat.c: Likewise.
12615         * io/open.c: Likewise.
12616         * io/open64.c: Likewise.
12617         * io/openat.c: Likewise.
12618         * io/openat64.c: Likewise.
12619         * io/pipe.c: Likewise.
12620         * io/pipe2.c: Likewise.
12621         * io/poll.c: Likewise.
12622         * io/posix_fadvise.c: Likewise.
12623         * io/posix_fadvise64.c: Likewise.
12624         * io/posix_fallocate.c: Likewise.
12625         * io/posix_fallocate64.c: Likewise.
12626         * io/read.c: Likewise.
12627         * io/readlink.c: Likewise.
12628         * io/readlinkat.c: Likewise.
12629         * io/rmdir.c: Likewise.
12630         * io/sendfile.c: Likewise.
12631         * io/sendfile64.c: Likewise.
12632         * io/statfs.c: Likewise.
12633         * io/statfs64.c: Likewise.
12634         * io/statvfs.c: Likewise.
12635         * io/statvfs64.c: Likewise.
12636         * io/symlink.c: Likewise.
12637         * io/symlinkat.c: Likewise.
12638         * io/ttyname.c: Likewise.
12639         * io/ttyname_r.c: Likewise.
12640         * io/umask.c: Likewise.
12641         * io/unlink.c: Likewise.
12642         * io/unlinkat.c: Likewise.
12643         * io/utime.c: Likewise.
12644         * io/utimensat.c: Likewise.
12645         * io/write.c: Likewise.
12646         * io/xmknod.c: Likewise.
12647         * io/xmknodat.c: Likewise.
12648         * io/xstat.c: Likewise.
12649         * io/xstat64.c: Likewise.
12650         * login/getpt.c: Likewise.
12651         * login/grantpt.c: Likewise.
12652         * login/unlockpt.c: Likewise.
12653         * math/e_acoshl.c: Likewise.
12654         * math/e_acosl.c: Likewise.
12655         * math/e_asinl.c: Likewise.
12656         * math/e_atan2l.c: Likewise.
12657         * math/e_atanhl.c: Likewise.
12658         * math/e_coshl.c: Likewise.
12659         * math/e_expl.c: Likewise.
12660         * math/e_fmodl.c: Likewise.
12661         * math/e_gammal_r.c: Likewise.
12662         * math/e_hypotl.c: Likewise.
12663         * math/e_j0l.c: Likewise.
12664         * math/e_j1l.c: Likewise.
12665         * math/e_jnl.c: Likewise.
12666         * math/e_lgammal_r.c: Likewise.
12667         * math/e_log10l.c: Likewise.
12668         * math/e_log2l.c: Likewise.
12669         * math/e_logl.c: Likewise.
12670         * math/e_powl.c: Likewise.
12671         * math/e_rem_pio2l.c: Likewise.
12672         * math/e_sinhl.c: Likewise.
12673         * math/e_sqrtl.c: Likewise.
12674         * math/fclrexcpt.c: Likewise.
12675         * math/fedisblxcpt.c: Likewise.
12676         * math/feenablxcpt.c: Likewise.
12677         * math/fegetenv.c: Likewise.
12678         * math/fegetexcept.c: Likewise.
12679         * math/fegetround.c: Likewise.
12680         * math/feholdexcpt.c: Likewise.
12681         * math/fesetenv.c: Likewise.
12682         * math/fesetround.c: Likewise.
12683         * math/feupdateenv.c: Likewise.
12684         * math/fgetexcptflg.c: Likewise.
12685         * math/fraiseexcpt.c: Likewise.
12686         * math/fsetexcptflg.c: Likewise.
12687         * math/ftestexcept.c: Likewise.
12688         * math/k_cosl.c: Likewise.
12689         * math/k_rem_pio2l.c: Likewise.
12690         * math/k_sinl.c: Likewise.
12691         * math/k_tanl.c: Likewise.
12692         * math/s_asinhl.c: Likewise.
12693         * math/s_atanl.c: Likewise.
12694         * math/s_cbrtl.c: Likewise.
12695         * math/s_erfl.c: Likewise.
12696         * math/s_expm1l.c: Likewise.
12697         * math/s_log1pl.c: Likewise.
12698         * math/s_tanhl.c: Likewise.
12699         * misc/acct.c: Likewise.
12700         * misc/brk.c: Likewise.
12701         * misc/chflags.c: Likewise.
12702         * misc/chroot.c: Likewise.
12703         * misc/fchflags.c: Likewise.
12704         * misc/fgetxattr.c: Likewise.
12705         * misc/flistxattr.c: Likewise.
12706         * misc/fremovexattr.c: Likewise.
12707         * misc/fsetxattr.c: Likewise.
12708         * misc/fsync.c: Likewise.
12709         * misc/ftruncate.c: Likewise.
12710         * misc/futimes.c: Likewise.
12711         * misc/futimesat.c: Likewise.
12712         * misc/getdomain.c: Likewise.
12713         * misc/getdtsz.c: Likewise.
12714         * misc/gethostid.c: Likewise.
12715         * misc/gethostname.c: Likewise.
12716         * misc/getloadavg.c: Likewise.
12717         * misc/getpagesize.c: Likewise.
12718         * misc/getsysstats.c: Likewise.
12719         * misc/getxattr.c: Likewise.
12720         * misc/gtty.c: Likewise.
12721         * misc/ioctl.c: Likewise.
12722         * misc/lgetxattr.c: Likewise.
12723         * misc/listxattr.c: Likewise.
12724         * misc/llistxattr.c: Likewise.
12725         * misc/lremovexattr.c: Likewise.
12726         * misc/lsetxattr.c: Likewise.
12727         * misc/lutimes.c: Likewise.
12728         * misc/madvise.c: Likewise.
12729         * misc/mincore.c: Likewise.
12730         * misc/mlock.c: Likewise.
12731         * misc/mlockall.c: Likewise.
12732         * misc/mmap.c: Likewise.
12733         * misc/mprotect.c: Likewise.
12734         * misc/msync.c: Likewise.
12735         * misc/munlock.c: Likewise.
12736         * misc/munlockall.c: Likewise.
12737         * misc/munmap.c: Likewise.
12738         * misc/preadv.c: Likewise.
12739         * misc/preadv64.c: Likewise.
12740         * misc/ptrace.c: Likewise.
12741         * misc/pwritev.c: Likewise.
12742         * misc/pwritev64.c: Likewise.
12743         * misc/readv.c: Likewise.
12744         * misc/reboot.c: Likewise.
12745         * misc/remap_file_pages.c: Likewise.
12746         * misc/removexattr.c: Likewise.
12747         * misc/revoke.c: Likewise.
12748         * misc/select.c: Likewise.
12749         * misc/setdomain.c: Likewise.
12750         * misc/setegid.c: Likewise.
12751         * misc/seteuid.c: Likewise.
12752         * misc/sethostid.c: Likewise.
12753         * misc/sethostname.c: Likewise.
12754         * misc/setregid.c: Likewise.
12755         * misc/setreuid.c: Likewise.
12756         * misc/setxattr.c: Likewise.
12757         * misc/sstk.c: Likewise.
12758         * misc/stty.c: Likewise.
12759         * misc/swapoff.c: Likewise.
12760         * misc/swapon.c: Likewise.
12761         * misc/sync.c: Likewise.
12762         * misc/syncfs.c: Likewise.
12763         * misc/syscall.c: Likewise.
12764         * misc/truncate.c: Likewise.
12765         * misc/ualarm.c: Likewise.
12766         * misc/usleep.c: Likewise.
12767         * misc/ustat.c: Likewise.
12768         * misc/utimes.c: Likewise.
12769         * misc/vhangup.c: Likewise.
12770         * misc/writev.c: Likewise.
12771         * posix/_exit.c: Likewise.
12772         * posix/alarm.c: Likewise.
12773         * posix/execve.c: Likewise.
12774         * posix/fexecve.c: Likewise.
12775         * posix/fork.c: Likewise.
12776         * posix/fpathconf.c: Likewise.
12777         * posix/getaddrinfo.c: Likewise.
12778         * posix/getegid.c: Likewise.
12779         * posix/geteuid.c: Likewise.
12780         * posix/getgid.c: Likewise.
12781         * posix/getgroups.c: Likewise.
12782         * posix/getlogin.c: Likewise.
12783         * posix/getlogin_r.c: Likewise.
12784         * posix/getpgid.c: Likewise.
12785         * posix/getpid.c: Likewise.
12786         * posix/getppid.c: Likewise.
12787         * posix/getresgid.c: Likewise.
12788         * posix/getresuid.c: Likewise.
12789         * posix/getsid.c: Likewise.
12790         * posix/getuid.c: Likewise.
12791         * posix/glob64.c: Likewise.
12792         * posix/nanosleep.c: Likewise.
12793         * posix/pathconf.c: Likewise.
12794         * posix/pause.c: Likewise.
12795         * posix/posix_madvise.c: Likewise.
12796         * posix/pread.c: Likewise.
12797         * posix/pread64.c: Likewise.
12798         * posix/pwrite.c: Likewise.
12799         * posix/pwrite64.c: Likewise.
12800         * posix/sched_getaffinity.c: Likewise.
12801         * posix/sched_getp.c: Likewise.
12802         * posix/sched_gets.c: Likewise.
12803         * posix/sched_primax.c: Likewise.
12804         * posix/sched_primin.c: Likewise.
12805         * posix/sched_rr_gi.c: Likewise.
12806         * posix/sched_setaffinity.c: Likewise.
12807         * posix/sched_setp.c: Likewise.
12808         * posix/sched_sets.c: Likewise.
12809         * posix/sched_yield.c: Likewise.
12810         * posix/setgid.c: Likewise.
12811         * posix/setlogin.c: Likewise.
12812         * posix/setpgid.c: Likewise.
12813         * posix/setresgid.c: Likewise.
12814         * posix/setresuid.c: Likewise.
12815         * posix/setsid.c: Likewise.
12816         * posix/setuid.c: Likewise.
12817         * posix/sleep.c: Likewise.
12818         * posix/spawni.c: Likewise.
12819         * posix/sysconf.c: Likewise.
12820         * posix/times.c: Likewise.
12821         * posix/wait.c: Likewise.
12822         * posix/wait3.c: Likewise.
12823         * posix/wait4.c: Likewise.
12824         * posix/waitpid.c: Likewise.
12825         * resolv/gai_sigqueue.c: Likewise.
12826         * resource/getpriority.c: Likewise.
12827         * resource/getrlimit.c: Likewise.
12828         * resource/getrusage.c: Likewise.
12829         * resource/nice.c: Likewise.
12830         * resource/setpriority.c: Likewise.
12831         * resource/setrlimit.c: Likewise.
12832         * resource/ulimit.c: Likewise.
12833         * rt/aio_cancel.c: Likewise.
12834         * rt/aio_fsync.c: Likewise.
12835         * rt/aio_read.c: Likewise.
12836         * rt/aio_sigqueue.c: Likewise.
12837         * rt/aio_suspend.c: Likewise.
12838         * rt/aio_write.c: Likewise.
12839         * rt/clock_getres.c: Likewise.
12840         * rt/clock_gettime.c: Likewise.
12841         * rt/clock_nanosleep.c: Likewise.
12842         * rt/clock_settime.c: Likewise.
12843         * rt/lio_listio.c: Likewise.
12844         * rt/mq_close.c: Likewise.
12845         * rt/mq_getattr.c: Likewise.
12846         * rt/mq_notify.c: Likewise.
12847         * rt/mq_open.c: Likewise.
12848         * rt/mq_receive.c: Likewise.
12849         * rt/mq_send.c: Likewise.
12850         * rt/mq_setattr.c: Likewise.
12851         * rt/mq_timedreceive.c: Likewise.
12852         * rt/mq_timedsend.c: Likewise.
12853         * rt/mq_unlink.c: Likewise.
12854         * rt/shm_open.c: Likewise.
12855         * rt/shm_unlink.c: Likewise.
12856         * rt/timer_create.c: Likewise.
12857         * rt/timer_delete.c: Likewise.
12858         * rt/timer_getoverr.c: Likewise.
12859         * rt/timer_gettime.c: Likewise.
12860         * rt/timer_settime.c: Likewise.
12861         * setjmp/__longjmp.c: Likewise.
12862         * setjmp/setjmp.c: Likewise.
12863         * signal/kill.c: Likewise.
12864         * signal/killpg.c: Likewise.
12865         * signal/raise.c: Likewise.
12866         * signal/sigaction.c: Likewise.
12867         * signal/sigaltstack.c: Likewise.
12868         * signal/sigblock.c: Likewise.
12869         * signal/sigignore.c: Likewise.
12870         * signal/sigintr.c: Likewise.
12871         * signal/signal.c: Likewise.
12872         * signal/sigpause.c: Likewise.
12873         * signal/sigpending.c: Likewise.
12874         * signal/sigqueue.c: Likewise.
12875         * signal/sigreturn.c: Likewise.
12876         * signal/sigset.c: Likewise.
12877         * signal/sigsetmask.c: Likewise.
12878         * signal/sigstack.c: Likewise.
12879         * signal/sigsuspend.c: Likewise.
12880         * signal/sigtimedwait.c: Likewise.
12881         * signal/sigvec.c: Likewise.
12882         * signal/sigwait.c: Likewise.
12883         * signal/sigwaitinfo.c: Likewise.
12884         * signal/sysv_signal.c: Likewise.
12885         * socket/accept.c: Likewise.
12886         * socket/accept4.c: Likewise.
12887         * socket/bind.c: Likewise.
12888         * socket/connect.c: Likewise.
12889         * socket/getpeername.c: Likewise.
12890         * socket/getsockname.c: Likewise.
12891         * socket/getsockopt.c: Likewise.
12892         * socket/isfdtype.c: Likewise.
12893         * socket/listen.c: Likewise.
12894         * socket/recv.c: Likewise.
12895         * socket/recvfrom.c: Likewise.
12896         * socket/recvmsg.c: Likewise.
12897         * socket/send.c: Likewise.
12898         * socket/sendmsg.c: Likewise.
12899         * socket/sendto.c: Likewise.
12900         * socket/setsockopt.c: Likewise.
12901         * socket/shutdown.c: Likewise.
12902         * socket/sockatmark.c: Likewise.
12903         * socket/socket.c: Likewise.
12904         * socket/socketpair.c: Likewise.
12905         * stdio-common/ctermid.c: Likewise.
12906         * stdio-common/cuserid.c: Likewise.
12907         * stdio-common/remove.c: Likewise.
12908         * stdio-common/rename.c: Likewise.
12909         * stdio-common/renameat.c: Likewise.
12910         * stdio-common/tempname.c: Likewise.
12911         * stdlib/getcontext.c: Likewise.
12912         * stdlib/makecontext.c: Likewise.
12913         * stdlib/setcontext.c: Likewise.
12914         * stdlib/swapcontext.c: Likewise.
12915         * stdlib/system.c: Likewise.
12916         * streams/fattach.c: Likewise.
12917         * streams/fdetach.c: Likewise.
12918         * streams/getmsg.c: Likewise.
12919         * streams/getpmsg.c: Likewise.
12920         * streams/putmsg.c: Likewise.
12921         * streams/putpmsg.c: Likewise.
12922         * sysdeps/unix/bsd/getpt.c: Likewise.
12923         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
12924         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
12925         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
12926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
12927         Likewise.
12928         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
12929         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
12930         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
12931         * sysvipc/msgctl.c: Likewise.
12932         * sysvipc/msgget.c: Likewise.
12933         * sysvipc/msgrcv.c: Likewise.
12934         * sysvipc/msgsnd.c: Likewise.
12935         * sysvipc/semctl.c: Likewise.
12936         * sysvipc/semget.c: Likewise.
12937         * sysvipc/semop.c: Likewise.
12938         * sysvipc/semtimedop.c: Likewise.
12939         * sysvipc/shmat.c: Likewise.
12940         * sysvipc/shmctl.c: Likewise.
12941         * sysvipc/shmdt.c: Likewise.
12942         * sysvipc/shmget.c: Likewise.
12943         * termios/tcdrain.c: Likewise.
12944         * termios/tcflow.c: Likewise.
12945         * termios/tcflush.c: Likewise.
12946         * termios/tcgetattr.c: Likewise.
12947         * termios/tcgetpgrp.c: Likewise.
12948         * termios/tcsendbrk.c: Likewise.
12949         * termios/tcsetattr.c: Likewise.
12950         * termios/tcsetpgrp.c: Likewise.
12951         * time/adjtime.c: Likewise.
12952         * time/clock.c: Likewise.
12953         * time/getitimer.c: Likewise.
12954         * time/gettimeofday.c: Likewise.
12955         * time/setitimer.c: Likewise.
12956         * time/settimeofday.c: Likewise.
12957         * time/stime.c: Likewise.
12958         * time/time.c: Likewise.
12959
12960 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
12961
12962         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
12963         /usr/old/bin.
12964
12965         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
12966         instead of spaces.
12967         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
12968
12969 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
12970
12971         [BZ #14796]
12972         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
12973         FE_TONEAREST before applying Dekker multiplication and Knuth
12974         addition.  Clear inexact exceptions and check for exact zero
12975         results afterwards.
12976         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12977         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
12978         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12979         * math/libm-test.inc (fma_test): Add more tests.
12980         (fma_test_towardzero): Likewise.
12981         (fma_test_downward): Likewise.
12982         (fma_test_upward): Likewise.
12983         * sysdeps/generic/math_private.h (default_libc_fesetround): New
12984         function.
12985         (libc_fesetround): New macro.
12986         (libc_fesetroundf): Likewise.
12987         (libc_fesetroundl): Likewise.
12988         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
12989         function.
12990         (libc_fesetround_387): Likewise.
12991         (libc_fesetroundf): New macro.
12992         (libc_fesetround): Likewise.
12993         (libc_fesetroundl): Likewise.
12994         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
12995         function.
12996         (libc_fesetroundf): New macro.
12997         (libc_fesetround): Likewise.
12998         (libc_fesetroundl): Likewise.
12999         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
13000         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
13001         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
13002         libm_hidden_ver.
13003         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
13004         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
13005         libm_hidden_def.
13006         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
13007         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
13008         libm_hidden_ver.
13009         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
13010         libm_hidden_def.
13011
13012         [BZ #3439]
13013         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
13014         integer constant usable in #if and use that to give value to enum
13015         constant.
13016         (FE_DIVBYZERO): Likewise.
13017         (FE_UNDERFLOW): Likewise.
13018         (FE_OVERFLOW): Likewise.
13019         (FE_INVALID): Likewise.
13020         (FE_INVALID_SNAN): Likewise.
13021         (FE_INVALID_ISI): Likewise.
13022         (FE_INVALID_IDI): Likewise.
13023         (FE_INVALID_ZDZ): Likewise.
13024         (FE_INVALID_IMZ): Likewise.
13025         (FE_INVALID_COMPARE): Likewise.
13026         (FE_INVALID_SOFTWARE): Likewise.
13027         (FE_INVALID_SQRT): Likewise.
13028         (FE_INVALID_INTEGER_CONVERSION): Likewise.
13029         (FE_TONEAREST): Likewise.
13030         (FE_TOWARDZERO): Likewise.
13031         (FE_UPWARD): Likewise.
13032         (FE_DOWNWARD): Likewise.
13033         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
13034         (FE_DIVBYZERO): Likewise.
13035         (FE_OVERFLOW): Likewise.
13036         (FE_UNDERFLOW): Likewise.
13037         (FE_INEXACT): Likewise.
13038         (FE_TONEAREST): Likewise.
13039         (FE_DOWNWARD): Likewise.
13040         (FE_UPWARD): Likewise.
13041         (FE_TOWARDZERO): Likewise.
13042         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
13043         (FE_UNDERFLOW): Likewise.
13044         (FE_OVERFLOW): Likewise.
13045         (FE_DIVBYZERO): Likewise.
13046         (FE_INVALID): Likewise.
13047         (FE_TONEAREST): Likewise.
13048         (FE_TOWARDZERO): Likewise.
13049         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
13050         (FE_OVERFLOW): Likewise.
13051         (FE_UNDERFLOW): Likewise.
13052         (FE_DIVBYZERO): Likewise.
13053         (FE_INEXACT): Likewise.
13054         (FE_TONEAREST): Likewise.
13055         (FE_TOWARDZERO): Likewise.
13056         (FE_UPWARD): Likewise.
13057         (FE_DOWNWARD): Likewise.
13058         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
13059         (FE_DIVBYZERO): Likewise.
13060         (FE_OVERFLOW): Likewise.
13061         (FE_UNDERFLOW): Likewise.
13062         (FE_INEXACT): Likewise.
13063         (FE_TONEAREST): Likewise.
13064         (FE_DOWNWARD): Likewise.
13065         (FE_UPWARD): Likewise.
13066         (FE_TOWARDZERO): Likewise.
13067
13068 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
13069
13070         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
13071
13072 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
13073
13074         * scripts/cross-test-ssh.sh (command): Use newlines to separate
13075         commands.  Quote $PWD.
13076         (blacklist_exports): Don't use remove_newlines.  Replace "declare
13077         -x" by "export".
13078         (remove_newlines): Remove.
13079
13080 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
13081
13082         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
13083         * stdlib/stdlib.h (atof): Moved to ...
13084         * include/bits/stdlib-float.h: Here.  New file.
13085         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
13086         * stdlib/bits/stdlib-float.h: New file.
13087         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
13088         -mno-sse -mno-mmx.
13089         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
13090         <xmmintrin.h>.
13091
13092 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
13093
13094         * conform/conformtest.pl (@headers): Add fenv.h.
13095         * conform/data/fenv.h-data: New file.
13096         * include/fenv.h [_ISOMAC]: Disable all contents of file except
13097         include of <math/fenv.h>.
13098
13099         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
13100         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
13101         && !UNIX98].  Enables tests for XOPEN2K8.
13102         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
13103         POSIX2008]: Likewise.
13104
13105         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
13106         (struct rusage): Do not expect type or its members.
13107
13108         [BZ #3439]
13109         * math/math.h (FP_NAN): Define macro to integer constant usable in
13110         #if and use that to give value to enum constant.
13111         (FP_INFINITE): Likewise.
13112         (FP_ZERO): Likewise.
13113         (FP_SUBNORMAL): Likewise.
13114         (FP_NORMAL): Likewise.
13115
13116 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
13117
13118         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
13119         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
13120         arguments.
13121
13122 2012-11-02  Roland McGrath  <roland@hack.frob.com>
13123
13124         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
13125         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
13126         autoconf-time if not.
13127         * configure.in: Remove AC_PREREQ.
13128
13129 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13130
13131         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
13132         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
13133         of the internal implementation.
13134
13135 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
13136
13137         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
13138         except include of <misc/sys/syslog.h>.
13139
13140 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13141
13142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
13143         function returns with a NULL context exit with zero.
13144
13145 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13146
13147         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
13148
13149 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
13150
13151         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
13152         (run_program_cmd): This.
13153         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
13154         (tst_langinfo): New variable.  Use it.
13155
13156 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
13157
13158         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
13159         floating point opcodes.
13160
13161 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13162
13163         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
13164         variable.
13165
13166         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
13167
13168         * sysdeps/mach/hurd/powerpc: Remove directory.
13169         * sysdeps/mach/powerpc: Likewise.
13170
13171 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13172
13173         * scripts/check-local-headers.sh: Ignore c++ headers.
13174
13175 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13176
13177         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
13178         __libc_cleanup_region_start argument.
13179
13180 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
13181
13182         [BZ #14784]
13183         [BZ #14785]
13184         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
13185         x * y using scaling, not as x * y + z.
13186         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13187         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13188         * math/libm-test.inc (fma_test): Add more tests.
13189         (fma_test_towardzero): Likewise.
13190         (fma_test_downward): Likewise.
13191         (fma_test_upward): Likewise.
13192
13193 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13194
13195         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
13196
13197 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
13198
13199         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
13200         New variable.
13201
13202 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
13203
13204         * rt/tst-shm.c (worker): Correct checking for mmap failure.
13205
13206 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
13207
13208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13209         Fix sort order.
13210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13211         Likewise.
13212
13213 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13214
13215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13216         Fix the order of the list for glibc 2.17.
13217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13218         Likewise.
13219
13220 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
13221
13222         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13223
13224 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
13225
13226         [BZ #14610]
13227         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
13228         for low part of x being zero before using __atanl (y).
13229         * math/libm-test.inc (atan2_test): Add another test.
13230
13231         * manual/install.texi (Configuring and compiling): Document
13232         general use of test-wrapper and test-wrapper-env.
13233         * INSTALL: Regenerated.
13234
13235         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
13236         (__fma): Do not extract and scale down low bits on after-rounding
13237         systems when result rounded to normal precision would have normal
13238         exponent.
13239         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
13240         (__fmal): Do not extract and scale down low bits on after-rounding
13241         systems when result rounded to normal precision would have normal
13242         exponent.
13243         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
13244         (__fmal): Do not extract and scale down low bits on after-rounding
13245         systems when result rounded to normal precision would have normal
13246         exponent.
13247         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
13248         macro.
13249         (fma_test): Add more tests.
13250         (fma_test_towardzero): Likewise.
13251         (fma_test_downward): Likewise.
13252         (fma_test_upward): Likewise.
13253
13254 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
13255
13256         * sysdeps/i386/tininess.h: Renamed to ...
13257         * sysdeps/x86/tininess.h: This.
13258         * sysdeps/x86_64/tininess.h: Removed.
13259
13260 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13261
13262         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
13263         input.  Use $(build-program-cmd).
13264         ($(objpfx)tst-array1-static.out): Likewise.
13265         ($(objpfx)tst-array2.out): Likewise.
13266         ($(objpfx)tst-array3.out): Likewise.
13267         ($(objpfx)tst-array4.out): Likewise.
13268         ($(objpfx)tst-array5.out): Likewise.
13269         ($(objpfx)tst-array5-static.out): Likewise.
13270
13271 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
13272
13273         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
13274         if defined.
13275
13276         * nss/nsswitch.h (nss_interface_function): Provide new
13277         macro for use with NSS functions.
13278         * grp/initgroups.c: Use new macro.
13279         * nss/getXXbyYY.c: Likewise.
13280         * nss/getXXbyYY_r.c: Likewise.
13281         * nss/getXXent.c: Likewise.
13282         * nss/getXXent_r.c: Likewise.
13283         * sysdeps/posix/getaddrinfo.c: Likewise.
13284
13285 2012-10-30  Andreas Jaeger  <aj@suse.de>
13286
13287         * po/ru.po: Update Russion translation from translation project.
13288
13289 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13290
13291         [BZ #14152]
13292         [BZ #14783]
13293         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
13294         result and shift together with sticky bit instead of replicating
13295         round-to-nearest rounding.
13296         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13297         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13298         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
13299         missing underflow exceptions.
13300         (fma_test_towardzero): Add more tests.
13301         (fma_test_downward): Likewise.
13302         (fma_test_upward): Likewise.
13303
13304         [BZ #14047]
13305         * sysdeps/generic/tininess.h: New file.
13306         * sysdeps/i386/tininess.h: Likewise.
13307         * sysdeps/sh/tininess.h: Likewise.
13308         * sysdeps/x86_64/tininess.h: Likewise.
13309         * stdlib/tst-strtod-underflow.c: Likewise.
13310         * stdlib/tst-tininess.c: Likewise.
13311         * stdlib/strtod_l.c: Include <tininess.h>.
13312         (round_and_return): Do not set errno for exact underflow cases.
13313         Force an underflow exception when setting errno for underflow.
13314         Determine underflow based on rounding to normal precision if
13315         TININESS_AFTER_ROUNDING.
13316         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
13317         ERANGE for exact underflow cases.
13318         * stdlib/Makefile (tests): Add tst-tininess and
13319         tst-strtod-underflow.
13320         ($(objpfx)tst-tininess): Use $(link-libm).
13321         ($(objpfx)tst-strtod-underflow): Likewise.
13322
13323 2012-10-30  Andreas Jaeger  <aj@suse.de>
13324
13325         [BZ#14767]
13326         * elf/Makefile (tests): Remove conditional for have-initfini-array
13327         since this is now always required and the variable does not exist
13328         anymore.
13329         (tests-static): Likewise.
13330         (modules-names): Likewise.
13331
13332         * po/eo.po: Add Esperanto translation from translation project.
13333
13334         * elf/tst-array1.c (fini_array): Make writeable so that it can be
13335         merged with constructor/destructor.
13336         (init_array): Likewise.
13337         * elf/tst-array2dep.c (fini_array): Likewise.
13338         (init_array): Likewise.
13339
13340 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
13341
13342         * manual/message.texi: Delete @cartouche tags.
13343
13344 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
13345
13346         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
13347         EOPNOTSUPP.
13348         * sysdeps/mach/hurd/fsync.c: Likewise.
13349
13350         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
13351         [_POSIX_REALTIME_SIGNALS]: Change condition to
13352         [_POSIX_REALTIME_SIGNALS > 0].
13353
13354 2012-10-27  Andreas Jaeger  <aj@suse.de>
13355
13356         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
13357         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
13358         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
13359         [__WORDSIZE != 64]: Likewise.
13360
13361 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
13362
13363         *  iconvdata/tst-table.sh: Remove ${SHELL}.
13364         *  iconvdata/tst-tables.sh: Likewise.
13365
13366 2012-10-25  David S. Miller  <davem@davemloft.net>
13367
13368         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13369         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
13370         of strtoull.
13371
13372         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
13373         ifunc-impl-list.c
13374         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13375         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
13376         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
13377         file.
13378
13379 2012-10-25  Roland McGrath  <roland@hack.frob.com>
13380
13381         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13382         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
13383         __getdirentries.
13384
13385 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
13386             Jim Blandy  <jimb@codesourcery.com>
13387
13388         * scripts/cross-test-ssh.sh: New file.
13389         * manual/install.texi (Configuring and compiling): Document use of
13390         cross-test-ssh.sh.
13391         * INSTALL: Regenerated.
13392
13393 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
13394
13395         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
13396         EOPNOTSUPP.
13397
13398 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
13399
13400         * Makeconfig (run-program-prefix): Fix comment.
13401
13402 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
13403             Jim Blandy  <jimb@codesourcery.com>
13404
13405         * Makeconfig (test-wrapper): New variable,
13406         (test-wrapper-env): Likewise.
13407         [$(cross-compiling) = yes && $(test-wrapper) != ""]
13408         (run-built-tests): Define to yes.
13409         (run-program-prefix): Use $(test-wrapper).
13410         (built-program-cmd): Likewise.
13411         * Rules (make-test-out): Use $(test-wrapper-env) and
13412         $(host-built-program-cmd).
13413         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
13414         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
13415         tst-pathopt.sh.
13416         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
13417         $(test-wrapper-env) to tst-rtld-load-self.sh.
13418         ($(objpfx)order2.out): Use $(test-wrapper).
13419         ($(objpfx)tst-initorder.out): Likewise.
13420         ($(objpfx)tst-initorder2.out): Likewise.
13421         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
13422         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
13423         (test_wrapper_env): New variable.  Use it to run ld.so.
13424         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
13425         Use it to run ld.so.
13426         (test_wrapper_env): Likewise.
13427         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
13428         $(test-wrapper) to run-iconv-test.sh.
13429         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
13430         (ICONV): Use $test_wrapper.
13431         * posix/Makefile ($(objpfx)globtest.out): Pass
13432         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
13433         globtest.sh, not $(run-program-prefix).
13434         * posix/globtest.sh (run_via_rtld_prefix): New variable.
13435         (test_wrapper): Likewise.
13436         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
13437         set together with run_via_rtld_prefix.
13438         (run_program_prefix): Define in terms of test_wrapper and
13439         run_via_rtld_prefix.
13440
13441 2012-10-24  Roland McGrath  <roland@hack.frob.com>
13442
13443         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
13444         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
13445         Targets removed.
13446
13447         [BZ #14743]
13448         * include/time.h: Remove librt_hidden_proto (clock_gettime).
13449         Declare __clock_getres, __clock_gettime, __clock_settime,
13450         __clock_nanosleep, and __clock_getcpuclockid.
13451         * rt/clock_gettime.c: Define __clock_gettime as an alias.
13452         Remove librt_hidden_def (clock_gettime).
13453         * sysdeps/unix/clock_gettime.c: Likewise.
13454         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
13455         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
13456         * rt/clock_getres.c: Define __clock_getres as an alias.
13457         * sysdeps/posix/clock_getres.c: Likewise.
13458         * rt/clock_settime.c: Define __clock_settime as an alias.
13459         * sysdeps/unix/clock_settime.c: Likewise.
13460         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
13461         * sysdeps/unix/clock_nanosleep.c: Likewise.
13462         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
13463         * rt/clock-compat.c: New file.
13464         * rt/Makefile (librt-routines): Add clock-compat and move
13465         $(clock-routines) to ...
13466         (routines): ... here, new variable.
13467         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
13468         Don't add get_clockfreq here.
13469         * rt/Versions (libc: GLIBC_2.17): New version set.
13470         Add clock_* symbols here.
13471         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
13472         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
13473         (GLIBC_2.17): Add clock_* symbols.
13474         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
13475         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
13476         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13478         Likewise.
13479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13480         Likewise.
13481         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13482         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
13483         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
13484         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
13485         * NEWS: Mention the move.
13486
13487         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
13488         Use __open, __read, __close rather than their public counterparts.
13489         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13490         (__get_clockfreq_via_cpuinfo): Likewise.
13491         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
13492         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
13493
13494         * config.h.in (HAVE_IFUNC): New #undef.
13495         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
13496         was successful.
13497         * configure: Regenerated.
13498
13499 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
13500
13501         * configure.in: Move READELF check to start of file.
13502         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
13503         libc_cv_asm_gnu_indirect_function in the process.
13504         * configure: Regenerated.
13505
13506 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
13507
13508         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
13509         send the output to /dev/null.
13510         (libc_cv_cc_with_libunwind): Likewise.
13511         (libc_cv_as_noexecstack): Likewise.
13512         * configure: Regenerate.
13513
13514 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
13515
13516         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
13517
13518         * posix/globtest.sh (TMPDIR): Do not set.
13519         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
13520         (testout): Likewise.
13521
13522 2012-10-24  Andreas Jaeger  <aj@suse.de>
13523
13524         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
13525         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
13526         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
13527         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
13528         posix_fadvise64, posix_fallocate64.
13529
13530         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
13531         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
13532         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
13533         Likewise.
13534         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
13535         Likewise.
13536         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
13537
13538         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
13539         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
13540         <bits/fcntl-linux.h>.
13541         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
13542
13543         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
13544         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
13545         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
13546         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
13547         [__WORDSIZE != 64]: Likewise.
13548
13549 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
13550
13551         * Makeconfig (run-built-tests): New variable.
13552         * Rules [$(cross-compiling) = yes]: Change condition to
13553         [$(run-built-tests) = no].
13554         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
13555         to [$(run-built-tests) = yes].
13556         * elf/Makefile [$(cross-compiling) = no]: Likewise
13557         * grp/Makefile [$(cross-compiling) = no]: Likewise.
13558         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
13559         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
13560         * intl/Makefile [$(cross-compiling) = no]: Likewise.
13561         * io/Makefile [$(cross-compiling) = no]: Likewise.
13562         * libio/Makefile [$(cross-compiling) = no]: Likewise.
13563         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
13564         * misc/Makefile [$(cross-compiling) = no]: Likewise.
13565         * posix/Makefile [$(cross-compiling) = no]: Likewise.
13566         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
13567         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
13568         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
13569         * string/Makefile [$(cross-compiling) = no]: Likewise.
13570
13571         * posix/Makefile ($(objpfx)globtest.out): Pass
13572         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
13573         $(rtld-installed-name).
13574         * posix/globtest.sh (elf_objpfx): Remove variable.
13575         (rtld_installed_name): Likewise.
13576         (library_path): Likewise.
13577         (run_program_prefix): New variable.  Use for running globtest
13578         binary.
13579
13580 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
13581             Joseph Myers  <joseph@codesourcery.com>
13582
13583         * Makeconfig (host-built-program-cmd): New variable.
13584         * elf/Makefile (tst-stackguard1-ARGS): Use
13585         $(host-built-program-cmd).
13586         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
13587         (tst-spawn-ARGS): Likewise.
13588         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
13589
13590 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
13591             Jim Blandy  <jimb@codesourcery.com>
13592
13593         * Makeconfig (run-via-rtld-prefix): New variable.
13594         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
13595         (built-program-cmd): Likewise.
13596
13597 2012-10-22  Andreas Jaeger  <aj@suse.de>
13598
13599         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
13600         __O_RSYNC if it exists, otherwise to O_SYNC.
13601
13602 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
13603             Joseph Myers  <joseph@codesourcery.com>
13604
13605         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
13606         /dev/null.
13607         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
13608         from /dev/null
13609         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
13610         /dev/null.
13611
13612 2012-10-22  Andreas Jaeger  <aj@suse.de>
13613
13614         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
13615         Define always.
13616         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
13617
13618         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13619         bits/fcntl-linux.h.
13620
13621         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
13622         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
13623
13624         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
13625         to __O_LARGEFILE.
13626         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
13627         to __O_LARGEFILE.
13628
13629 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
13630             Joseph Myers  <joseph@codesourcery.com>
13631
13632         * config.make.in (NM): New variable.
13633
13634 2012-10-21  Andreas Jaeger  <aj@suse.de>
13635
13636         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
13637         definitions and declarations that are provided by
13638         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
13639
13640 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
13641
13642         [BZ #14683]
13643         * elf/Makefile (tests-static): Add tst-leaks1-static.
13644         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
13645         ($(objpfx)tst-leaks1-static): New rule.
13646         ($(objpfx)tst-leaks1-static-mem): Likewise.
13647         (tst-leaks1-static-ENV): New macro.
13648         * elf/dl-open.c (dl_open_worker): Check the main application
13649         only if SHARED is defined.
13650         * elf/tst-leaks1-static.c: New file.
13651
13652 2012-10-20  Andreas Jaeger  <aj@suse.de>
13653
13654         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
13655         generic values for Linux.
13656         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
13657         and declarations that are provided by <bits/fcntl-linux.h> and
13658         include <bits/fcntl-linux.h>.
13659         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13660         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13661
13662 2012-10-20  Roland McGrath  <roland@hack.frob.com>
13663
13664         * io/fcntl.h: Move include of <bits/types.h> to the top and
13665         include it unconditionally.
13666
13667 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
13668
13669         * wcsmbs/Makefile (tests-ifunc): New variable.
13670         (tests): Add $(tests-ifunc).
13671         * wcsmbs/test-wcschr-ifunc.c: New file.
13672         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
13673         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
13674         * wcsmbs/test-wcslen-ifunc.c: Likewise.
13675         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
13676         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
13677
13678         * string/Makefile (tests-ifunc): New variable.
13679         (tests): Add $(tests-ifunc).
13680         * string/test-memccpy.c (TEST_NAME): New macro.
13681         * string/test-memchr.c (TEST_NAME): Likewise.
13682         * string/test-memcmp.c (TEST_NAME): Likewise.
13683         * string/test-memcpy.c (TEST_NAME): Likewise.
13684         * string/test-memmem.c (TEST_NAME): Likewise.
13685         * string/test-memmove.c (TEST_NAME): Likewise.
13686         * string/test-memset.c (TEST_NAME): Likewise.
13687         * string/test-rawmemchr.c (TEST_NAME): Likewise.
13688         * string/test-stpcpy.c (TEST_NAME): Likewise.
13689         * string/test-stpncpy.c (TEST_NAME): Likewise.
13690         * string/test-strcasecmp.c (TEST_NAME): Likewise.
13691         * string/test-strcasestr.c (TEST_NAME): Likewise.
13692         * string/test-strcat.c (TEST_NAME): Likewise.
13693         * string/test-strchr.c (TEST_NAME): Likewise.
13694         * string/test-strcmp.c(TEST_NAME): Likewise.
13695         * string/test-strcpy.c (TEST_NAME): Likewise.
13696         * string/test-strcspn.c (TEST_NAME): Likewise.
13697         * string/test-strlen.c (TEST_NAME): Likewise.
13698         * string/test-strncasecmp.c (TEST_NAME): Likewise.
13699         * string/test-strncmp.c (TEST_NAME): Likewise.
13700         * string/test-strncpy.c (TEST_NAME): Likewise.
13701         * string/test-strnlen.c (TEST_NAME): Likewise.
13702         * string/test-strpbrk.c (TEST_NAME): Likewise.
13703         * string/test-strrchr.c (TEST_NAME): Likewise.
13704         * string/test-strspn.c (TEST_NAME): Likewise.
13705         * string/test-strstr.c (TEST_NAME): Likewise.
13706         * string/test-bcopy-ifunc.c: New file.
13707         * string/test-bzero-ifunc.c: Likewise.
13708         * string/test-memccpy-ifunc.c: Likewise.
13709         * string/test-memchr-ifunc.c: Likewise.
13710         * string/test-memcmp-ifunc.c: Likewise.
13711         * string/test-memcpy-ifunc.c: Likewise.
13712         * string/test-memmem-ifunc.c: Likewise.
13713         * string/test-memmove-ifunc.c: Likewise.
13714         * string/test-mempcpy-ifunc.c: Likewise.
13715         * string/test-memset-ifunc.c: Likewise.
13716         * string/test-rawmemchr-ifunc.c: Likewise.
13717         * string/test-stpcpy-ifunc.c: Likewise.
13718         * string/test-stpncpy-ifunc.c: Likewise.
13719         * string/test-strcasecmp-ifunc.c: Likewise.
13720         * string/test-strcasestr-ifunc.c: Likewise.
13721         * string/test-strcat-ifunc.c: Likewise.
13722         * string/test-strchr-ifunc.c: Likewise.
13723         * string/test-strchrnul-ifunc.c: Likewise.
13724         * string/test-strcmp-ifunc.c: Likewise.
13725         * string/test-strcpy-ifunc.c: Likewise.
13726         * string/test-strcspn-ifunc.c: Likewise.
13727         * string/test-strlen-ifunc.c: Likewise.
13728         * string/test-strncasecmp-ifunc.c: Likewise.
13729         * string/test-strncat-ifunc.c: Likewise.
13730         * string/test-strncmp-ifunc.c: Likewise.
13731         * string/test-strncpy-ifunc.c: Likewise.
13732         * string/test-strnlen-ifunc.c: Likewise.
13733         * string/test-strpbrk-ifunc.c: Likewise.
13734         * string/test-strrchr-ifunc.c: Likewise.
13735         * string/test-strspn-ifunc.c: Likewise.
13736         * string/test-strstr-ifunc.c: Likewise.
13737
13738         * debug/Makefile (tests-ifunc): New variable.
13739         (tests): Add $(tests-ifunc).
13740         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
13741         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
13742         * debug/test-stpcpy_chk-ifunc.c: New file.
13743         * debug/test-strcpy_chk-ifunc.c: Likewise.
13744
13745 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
13746
13747         [BZ #13601]
13748         * elf/dl-load.c (open_verify): Retry read if the entire ELF
13749         header is not read in.
13750
13751 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
13752
13753         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
13754         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
13755         directly.  Pass built executable to script as
13756         $(built-program-cmd).
13757         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
13758         $testprogram without using LD_LIBRARY_PATH and $ldso.
13759
13760         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
13761         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
13762         $(rtld-installed-name).
13763         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
13764         (rtld_installed_name): Likewise.
13765         (library_path): Likewise.
13766         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
13767         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
13768         $(run-program-prefix) to tst-tables.sh.
13769         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
13770         it to run tst-table-from and tst-table-to.
13771         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
13772         Pass it to tst-table.sh.
13773         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
13774         $(run-program-prefix) to tst-gettext.sh.
13775         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
13776         tst-translit.sh.
13777         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
13778         tst-gettext2.sh.
13779         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
13780         to run tst-gettext.
13781         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
13782         to run tst-gettext2.
13783         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
13784         to run tst-translit.
13785         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
13786         $(run-program-prefix) to tst-mtrace.sh.
13787         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
13788         to run tst-mtrace.
13789         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
13790         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
13791         $(rtld-installed-name).
13792         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
13793         (rtld_installed_name): Likewise.
13794         (run_program_prefix): New variable.  Use it to run wordexp-test.
13795
13796         * Makeconfig (ARCH): Remove all definitions.
13797         (machine): Likewise.
13798         [ARCH]: Remove conditional code.
13799         [!objdir]: Give error.
13800         [!objdir] (objpfx): Remove.
13801         [!objdir] (common-objpfx): Likewise.
13802         [!objdir] (common-objdir): Likewise.
13803         * configure.in (config_makefile): Remove.  Hardcode Makefile in
13804         AC_CONFIG_FILES call.
13805         * configure: Regenerated.
13806
13807         [BZ #13888]
13808         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
13809         or TMPDIR.
13810         (testout): Likewise.
13811
13812         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
13813         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
13814         $(rtld-installed-name).
13815         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
13816         (rtld_installed_name): Likwise.
13817         (runit): Remove function.
13818         (run_getconf): New variable,  Use it for running getconf binary.
13819
13820 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
13821
13822         [BZ #14716]
13823         * string/test-memmem.c (check_result): New function.
13824         (do_one_test): Use it.
13825         (check1): New function.
13826         (test_main): Use it.
13827
13828 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
13829
13830         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
13831
13832 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
13833
13834         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
13835         (_G_LSEEK64): Likewise.
13836         (_G_MMAP64): Likewise.
13837         (_G_FSTAT64): Likewise.
13838         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
13839         (_G_LSEEK64): Likewise.
13840         (_G_MMAP64): Likewise.
13841         (_G_FSTAT64): Likewise.
13842         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
13843         unconditional.  Call __mmap64 directly.
13844         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
13845         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
13846         __lseek64 directly.
13847         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
13848         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
13849         __mmap64 directly.
13850         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
13851         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
13852         __lseek64 directly.
13853         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
13854         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
13855         __lseek64 directly.
13856         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
13857         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
13858         __lseek64 directly.
13859         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
13860         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
13861         __fxstat64 directly.
13862         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
13863         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
13864         unconditional.
13865         (freopen64) [!_G_OPEN64]: Remove conditional code.
13866         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
13867         unconditional.
13868         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
13869         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
13870         unconditional.
13871         (ftello64) [!_G_LSEEK64]: Remove conditional code.
13872         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
13873         unconditional.
13874         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
13875         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
13876         unconditional.
13877         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
13878         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
13879         unconditional.
13880         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
13881         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
13882         unconditional.
13883         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
13884         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
13885         unconditional.
13886         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
13887
13888 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13889
13890         [BZ #12140]
13891         * manual/memory.texi (Malloc Tunable Parameters): Add note
13892         about free list pointers overwriting some perturb bytes.
13893         Wording suggested by Roland McGrath.
13894
13895 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
13896
13897         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
13898         (lgamma_test): Likewise.
13899         (tgamma_test): Likewise.
13900
13901 2012-10-16  Florian Weimer  <fweimer@redhat.com>
13902
13903         [BZ #14700]
13904         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
13905         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
13906
13907 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
13908
13909         * NEWS: Mention BZ #14716.
13910         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
13911         when removing AVAILABLE1_USES_J macro.
13912
13913 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
13914
13915         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
13916         (__bswap_64): __uint64_t for unsigned 64-bit int.
13917
13918 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
13919
13920         * include/string.h (memmem): Declare libc hidden alias.
13921         * string/memmem.c (memmem): Define libc hidden alias.
13922         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
13923         __read, __close instead of open, read, close.
13924
13925 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
13926
13927         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
13928         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
13929         global and hidden.
13930         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
13931         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
13932         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
13933         Likewise.
13934         (__rawmemchr_sse2): Likewise.
13935         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
13936         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
13937         (__strchr_sse2): Likewise.
13938         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
13939         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
13940         (__strcasecmp_sse2): Likewise.
13941         (__strncasecmp_sse2): Likewise.
13942         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
13943         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
13944         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
13945         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
13946         (__strrchr_sse2): Likewise.
13947         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
13948         ifunc-impl-list.c.
13949         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13950         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13951         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13952         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13953         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13954         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13955         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13956         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13957         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
13958         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
13959         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
13960         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
13961         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
13962         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13963         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13964         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13965         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13966         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13967         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
13968         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
13969         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
13970         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
13971         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
13972         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
13973         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
13974         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13975         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13976         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
13977         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13978         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13979
13980         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
13981         global and hidden.
13982         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
13983         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
13984         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
13985         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
13986         Likewise.
13987         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
13988         Likewise.
13989         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
13990         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
13991         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
13992         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
13993         ifunc-impl-list.c.
13994         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13995         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13996         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13997         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13998         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13999         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14000         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14001         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14002         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14003         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14004         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14005         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14006         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14007         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
14008         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
14009         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14010         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
14011         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
14012         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14013         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14014         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14015         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14016         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14017         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14018         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14019         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
14020         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
14021         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
14022         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
14023         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14024         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
14025         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14026         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14027         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
14028         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14029         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14030         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14031         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14032         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14033         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14034         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
14035
14036         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
14037         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
14038         * include/ifunc-impl-list.h: New file.
14039         * misc/ifunc-impl-list.c: Likewise.
14040         * misc/Makefile (routines): Add ifunc-impl-list.
14041         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
14042         * string/test-string.h: Include <ifunc-impl-list.h>.
14043         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
14044         impl_array): New variables.
14045         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
14046         are defined.
14047         (test_init): Call __libc_ifunc_impl_list to initialize
14048         func_list if TEST_IFUNC and TEST_NAME are defined.
14049
14050         * string/Makefile (strop-tests): Add bcopy and bzero.
14051         * string/test-bcopy.c: New file.
14052         * string/test-bzero.c: Likewise.
14053         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
14054         defined.
14055         * string/test-memset.c: Support bzero test if TEST_BZERO is
14056         defined.
14057         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
14058         __libc_memmove.
14059         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
14060         __libc_memset.
14061         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
14062         of memset.
14063
14064 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
14065
14066         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
14067         * configure: Regenerated.
14068
14069         * Makeconfig (+link-static-before-libc): Don't include
14070         $(link-static-libc).
14071
14072         * libio/libio.h (_IO_pos_t): Remove.
14073
14074 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14075
14076         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
14077         McGrath.
14078
14079 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14080
14081         * crypt/crypt-entry.c: Include fips-private.h.
14082         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
14083         * crypt/md5c-test.c (main): Tolerate disabled MD5.
14084         * sysdeps/unix/sysv/linux/fips-private.h: New file.
14085         * sysdeps/generic/fips-private.h: New file, dummy fallback.
14086
14087 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14088
14089         * crypt/crypt-private.h: Include stdbool.h.
14090         (_ufc_setup_salt_r): Return bool.
14091         * crypt/crypt-entry.c: Include errno.h.
14092         (__crypt_r): Return NULL with EINVAL for bad salt.
14093         * crypt/crypt_util.c (bad_for_salt): New.
14094         (_ufc_setup_salt_r): Check that salt is long enough and within
14095         the specified alphabet.
14096         * crypt/badsalttest.c: New file.
14097         * crypt/Makefile (tests): Add it.
14098         ($(objpfx)badsalttest): New.
14099
14100 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
14101
14102         * NEWS: Add entry for BZ #14602.
14103
14104 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
14105
14106         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
14107         type-generic.
14108         * math/libm-test.inc: Update comment listing what functions and
14109         macros are tested.
14110         (isgreater_test): New function.
14111         (isgreaterequal_test): Likewise.
14112         (isless_test): Likewise.
14113         (islessequal_test): Likewise.
14114         (islessgreater_test): Likewise.
14115         (isunordered_test): Likewise.
14116         (main): Call the new functions.
14117
14118 2012-10-09  Roland McGrath  <roland@hack.frob.com>
14119
14120         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
14121         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
14122         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
14123         * sysdeps/i386/configure: Regenerated.
14124         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
14125         * sysdeps/mach/configure: Regenerated.
14126         * sysdeps/mach/hurd/configure: Regenerated.
14127         * sysdeps/powerpc/configure: Regenerated.
14128         * sysdeps/powerpc/powerpc32/configure: Regenerated.
14129         * sysdeps/powerpc/powerpc64/configure: Regenerated.
14130         * sysdeps/s390/s390-32/configure: Regenerated.
14131         * sysdeps/s390/s390-64/configure: Regenerated.
14132         * sysdeps/sh/configure: Regenerated.
14133         * sysdeps/sparc/configure: Regenerated.
14134         * sysdeps/unix/sysv/linux/configure: Regenerated.
14135         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
14136         * sysdeps/x86_64/configure: Regenerated.
14137
14138         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
14139         defined.  Don't check if MAP is NULL.
14140
14141 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
14142
14143         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
14144         (_G_stat64): Likewise.
14145         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
14146         (_G_stat64): Likewise.
14147         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
14148         instead of struct _G_stat64.
14149         * libio/fileops.c (mmap_remap_check): Likewise.
14150         (decide_maybe_mmap): Likewise.
14151         (_IO_new_file_seekoff): Likewise.
14152         (_IO_file_stat): Likewise.
14153         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
14154         _G_off64_t.
14155         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
14156         instead of struct _G_stat64.
14157         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
14158
14159 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
14160
14161         [BZ #14602]
14162         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14163         Replace with ...
14164         (CHECK_EOL): New macro.
14165         (two_way_short_needle): Check beginning of haystack for EOL.  Use
14166         CHECK_EOL.
14167         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14168         Replace with CHECK_EOL.
14169         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14170         Replace with CHECK_EOL.
14171
14172 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
14173
14174         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
14175         type-generic.
14176         * math/libm-test.inc: Update comment listing what functions and
14177         macros are tested.
14178         (finite_test): New function.
14179         (isinf_test): Likewise.
14180         (isnan_test): Likewise.
14181         (fpclassify_test): Test subnormal input.
14182         (isfinite_test): Likewise.
14183         (isnormal_test): Likewise.
14184         (main): Call the new functions.
14185
14186 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
14187
14188         [BZ #14660]
14189         * Makerules (%.dynsym): Force C locale when running
14190         $(OBJDUMP) --dynamic-syms.
14191
14192 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
14193
14194         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
14195         <stdint.h>.
14196
14197 2012-10-06  David S. Miller  <davem@davemloft.net>
14198
14199         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
14200         upper 32-bits of the length value in %o2 since we use branch-on-register
14201         tests which consider the entire 64-bit register.
14202
14203 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
14204
14205         * string/test-strstr.c (check2): Add a test for page boundary.
14206
14207 2012-10-05  David S. Miller  <davem@davemloft.net>
14208
14209         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
14210         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
14211         file.
14212         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
14213         sysdep_routines.
14214         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
14215         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
14216         and bzero when HWCAP_SPARC_CRYPTO is present.
14217
14218 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
14219
14220         [BZ #14602]
14221         * string/test-strstr.c (check2): New function.
14222         (test_main): Call check2.
14223
14224         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
14225         and bug-strchr1.
14226         * string/bug-strcasestr1.c (do_test): Moved to ...
14227         * string/test-strcasestr.c (check1): Here.  New function.
14228         (do_one_test): Break out result checking code into ...
14229         (check_result): This.  New function.
14230         (do_one_test): Call check_result.
14231         (test_main): Call check1.
14232         * string/bug-strchr1.c (do_test): Moved to ...
14233         * string/test-strchr.c (check1): Here.  New function.
14234         (do_one_test): Break out result checking code into ...
14235         (check_result): This.  New function.
14236         (do_one_test): Call check_result.
14237         (test_main): Call check1.
14238         * string/bug-strstr1.c (main): Moved to ...
14239         * string/test-strstr.c (check1): Here.  New function.
14240         (do_one_test): Break out result checking code into ...
14241         (check_result): This.  New function.
14242         (do_one_test): Call check_result.
14243         (test_main): Call check1.
14244         * string/bug-strcasestr1.c: Removed.
14245         * string/bug-strchr1.c: Likewise.
14246         * string/bug-strstr1.c: Likewise.
14247
14248         * elf/Makefile (dl-routines): Add hwcaps.
14249         * elf/dl-support.c (_dl_important_hwcaps): Removed.
14250         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
14251         (_dl_important_hwcaps): Moved to ...
14252         * elf/dl-hwcaps.c: Here.  New file.
14253         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
14254
14255         [BZ #14557]
14256         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
14257         if IS_IN_rtld isn't defined.
14258
14259         * elf/dl-support.c (_dl_sysinfo_map): New.
14260         Include "get-dynamic-info.h" and "setup-vdso.h".
14261         (_dl_non_dynamic_init): Call setup_vdso.
14262         * elf/dynamic-link.h: Don't include <assert.h>.
14263         (elf_get_dynamic_info): Moved to ...
14264         * elf/get-dynamic-info.h: Here.  New file.
14265         * elf/dynamic-link.h: Include "get-dynamic-info.h".
14266         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
14267         * elf/setup-vdso.h: Here.  New file.
14268         * elf/rtld.c: Include "setup-vdso.h".
14269         (dl_main): Call setup_vdso.
14270
14271 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
14272
14273         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
14274         creal in comment listing functions tested.  List finite, isinf,
14275         isnan, isless, islessequal, isgreater, isgreaterequal,
14276         islessgreater, isunordered, lgamma_r and pow10 as functions and
14277         macros not tested.  Mention which functions not tested are aliases
14278         for other functions.  Fix typo.  Note that signs of NaNs are not
14279         tested.
14280
14281         * scripts/config.guess: Update from config.git.
14282         * scripts/config.sub: Likewise.
14283
14284 2012-10-04  Roland McGrath  <roland@hack.frob.com>
14285
14286         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
14287         * misc/madvise.c (madvise): Renamed to __madvise.
14288         Make madvise a weak alias.
14289         * include/sys/mman.h: Declare __madvise.
14290         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
14291         * sysdeps/unix/syscalls.list
14292         (madvise): Make __madvise the strong name, and madvise a weak alias.
14293         * sysdeps/unix/sysv/linux/syscalls.list
14294         (madvise, mmap): Remove redundant entries.
14295         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
14296         * malloc/malloc.c (mtrim): Likewise.
14297         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
14298
14299 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14300
14301         * sysdeps/mach/hurd/dl-cache.c: File removed.
14302         * config.h.in (USE_LDCONFIG): New #undef.
14303         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
14304         * configure: Regenerated.
14305         * elf/Makefile (dl-routines): Add dl-cache only under
14306         [$(use-ldconfig) = yes].
14307         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
14308         cache on [USE_LDCONFIG].
14309         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
14310         [USE_LDCONFIG].
14311         * elf/rtld.c (dl_main): Likewise.
14312
14313 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
14314
14315         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
14316         _SC_LEVEL4_CACHE_LINESIZE.
14317
14318 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14319
14320         * sysdeps/unix/bsd/confstr.h: File removed.
14321
14322 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
14323
14324         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
14325         sys/sdt-config.h.
14326
14327 2012-10-02  Roland McGrath  <roland@hack.frob.com>
14328
14329         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
14330         Make 'mapoff' field ElfW(Off) rather than off_t.
14331
14332 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
14333
14334         * nscd/Makefile: Remove nscd-cflags and all its users.
14335         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
14336         (CFLAGS-nonlib): Add compiler flags for nscd modules.
14337
14338         [BZ #10631]
14339         * malloc.c (malloc_printerr): Clarify error message.
14340
14341 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
14342
14343         [BZ #14648]
14344         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14345         Set bit_FMA_Usable if FMA is supported.
14346         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
14347         macro.
14348         (bit_FMA4_Usable): Updated.
14349         (index_FMA_Usable): New macro.
14350         (CPUID_FMA): Likewise
14351         (HAS_FMA): Defined with bit_FMA_Usable.
14352
14353 2012-10-01  Roland McGrath  <roland@hack.frob.com>
14354
14355         * bits/types.h (__swblk_t): Type removed.
14356         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
14357         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
14358         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14359         (__SWBLK_T_TYPE): Likewise.
14360         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
14361         (__SWBLK_T_TYPE): Likewise.
14362         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14363         (__SWBLK_T_TYPE): Likewise.
14364         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14365         (__SWBLK_T_TYPE): Likewise.
14366
14367 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
14368             Honza Horak <hhorak@redhat.com>
14369
14370         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
14371         (xdr_mapname): Use YPMAXMAP as maxsize.
14372         (xdr_peername): Use YPMAXPEER as maxsize.
14373         (xdr_keydat): Use YPAXRECORD as maxsize.
14374         (xdr_valdat): Use YPMAXRECORD as maxsize.
14375
14376 2012-10-01  Roland McGrath  <roland@hack.frob.com>
14377
14378         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
14379
14380         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
14381         * csu/init-first.c: ... here.
14382         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
14383         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
14384         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
14385         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
14386         * sysdeps/i386/init-first.c: File removed.
14387         * sysdeps/sh/init-first.c: File removed.
14388
14389 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
14390
14391         [BZ #14645]
14392         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
14393         if x * y might underflow to zero and z is zero.
14394         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
14395         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14396         * math/libm-test.inc (min_subnorm_value): New variable.
14397         (fma_test): Add more tests.
14398         (fma_test_towardzero): Likewise.
14399         (fma_test_downward): Likewise
14400         (fma_test_upward): Likewise.
14401         (initialize): Set min_subnorm_value.
14402
14403 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
14404
14405         [BZ #14638]
14406         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
14407         0 + 0.
14408         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
14409         mode for addition resulting in exact zero.
14410         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
14411         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
14412         exact 0 + 0.
14413         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
14414         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14415         * math/libm-test.inc (fma_test): Add more tests.
14416         (fma_test_towardzero): New function.
14417         (fma_test_downward): Likewise.
14418         (fma_test_upward): Likewise.
14419         (main): Call the new functions.
14420
14421 2012-09-28  David S. Miller  <davem@davemloft.net>
14422
14423         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
14424
14425 2012-09-28  Roland McGrath  <roland@hack.frob.com>
14426
14427         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
14428         instead of SIGALRM.
14429
14430         * sysdeps/gnu/_G_config.h: Moved to ...
14431         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
14432         * sysdeps/mach/hurd/_G_config.h: Moved to ...
14433         * sysdeps/generic/_G_config.h: ... here.
14434
14435         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
14436
14437         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
14438
14439         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
14440         Conditionalize target on [libnss_test1.so-version].
14441
14442         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
14443
14444         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
14445         (elfobjdir): Move out of conditionals.
14446
14447         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
14448         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
14449         (__nss_lookup_function): Conditionalize label remove_from_tree on
14450         [!DO_STATIC_NSS || SHARED], matching its only use.
14451
14452 2012-09-28  David S. Miller  <davem@davemloft.net>
14453
14454         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
14455         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
14456         file.
14457         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
14458         sysdep_routines.
14459         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
14460         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
14461         when HWCAP_SPARC_CRYPTO is present.
14462
14463 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14464
14465         * io/tst-mknodat.c: Create a FIFO instead of a socket.
14466
14467 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
14468
14469         [BZ #6530]
14470         * stdio-common/vfprintf.c (process_string_arg): Revert
14471         2000-07-22 change.
14472
14473 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
14474
14475         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
14476         for testcase.
14477         * stdio-common/tst-sprintf.c: Include <locale.h>
14478         (main): Test sprintf's handling of incomplete multibyte
14479         characters.
14480
14481 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
14482
14483         * elf/dl-runtime.c (VERSYMIDX): Removed.
14484         * elf/dl-version.c (VERSYMIDX): Likewise.
14485         * elf/do-rel.h (VERSYMIDX): Likewise.
14486         (VALIDX): Likewise.
14487         * elf/dynamic-link.h (VERSYMIDX): Likewise.
14488         * elf/rtld.c (VALIDX): Likewise.
14489         (ADDRIDX): Likewise.
14490         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
14491         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
14492         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
14493         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
14494         (VALIDX): Likewise.
14495         (ADDRIDX): Likewise.
14496
14497 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14498
14499         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
14500
14501 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
14502
14503         [BZ #11438]
14504         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
14505         to global scope.
14506         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
14507         addresses are in the same scope as 192.0.2/24.
14508         * posix/gai.conf: Document new scope table defaults.
14509
14510 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14511
14512         [BZ #5298]
14513         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
14514         for ftell.  Compute offsets from write pointers instead.
14515         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
14516
14517 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14518
14519         [BZ #14543]
14520         * libio/Makefile (tests): New test case tst-fseek.
14521         * libio/tst-fseek.c: New test case to verify that fseek/ftell
14522         combination works in wide mode.
14523         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
14524         state when the external buffer state changes.
14525
14526 2012-09-27  David S. Miller  <davem@davemloft.net>
14527
14528         [BZ #14376]
14529         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
14530         pass reloc->r_addend in as the 'high' argument to
14531         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
14532
14533         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14534
14535 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14536
14537         * rt/tst-aio2.c: Include <pthread.h>.
14538         * rt/tst-aio3.c: Likewise.
14539
14540 2012-09-27  Steve Ellcey  <sellcey@mips.com>
14541
14542         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
14543
14544 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
14545
14546         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
14547         contents on [SHARED].
14548
14549 2012-09-26  Marek Polacek  <polacek@redhat.com>
14550
14551         [BZ #14530]
14552         [BZ #13741]
14553         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
14554         for C++ and GCC <4.3 as well as for non GCC compilers.
14555
14556 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
14557
14558         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14559
14560 2012-09-25  Roland McGrath  <roland@hack.frob.com>
14561
14562         * Makefile.in (all, install): Declare with .PHONY.
14563         Reported by Michael Hope <michael.hope@linaro.org>.
14564
14565 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14566
14567         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
14568         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
14569         system header.
14570         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
14571         Likewise.
14572         (sydep_routines): Add the new and the internal functions.
14573         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
14574         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
14575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
14576         (GLIBC_2.17): Add the new function.
14577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
14578         (GLIBC_2.17): Likewise.
14579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
14580         (GLIBC_2.17): Likewise.
14581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
14582         (GLIBC_2.17): Likewise.
14583         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
14584
14585 2012-09-25  Alan Modra  <amodra@gmail.com>
14586
14587         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
14588         Add release barrier before setting once_control to say
14589         initialisation is done.  Add hints on lwarx.  Use macro in
14590         place of isync.
14591         (clear_once_control): Add release barrier.
14592
14593 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
14594
14595         [BZ #13629]
14596         * math/s_clog.c (__clog): Handle more values close to |z| = 1
14597         specially.
14598         * math/s_clog10.c (__clog10): Likewise.
14599         * math/s_clog10f.c (__clog10f): Likewise.
14600         * math/s_clog10l.c (__clog10l): Likewise.
14601         * math/s_clogf.c (__clogf): Likewise.
14602         * math/s_clogl.c (__clogl): Likewise.
14603         * math/Makefile (libm-calls): Add x2y2m1.
14604         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
14605         (__x2y2m1): Likewise.
14606         (__x2y2m1l): Likewise.
14607         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
14608         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
14609         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
14610         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
14611         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
14612         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
14613         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
14614         * sysdeps/i386/fpu/libm-test-ulps: Update.
14615         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14616
14617         [BZ #14621]
14618         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
14619         int as type of variable DEPTH.
14620         (glob): Use size_t instead of int as type of variables NEWCOUNT
14621         and OLD_PATHC.
14622
14623 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14624
14625         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
14626         Add s_sincosf-sse2.
14627         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
14628         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
14629         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
14630         macros for using routine as __sincosf_ia32.
14631         Use macro for function declaration and weak_alias.
14632         * sysdeps/i386/fpu/libm-test-ulps: Update.
14633
14634         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
14635         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14636
14637         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
14638         subnormal argument.
14639         * math/s_cexpf.c (__cexpf): Likewise.
14640         * math/s_csinf.c (__csinf): Likewise.
14641         * math/s_csinhf.c (__csinhf): Likewise.
14642         * math/s_ctanf.c (__ctanf): Likewise.
14643         * math/s_ctanhf.c (__ctanhf): Likewise.
14644         * math/s_ccosh.c (__ccoshf): Likewise.
14645         * math/s_cexp.c (__cexpl): Likewise.
14646         * math/s_csin.c (__csin): Likewise.
14647         * math/s_csinh.c (__csinh): Likewise.
14648         * math/s_ctan.c (__ctan): Likewise.
14649         * math/s_ctanh.c (ctanh): Likewise.
14650         * math/s_ccoshl.c (__ccoshl): Likewise.
14651         * math/s_cexpl.c (__cexpl): Likewise.
14652         * math/s_csinl.c (__csinl): Likewise.
14653         * math/s_csinhl.c (__csinhl): Likewise.
14654         * math/s_ctanl.c (__ctanl): Likewise.
14655         * math/s_ctanhl.c (__ctanhl): Likewise.
14656
14657 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
14658
14659         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
14660         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
14661         (_IO_off_t): Define to __off_t, not _G_off_t.
14662         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
14663         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
14664         (_IO_wint_t): Define to wint_t, not _G_wint_t.
14665         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
14666         type of __dummy and __dummy2 fields.
14667         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
14668         (_G_ssize_t): Likewise.
14669         (_G_off_t): Likewise.
14670         (_G_pid_t): Likewise.
14671         (_G_uid_t): Likewise.
14672         (_G_wchar_t): Likewise.
14673         (_G_wint_t): Likewise.
14674         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
14675         (_G_ssize_t): Likewise.
14676         (_G_off_t): Likewise.
14677         (_G_pid_t): Likewise.
14678         (_G_uid_t): Likewise.
14679         (_G_wchar_t): Likewise.
14680         (_G_wint_t): Likewise.
14681         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
14682         (_G_ssize_t): Likewise.
14683         (_G_off_t): Likewise.
14684         (_G_pid_t): Likewise.
14685         (_G_uid_t): Likewise.
14686         (_G_wchar_t): Likewise.
14687         (_G_wint_t): Likewise.
14688
14689 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
14690
14691         * malloc/arena.c: Include malloc-sysdep.h.
14692         (shrink_heap): Use check_may_shrink_heap to decide if madvise
14693         is sufficient to shrink the heap or an unmap is needed.
14694         * sysdeps/generic/malloc-sysdep.h: New file.  Define
14695         new function check_may_shrink_heap.
14696         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
14697         new function check_may_shrink_heap.
14698
14699 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
14700
14701         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
14702         comments.
14703
14704 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
14705
14706         * catgets/test-gencat.sh: Add "set -e".
14707         * elf/tst-pathopt.sh: Likewise.
14708         * grp/tst_fgetgrent.sh: Likewise.
14709         * iconvdata/run-iconv-test.sh: Likewise.
14710         * intl/tst-gettext.sh: Likewise.
14711         * intl/tst-gettext2.sh: Likewise.
14712         * intl/tst-gettext4.sh: Likewise.
14713         * intl/tst-gettext6.sh: Likewise.
14714         * intl/tst-translit.sh: Likewise.
14715         * io/ftwtest-sh: Likewise.
14716         * libio/test-freopen.sh: Likewise.
14717         * malloc/tst-mtrace.sh: Likewise.
14718         * posix/globtest.sh: Likewise.
14719         * posix/tst-getconf.sh: Likewise.
14720         * posix/wordexp-tst.sh: Likewise.
14721         * stdio-common/tst-printf.sh: Likewise.
14722         * stdio-common/tst-unbputc.sh: Likewise.
14723         * stdlib/tst-fmtmsg.sh: Likewise.
14724         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
14725         * catgets/Makefile: Do not specify -e option when running
14726         testsuite shell scripts.
14727         * elf/Makefile: Likewise.
14728         * grp/Makefile: Likewise.
14729         * iconvdata/Makefile: Likewise.
14730         * intl/Makefile: Likewise.
14731         * io/Makefile: Likewise.
14732         * libio/Makefile: Likewise.
14733         * malloc/Makefile: Likewise.
14734         * posix/Makefile: Likewise.
14735         * stdio-common/Makefile: Likewise.
14736         * stdlib/Makefile: Likewise.
14737         * sysdeps/x86_64/Makefile: Likewise.
14738
14739         * io/ftwtest-sh: Add copyright header.
14740         * posix/globtest.sh: Likewise.
14741         * posix/tst-getconf.sh: Likewise.
14742         * posix/wordexp-tst.sh: Likewise.
14743         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
14744
14745 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
14746
14747         [BZ #13679]
14748         * Makeconfig (+link): Defined as $(+link-static) if
14749         $(build-shared) isn't yes.
14750         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
14751         isn't yes.
14752         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
14753
14754         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
14755
14756         [BZ #14562]
14757         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
14758         new chunk size with MALLOC_ALIGN_MASK.
14759
14760 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
14761
14762         [BZ #5044]
14763         * stdio-common/printf_fphex.c: Include <stdbool.h> and
14764         <rounding-mode.h>.
14765         (__printf_fphex): Determine rounding using get_rounding_mode and
14766         round_away.
14767         * stdio-common/tst-printf-round.c (struct hex_test): New
14768         structure.
14769         (hex_tests): New variable.
14770         (test_hex_in_one_mode): New function.
14771         (do_test): Also run tests for hex float output.
14772
14773 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
14774
14775         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
14776         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
14777         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
14778         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
14779         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
14780         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
14781         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
14782         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
14783
14784 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
14785
14786         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
14787         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
14788         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
14789         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
14790
14791 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
14792
14793         [BZ #14579]
14794         * elf/rtld.c (dl_main): Limit the check for self loading to normal
14795         mode only.
14796         * elf/tst-rtld-load-self.sh: New test.
14797         * elf/Makefile: Run it.
14798
14799 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
14800
14801         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
14802         (tst-writev-ENV): Remove.
14803         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
14804
14805 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
14806
14807         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
14808
14809 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
14810
14811         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
14812         unconditional.
14813         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
14814         Likewise.
14815         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
14816         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
14817         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
14818         Likewise.
14819
14820 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
14821
14822         [BZ #14587]
14823         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
14824         * config.make.in (have-cpp-asm-debuginfo): Removed.
14825         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
14826         * configure: Regenerated.
14827
14828 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
14829
14830         [BZ #5044]
14831         * stdio-common/printf_fp.c: Include <stdbool.h> and
14832         <rounding-mode.h>.
14833         (___printf_fp): Determine rounding using get_rounding_mode and
14834         round_away.
14835         * stdio-common/tst-printf-round.c: New file.
14836         * stdio-common/Makefile (tests): Add tst-printf-round.
14837         (link-libm): New variable.
14838         ($(objpfx)tst-printf-round): Depend in $(link-libm).
14839
14840 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
14841
14842         [BZ #14576]
14843         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
14844         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
14845         Likewise.
14846         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
14847         Likewise.
14848
14849 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
14850
14851         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
14852         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
14853         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
14854         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
14855
14856 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
14857
14858         [BZ #14518]
14859         * include/rounding-mode.h: New file.
14860         * sysdeps/generic/get-rounding-mode.h: Likewise.
14861         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
14862         * stdlib/strtod_l.c: Include <rounding-mode.h>.
14863         (MAX_VALUE): New macro.
14864         (MIN_VALUE): Likewise.
14865         (overflow_value): New function.
14866         (underflow_value): Likewise.
14867         (round_and_return): Use overflow_value and underflow_value to
14868         determine return values in overflow and underflow cases.  Use
14869         round_away to determine rounding depending on rounding mode.
14870         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
14871         determine return values in overflow and underflow cases.
14872         * stdlib/tst-strtod-round.c: Include <fenv.h>.
14873         (struct test_results): New structure.
14874         (struct test): Use struct test_results to store expected results
14875         for all rounding modes.
14876         (TEST): Include expected results for all rounding modes.
14877         (test_in_one_mode): New function.
14878         (do_test): Use test_in_one_mode to compute and check results.
14879         Check results for all rounding modes.
14880         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
14881         $(link-libm).
14882
14883 2012-12-09  Allan McRae  <allan@archlinux.org>
14884
14885         * sysdeps/i386/fpu/libm-test-ulps: Update
14886
14887 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
14888
14889         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
14890         (_G_int32_t): Likewise.
14891         (_G_uint16_t): Likewise.
14892         (_G_uint32_t): Likewise.
14893         (_G_HAVE_BOOL): Likewise.
14894         (_G_HAVE_ATEXIT): Likewise.
14895         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
14896         (_G_HAVE_IO_FILE_OPEN): Likewise.
14897         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
14898         (_G_int32_t): Likewise.
14899         (_G_uint16_t): Likewise.
14900         (_G_uint32_t): Likewise.
14901         (_G_HAVE_BOOL): Likewise.
14902         (_G_HAVE_ATEXIT): Likewise.
14903         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
14904         (_G_HAVE_IO_FILE_OPEN): Likewise.
14905         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
14906         (_G_int32_t): Likewise.
14907         (_G_uint16_t): Likewise.
14908         (_G_uint32_t): Likewise.
14909         (_G_HAVE_BOOL): Likewise.
14910         (_G_HAVE_ATEXIT): Likewise.
14911         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
14912         (_G_HAVE_IO_FILE_OPEN): Likewise.
14913
14914 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
14915
14916         * csu/libc-tls.c: Update copyright years.
14917
14918 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
14919
14920         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
14921         [!_G_USING_THUNKS]: Remove conditional code.
14922         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
14923         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
14924
14925         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
14926         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
14927         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
14928         (_G_VTABLE_LABEL_PREFIX): Likewise.
14929         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
14930         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
14931         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
14932         (_G_VTABLE_LABEL_PREFIX): Likewise.
14933         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
14934         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
14935         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
14936         (_G_VTABLE_LABEL_PREFIX): Likewise.
14937         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
14938
14939 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
14940
14941         * libio/Makefile: Include ../Makeconfig before tests.
14942         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
14943         only if $(build-shared) is yes.
14944
14945         * iconv/gconv_db.c: Update copyright years.
14946
14947 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14948
14949         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
14950         unwind info if defined PIC. Fix special cases description.
14951         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
14952
14953         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
14954         DP_HI_MASK entry.
14955         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
14956
14957 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
14958
14959         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
14960
14961         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
14962         is NULL.
14963
14964         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
14965         (LDLIBS-tst-chk4): This.
14966         (LDFLAGS-tst-chk5): Renamed to ...
14967         (LDLIBS-tst-chk5): This.
14968         (LDFLAGS-tst-chk6): Renamed to ...
14969         (LDLIBS-tst-chk6): This.
14970         (LDFLAGS-tst-lfschk4): Renamed to ...
14971         (LDLIBS-tst-lfschk4): This.
14972         (LDFLAGS-tst-lfschk5): Renamed to ...
14973         (LDLIBS-tst-lfschk5): This.
14974         (LDFLAGS-tst-lfschk6): Renamed to ...
14975         (LDLIBS-tst-lfschk6): This.
14976
14977         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
14978         on $(common-objpfx)soversions.mk.
14979
14980 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
14981
14982         [BZ #10014]
14983         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
14984         example host name.
14985
14986 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
14987
14988         * malloc/arena.c (arena_get_retry): New function that gets
14989         another arena for the caller to try its request on.
14990         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
14991         current arena cannot fulfill the request.
14992         (__libc_memalign): Likewise.
14993         (__libc_memalign): Likewise.
14994         (__libc_pvalloc): Likewise.
14995         (__libc_calloc): Likewise.
14996
14997 2012-09-05  John Tobey  <john.tobey@gmail.com>
14998
14999         [BZ #13542]
15000         * manual/arith.texi (Operations on Complex): Fix description
15001         of carg branch cut.
15002
15003 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
15004
15005         [BZ #10014]
15006         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
15007         host name.
15008
15009         [BZ #10038]
15010         * manual/memory.texi (Memory): Make order of menu items match
15011         order of sections.
15012
15013 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15014
15015         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
15016         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
15017         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
15018
15019 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15020
15021         * csu/libc-tls.c (static_dtv): Renamed to ...
15022         (_dl_static_dtv): This.  Make it global.
15023         (_dl_initial_dtv): Removed.
15024         (__libc_setup_tls): Updated.
15025         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
15026         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
15027         DL_INITIAL_DTV.
15028
15029 2012-09-06  Petr Machata  <pmachata@redhat.com>
15030
15031         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
15032         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
15033         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
15034         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
15035
15036 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15037
15038         [BZ #14545]
15039         * csu/libc-tls.c (_dl_initial_dtv): New variable.
15040         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
15041         freeing dtv[-1].
15042
15043 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15044
15045         [BZ #14544]
15046         * Makeconfig (link-static-before-libc): Replace $(+prector)
15047         with $(+prectorT).
15048         (link-static-after-libc): Replace $(+postctor) with
15049         $(+postctorT).
15050         (link-bounded): Replace $(+prector)/$(+postctor) with
15051         $(+prectorT)/$(+postctorT).
15052         (+prectorT): New macro.
15053         (+postctorT): Likewise.
15054
15055 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
15056
15057         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
15058         (round_str): Handle values above the maximum for IBM long double
15059         as inexact.
15060         * stdlib/tst-strtod-round.c (tests): Regenerated.
15061
15062 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15063
15064         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
15065         assembler flag.
15066         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
15067         zarch_nohighgprs around the zarch optimized routines.
15068         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
15069         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
15070         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
15071         for zarch.
15072
15073 2012-09-05  David S. Miller  <davem@davemloft.net>
15074
15075         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15076
15077         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
15078         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
15079         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
15080         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15081         entries.
15082
15083 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15084
15085         * malloc/arena.c: Fold copyright years.
15086         * malloc/mcheck.c, malloc/memusage.c: Likewise.
15087
15088 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15089
15090         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
15091
15092 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15093
15094         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
15095
15096 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15097
15098         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
15099         change internal state upon failure.
15100
15101 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15102
15103         * malloc/mcheck.c (mcheck_check_all): Fix typo.
15104         * malloc/memusage.c (mmap): Likewise.
15105         (mmap64, mremap): Likewise.  Adjust name in comment.
15106
15107 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15108
15109         * libio/fileops.c: Fix typos in comments.
15110         * libio/oldfileops.c: Likewise.
15111         * libio/wfileops.c: Likewise.
15112
15113 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15114
15115         [BZ #1349]
15116         * malloc/Makefile (tests): Add tst-malloc-usable test case.
15117         (tst-malloc-usable-ENV): Set environment for test case.
15118         * malloc/hooks.c (malloc_check_get_size): New function to get
15119         requested size.
15120         * malloc/malloc.c (musable): Use malloc_check_get_size.
15121         * malloc/tst-malloc-usable.c: New test case.
15122
15123 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15124
15125         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
15126
15127 2012-09-05  Allan McRae  <allan@archlinux.org>
15128
15129         [BZ #13966]
15130         * configure.in (CXX_SYSINCLUDES): Use compiler output to
15131         determine header location.
15132         * configure: Regenerated.
15133
15134 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15135
15136         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
15137         float format.
15138         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
15139         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
15140         format.
15141         (test): Regenerate.
15142
15143 2012-09-04  David S. Miller  <davem@davemloft.net>
15144
15145         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
15146         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
15147         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
15148
15149 2012-09-04  Florian Weimer  <fweimer@redhat.com>
15150
15151         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
15152         failures.
15153
15154         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
15155
15156 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
15157
15158         [BZ #9914]
15159         * libio/iogetdelim.c: Include <limits.h>.
15160         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
15161         + len + 1 would overflow.
15162
15163 2012-09-03  Andreas Jaeger  <aj@suse.de>
15164
15165         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15166         * sysdeps/i386/fpu/libm-test-ulps: Update.
15167
15168 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15169
15170         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
15171         Add s_sinf-sse2, s_conf-sse2.
15172
15173         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
15174         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
15175         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
15176         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
15177
15178         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
15179         for using routine as __sinf_ia32.
15180         Use macro for function declaration and weak_alias.
15181         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
15182         for using routine as __cosf_ia32.
15183         Use macro for function declaration and weak_alias.
15184
15185         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
15186         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
15187
15188         * sysdeps/x86_64/fpu/s_sinf.S: New file.
15189         * sysdeps/x86_64/fpu/s_cosf.S: New file.
15190         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15191
15192         * math/libm-test.inc (cos_test): Add more test cases.
15193         (sin_test): Likewise.
15194         (sincos_test): Likewise.
15195
15196 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15197
15198         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
15199         (IFUNC_RESOLVE): Make pointers to the specialized implementations
15200         hidden.
15201         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
15202
15203 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
15204
15205         [BZ #14538]
15206         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
15207         first element of the GOT.
15208         (elf_machine_load_address): Return the difference between
15209         the runtime address of _DYNAMIC and elf_machine_dynamic ().
15210
15211 2012-09-01  Allan McRae  <allan@archlinux.org>
15212
15213         [BZ #13412]
15214         * configure.in (AWK): Require gawk version 3.0 or later.
15215         * configure: Regenerated.
15216
15217 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
15218
15219         * sysdeps/unix/sysv/linux/kernel-features.h
15220         (__ASSUME_POSIX_CPU_TIMERS): Remove.
15221         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15222         [__NR_clock_getres]: Make code unconditional.
15223         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
15224         (clock_getcpuclockid): Remove code left unreachable by removal of
15225         conditionals.
15226         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
15227         code unconditional.
15228         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
15229         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15230         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
15231         Make code unconditional.
15232         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
15233         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15234         * sysdeps/unix/sysv/linux/clock_settime.c
15235         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
15236         conditional code.
15237         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
15238         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15239
15240 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
15241
15242         [BZ #14476]
15243         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
15244         scripts/test-installation.pl.
15245
15246         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
15247         and $ld_so_version if it is set.
15248
15249 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15250
15251         [BZ #14516]
15252         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
15253         failure if reading from procfs failed.
15254         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
15255
15256 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15257
15258         * sysdeps/unix/sysv/linux/kernel-features.h
15259         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
15260         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15261         Remove conditional code.
15262         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15263         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
15264         Remove conditional code.
15265         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15266         * sysdeps/unix/sysv/linux/i386/fxstat.c
15267         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15268         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15269         * sysdeps/unix/sysv/linux/i386/fxstatat.c
15270         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15271         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15272         * sysdeps/unix/sysv/linux/i386/lxstat.c
15273         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15274         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15275         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
15276         Remove conditional code.
15277         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15278         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15279         Remove conditional code.
15280         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15281         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
15282         <kernel-features.h>.
15283         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
15284         Remove.
15285         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
15286         Remove conditional code.
15287         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15288         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
15289         Remove conditional.
15290
15291 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
15292
15293         [BZ #5400]
15294         * NEWS: Add fixed bug number.
15295
15296 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15297
15298         [BZ #14519]
15299         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
15300         underflowing exponent in case of negative sign.
15301         * stdlib/tst-strtod-round-data: Add more tests.
15302         * stdlib/tst-strtod-round.c (tests): Regenerated.
15303
15304         [BZ #3479]
15305         * stdlib/strtod_l.c (NDIG): Remove.
15306         (HEXNDIG): Likewise.
15307         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
15308         smallest representable value.
15309         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
15310         lie within an exact representation of 1/2 ulp of the result.
15311         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
15312         unconditionally.
15313         (TENS_P9_IDX): Define unconditionally.
15314         (TENS_P9_SIZE): Likewise.
15315         (TENS_P10_IDX): Likewise.
15316         (TENS_P10_SIZE): Likewise.
15317         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
15318         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
15319         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
15320         entries for 10^2^13 and 10^2^14.
15321         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
15322         (TENS_P13_IDX): Define.
15323         (TENS_P13_SIZE): Likewise.
15324         (TENS_P14_IDX): Likewise.
15325         (TENS_P14_SIZE): Likewise.
15326         (_fpioconst_pow10): Change array size to
15327         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
15328         unconditional.
15329         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
15330         1024]: Add entries for 10^2^13 and 10^2^14.
15331         [LAST_POW10 > _LAST_POW10]: Remove #error.
15332         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
15333         (_fpioconst_pow10): Change array size to
15334         FPIOCONST_POW10_ARRAY_SIZE.
15335         * stdlib/gen-fpioconst.c: New file.
15336         * stdlib/gen-tst-strtod-round.c: Likewise.
15337         * stdlib/tst-strtod-round-data: Likewise.
15338         * stdlib/tst-strtod-round.c: Likewise.
15339         * stdlib/Makefile (tests): Add tst-strtod-round.
15340
15341         [BZ #14459]
15342         * stdlib/strtod_l.c: Include <stdint.h>.
15343         (NDEBUG): Do not define.
15344         (round_and_return): Change EXPONENT parameter to type intmax_t.
15345         Rearrange calculations to avoid internal overflow possibilities.
15346         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
15347         Rearrange calculations to avoid internal overflow possibilities.
15348         Assert that number fits inside MPNSIZE limbs.
15349         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
15350         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
15351         calculations and add assertions to avoid internal overflow
15352         possibilities.  Add casts to avoid signed/unsigned operations.
15353         * stdlib/tst-strtod-overflow.c: New file.
15354         * stdlib/Makefile (tests): Add tst-strtod-overflow.
15355
15356 2012-08-25  Marek Polacek  <polacek@redhat.com>
15357
15358         * time/time.h: Fix some typos in comments.
15359
15360 2012-08-23  Roland McGrath  <roland@hack.frob.com>
15361
15362         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
15363         * posix/tst-rfc3484-2.c: Likewise.
15364         * posix/tst-rfc3484-3.c: Likewise.
15365
15366 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
15367
15368         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
15369         (EF_ARM_ABI_FLOAT_HARD): Likewise.
15370
15371 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
15372
15373         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
15374         #include of fxstatat64.c.
15375
15376 2012-08-22  Roland McGrath  <roland@hack.frob.com>
15377
15378         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
15379         * shadow/getspent_r.c: Likewise.
15380         * shadow/getspnam.c: Likewise.
15381         * shadow/getspnam_r.c: Likewise.
15382         * gshadow/getsgent.c: Likewise.
15383         * gshadow/getsgent_r.c: Likewise.
15384         * gshadow/getsgnam.c: Likewise.
15385         * gshadow/getsgnam_r.c: Likewise.
15386         * inet/getnetbyad.c: Likewise.
15387         * inet/getnetbyad_r.c: Likewise.
15388         * inet/getnetbynm.c: Likewise.
15389         * inet/getnetbynm_r.c: Likewise.
15390         * inet/getnetent.c: Likewise.
15391         * inet/getnetent_r.c: Likewise.
15392         * inet/getproto.c: Likewise.
15393         * inet/getproto_r.c: Likewise.
15394         * inet/getprtent.c: Likewise.
15395         * inet/getprtent_r.c: Likewise.
15396         * inet/getprtname.c: Likewise.
15397         * inet/getprtname_r.c: Likewise.
15398         * inet/getrpcbyname.c: Likewise.
15399         * inet/getrpcbyname_r.c: Likewise.
15400         * inet/getrpcbynumber.c: Likewise.
15401         * inet/getrpcbynumber_r.c: Likewise.
15402         * inet/getrpcent.c: Likewise.
15403         * inet/getrpcent_r.c: Likewise.
15404         * inet/getaliasent.c: Likewise.
15405         * inet/getaliasent_r.c: Likewise.
15406         * inet/getaliasname.c: Likewise.
15407         * inet/getaliasname_r.c: Likewise.
15408         * nscd/getgrgid_r.c: Likewise.
15409         * nscd/getgrnam_r.c: Likewise.
15410         * nscd/gethstbyad_r.c: Likewise.
15411         * nscd/gethstbynm3_r.c: Likewise.
15412         * nscd/getpwnam_r.c: Likewise.
15413         * nscd/getpwuid_r.c: Likewise.
15414         * nscd/getsrvbynm_r.c: Likewise.
15415         * nscd/getsrvbypt_r.c: Likewise.
15416         * nscd/gai.c: Likewise.
15417
15418         * configure.in (build_nscd): New substituted variable, set
15419         by --disable-build-nscd and defaults to $use_nscd.
15420         * configure: Regenerated.
15421         * config.make.in (build-nscd): New substituted variable.
15422         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
15423         Change conditional to require [$(build-nscd) = yes] as well.
15424         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
15425
15426         [BZ# 13696]
15427         * configure.in (use_nscd): New substituted variable, set by
15428         --disable-nscd.  If enabled, define USE_NSCD.
15429         * configure: Regenerated.
15430         * config.h.in: Add USE_NSCD.
15431         * config.make.in (use-nscd): New substituted variable.
15432         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
15433         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
15434         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
15435         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
15436         (CFLAGS-getgrnam_r.c): Likewise.
15437         (CFLAGS-initgroups.c): Likewise.
15438         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
15439         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
15440         Variables removed.
15441         * inet/getnetgrent_r.c
15442         (nscd_setnetgrent): New function, broken out of ...
15443         (setnetgrent): ... here.  Call it.
15444         (innetgr): Conditionalize nscd bits on [USE_NSCD].
15445         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
15446         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
15447         * nscd/Makefile (routines, aux): Move definitions after include of
15448         Makeconfig.  Conditionalize on [$(use-nscd) != no].
15449         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
15450         Conditionalize on [USE_NSCD].
15451         (is_nscd, nscd_init_cb): Likewise.
15452         (nss_load_library): Conditionalize init callback on [USE_NSCD].
15453         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
15454         * nss/nss_db/db-init.c: Likewise.
15455         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
15456         [USE_NSCD].
15457         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
15458         (make_request): Use it.
15459         (cache_valid_p): New function.
15460         (__check_pf): Use it.
15461         * NEWS: Add item for --disable-nscd.
15462
15463 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
15464
15465         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
15466         to support sed >= 4.2.1-20-ga9bf076.
15467         * configure: Regenerated.
15468
15469 2012-08-22  Roland McGrath  <roland@hack.frob.com>
15470
15471         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
15472         Conditionalize whole body on [IREL].
15473
15474 2012-08-22  Jeff Law <law@redhat.com>
15475
15476         [BZ #14505]
15477         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
15478         if the family is PF_UNSPEC.
15479
15480 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
15481
15482         * Makerules (lib-version): Rename from V.
15483         (install-lib-nosubdir): Change V to lib-version.
15484
15485 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
15486
15487         [BZ #14252]
15488         * powerpc32/power6/wcschr.c: New file.
15489         * powerpc32/power6/wcscpy.c: New file.
15490         * powerpc32/power6/wcsrchr.c: New file.
15491         * powerpc64/power6/wcschr.c: New file.
15492         * powerpc64/power6/wcscpy.c: New file.
15493         * powerpc64/power6/wcsrchr.c: New file.
15494
15495 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
15496
15497         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
15498         (two_way_short_needle): Use it.
15499         * string/strstr.c (AVAILABLE1_USES_J): Define.
15500         * string/strcasestr.c: Likewise.
15501
15502         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
15503         array references.
15504         * string/strcasestr.c (TOLOWER): Make side-effect safe.
15505
15506         [BZ #11607]
15507         * NEWS: Add an entry.
15508         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
15509         define their defaults.
15510         (two_way_short_needle): Detect end-of-string on-the-fly.
15511         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
15512         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
15513         * string/bug-strcasestr1.c: New test.
15514         * string/Makefile: Run it.
15515
15516 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
15517
15518         [BZ #11607]
15519         * string/str-two-way.h (two_way_short_needle): Optimize matching of
15520         the first character.
15521
15522 2012-08-21  Roland McGrath  <roland@hack.frob.com>
15523
15524         * csu/elf-init.c (__libc_csu_irel): Function removed.
15525         * csu/libc-start.c (apply_irel): New function.
15526         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
15527
15528 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
15529
15530         * sysdeps/unix/sysv/linux/kernel-features.h
15531         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
15532         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
15533         <kernel-features.h>.
15534         [__NR_fadvise64_64]: Make code unconditional.
15535         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
15536         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
15537         !__NR_fadvise64_64)]: Likewise.
15538         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
15539         !__NR_fadvise64_64))]: Likewise.
15540         [__NR_fadvise64]: Make code unconditional.
15541         [!__NR_fadvise64]: Remove conditional code.
15542         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
15543         <kernel-features.h>.
15544         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
15545         unconditional.
15546         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
15547         conditional code.
15548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
15549         not include <kernel-features.h>.
15550         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
15551         unconditional.
15552         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
15553         conditional code.
15554         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
15555         include <kernel-features.h>.
15556         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
15557         unconditional.
15558         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
15559         conditional code.
15560
15561 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15562
15563         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
15564         slight instruction rearrangements per scrollpipe analysis.
15565         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
15566
15567 2012-08-20  Roland McGrath  <roland@hack.frob.com>
15568
15569         * manual/syslog.texi (syslog; vsyslog, closelog):
15570         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
15571         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
15572
15573         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
15574         DSOCAPS to match condition on defining it.
15575
15576 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
15577
15578         * sysdeps/unix/sysv/linux/kernel-features.h
15579         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
15580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
15581         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
15582         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
15583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
15584         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
15585         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
15586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
15587         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
15588         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
15589
15590         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
15591         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
15592
15593         * sysdeps/unix/sysv/linux/kernel-features.h
15594         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
15595         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
15596         unconditional.
15597         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15598         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
15599         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
15600         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15601         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
15602         Make code unconditional.
15603         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15604         (__mmap64) [!__NR_mmap2]: Likewise.
15605         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
15606         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
15607         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15608         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
15609         [__NR_mmap2]: Make code unconditional.
15610         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15611         (__mmap64) [!__NR_mmap2]: Likewise.
15612
15613 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15614
15615         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
15616
15617 2012-08-18  Andreas Jaeger  <aj@suse.de>
15618
15619         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
15620
15621 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
15622
15623         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
15624         * include/unistd.h (__have_sock_cloexec): Likewise.
15625         (__have_pipe2): Likewise.
15626         (__have_dup3): Likewise.
15627
15628 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
15629
15630         [BZ #9685]
15631         * include/unistd.h (__have_pipe2): Change define into an extern int.
15632         (__have_dup3): Likewise.
15633         * socket/have_sock_cloexec.c: Include fcntl.h.
15634         (__have_pipe2): New variable.
15635         (__have_dup3): Likewise.
15636
15637 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
15638
15639         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
15640
15641 2012-08-17  Marek Polacek  <polacek@redhat.com>
15642
15643         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
15644         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
15645
15646 2012-08-17  Roland McGrath  <roland@hack.frob.com>
15647
15648         * configure.in: Add AC_SUBST for sysheaders.
15649         * configure: Regenerated.
15650         * config.make.in (sysheaders): New substituted variable.
15651
15652         * sysdeps/unix/mkfifo.c: Moved ...
15653         * sysdeps/posix/mkfifo.c: ... here.
15654         * sysdeps/unix/mkfifoat.c: Moved ...
15655         * sysdeps/posix/mkfifoat.c: ... here.
15656
15657         * sysdeps/unix/utime.c: Moved ...
15658         * sysdeps/posix/utime.c: ... here.
15659
15660         * sysdeps/unix/time.c: Moved ...
15661         * sysdeps/posix/time.c: ... here.
15662         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
15663         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
15664
15665         * sysdeps/unix/nice.c: Moved ...
15666         * sysdeps/posix/nice.c: ... here.
15667
15668         * sysdeps/unix/alarm.c: Moved ...
15669         * sysdeps/posix/alarm.c: ... here.
15670
15671         * intl/Makefile ($(codeset_mo)): Depend on the input file.
15672
15673 2012-08-17  Jeff Law <law@redhat.com>
15674
15675         * intl/Makefile (codeset_mo): New variable.
15676         ($(codeset_mo)): New target.
15677         (tst-codeset.out): Depend on that.  Remove explicit rule.
15678         (tst-gettext3.out, tst-gettext5.out): Likewise.
15679         (LOCPATH-ENV, tst-codeset-ENV): New variables.
15680         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
15681         * intl/tst-codeset.sh: Remove.
15682         * intl/tst-gettext3.sh: Likewise.
15683         * intl/tst-gettext5.sh: Likewise.
15684
15685 2012-08-17  Roland McGrath  <roland@hack.frob.com>
15686
15687         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
15688         * sysdeps/unix/syscalls.list: ... here.
15689
15690         * sysdeps/posix/getaddrinfo.c
15691         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
15692         (gaiconf_init, gaiconf_reload): Use them.
15693         [!_STATBUF_ST_NSEC]
15694         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
15695         Define using time_t rather than struct timespec.
15696
15697         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
15698         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
15699         Macros removed.
15700         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
15701         [!NO_THREADS].
15702         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
15703         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
15704         Likewise.
15705
15706         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
15707         __libc_cleanup_push argument.
15708
15709         * bits/param.h: New file.
15710         * misc/sys/param.h: New file.
15711         * include/sys/param.h: New file.
15712         * misc/Makefile (headers): Add bits/param.h.
15713         * sysdeps/generic/sys/param.h: File removed.
15714         * sysdeps/unix/sysv/linux/bits/param.h: New file.
15715         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
15716         * sysdeps/mach/hurd/bits/param.h: New file.
15717         * sysdeps/mach/hurd/sys/param.h: File removed.
15718
15719         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
15720         last change.
15721
15722         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
15723         [_IO_MTSAFE_IO].
15724         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
15725         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
15726         New macros.
15727
15728         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
15729         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
15730         rather than -D_IO_MTSAFE_IO conditionally.
15731         * stdio-common/Makefile (CPPFLAGS): Likewise.
15732         * wcsmbs/Makefile (CPPFLAGS): Likewise.
15733         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
15734         Use $(libio-mtsafe).
15735         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
15736         of -D_IO_MTSAFE_IO.
15737         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
15738         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
15739         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
15740         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
15741         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
15742         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
15743         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
15744         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
15745         (CFLAGS-fread_u_chk.c): Likewise.
15746         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
15747         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
15748         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
15749         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
15750         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
15751         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
15752         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
15753         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
15754         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
15755
15756         * libio/Makefile: Test [$(libc-reentrant) = yes]
15757         instead of [$(filter %REENTRANT, $(defines)) nonempty].
15758
15759         * Makeconfig
15760         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
15761         * sysdeps/pthread/configure: File removed.
15762         * sysdeps/pthread/Makeconfig: New file.
15763         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
15764         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
15765
15766 2012-08-16  Gary Benson  <gbenson@redhat.com>
15767
15768         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
15769         unmapping the first object in a namespace.
15770
15771 2012-08-16  Roland McGrath  <roland@hack.frob.com>
15772
15773         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
15774         (__internal_setnetgrent): ... this.  Add internal_function to
15775         definition.  Add libc_hidden_def.
15776         (setnetgrent): Update caller.
15777         (internal_endnetgrent): Renamed to ...
15778         (__internal_endnetgrent): ... this.  Add internal_function to
15779         definition.  Add libc_hidden_def.
15780         (endnetgrent): Update caller.
15781         (internal_getnetgrent_r): Renamed to ...
15782         (__internal_getnetgrent_r): ... this.  Add internal_function to
15783         definition.  Add libc_hidden_def.
15784         (__getnetgrent_r): Update caller.
15785         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
15786
15787 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
15788
15789         * stdlib/longlong.h: Update from GCC.
15790
15791 2012-08-16  Roland McGrath  <roland@hack.frob.com>
15792
15793         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
15794         on _QL, which is set by umul_ppmm but never used.
15795         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
15796         variables, which are set by GMP macros but never used.
15797         * stdio-common/_itowa.c (_itowa): Likewise.
15798         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
15799         * stdlib/mod_1.c (mpn_mod_1): Likewise.
15800
15801 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
15802
15803         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
15804         struct La_sh_regs is not constant.
15805         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
15806         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
15807         and struct La_sparc64_regs are not constant.
15808
15809 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
15810
15811         * sysdeps/unix/sysv/linux/kernel-features.h
15812         (__ASSUME_POSIX_TIMERS): Remove.
15813         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15814         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15815         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
15816         Make code unconditional.
15817         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15818         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
15819         Make code unconditional.
15820         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15821         * sysdeps/unix/sysv/linux/clock_nanosleep.c
15822         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
15823         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15824         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
15825         Make code unconditional.
15826         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15827         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
15828         (__libc_missing_posix_timers): Remove.
15829
15830 2012-08-15  Roland McGrath  <roland@hack.frob.com>
15831
15832         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
15833         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
15834
15835         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
15836
15837         * elf/dl-sym.c: Include <stdlib.h>.
15838
15839         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
15840         constants, which avoids warnings in 32-bit builds.
15841
15842         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
15843         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
15844
15845         * misc/lseek.c: File moved to ...
15846         * io/lseek.c: ... here.
15847
15848         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
15849
15850         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
15851         shifting LEN more than 31 bits at once.
15852
15853 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15854
15855         [BZ #14195]
15856         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
15857         segmentation fault for a case of two empty input strings.
15858         * string/test-strncasecmp.c (check1): Renamed to...
15859         (bz12205): ...this.
15860         (bz14195): Add new testcase for two empty input strings and N > 0.
15861         (test_main): Call new testcase, adapt for renamed function.
15862
15863 2012-08-15  Andreas Jaeger  <aj@suse.de>
15864
15865         [BZ #14090]
15866         * crypt/md5test2.c: New test, based on test supplied by Serge
15867         Belyshev <belyshev@depni.sinp.msu.ru>.
15868         * crypt/Makefile (xtests): Add md5test-giant..
15869         * crypt/Makefile ($(objpfx)md5test-giant): Add.
15870
15871 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
15872
15873         [BZ #14090]
15874         * crypt/md5.c (md5_process_block): Don't assume the buffer
15875         length is less than 2**32.
15876         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
15877         length is less than 2**64.
15878
15879 2012-08-15  Roland McGrath  <roland@hack.frob.com>
15880
15881         * string/str-two-way.h: Include <sys/param.h>.
15882         (MAX): Macro removed.
15883
15884         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
15885         Move #define and #undef of memmove to just before and after
15886         including <string.h>.
15887
15888         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
15889         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
15890         and after including <string.h>.  Move declarations of
15891         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
15892         to before #include "string/memmove.c".
15893
15894         * include/dirent.h: Declare __getdirentries.
15895
15896         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
15897         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
15898
15899 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
15900
15901         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
15902         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
15903         * sysdeps/i386/configure: Regenerated.
15904         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
15905         STABS_CURRENT_FILE, and STABS_FUN.
15906         (END): Remove call to STABS_FUN_END.
15907         (STABS_CURRENT_FILE1): Delete.
15908         (STABS_CURRENT_FILE): Likewise.
15909         (STABS_FUN): Likewise.
15910         (STABS_FUN_END): Likewise.
15911         (STABS_FUN2): Likewise.
15912         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
15913         * sysdeps/x86_64/configure: Regenerated.
15914
15915 2012-08-14  Roland McGrath  <roland@hack.frob.com>
15916
15917         * elf/dl-open.c: Include <atomic.h>.
15918         * elf/dl-lookup.c: Likewise.
15919
15920 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
15921
15922         * sysdeps/unix/sysv/linux/kernel-features.h
15923         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
15924         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
15925         unconditionally.
15926         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
15927         unconditionally.
15928         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
15929         condition on __ASSUME_CLONE_THREAD_FLAGS.
15930
15931 2012-08-14  Andreas Jaeger  <aj@suse.de>
15932
15933         * sysdeps/i386/fpu/libm-test-ulps: Update.
15934
15935 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
15936
15937         * include/atomic.h (atomic_exchange_and_add): Split into ...
15938         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
15939         New atomic macros.
15940
15941 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
15942
15943         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15944
15945 2012-08-13  Jeff Law <law@redhat.com>
15946
15947         * manual/stdio.texi (snprintf): Clarify handling of the trailing
15948         null byte in the output string.
15949
15950 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
15951
15952         * sysdeps/unix/sysv/linux/kernel-features.h
15953         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
15954         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
15955         (__ASSUME_ARG_MAX_STACK_BASED): Define.
15956         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
15957         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
15958         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
15959         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
15960
15961 2012-08-09  Jeff Law <law@redhat.com>
15962
15963         [BZ #13939]
15964         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
15965         When avoid_arena is set, don't retry in the that arena.  Pick the
15966         next one, whatever it might be.
15967         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
15968         (arena_lock): Pass in new parameter to arena_get2.
15969         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
15970         arena_get2.
15971         (__libc_malloc): Unify retrying after main arena failure with
15972         __libc_memalign version.
15973         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
15974
15975 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
15976
15977         [BZ #14166]
15978         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
15979         to __redirect_strstr.
15980         (__strstr_sse42): Use typeof __redirect_strstr.
15981         (__strstr_ia32): Likewise.
15982         (__libc_strstr): New prototype.
15983         (strstr): Renamed to ...
15984         (__libc_strstr): This.
15985         (strstr): New strong alias of __libc_strstr.
15986         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
15987         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
15988         __redirect_time.
15989         Include <time.h>.
15990         (__libc_time): New prototype.
15991         (time_ifunc): Replace time with __libc_time.
15992         (time): New strong alias and hidden definition of __libc_time.
15993         (__GI_time): Remove strong alias.
15994         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
15995         Include <stddef.h>.
15996         (memmove): Redefined to __redirect_memmove.
15997         (__memmove_sse2): Use typeof __redirect_memmove.
15998         (__memmove_ssse3): Likewise.
15999         (__memmove_ssse3_back): Likewise.
16000         (__libc_memmove): New prototype.
16001         (memmove): Renamed to ...
16002         (__libc_memmove): This.
16003         (memmove): New strong alias of __libc_memmove.
16004
16005 2012-08-08  Mark Salter  <msalter@redhat.com>
16006
16007         * elf/elf.h
16008         (R_MN10300_TLS_GD): Define.
16009         (R_MN10300_TLS_LD): Likewise.
16010         (R_MN10300_TLS_LDO): Likewise.
16011         (R_MN10300_TLS_GOTIE): Likewise.
16012         (R_MN10300_TLS_IE): Likewise.
16013         (R_MN10300_TLS_LE): Likewise.
16014         (R_MN10300_TLS_DTPMOD): Likewise.
16015         (R_MN10300_TLS_DTPOFF): Likewise.
16016         (R_MN10300_TLS_TPOFF): Likewise.
16017         (R_MN10300_SYM_DIFF): Likewise.
16018         (R_MN10300_ALIGN): Likewise.
16019         (R_MN10300_NUM): Update.
16020
16021 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
16022
16023         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
16024         Remove.
16025
16026 2012-08-08  Roland McGrath  <roland@hack.frob.com>
16027
16028         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
16029
16030         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
16031         sysdeps/unix -> sysdeps/posix move.
16032         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
16033
16034 2012-08-07      Allan McRae     <allan@archlinux.org>
16035
16036         [BZ #14303]
16037         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
16038         (SUNOS_CPP): Likewise.
16039         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
16040         not found.
16041         (open_input): Call CPP using execvp.
16042
16043 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
16044
16045         * sysdeps/unix/sysv/linux/kernel-features.h
16046         (__ASSUME_PROT_GROWSUPDOWN): Remove.
16047         (__ASSUME_NO_CLONE_DETACHED): Likewise.
16048         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
16049         (__ASSUME_WAITID_SYSCALL): Likewise.
16050         * sysdeps/unix/sysv/linux/dl-execstack.c
16051         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
16052         code unconditional.
16053         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
16054         conditional code.
16055         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
16056         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
16057         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
16058         code.
16059         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
16060         unconditional.
16061         [__ASSUME_WAITID_SYSCALL]: Likewise.
16062         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
16063
16064 2012-08-07  Roland McGrath  <roland@hack.frob.com>
16065
16066         * sysdeps/unix/closedir.c: Renamed to ...
16067         * sysdeps/posix/closedir.c: ... here.
16068         * sysdeps/unix/dirfd.c: Renamed to ...
16069         * sysdeps/posix/dirfd.c: ... here.
16070         * sysdeps/unix/dirstream.h: Renamed to ...
16071         * sysdeps/posix/dirstream.h: ... here.
16072         * sysdeps/unix/fdopendir.c: Renamed to ...
16073         * sysdeps/posix/fdopendir.c: ... here.
16074         * sysdeps/unix/opendir.c: Renamed to ...
16075         * sysdeps/posix/opendir.c: ... here.
16076         * sysdeps/unix/readdir.c: Renamed to ...
16077         * sysdeps/posix/readdir.c: ... here.
16078         * sysdeps/unix/readdir_r.c: Renamed to ...
16079         * sysdeps/posix/readdir_r.c: ... here.
16080         * sysdeps/unix/rewinddir.c: Renamed to ...
16081         * sysdeps/posix/rewinddir.c: ... here.
16082         * sysdeps/unix/seekdir.c: Renamed to ...
16083         * sysdeps/posix/seekdir.c: ... here.
16084         * sysdeps/unix/telldir.c: Renamed to ...
16085         * sysdeps/posix/telldir.c: ... here.
16086         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
16087         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
16088         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
16089         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
16090
16091         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
16092         * bits/fcntl.h: ... here.
16093
16094         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
16095         not 0.
16096         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
16097         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
16098         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
16099         (struct flock): Move l_start, l_len to the beginning.
16100         Use __pid_t for l_pid.
16101         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
16102         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
16103         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
16104         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
16105         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
16106         [__USE_LARGEFILE64] (struct flock64): New type.
16107         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
16108
16109         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
16110         * bits/dirent.h: ... here.
16111
16112         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
16113         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
16114
16115 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
16116
16117         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16118         Change from 2.6.0 to 2.6.16.
16119         * sysdeps/unix/sysv/linux/configure: Regenerated.
16120         * sysdeps/unix/sysv/linux/kernel-features.h
16121         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
16122         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
16123         version.
16124         (__ASSUME_UTIMES): Likewise.
16125         (__ASSUME_CLONE_STOPPED): Remove.
16126         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
16127         architectures, not kernel version.
16128         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
16129         (__ASSUME_NO_CLONE_DETACHED): Likewise.
16130         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
16131         (__ASSUME_WAITID_SYSCALL): Likewise.
16132         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
16133         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
16134         * README: State 2.6.16 as minimum Linux kernel version.  Do not
16135         refer to older versions.
16136
16137 2012-08-06  Roland McGrath  <roland@hack.frob.com>
16138
16139         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
16140         Define alphasort64 as an alias.
16141         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
16142         Define versionsort64 as an alias.
16143         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
16144         Define scandir64 as an alias.
16145         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
16146         Define scandirat64 as an alias.
16147         * dirent/alphasort64.c (alphasort64):
16148         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
16149         * dirent/versionsort64.c: Likewise.
16150         * dirent/scandir64.c: Likewise.
16151         * dirent/scandirat64.c: Likewise.
16152         * sysdeps/wordsize-64/alphasort.c: File removed.
16153         * sysdeps/wordsize-64/alphasort64.c: File removed.
16154         * sysdeps/wordsize-64/scandir.c: File removed.
16155         * sysdeps/wordsize-64/scandir64.c: File removed.
16156         * sysdeps/wordsize-64/scandirat.c: File removed.
16157         * sysdeps/wordsize-64/scandirat64.c: File removed.
16158         * sysdeps/wordsize-64/versionsort.c: File removed.
16159         * sysdeps/wordsize-64/versionsort64.c: File removed.
16160         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
16161         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
16162         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
16163         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
16164         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
16165         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
16166         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
16167         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
16168
16169         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
16170         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
16171         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
16172         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16173         [defined __arch64__ || defined __sparcv9]
16174         (__INO_T_MATCHES_INO64_T): New macro.
16175         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
16176         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
16177         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
16178         * sysdeps/unix/sysv/linux/bits/dirent.h
16179         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
16180         (_DIRENT_MATCHES_DIRENT64): New macro.
16181
16182         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
16183         Define lockf64 as an alias.
16184         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
16185         Define fseeko64 as an alias.
16186         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
16187         Define ftello64 as an alias.
16188         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
16189         Define _IO_fgetpos64 and fgetpos64 as aliases.
16190         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
16191         Define _IO_fsetpos64 and fsetpos64 as aliases.
16192         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
16193         Conditionalize body on this.
16194         * libio/fseeko64.c: Likewise.
16195         * libio/ftello64.c: Likewise.
16196         * libio/iofgetpos64.c: Likewise.
16197         * libio/iofsetpos64.c: Likewise.
16198         * sysdeps/wordsize-64/lockf.c: File removed.
16199         * sysdeps/wordsize-64/lockf64.c: File removed.
16200         * sysdeps/wordsize-64/fseeko.c: File removed.
16201         * sysdeps/wordsize-64/fseeko64.c: File removed.
16202         * sysdeps/wordsize-64/ftello.c: File removed.
16203         * sysdeps/wordsize-64/ftello64.c: File removed.
16204         * sysdeps/wordsize-64/iofgetpos.c: File removed.
16205         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
16206         * sysdeps/wordsize-64/iofsetpos.c: File removed.
16207         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
16208         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
16209         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
16210         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
16211         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
16212         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
16213         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
16214         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
16215         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
16216         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
16217         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
16218
16219         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
16220         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
16221         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
16222         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16223         [defined __arch64__ || defined __sparcv9]
16224         (__OFF_T_MATCHES_OFF64_T): New macro.
16225         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
16226         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
16227         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16228         (__OFF_T_MATCHES_OFF64_T): New macro.
16229
16230 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
16231
16232         * stdlib/secure-getenv.c (__secure_getenv): Replace
16233         GLIBC_2_16 with GLIBC_2_17.
16234
16235 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
16236
16237         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
16238         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
16239
16240 2012-08-03  David S. Miller  <davem@davemloft.net>
16241
16242         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16243
16244 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16245
16246         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
16247         Remove.
16248         (__ASSUME_CORRECT_SI_PID): Likewise.
16249         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
16250         (__ASSUME_TMPFS_NAME): Likewise.
16251         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
16252         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
16253         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
16254         (HAVE_AUX_SECURE): Make definition unconditional.
16255         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
16256         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
16257
16258 2012-08-03  Roland McGrath  <roland@hack.frob.com>
16259
16260         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
16261         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
16262         * sysdeps/mach/hurd/eloop-threshold.h: New file.
16263         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
16264         __eloop_threshold instead of SYMLOOP_MAX.
16265
16266         * sysdeps/generic/eloop-threshold.h: New file.
16267         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
16268         of MAXSYMLINKS.
16269         * elf/chroot_canon.c (chroot_canon): Likewise.
16270
16271 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16272
16273         [BZ #13717]
16274         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16275         Change to 2.6.0 everywhere.
16276         * sysdeps/unix/sysv/linux/configure: Regenerated.
16277         * sysdeps/unix/sysv/linux/kernel-features.h
16278         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
16279         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
16280         kernel versions.
16281         (__ASSUME_POSIX_TIMERS): Define unconditionally.
16282         (__ASSUME_FUTEX_REQUEUE): Remove.
16283         (__ASSUME_STATFS64): Define unconditionally.
16284         (__ASSUME_AT_SECURE): Likewise.
16285         (__ASSUME_CORRECT_SI_PID): Likewise.
16286         (__ASSUME_TGKILL): Define without depending on kernel version for
16287         i386.
16288         (__ASSUME_UTIMES): Likewise.
16289         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
16290         kernel version.
16291         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
16292         (__ASSUME_TMPFS_NAME): Likewise.
16293         * README: Update reference to Linux kernel versions.
16294
16295 2012-08-02  Marek Polacek  <polacek@redhat.com>
16296
16297         [BZ# 14150]
16298         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
16299         libc_cv_asm_type_prefix with %.
16300         * configure: Regenerated.
16301         * include/libc-symbols.h: Remove comment about
16302         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16303         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
16304         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
16305         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
16306         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
16307         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16308         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
16309         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
16310         * elf/tst-unique2mod1.c: Likewise.
16311         * elf/tst-unique1mod2.c: Likewise.
16312         * elf/tst-unique1mod1.c: Likewise.
16313         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
16314         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
16315         Replace ASM_TYPE_DIRECTIVE with .type.
16316         * sysdeps/s390/s390-64/sysdep.h: Likewise.
16317         * sysdeps/i386/sysdep.h: Likewise.
16318         * sysdeps/x86_64/sysdep.h: Likewise.
16319         * sysdeps/sh/sysdep.h: Likewise.
16320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16321         Do not define ASM_TYPE_DIRECTIVE.
16322         * sysdeps/powerpc/sysdep.h: Likewise.
16323         * sysdeps/powerpc/powerpc32/sysdep.h:
16324         Replace ASM_TYPE_DIRECTIVE with .type.
16325         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
16326         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16327         * sysdeps/i386/fpu/e_powf.S: Likewise.
16328         * sysdeps/i386/fpu/e_expl.S: Likewise.
16329         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16330         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16331         * sysdeps/i386/fpu/e_pow.S: Likewise.
16332         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
16333         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16334         * sysdeps/i386/fpu/s_expm1.S: Likewise.
16335         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
16336         * sysdeps/i386/fpu/e_log2.S: Likewise.
16337         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16338         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16339         * sysdeps/i386/fpu/e_powl.S: Likewise.
16340         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16341         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
16342         * sysdeps/i386/fpu/e_logl.S: Likewise.
16343         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
16344         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
16345         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
16346         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16347         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16348         * sysdeps/i386/fpu/e_log.S: Likewise.
16349         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16350         * sysdeps/i386/fpu/e_logf.S: Likewise.
16351         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16352         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16353         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
16354         * sysdeps/i386/fpu/e_log10.S: Likewise.
16355         * sysdeps/i386/fpu/s_frexp.S: Likewise.
16356         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16357         * sysdeps/i386/fpu/s_asinh.S: Likewise.
16358         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
16359         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16360         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
16361         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
16362         * sysdeps/i386/i686/strtok.S: Likewise.
16363         * sysdeps/i386/i386-mcount.S: Likewise.
16364         * sysdeps/i386/strtok.S: Likewise.
16365         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
16366         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16367         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16368         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16369         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
16370         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16371         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
16372         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
16373         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16374         * sysdeps/x86_64/_mcount.S: Likewise.
16375         * sysdeps/x86_64/strtok.S: Likewise.
16376         * sysdeps/sh/_mcount.S: Likewise.
16377
16378 2012-08-01  Roland McGrath  <roland@hack.frob.com>
16379
16380         * libio/iofopen.c: Include <fcntl.h>.
16381         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
16382         (_IO_fopen64, fopen64): Define as aliases.
16383         * libio/iofopen64.c: Include <fcntl.h>.
16384         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
16385         Conditionalize body on this.
16386         * sysdeps/wordsize-64/iofopen.c: File removed.
16387         * sysdeps/wordsize-64/iofopen64.c: File removed.
16388
16389 2012-08-01  Marek Polacek  <polacek@redhat.com>
16390
16391         * libc/Makeconfig: Use elf in place of binfmt-subdir.
16392         Use dlfcn directly instead of a variable.
16393         (binfmt-subdir): Do not define.
16394         (dlfcn): Likewise.
16395
16396 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
16397
16398         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
16399         Remove all definitions.
16400         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
16401         <kernel-features.h>.
16402         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
16403         (miss_F_GETOWN_EX): Remove all definitions.
16404         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
16405         macro definition.
16406         [!__ASSUME_FCNTL64]: Remove conditional code.
16407         [__ASSUME_FCNTL64]: Make code unconditional.
16408         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
16409         <kernel-features.h>.
16410         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
16411         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
16412         (lockf64) [__NR_fcntl64]: Make code unconditional.
16413         (lockf64) [__ASSUME_FCNTL64]: Likewise.
16414
16415         * sysdeps/unix/sysv/linux/kernel-features.h
16416         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
16417         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
16418         Make code unconditional.
16419         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16420         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
16422         [__NR_vfork]: Make code unconditional.
16423         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16424         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
16426         [__NR_vfork]: Make code unconditional.
16427         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16428         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16429
16430 2012-08-01  Roland McGrath  <roland@hack.frob.com>
16431
16432         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
16433         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
16434
16435         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16436         Define mkstemp64 as an alias.
16437         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16438         Define mkstemps64 as an alias.
16439         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16440         Define mkostemp64 as an alias.
16441         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16442         Define mkostemps64 as an alias.
16443         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
16444         Conditionalize body on this.
16445         * misc/mkostemp64.c: Likewise.
16446         * misc/mkostemps64.c: Likewise.
16447         * misc/mkstemps64.c: Likewise.
16448         * sysdeps/wordsize-64/mkstemp64.c: File removed.
16449         * sysdeps/wordsize-64/mkostemp64.c: File removed.
16450         * sysdeps/wordsize-64/mkostemp.c: File removed.
16451         * sysdeps/wordsize-64/mkstemp.c: File removed.
16452         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
16453         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
16454         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
16455         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
16456
16457         [BZ #14138]
16458         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
16459         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
16460         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
16461         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
16462
16463         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
16464         compat_symbol macros from <shlib-compat.h> rather than the underlying
16465         default_symbol_version and symbol_version macros, so that DEFAULT
16466         lines in shlib-versions are respected.
16467         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
16468
16469 2012-08-01  Florian Weimer  <fweimer@redhat.com>
16470
16471         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
16472         Declare with warn_unused_result.
16473         (setgid, setregid, setegid, setresgid): Likewise.
16474         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
16475         Likewise.
16476         * WUR-REPORT: Remove set*id functions.
16477
16478 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
16479
16480         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
16481
16482 2012-07-31  Roland McGrath  <roland@hack.frob.com>
16483
16484         [BZ #10191]
16485         * include/sys/socket.h (__libc_accept, __libc_accept4):
16486         Add attribute_hidden.
16487         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
16488
16489         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
16490         use of PTR_MANGLE.
16491         * inet/getnetgrent_r.c (setup): Likewise.
16492
16493         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
16494
16495 2012-07-31  David S. Miller  <davem@davemloft.net>
16496
16497         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16498
16499 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
16500
16501         [BZ #13629]
16502         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
16503         value between 1.0 and 2.0 and smaller part has absolute value less
16504         than 1.0.
16505         * math/s_clog10.c (__clog10): Likewise.
16506         * math/s_clog10f.c (__clog10f): Likewise.
16507         * math/s_clog10l.c (__clog10l): Likewise.
16508         * math/s_clogf.c (__clogf): Likewise.
16509         * math/s_clogl.c (__clogl): Likewise.
16510         * math/libm-test.inc (clog_test): Add more tests.
16511         (clog10_test): Likewise.
16512         * sysdeps/i386/fpu/libm-test-ulps: Update.
16513         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16514
16515 2012-07-31  Florian Weimer  <fweimer@redhat.com>
16516
16517         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
16518         Exit with zero in case no suitable GID is found, and write a
16519         message to standard error.
16520
16521 2012-07-30  Roland McGrath  <roland@hack.frob.com>
16522
16523         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
16524         rather than to 1.
16525         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
16526         (MAXPATHLEN): Removed.
16527         (NOGROUP, NODEV): New macros.
16528         (setbit, clrbit, isset, isclr): New macros.
16529         (howmany, roundup, powerof2): New macros.
16530         (DEV_BSIZE): New macro.
16531
16532         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
16533         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
16534
16535         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
16536         definition on [!__NO_LONG_DOUBLE_MATH].
16537
16538         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
16539         PTR_MANGLE and PTR_DEMANGLE.
16540
16541         * socket/accept4.c (accept4): Rename to __libc_accept4.
16542         Define accept4 as a weak alias.
16543
16544         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
16545         on [_DIRENT_HAVE_D_TYPE].
16546         * io/ftw.c (ftw_dir): Likewise.
16547
16548         * io/xmknod.c (__xmknod): Don't check PATH for being null.
16549
16550         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
16551
16552         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
16553         Use the BSD numbers rather than the arbitrary ones we had.
16554         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
16555         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
16556         (SIGXCPU, SIGXFSZ): New macros.
16557         (_NSIG): Now 32.
16558
16559         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
16560         initializer on [_LIBC_REENTRANT].
16561
16562         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
16563         definitions inside [_POSIX_MAPPED_FILES].
16564
16565         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
16566
16567         * dirent/opendir.c: Include <fcntl.h>.
16568
16569         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
16570         (__libc_getspecific): Likewise.
16571         (__libc_key_create): Likewise.
16572
16573         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
16574         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
16575         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
16576         (tmpfile64): Define as alias.
16577         * sysdeps/wordsize-64/tmpfile.c: File removed.
16578         * sysdeps/wordsize-64/tmpfile64.c: File removed.
16579         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
16580         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
16581
16582         * stdio-common/vfscanf.c: Include <stdbool.h>.
16583         * nss/makedb.c: Likewise.
16584         * stdio-common/_i18n_number.h: Likewise.
16585         * argp/argp-help.c: Likewise.
16586         * posix/wordexp.c: Likewise.
16587         * sysdeps/posix/spawni.c: Likewise.
16588         * nss/nss_files/files-initgroups.c: Likewise.
16589         * stdio-common/reg-modifier.c: Include <stdlib.h>.
16590         * nss/nss_files/files-initgroups.c: Likewise.
16591         * nss/nss_db/db-netgrp.c: Likewise.
16592         * nss/nss_db/db-initgroups.c: Likewise.
16593         * io/fchmodat.c: Include <sys/stat.h>.
16594
16595         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
16596         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
16597
16598         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
16599         [HAVE_MMAP].
16600
16601         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
16602         Add multiple inclusion protection.
16603
16604 2012-07-27  David S. Miller  <davem@davemloft.net>
16605
16606         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16607
16608 2012-07-27  Gary Benson  <gbenson@redhat.com>
16609
16610         [BZ #14298]
16611         * elf/rtld.c: Include <stap-probe.h>.
16612         (dl_main): Added static probes "init_start" and "init_complete".
16613         * elf/dl-load.c: Include <stap-probe.h>.
16614         (lose): Take new parameter "nsid".
16615         Added static probe "map_failed".
16616         (_dl_map_object_from_fd): Pass namespace id to lose.
16617         Added static probe "map_start".
16618         (open_verify): Pass namespace id to lose.
16619         * elf/dl-open.c: Include <stap-probe.h>.
16620         (dl_open_worker) Added static probes "map_complete", "reloc_start"
16621         and "reloc_complete".
16622         * elf/dl-close.c: Include <stap-probe.h>.
16623         (_dl_close_worker): Added static probes "unmap_start" and
16624         "unmap_complete".
16625         * elf/rtld-debugger-interface.txt: New file documenting the above.
16626
16627 2012-07-26  Roland McGrath  <roland@hack.frob.com>
16628
16629         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
16630         rather than a string variable.
16631         * sunrpc/rpc_main.c (h_output): Likewise.
16632         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
16633
16634 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
16635
16636         * inet/check_native.c: New file.
16637
16638 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
16639
16640         [BZ #13629]
16641         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
16642         if larger part has absolute value 1.0.
16643         * math/s_clog10.c (__clog10): Likewise.
16644         * math/s_clog10f.c (__clog10f): Likewise.
16645         * math/s_clog10l.c (__clog10l): Likewise.
16646         * math/s_clogf.c (__clogf): Likewise.
16647         * math/s_clogl.c (__clogl): Likewise.
16648         * math/libm-test.inc (clog_test): Add more tests.
16649         (clog10_test): Likewise.
16650         * sysdeps/i386/fpu/libm-test-ulps: Update.
16651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16652
16653         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
16654         (pltexit): Likewise.
16655         (La_regs): Likewise.
16656         (La_retval): Likewise.
16657         (int_retval): Likewise.
16658         Update #error for removed macros to refer only to definitions in
16659         tst-audit.h.
16660         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
16661         macro.
16662         (pltexit): Likewise.
16663         (La_regs): Likewise.
16664         (La_retval): Likewise.
16665         (int_retval): Likewise.
16666         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
16667         macro.
16668         (pltexit): Likewise.
16669         (La_regs): Likewise.
16670         (La_retval): Likewise.
16671         (int_retval): Likewise.
16672         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
16673         macro.
16674         (pltexit): Likewise.
16675         (La_regs): Likewise.
16676         (La_retval): Likewise.
16677         (int_retval): Likewise.
16678         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
16679         macro.
16680         (pltexit): Likewise.
16681         (La_regs): Likewise.
16682         (La_retval): Likewise.
16683         (int_retval): Likewise.
16684         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
16685         macro.
16686         (pltexit): Likewise.
16687         (La_regs): Likewise.
16688         (La_retval): Likewise.
16689         (int_retval): Likewise.
16690         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
16691         macro.
16692         (pltexit): Likewise.
16693         (La_regs): Likewise.
16694         (La_retval): Likewise.
16695         (int_retval): Likewise.
16696         * sysdeps/generic/tst-audit.h: Update comment to refer only to
16697         macro definitions in tst-audit.h.
16698         * sysdeps/i386/tst-audit.h: New file.
16699         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
16700         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
16701         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
16702         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
16703         * sysdeps/sh/tst-audit.h: Likewise.
16704         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
16705         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
16706         * sysdeps/x86_64/tst-audit.h: Likewise.
16707
16708 2012-07-26  Andreas Jaeger  <aj@suse.de>
16709
16710         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
16711         ptrace.
16712
16713         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
16714         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
16715         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
16716         PTRACE_O_MASK.
16717         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
16718         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
16719         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
16720
16721         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
16722         value.
16723
16724         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
16725         _sigsys.
16726         (si_call_addr, si_syscall, si_arch): Define new macro.
16727         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
16728         _sigsys.
16729         (si_call_addr, si_syscall, si_arch): Define new marcro.
16730         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
16731         _sigsys.
16732         (si_call_addr, si_syscall, si_arch): Define new macro.
16733         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
16734         _sigsys.
16735         (si_call_addr, si_syscall, si_arch): Define new macro.
16736
16737 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
16738
16739         [BZ #13717]
16740         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16741         Change to 2.4.21 where previously 2.4.1.
16742         * sysdeps/unix/sysv/linux/configure: Regenerated.
16743         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
16744         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
16745         Linux kernel version.
16746         (__ASSUME_STD_AUXV): Remove.
16747         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
16748         kernel version.
16749         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
16750         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
16751         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
16752         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
16753         (__ASSUME_NETLINK_SUPPORT): Likewise.
16754         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
16755         (__no_netlink_support): Remove conditional definition.
16756         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
16757         Remove.
16758         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
16759         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
16760         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
16761         (if_nameindex_ioctl): Remove.
16762         (if_nameindex_netlink): Do not handle __no_netlink_support.
16763         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
16764         code.
16765         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
16766         Remove conditional code.
16767         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
16768         code.
16769         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
16770         unconditional.
16771         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
16772         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
16773         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
16774         Remove.
16775         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
16776         [!__ASSUME_STD_AUXV]: Remove conditional code.
16777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
16778         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
16779         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
16780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
16781         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
16782         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
16783         code.
16784         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
16785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
16786         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
16787         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
16788         conditional code.
16789         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
16790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
16791         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
16792         code.
16793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
16794         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
16795         conditional code.
16796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
16797         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
16798         code unconditional.
16799         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16800         conditional code.
16801         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16802         unconditional.
16803         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16804         conditional code.
16805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
16806         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16807         unconditional.
16808         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16809         conditional code.
16810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
16811         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
16812         code unconditional.
16813         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16814         conditional code.
16815         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16816         unconditional.
16817         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16818         conditional code.
16819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
16820         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
16821         code unconditional.
16822         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16823         conditional code.
16824         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16825         unconditional.
16826         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16827         conditional code.
16828
16829 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
16830
16831         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
16832         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
16833         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
16834         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
16835         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
16836         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
16837         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
16838         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
16839         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
16840         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
16841         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
16842         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
16843         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
16844         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
16845         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
16846         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
16847         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
16848         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
16849         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
16850         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
16851         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
16852         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
16853         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16854
16855 2012-07-25  Florian Weimer  <fweimer@redhat.com>
16856
16857         * Versions.def: Add GLIBC_2.17.
16858         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
16859         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
16860         Introduce __libc_secure_getenv.
16861         * stdlib/Versions (2.17): Add secure_getenv
16862         (GLIBC_PRIVATE): Add __libc_secure_getenv.
16863         * stdlib/secure-getenv.c: Rename __secure_getenv to
16864         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
16865         symbol __secure_getenv for GLIBC_2.0.
16866         * stdlib/tst-secure-getenv.c: New.
16867         * stdlib/Makefile (tests): Add testcase.
16868         * manual/startup.texi (Environment Access): Document
16869         secure_getenv.
16870         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
16871         __libc_secure_getenv.
16872         * inet/ruserpass.c (ruserpass): Likewise.
16873         * malloc/mtrace.c (mtrace): Likewise.
16874         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
16875         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
16876         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
16877         * sysdeps/posix/tempname.c: Likewise.  Evaluate
16878         HAVE_SECURE_GETENV.
16879         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
16880         __secure_getenv to __libc_secure_getenv.
16881         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
16882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16883         Likewise.
16884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16885         Likewise.
16886         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
16887         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
16888         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
16889         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
16890         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
16891         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
16892         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
16893
16894 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
16895
16896         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
16897         (struct La_i86_retval): Likewise.
16898         (struct La_x86_64_regs): Likewise.
16899         (struct La_x86_64_retval): Likewise.
16900         (struct La_x32_regs): Likewise.
16901         (struct La_x32_retval): Likewise.
16902         (struct La_ppc32_regs): Likewise.
16903         (struct La_ppc32_retval): Likewise.
16904         (struct La_ppc64_regs): Likewise.
16905         (struct La_ppc64_retval): Likewise.
16906         (struct La_sh_regs): Likewise.
16907         (struct La_sh_retval): Likewise.
16908         (struct La_s390_32_regs): Likewise.
16909         (struct La_s390_32_retval): Likewise.
16910         (struct La_s390_64_regs): Likewise.
16911         (struct La_s390_64_retval): Likewise.
16912         (struct La_sparc32_regs): Likewise.
16913         (struct La_sparc32_retval): Likewise.
16914         (struct La_sparc64_regs): Likewise.
16915         (struct La_sparc64_retval): Likewise.
16916         (struct audit_ifaces): Remove architecture-specific pltenter and
16917         pltexit members.
16918         * sysdeps/i386/ldsodefs.h: New file.
16919         * sysdeps/powerpc/ldsodefs.h: Likewise.
16920         * sysdeps/s390/ldsodefs.h: Likewise.
16921         * sysdeps/sh/ldsodefs.h: Likewise.
16922         * sysdeps/sparc/ldsodefs.h: Likewise.
16923         * sysdeps/x86_64/ldsodefs.h: Likewise.
16924
16925 2012-07-25  Marek Polacek  <polacek@redhat.com>
16926
16927         [BZ #6808]
16928         * math/libm-test.inc (yn_test): Add another test.
16929         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
16930         to ERANGE when the result is +-Inf.
16931         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
16932         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
16933         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
16934         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
16935
16936 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
16937
16938         * conform/data/time.h-data (NULL): Use macro-constant.  Require
16939         equal to 0.
16940         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
16941         clock_t.
16942         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
16943
16944 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
16945
16946         * configure.in <sysdeps resolving>: Correct printing
16947         Implies_before.
16948         * configure: Regenerate.
16949
16950 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
16951
16952         * math/w_ilogb.c: Include <limits.h>.
16953         * math/w_ilogbl.c: Likewise.
16954
16955 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
16956
16957         * manual/lang.texi (__va_copy): Document primarily as ISO C99
16958         va_copy.  Document allowing for unavailable va_copy only as
16959         pre-C99 compatibility.
16960         * manual/string.texi (Copying and Concatenation): Use va_copy
16961         instead of __va_copy in concat example.
16962
16963 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
16964
16965         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
16966         (__sendto): Use create_address_port.  Initialize APORT and deallocate
16967         it if not null.
16968
16969         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
16970         with O_NOLINK passed to __file_name_lookup.
16971
16972         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
16973         with O_NOLINK passed to __file_name_lookup.
16974
16975         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
16976         negative N or less than NGIDS.
16977
16978         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
16979         type to string_t.  Set ERANGE as errno and return it if NAME is not big
16980         enough.  Use memcpy instead of strncpy.
16981
16982 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
16983
16984         * elf/Makefile (check-data): Remove.
16985         (localplt.data): New vpath directive.
16986         ($(objpfx)check-localplt.out): Use localplt.data from vpath
16987         instead of $(check-data).
16988         * scripts/data/localplt-generic.data: Move to ...
16989         * sysdeps/generic/localplt.data: ... here.
16990         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
16991         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
16992         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
16993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
16994         ... here.
16995         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
16996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
16997         ... here.
16998         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
16999         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
17000         ... here.
17001         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
17002         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
17003         ... here.
17004         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
17005         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
17006         ... here.
17007         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
17008         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
17009         ... here.
17010
17011 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17012
17013         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
17014         PPC32 and PPC64 files.
17015         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
17016         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
17017
17018 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17019
17020         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
17021         __makecontext_ret to ...
17022         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
17023         ... here and call exit if uc_link is NULL.  New file.
17024         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
17025         __makecontext_ret.S.
17026         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
17027         __makecontext_ret to ...
17028         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
17029         ... here and call exit if uc_link is NULL.  New file.
17030         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
17031         __makecontext_ret.S.
17032
17033 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17034
17035         * elf/elf.h (R_390_IRELATIVE): New definition.
17036         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
17037         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
17038         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
17039         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
17040         (elf_machine_lazy_rel): Likewise.
17041         * sysdeps/s390/dl-irel.h: New file.
17042         * sysdeps/s390/s390-64/memcpy.S: New asm code.
17043         * sysdeps/s390/s390-64/memset.S: New asm code.
17044         * sysdeps/s390/s390-64/memcmp.S: New asm code.
17045         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
17046         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
17047         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
17048         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
17049         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
17050         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
17051         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
17052         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
17053         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
17054         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
17055         * sysdeps/s390/s390-32/memcpy.S: New asm code.
17056         * sysdeps/s390/s390-32/memset.S: New asm code.
17057         * sysdeps/s390/s390-32/memcmp.S: New asm code.
17058
17059 2012-07-17  Marek Polacek  <polacek@redhat.com>
17060
17061         [BZ #14349]
17062         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
17063         * sysdeps/s390/s390-64/configure.in: Likewise.
17064         * sysdeps/sparc/configure.in: Likewise.
17065         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
17066         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
17067         * sysdeps/i386/configure.in: Likewise.
17068         * sysdeps/x86_64/configure.in: Likewise.
17069         * sysdeps/sh/configure.in: Likewise.
17070         * sysdeps/s390/s390-32/configure: Regenerated.
17071         * sysdeps/s390/s390-64/configure: Likewise.
17072         * sysdeps/x86_64/configure: Likewise.
17073         * sysdeps/sh/configure: Likewise.
17074         * sysdeps/powerpc/powerpc64/configure: Likewise.
17075         * sysdeps/powerpc/powerpc32/configure: Likewise.
17076         * sysdeps/sparc/configure: Likwise.
17077         * sysdeps/i386/configure: Likewise.
17078
17079         * elf/dl-open.c: Comment fixes.
17080
17081 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
17082
17083         * Makefile [CXX] (check-data): Remove.
17084         [CXX] (c++-types.data): New vpath directive.
17085         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
17086         vpath.  Do not allow for C++ type data being missing.
17087         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
17088         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
17089         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
17090         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
17091         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
17092         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
17093         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
17094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
17095         ... here.
17096         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
17097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
17098         ... here.
17099         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
17100         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
17101         ... here.
17102         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
17103         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
17104         ... here.
17105         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
17106         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
17107         ... here.
17108         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
17109         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
17110         ... here.
17111         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
17112         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
17113         ... here.
17114         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
17115         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
17116
17117         * elf/tls-macros.h (TLS_LE): Move architecture-specific
17118         definitions to architecture-specific files.
17119         (TLS_IE): Likewise.
17120         (TLS_LD): Likewise.
17121         (TLS_GD): Likewise.
17122         * sysdeps/i386/tls-macros.h: New file.
17123         * sysdeps/powerpc/tls-macros.h: Likewise.
17124         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
17125         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
17126         * sysdeps/sh/tls-macros.h: Likewise.
17127         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
17128         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
17129         * sysdeps/x86_64/tls-macros.h: Likewise.
17130
17131 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
17132
17133         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
17134         zero value for regular exit case.
17135
17136         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
17137         (__start_context): Preserve zero value for regular exit case.
17138
17139 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
17140             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17141
17142         * manual/setjmp.texi (setcontext): Clarify normal process
17143         termination when uc_link is the null pointer.
17144         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
17145         exit call.
17146
17147 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
17148
17149         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
17150         preprocessor.  Test for each exception mask separately.
17151
17152 2012-07-16  Andreas Jaeger  <aj@suse.de>
17153
17154         * po/ru.po: Update from translation team.
17155
17156 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
17157
17158         * conform/data/string.h-data (NULL): Use macro-constant.  Require
17159         equal to 0.
17160         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
17161         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
17162         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
17163         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
17164         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17165
17166 2012-07-13  Andreas Jaeger  <aj@suse.de>
17167
17168         * po/fr.po: Update from translation team.
17169
17170 2012-07-12  Marek Polacek  <polacek@redhat.com>
17171
17172         [BZ #14173]
17173         * math/libm-test.inc (yn_test): Add test for BZ #14173.
17174         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
17175         loop condition.
17176
17177 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
17178
17179         [BZ #13717]
17180         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
17181         Change to 2.4.1 where previously 2.4.0.
17182         * sysdeps/unix/sysv/linux/configure: Regenerated.
17183         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
17184         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
17185         version.
17186         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
17187         (__ASSUME_AT_CLKTCK): Remove.
17188         (__ASSUME_AT_PAGESIZE): Likewise.
17189         (__ASSUME_AT_XID): Likewise.
17190         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
17191         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
17192         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
17193         unconditionally.
17194         (HAVE_AUX_PAGESIZE): Likewise.
17195         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
17196         [__ASSUME_AT_CLKTCK]: Make code unconditional.
17197         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
17198
17199 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
17200
17201         [BZ #14307]
17202         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
17203         the temporary buffer used to invoke __gethostbyname2_r,
17204         __gethostbyaddr_r and gethostbyname4_r to make room for struct
17205         host_data / struct gaih_addrtuple.
17206         * resolv/nss_dns/dns-host.c (global scope): Move definition of
17207         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
17208         header file nss/nsswitch.h.
17209         * nss/nsswitch.h (global scope): Add definition of implementation
17210         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
17211         resolv/nss_dns/dns-host.c).
17212
17213 2012-07-11  Andreas Jaeger  <aj@suse.de>
17214
17215         * po/fr.po: Update from translation team.
17216
17217         * po/sv.po: Update from translation team
17218         * po/fr.po: Another update from translation team.
17219
17220 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17221
17222         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
17223         for subnormals or multiply small sinh result by itself.
17224         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17225         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17226
17227 2012-07-11  David S. Miller  <davem@davemloft.net>
17228
17229         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17230
17231 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
17232
17233         [BZ #14347]
17234         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
17235         (INTERNAL_MARK): Shift it here.
17236
17237 2012-07-10  Marek Polacek  <polacek@redhat.com>
17238
17239         [BZ #14151]
17240         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
17241         libc_cv_asm_global_directive with .globl.
17242         * configure: Regenerated.
17243         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
17244         with .globl.
17245         * sysdeps/i386/configure: Regenerated.
17246         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
17247         with .globl.
17248         * sysdeps/x86_64/configure: Regenerated.
17249         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
17250         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
17251         * elf/tst-unique2mod2.c: Likewise.
17252         * elf/tst-unique2mod1.c: Likewise.
17253         * elf/tst-unique1mod2.c: Likewise.
17254         * elf/tst-unique1mod1.c: Likewise.
17255         * sysdeps/s390/s390-32/sysdep.h: Likewise.
17256         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
17257         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17258         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
17259         * sysdeps/mach/sysdep.h: Likewise.
17260         * sysdeps/i386/sysdep.h: Likewise.
17261         * sysdeps/i386/i386-mcount.S: Likewise.
17262         * sysdeps/x86_64/_mcount.S: Likewise.
17263         * sysdeps/x86_64/sysdep.h: Likewise.
17264         * sysdeps/sh/_mcount.S: Likewise.
17265         * sysdeps/sh/sysdep.h: Likewise.
17266         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
17267         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
17268         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
17269         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
17270         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
17271         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
17272         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
17273         * locale/localeinfo.h: Likewise.
17274         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
17275         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
17276
17277 2012-07-09  Roland McGrath  <roland@hack.frob.com>
17278
17279         [BZ #14336]
17280         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
17281         system".
17282         * manual/message.texi (The Uniforum approach): Likewise.
17283         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
17284         (glibc iconv Implementation): Likewise.
17285
17286 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
17287
17288         [BZ #14337]
17289         * math/s_clog.c (__clog): Avoid scaling a value down where that
17290         could result in underflow.
17291         * math/s_clog10.c (__clog10): Likewise.
17292         * math/s_clog10f.c (__clog10f): Likewise.
17293         * math/s_clog10l.c (__clog10l): Likewise.
17294         * math/s_clogf.c (__clogf): Likewise.
17295         * math/s_clogl.c (__clogl): Likewise.
17296         * math/libm-test.inc (clog_test): Add more tests.
17297         (clog10_test): Likewise.
17298         * sysdeps/i386/fpu/libm-test-ulps: Update.
17299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17300
17301 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
17302
17303         [BZ #14283]
17304         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
17305         by 7 not 8 to examine high bit of fractional part.
17306
17307         [BZ #14042]
17308         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
17309         for call to __mcount_internal.
17310         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
17311         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
17312         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
17313
17314 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
17315
17316         [BZ #14154]
17317         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
17318         approximation for values within 0x1p-13f of an odd multiple of
17319         pi/4.
17320         * math/libm-test.inc (tan_test): Do not allow spurious underflow
17321         exception.  Add more tests.
17322         * sysdeps/i386/fpu/libm-test-ulps: Update.
17323
17324         [BZ #6778]
17325         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
17326         inputs and return -1 for them.  Do not check for +Inf in case not
17327         reachable for +Inf.
17328         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
17329         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
17330         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
17331         and return -1 for them.  Do not check for +Inf in case not
17332         reachable for +Inf.
17333         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
17334         define.
17335         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
17336         and return -1 for them.  Do not check for +Inf in case not
17337         reachable for +Inf.
17338         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
17339         spurious underflow.
17340         * sysdeps/i386/fpu/libm-test-ulps: Update.
17341         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17342
17343 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
17344
17345         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
17346
17347 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
17348
17349         [BZ #14157]
17350         [BZ #14331]
17351         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
17352         could result in spurious underflow.  Scale down values above
17353         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
17354         * math/s_csqrtf.c (__csqrtf): Likewise.
17355         * math/s_csqrtl.c (__csqrtl): Likewise.
17356         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
17357         spurious underflow.
17358         * sysdeps/i386/fpu/libm-test-ulps: Update.
17359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17360
17361 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
17362
17363         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
17364         xopen-msg.sed.
17365         * catgets/xopen-msg.awk: New file.
17366         * catgets/xopen-msg.sed: Removed.
17367
17368         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
17369         po2text.sed.
17370         * intl/po2test.awk: New file.
17371         * intl/po2test.sed: Removed.
17372
17373 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
17374
17375         [BZ #14328]
17376         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
17377         or multiply small sinh result by itself.
17378         * math/s_ctanf.c (__ctanf): Likewise.
17379         * math/s_ctanh.c (__ctanh): Likewise.
17380         * math/s_ctanhf.c (__ctanhf): Likewise.
17381         * math/s_ctanhl.c (__ctanhl): Likewise.
17382         * math/s_ctanl.c (__ctanl): Likewise.
17383         * math/libm-test.inc (ctan_test_tonearest): New function.
17384         (ctan_test_towardzero): Likewise.
17385         (ctan_test_downward): Likewise.
17386         (ctan_test_upward): Likewise.
17387         (ctanh_test_tonearest): Likewise.
17388         (ctanh_test_towardzero): Likewise.
17389         (ctanh_test_downward): Likewise.
17390         (ctanh_test_upward): Likewise.
17391         (main): Call these new functions.
17392         * sysdeps/i386/fpu/libm-test-ulps: Update.
17393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17394
17395 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
17396
17397         * .gitignore: Delete /ports entry.
17398
17399 2012-07-03  Andreas Jaeger  <aj@suse.de>
17400
17401         * po/bg.po: Update from translation team.
17402         * po/cs.po: Likewise.
17403         * po/de.po: Likewise.
17404         * po/hr.po: Likewise.
17405         * po/nl.pl: Likewise.
17406         * po/pl.po: Likewise.
17407         * po/vi.po: Likewise.
17408
17409 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
17410
17411         * Makeconfig [!+link] (+link-before-libc): New variable.
17412         [!+link] (+link-after-libc): Likewise.
17413         [!+link] (+link-tests): Likewise.
17414         [!+link] (+link): Define in terms of $(+link-before-libc) and
17415         $(+link-after-libc).
17416         [!+link-static] (+link-static-before-libc): New variable.
17417         [!+link-static] (+link-static-after-libc): Likewise.
17418         [!+link-static] (+link-static-tests): Likewise.
17419         [!+link-static] (+link-static): Define in terms of
17420         $(+link-static-before-libc) and $(+link-static-after-libc).
17421         [build-shared] (link-libc-before-gnulib): New variable.
17422         [build-shared] (link-libc-tests): Likewise.
17423         [build-shared] (link-libc): Define in terms of
17424         $(link-libc-before-gnulib).
17425         [!build-shared] (link-libc-tests): New variable.
17426         (link-libc-static-tests): New variable.
17427         [!gnulib] (gnulib-arch): New variable.
17428         [!gnulib] (gnulib-tests): Likewise.
17429         [!gnulib] (static-gnulib-arch): Likewise.
17430         [!gnulib] (static-gnulib-tests): Likewise.
17431         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
17432         Define with "=" instead of ":=".
17433         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
17434         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
17435         * Rules (binaries-all-notests): New variable.
17436         (binaries-all-tests): Likewise.
17437         (binaries-static-notests): Likewise.
17438         (binaries-static-tests): Likewise.
17439         (binaries-all): Define using $(binaries-all-notests) and
17440         $(binaries-all-tests).
17441         (binaries-static): Define using $(binaries-static-notests) and
17442         $(binaries-static-tests).
17443         (binaries-shared-tests): New variable.
17444         (binaries-shared-notests): Likewise.
17445         (binaries-shared): Remove variable.
17446         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
17447         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
17448         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
17449         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
17450         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
17451         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
17452         * elf/Makefile (sln-modules): New variable.
17453         (extra-objs): Add $(sln-modules:=.o).
17454         (ldconfig-modules): Add static-stubs.
17455         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
17456         * elf/static-stubs.c: New file.
17457
17458         [BZ #14283]
17459         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
17460         by 7 not 8 to examine high bit of fractional part.  Use volatile
17461         variables when splitting into final array of floats if
17462         __FLT_EVAL_METHOD__ != 0.
17463         * math/libm-test.inc (cos_test): Add another test.
17464         (sin_test): Likewise.
17465         * sysdeps/i386/fpu/libm-test-ulps: Update.
17466
17467         [BZ #14273]
17468         * math/libm-test.inc (cosh_test): Add more tests.
17469
17470         * version.h (RELEASE): Set to "development".
17471         (VERSION): Set to "2.16.90".
17472
17473 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
17474
17475         * NEWS: Update copyright. Remove last-updated date.
17476         Mention math library bug fixes and timezone data changes.
17477         * README: Mention GNU/Hurd, x32, and HPPA support status.
17478
17479 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
17480
17481         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
17482
17483 2012-06-27  Andreas Jaeger  <aj@suse.de>
17484
17485         * manual/contrib.texi (Contributors): Add Samuel Thibault.
17486
17487 2012-06-25  Andreas Jaeger  <aj@suse.de>
17488
17489         * sysdeps/s390/fpu/libm-test-ulps: Update.
17490
17491 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
17492             Thomas Schwinge  <thomas@codesourcery.com>
17493
17494         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
17495         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
17496         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
17497         fanotify_mark.
17498
17499 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
17500
17501         * sysdeps/mach/start.c: Remove file.
17502         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
17503         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
17504         * sysdeps/sh/init-first.c: Likewise.
17505
17506         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
17507         registers for frame unwinding purposes, add CFI directives.
17508         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
17509         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
17510         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
17511         Likewise.
17512
17513         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
17514         __fortify_fail returning.
17515         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
17516
17517         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
17518         sysdeps/sh/____longjmp_chk.S.
17519         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
17520         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
17521         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
17522         (gen-as-const-headers): Append sigaltstack-offsets.sym.
17523
17524         * sysdeps/sh/abort-instr.h: New file.
17525         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
17526         process in case exit returns.
17527
17528         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
17529         initialize the GOT register before use.
17530
17531         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
17532         calculation of ARGC > 4.
17533
17534         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
17535         meaningful names to some local labels.
17536
17537 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17538             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17539
17540         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
17541         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
17542         (__arch_compare_and_exchange_val_16_acq): Likewise.
17543         (__arch_compare_and_exchange_val_32_acq): Likewise.
17544         (atomic_exchange_and_add): Fix gUSA sequence.
17545         (atomic_add): Likewise.
17546         (atomic_add_negative): Likewise.
17547         (atomic_add_zero): Likewise.
17548         (atomic_bit_test_set): Likewise.
17549
17550 2012-06-22  Andreas Schwab  <schwab@redhat.com>
17551
17552         [BZ #13579]
17553         * include/link.h (struct link_map): Add l_free_initfini.
17554         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
17555         l_initfini.
17556         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
17557         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
17558         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
17559         set.
17560
17561 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
17562
17563         * configure.in: Use AC_LANG_SOURCE.
17564         * configure: Regenerate.
17565
17566 2012-06-22  Roland McGrath  <roland@hack.frob.com>
17567
17568         * configure.in (libc_cv_localstatedir): New substituted variable.
17569         * configure: Regenerated.
17570         * config.make.in (localstatedir): New variable, substituted from
17571         libc_cv_localstatedir.
17572         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
17573         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
17574         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
17575         * sysdeps/gnu/configure: Regenerated.
17576
17577 2012-06-21  Jeff Law  <law@redhat.com>
17578
17579         [BZ #14277]
17580         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
17581         free.  Simplify list management for _LIBC case.
17582
17583 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
17584
17585         [BZ #14273]
17586         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
17587         Clear sign bit of 64-bit integer value before comparing against
17588         overflow value.
17589
17590         * sysdeps/mach/configure: Regenerated.
17591
17592 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
17593
17594         [BZ #14278]
17595         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
17596
17597 2012-06-21  Jeff Law  <law@redhat.com>
17598
17599         [BZ #13882]
17600         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
17601         uint16_t for elements in the "seen" array to avoid char overflows.
17602         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17603         * elf/dl-open.c (dl_open_worker): Likewise.
17604
17605 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
17606
17607         * scripts/list-sources.sh: Scan PORTS for translations.
17608         * po/libc.pot: Regenerated.
17609
17610 2012-06-21  Andreas Jaeger  <aj@suse.de>
17611
17612         [BZ #12194]
17613         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
17614         warning.
17615         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
17616         * bits/byteswap-16.h (__bswap_16): Likewise.
17617         * bits/byteswap.h (__bswap_constant_16): Likewise.
17618
17619 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
17620
17621         [BZ #14117]
17622         * sysdeps/i386/fpu_control.h: Removed.
17623         * sysdeps/x86_64/fpu_control.h: Moved to ...
17624         * sysdeps/x86/fpu_control.h: Here.
17625
17626         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
17627         (_FPU_SETCW): Likewise.
17628
17629 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
17630
17631         [BZ #14117]
17632         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
17633         * sysdeps/x86/fpu/bits/mathinline.h: This.
17634         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
17635
17636         [BZ #14050]
17637         [BZ #14117]
17638         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
17639         functions if __x86_64__ is defined.
17640
17641 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
17642
17643         * string/endian.h: Add !__ASSEMBLER__ condition for including
17644         conversion interfaces.
17645
17646 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
17647
17648         [BZ #14241]
17649         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
17650         of ABS(x) in calculating zero to negative powers other than odd
17651         integers.
17652         * math/libm-test.inc (pow_test): Add more tests.
17653
17654 2012-06-15  Andreas Jaeger  <aj@suse.de>
17655
17656         * manual/contrib.texi (Contributors): Update entry of Liubov
17657         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
17658         Machado Filho.
17659
17660 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
17661
17662         * string/string.h: Add __wur to GNU version of strerror_r.
17663
17664 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
17665
17666         [BZ #14229]
17667         * string/Makefile (tests): Add tst-strtok_r.
17668         * string/tst-strtok_r.c: New file.
17669         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
17670         RAX_LP/RDX_LP on SAVE_PTR.
17671
17672 2012-06-14  Roland McGrath  <roland@hack.frob.com>
17673
17674         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
17675
17676 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
17677
17678         * libm_test.inc (csqrt_test): Allow more spurious underflow
17679         exceptions.
17680         (j0_test): Likewise.
17681         (j1_test): Likewise.
17682         (y0_test): Likewise.
17683         (y1_test): Likewise.
17684
17685 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
17686
17687         * po/Makefile (libc.pot): Use UTF-8 charset.
17688
17689 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
17690
17691         [BZ #14210]
17692         Suppress sign-conversion warning from FD_SET.
17693         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
17694         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
17695         not unsigned long int.
17696         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
17697
17698 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
17699
17700         [BZ #14050]
17701         [BZ #14117]
17702         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
17703         __extern_always_inline instead of __extern_inline.
17704         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
17705         (__signbit): Likewise.
17706         (__signbitl): Support C++ namespace.
17707         (lrintf): New inline function.
17708         (lrint): Likewise.
17709         (llrintf): Likewise.
17710         (llrint): Likewise.
17711         (fmaxf): Likewise.
17712         (fmax): Likewise.
17713         (fminf): Likewise.
17714         (fmin): Likewise.
17715         (rint): Likewise.
17716         (rintf): Likewise.
17717         (ceil): Likewise.
17718         (ceilf): Likewise.
17719         (floor): Likewise.
17720         (floorf): Likewise.
17721         (nearbyint): Likewise.
17722         (nearbyintf): Likewise.
17723
17724 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
17725
17726         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
17727         non-default versions.
17728
17729 2012-06-11  Roland McGrath  <roland@hack.frob.com>
17730
17731         [BZ #14218]
17732         * manual/argp.texi (Argp): Reword argp_parse description slightly.
17733
17734 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
17735
17736         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
17737         (FE_UPWARD, FE_DOWNWARD): Don't define.
17738         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
17739         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
17740
17741         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
17742         reading it.
17743         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
17744         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
17745
17746 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17747
17748         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
17749         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
17750         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
17751         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
17752
17753 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
17754
17755         [BZ #14117]
17756         * sysdeps/i386/fpu/bits/fenv.h: Removed.
17757         * sysdeps/i386/fpu/Implies: New file.
17758         * sysdeps/x86_64/fpu/Implies: Likewise.
17759         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
17760         * sysdeps/x86/fpu/bits/fenv.h: This.
17761
17762         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
17763         __SSE_MATH__.
17764
17765 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
17766
17767         [BZ #14134]
17768         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
17769         character 0xffff that matches the last element of the
17770         conversion table.
17771
17772 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17773
17774         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
17775         fmodl commit.
17776
17777 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17778
17779         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
17780         values higher than 25.6283.
17781
17782 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17783
17784         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
17785         subnormal exponent extraction and add some __builtin_expect.
17786         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
17787         Fix for subnormal mantissa calculation.
17788
17789 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
17790
17791         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
17792         cpu2 is -1 and errno is not ENOSYS.
17793
17794 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
17795
17796         [BZ #14117]
17797         * sysdeps/i386/i486/bits/string.h: Renamed to ...
17798         * sysdeps/x86/bits/string.h: This.
17799         * sysdeps/x86_64/bits/string.h: Removed.
17800
17801         * sysdeps/i386/i486/bits/string.h: Define inline functions only
17802         if not compiling for x86-64, but compiling for >= i486.
17803
17804         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
17805         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
17806
17807         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
17808         New macro from Linux kernel 3.4.0.
17809         (FP_XSTATE_MAGIC2): Likewise.
17810         (FP_XSTATE_MAGIC2_SIZE): Likewise.
17811         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
17812         (struct _fpx_sw_bytes): New struct.
17813         (struct _xsave_hdr): Likewise.
17814         (struct _ymmh_state): Likewise.
17815         (struct _xstate): Likewise.
17816
17817         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
17818         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
17819         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
17820         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
17821         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
17822         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
17823
17824         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
17825         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
17826         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
17827         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
17828         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
17829         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
17830
17831 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17832
17833         [BZ #13743]
17834         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
17835         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
17836         (sysdep_headers): Include sys/platform/ppc.h.
17837         * sysdeps/powerpc/test-gettimebase.c: Test for
17838         __ppc_get_timebase() to catch future ISA opcode/insn changes.
17839         * manual/Makefile (appendices): Include platform.texi.
17840         * manual/contrib.texi (Contributors): Update @node pointers.
17841         * manual/maint.texi (Maintenance): Likewise.
17842         (Platform): New node.
17843         * manual/platform.texi: New file.  Document the new features.
17844
17845 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
17846             Jakub Jelinek  <jakub@redhat.com>
17847
17848         [BZ #14188]
17849         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
17850         where __builtin_expect is unavailable.
17851
17852 2012-06-03  David S. Miller  <davem@davemloft.net>
17853
17854         * stdlib/longlong.h: Updated from GCC.
17855
17856 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
17857
17858         [BZ #14042]
17859         * sysdeps/powerpc/powerpc32/mcount.c: New file.
17860         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
17861         __mcount_internal.
17862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
17863         (GLIBC_2.16): Likewise.
17864
17865 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
17866
17867         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
17868
17869 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
17870
17871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
17872         (default-abi): New variable.
17873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
17874         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
17875         variable.
17876         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
17877         Likewise.
17878         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
17879         Likewise.
17880         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
17881         Likewise.
17882
17883         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
17884         definition.  Document in comment.
17885
17886 2012-06-01  David S. Miller  <davem@davemloft.net>
17887
17888         * stdlib/longlong.h: Updated from GCC.
17889
17890 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
17891
17892         [BZ #14117]
17893         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
17894         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
17895         sys/debugreg.h sys/io.h here.
17896         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
17897         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
17898         sys/io.h.
17899         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
17900         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
17901         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
17902         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
17903         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
17904         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
17905
17906         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
17907         Define only if __x86_64__ is defined.
17908
17909 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
17910
17911         [BZ #14048]
17912         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
17913         Use int64_t for variable i.
17914         * math/libm-test.inc (fmod_test): Add more tests.
17915
17916         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
17917         z computation is not scheduled after fetestexcept.
17918         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
17919         Use math_force_eval instead of asm to ensure calculation scheduled
17920         before exception test.
17921         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
17922         Ensure a1 + u.d computation is not scheduled after fetestexcept.
17923
17924 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
17925
17926         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
17927         computation is not scheduled after fetestexcept.
17928
17929 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
17930
17931         [BZ #14117]
17932         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
17933         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
17934
17935 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17936
17937         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
17938         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
17939
17940 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
17941
17942         [BZ #14117]
17943         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
17944         <bits/wordsize.h>.
17945         (__WCHAR_MIN): Support __WORDSIZE == 64.
17946         (__WCHAR_MAX): Likewise.
17947
17948         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
17949         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
17950
17951         [BZ #14183]
17952         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
17953         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
17954
17955         [BZ #14117]
17956         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
17957         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
17958
17959         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
17960         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
17961
17962         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
17963         Defined to 1 if __x86_64__ isn't defined.
17964         (_STAT_VER_LINUX_OLD): New.
17965         (st_atime): Remove duplicate.
17966         (st_mtime): Likewise.
17967         (st_ctime): Likewise.
17968
17969 2012-05-31  David S. Miller  <davem@davemloft.net>
17970
17971         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
17972         entries.
17973
17974 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
17975
17976         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
17977         gen-libm-test.pl.
17978
17979         [BZ #14132]
17980         * elf/dl-reloc.c: Include <_itoa.h>.
17981         (_dl_reloc_bad_type): Remove use of INTUSE.
17982         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
17983         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
17984         * stdio-common/psiginfo.c (psiginfo): Likewise.
17985         * stdio-common/psignal.c (psignal): Likewise.
17986         * string/strsignal.c (strsignal): Likewise.
17987         * include/signal.h (_sys_siglist): Declare hidden proto.
17988         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
17989         INTVARDEF with libc_hidden_data_def.
17990         * stdio-common/itoa-udigits.c: Likewise.
17991         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
17992         (_itoa_lower_digits_internal): Remove declaration.
17993         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
17994         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
17995         (_sys_sigabbrev_internal): Remove aliases.
17996         (_sys_siglist): Define hidden alias.
17997
17998 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
17999
18000         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18001         bits/sysctl.h.
18002
18003 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
18004
18005         [BZ #14117]
18006         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
18007         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
18008
18009         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
18010         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
18011         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
18012         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
18013         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
18014         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
18015
18016         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
18017         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
18018         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
18019
18020         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
18021         with __addr.
18022         (insw): Likewise.
18023         (insl): Likewise.
18024         (outsb): Likewise.
18025         (outsw): Likewise.
18026         (outsl): Likewise.
18027
18028         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
18029         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
18030         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
18031
18032         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
18033         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
18034         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
18035         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
18036         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
18037         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
18038
18039         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
18040         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
18041
18042         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
18043         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
18044
18045         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
18046         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
18047         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
18048
18049         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
18050         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
18051         to ...
18052         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
18053
18054         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
18055         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
18056         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
18057
18058         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
18059         for x86-64.
18060         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
18061
18062 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
18063
18064         * math/math.h (M_El): Use two more decimal places.
18065         (M_LOG2El): Likewise.
18066         (M_LOG10El): Likewise.
18067         (M_LN2l): Likewise.
18068         (M_LN10l): Likewise.
18069         (M_PIl): Likewise.
18070         (M_PI_2l): Likewise.
18071         (M_PI_4l): Likewise.
18072         (M_1_PIl): Likewise.
18073         (M_2_PIl): Likewise.
18074         (M_2_SQRTPIl): Likewise.
18075         (M_SQRT2l): Likewise.
18076         (M_SQRT1_2l): Likewise.
18077
18078 2012-05-31  David S. Miller  <davem@davemloft.net>
18079
18080         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
18081         values between float registers.
18082         * sysdeps/sparc/sparc64/memset.S: Likewise.
18083         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
18084
18085 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
18086
18087         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
18088         -D_FORTIFY_SOURCE=1.
18089         (CPPFLAGS-tst-longjmp_chk.c): Define.
18090         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
18091         (CPPFLAGS-tst-longjmp_chk2.c): Define.
18092         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
18093         CFLAGS-tst-wchar-h.c.
18094
18095 2012-05-31  Marek Polacek  <polacek@redhat.com>
18096
18097         [BZ #14132]
18098         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
18099         __endmntent_internal): Remove declaration.
18100         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
18101         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
18102         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
18103
18104 2012-05-30  David S. Miller  <davem@davemloft.net>
18105
18106         * sysdeps/sparc/sparc32/soft-fp/q_util.c
18107         (___Q_simulate_exceptions): Use real FP ops rather than writing
18108         into the %fsr.
18109         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
18110         Likewise.
18111
18112 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18113
18114         [BZ #14117]
18115         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
18116         * sysdeps/x86/bits/xtitypes.h: This.
18117
18118         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
18119         * sysdeps/x86/bits/wordsize.h: This.
18120
18121         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
18122         * sysdeps/x86/bits/huge_vall.h: This.
18123
18124         * sysdeps/i386/bits/select.h: Removed.
18125         * sysdeps/x86_64/bits/select.h: Renamed to ...
18126         * sysdeps/x86/bits/select.h: This.
18127
18128         * sysdeps/i386/bits/setjmp.h: Removed.
18129         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
18130         * sysdeps/x86/bits/setjmp.h: This.
18131
18132         * sysdeps/i386/bits/mathdef.h: Removed.
18133         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
18134         * sysdeps/x86/bits/mathdef.h: This.
18135
18136 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
18137
18138         [BZ #14132]
18139         * include/sys/socket.h (__connect_internal)
18140         (__libc_sa_len_internal): Remove declaration.
18141         (__connect, __libc_sa_len): Declare hidden_proto.
18142         (SA_LEN): Remove use of INTUSE.
18143         * socket/connect.c: Add libc_hidden_def.
18144         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
18145         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
18146         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
18147         alias.
18148         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
18149         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
18150         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
18151         of adding _internal alias.
18152
18153 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18154
18155         [BZ #14117]
18156         * sysdeps/i386/bits/link.h: Removed.
18157         * sysdeps/i386/bits/linkmap.h: Likewise.
18158         * sysdeps/x86_64/bits/link.h: Renamed to ...
18159         * sysdeps/x86/bits/link.h: This.
18160         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
18161         * sysdeps/x86/bits/linkmap.h: This.
18162
18163         * sysdeps/i386/bits/endian.h: Removed.
18164         * sysdeps/x86_64/bits/endian.h: Renamed to ...
18165         * sysdeps/x86/bits/endian.h: This.
18166
18167         * sysdeps/i386/bits/byteswap.h: Removed.
18168         * sysdeps/i386/bits/byteswap-16.h: Likewise.
18169         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
18170         * sysdeps/x86/bits/byteswap.h: This.
18171         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
18172         * sysdeps/x86/bits/byteswap-16.h: This.
18173         * sysdeps/i386/Implies: Add x86.
18174         * sysdeps/x86_64/Implies: Likewise.
18175
18176 2012-05-30  David S. Miller  <davem@davemloft.net>
18177
18178         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
18179         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
18180         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
18181         (FP_TRAPPING_EXCEPTIONS): Define.
18182         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
18183         (FP_TRAPPING_EXCEPTIONS): Define.
18184         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
18185         subnormals only when inexact has been signalled or underflow
18186         exceptions are enabled.
18187         (_FP_PACK_CANONICAL): Likewise.
18188
18189 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18190
18191         [BZ #14183]
18192         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
18193         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
18194
18195 2012-05-30  Richard Henderson  <rth@twiddle.net>
18196
18197         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
18198         with #ifndef NOT_IN_libc.
18199
18200         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
18201         marked to avoid plt entry.
18202
18203 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18204
18205         [BZ #14112]
18206         * Makeconfig (default-abi): New macro.
18207         (abi-includes): Likewise.
18208         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
18209         $(abi-$(default-abi)-lib-soname) for soname if defined.
18210         ($(common-objpfx)gnu/lib-names.stmp): Generate from
18211         abi-variants.
18212         * Makefile (installed-stubs): Likewise.
18213         * include/stubs-biarch.h: Removed.
18214         * scripts/lib-names.awk: Only handle one library at a time.
18215         * scripts/soversions.awk: Remove WORDSIZE support.
18216         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
18217         entries.
18218         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
18219         Removed.
18220         (syscall-list-default-condition): Likewise.
18221         (syscall-list-default-condition): Likewise.
18222         (syscall-list-includes): Likewise.
18223         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
18224         syscall-list-* with abi-*.  Handle undefined abi-variants.
18225         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
18226         * sysdeps/unix/sysv/linux/i386/Implies: New file.
18227         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
18228         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
18229         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
18230         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
18231         Removed.
18232         (syscall-list-32-options): Likewise.
18233         (syscall-list-32-condition): Likewise.
18234         (syscall-list-64-options): Likewise.
18235         (syscall-list-64-condition): Likewise.
18236         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
18237         macro.
18238         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
18239         Renamed to ...
18240         (abi-*): This.
18241         (abi-64-ld-soname): New macro.
18242         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
18243         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
18244         Renamed to ...
18245         (abi-*): This.
18246         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
18247         * sysdeps/x86_64/x32/shlib-versions: Likewise.
18248
18249 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
18250
18251         * sysdeps/unix/sysv/linux/kernel-features.h
18252         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
18253         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
18254         include <kernel-features.h>.
18255         [!__NR_ftruncate64]: Remove conditional code.
18256         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18257         [__NR_ftruncate64]: Make code unconditional.
18258         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18259         * sysdeps/unix/sysv/linux/truncate64.c: Do not
18260         include <kernel-features.h>.
18261         [!__NR_ftruncate64]: Remove conditional code.
18262         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18263         [__NR_ftruncate64]: Make code unconditional.
18264         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
18266         include <kernel-features.h>.
18267         [!__NR_ftruncate64]: Remove conditional code.
18268         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18269         [__NR_ftruncate64]: Make code unconditional.
18270         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
18272         include <kernel-features.h>.
18273         [!__NR_ftruncate64]: Remove conditional code.
18274         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18275         [__NR_ftruncate64]: Make code unconditional.
18276         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18277
18278         * configure.in (libc_cv_fpie): Weaken to a compile test using
18279         LIBC_TRY_CC_OPTION.
18280         * configure: Regenerated.
18281
18282 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18283
18284         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
18285         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
18286         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
18287         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
18288         Refreshed.
18289         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
18290         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
18291         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
18292         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
18293         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
18294         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
18295         Refreshed.
18296
18297 2012-05-27  David S. Miller  <davem@davemloft.net>
18298
18299         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
18300         (___Q_zero): New.
18301         (__Q_simulate_exceptions): Return void.  Change to simulate
18302         exceptions by writing into the %fsr.
18303         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
18304         (__Qp_handle_exceptions): Likewise.
18305         (numbers): Delete.
18306         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
18307         __Qp_handle_exceptions.
18308         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
18309         __Qp_handle_exceptions.
18310         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18311         as unused and give dummy FP_RND_NEAREST initializer.
18312         (FP_INHIBIT_RESULTS): Define.
18313         (___Q_simulate_exceptions): Update declaration.
18314         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
18315         formatting.
18316         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18317         as unused and give dummy FP_RND_NEAREST initializer.
18318         (__Qp_handle_exceptions): Update declaration.
18319         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
18320         formatting.
18321
18322 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
18323
18324         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
18325         the temporary FPU control word.
18326         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
18327         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
18328         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
18329         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
18330         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
18331         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
18332         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
18333         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
18334         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
18335         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
18336         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18337
18338 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18339
18340         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
18341         fields.
18342
18343 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
18344
18345         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
18346         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
18347         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
18348         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
18349         Likewise.
18350         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
18351         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
18352         Likewise.
18353
18354 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
18355
18356         * po/h.po: Update from translation team.
18357
18358 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
18359
18360         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
18361
18362         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
18363         handling of denormals.
18364         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
18365         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
18366         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
18367         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
18368         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
18369         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
18370         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
18371         Likewise.
18372
18373 2012-05-26  Marek Polacek  <polacek@redhat.com>
18374
18375         [BZ #14152]
18376         * math/libm-test.inc (fma_test): Don't always expect underflow
18377         exception.
18378
18379 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18380
18381         [BZ #12416]
18382         * elf/tst-execstack.c: Include stackinfo.h.
18383         (do_test): Adjust test case to ensure that pthread_getattr_np
18384         behaviour remains the same after marking stack executable.
18385
18386 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
18387
18388         * sysdeps/unix/sysv/linux/kernel-features.h
18389         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
18390         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
18391         kernel-features.h.
18392         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
18393         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
18394         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
18395         kernel-features.h.
18396         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
18397         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
18398
18399 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
18400
18401         * configure.in: Define the default includes to being none.
18402         * configure: Regenerated.
18403
18404 2012-05-25  Roland McGrath  <roland@hack.frob.com>
18405
18406         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
18407         * sysdeps/x86_64/setjmp.S: Likewise.
18408         * sysdeps/i386/bsd-setjmp.S: Likewise.
18409         * sysdeps/i386/bsd-_setjmp.S: Likewise.
18410         * sysdeps/i386/setjmp.S: Likewise.
18411         * sysdeps/i386/__longjmp.S: Likewise.
18412         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
18413         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
18414
18415         * include/stap-probe.h: New file.
18416         * configure.in: Handle --enable-systemtap.
18417         * configure: Regenerated.
18418         * config.h.in (USE_STAP_PROBE): New #undef.
18419         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
18420         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
18421         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
18422
18423 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
18424
18425         [BZ #13717]
18426         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
18427         to 2.4.0 where earlier.
18428         * sysdeps/unix/sysv/linux/configure: Regenerated.
18429         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
18430         <kernel-features.h>.
18431         [__ASSUME_32BITUIDS]: Make code unconditional.
18432         [!__ASSUME_32BITUIDS]: Remove conditional code.
18433         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
18434         <kernel-features.h>.
18435         [__ASSUME_32BITUIDS]: Make code unconditional.
18436         [!__ASSUME_32BITUIDS]: Remove conditional code.
18437         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
18438         [__ASSUME_32BITUIDS]: Make code unconditional.
18439         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
18440         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
18441         <kernel-features.h>.
18442         [__ASSUME_32BITUIDS]: Make code unconditional.
18443         [!__ASSUME_32BITUIDS]: Remove conditional code.
18444         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
18445         <kernel-features.h>.
18446         [__ASSUME_32BITUIDS]: Make code unconditional.
18447         [!__ASSUME_32BITUIDS]: Remove conditional code.
18448         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
18449         <kernel-features.h>.
18450         [__ASSUME_32BITUIDS]: Make code unconditional.
18451         [!__ASSUME_32BITUIDS]: Remove conditional code.
18452         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
18453         <kernel-features.h>.
18454         [__ASSUME_32BITUIDS]: Make code unconditional.
18455         [!__ASSUME_32BITUIDS]: Remove conditional code.
18456         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
18457         <kernel-features.h>.
18458         [__ASSUME_32BITUIDS]: Make code unconditional.
18459         [!__ASSUME_32BITUIDS]: Remove conditional code.
18460         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
18461         <kernel-features.h>.
18462         [__ASSUME_32BITUIDS]: Make code unconditional.
18463         [!__ASSUME_32BITUIDS]: Remove conditional code.
18464         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
18465         <kernel-features.h>.
18466         [__ASSUME_32BITUIDS]: Make code unconditional.
18467         [!__ASSUME_32BITUIDS]: Remove conditional code.
18468         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
18469         <kernel-features.h>.
18470         [__ASSUME_32BITUIDS]: Make code unconditional.
18471         [!__ASSUME_32BITUIDS]: Remove conditional code.
18472         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
18473         <kernel-features.h>.
18474         [__ASSUME_32BITUIDS]: Make code unconditional.
18475         [!__ASSUME_32BITUIDS]: Remove conditional code.
18476         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
18477         <kernel-features.h>.
18478         [__ASSUME_32BITUIDS]: Make code unconditional.
18479         [!__ASSUME_32BITUIDS]: Remove conditional code.
18480         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
18481         <kernel-features.h>.
18482         [__NR_setresgid] (__setresgid): Do not declare.
18483         [__ASSUME_32BITUIDS]: Make code unconditional.
18484         [!__ASSUME_32BITUIDS]: Remove conditional code.
18485         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
18486         <kernel-features.h>.
18487         [__NR_setresuid] (__setresuid): Do not declare.
18488         [__ASSUME_32BITUIDS]: Make code unconditional.
18489         [!__ASSUME_32BITUIDS]: Remove conditional code.
18490         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
18491         <kernel-features.h>.
18492         [__ASSUME_32BITUIDS]: Make code unconditional.
18493         [!__ASSUME_32BITUIDS]: Remove conditional code.
18494         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
18495         <kernel-features.h>.
18496         [__ASSUME_32BITUIDS]: Make code unconditional.
18497         [!__ASSUME_32BITUIDS]: Remove conditional code.
18498         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
18499         <kernel-features.h>.
18500         [__ASSUME_32BITUIDS]: Make code unconditional.
18501         [!__ASSUME_32BITUIDS]: Remove conditional code.
18502         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
18503         <kernel-features.h>.
18504         [__ASSUME_32BITUIDS]: Make code unconditional.
18505         [!__ASSUME_32BITUIDS]: Remove conditional code.
18506         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
18507         <kernel-features.h>.
18508         [__ASSUME_32BITUIDS]: Make code unconditional.
18509         [!__ASSUME_32BITUIDS]: Remove conditional code.
18510         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
18511         <kernel-features.h>.
18512         [__ASSUME_32BITUIDS]: Make code unconditional.
18513         [!__ASSUME_32BITUIDS]: Remove conditional code.
18514         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
18515         <kernel-features.h>.
18516         [__ASSUME_32BITUIDS]: Make code unconditional.
18517         [!__ASSUME_32BITUIDS]: Remove conditional code.
18518         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
18519         <kernel-features.h>.
18520         [__ASSUME_32BITUIDS]: Make code unconditional.
18521         [!__ASSUME_32BITUIDS]: Remove conditional code.
18522         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
18523         <kernel-features.h>.
18524         [__ASSUME_32BITUIDS]: Make code unconditional.
18525         [!__ASSUME_32BITUIDS]: Remove conditional code.
18526         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
18527         <kernel-features.h>.
18528         [__ASSUME_32BITUIDS]: Make code unconditional.
18529         [!__ASSUME_32BITUIDS]: Remove conditional code.
18530         * sysdeps/unix/sysv/linux/kernel-features.h
18531         (__ASSUME_SETRESUID_SYSCALL): Remove.
18532         (__ASSUME_SETRESGID_SYSCALL): Likewise.
18533         (__ASSUME_32BITUIDS): Likewise.
18534         (__ASSUME_LDT_WORKS): Likewise.
18535         (__ASSUME_O_DIRECTORY): Likewise.
18536         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
18537         architecture but not kernel version.
18538         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
18539         (__ASSUME_MMAP2_SYSCALL): Likewise.
18540         (__ASSUME_STAT64_SYSCALL): Likewise.
18541         (__ASSUME_IPC64): Likewise.
18542         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
18543         <kernel-features.h>.
18544         [__ASSUME_32BITUIDS]: Make code unconditional.
18545         [!__ASSUME_32BITUIDS]: Remove conditional code.
18546         * sysdeps/unix/sysv/linux/opendir.c: Do not include
18547         <kernel-features.h>.
18548         [__ASSUME_O_DIRECTORY]: Make code unconditional.
18549         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
18550         132096]: Remove conditional code.
18551         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
18552         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
18553         <kernel-features.h>.
18554         [__ASSUME_32BITUIDS]: Make code unconditional.
18555         [!__ASSUME_32BITUIDS]: Remove conditional code.
18556         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
18557         <kernel-features.h>.
18558         [__ASSUME_32BITUIDS]: Make code unconditional.
18559         [!__ASSUME_32BITUIDS]: Remove conditional code.
18560         * sysdeps/unix/sysv/linux/setegid.c: Do not include
18561         <kernel-features.h>.
18562         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
18563         unconditional.
18564         (__setresgid): Do not declare.
18565         [__ASSUME_32BITUIDS]: Make code unconditional.
18566         [!__ASSUME_32BITUIDS]: Remove conditional code.
18567         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
18568         <kernel-features.h>.
18569         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
18570         unconditional.
18571         (__setresuid): Do not declare.
18572         [__ASSUME_32BITUIDS]: Make code unconditional.
18573         [!__ASSUME_32BITUIDS]: Remove conditional code.
18574         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
18575         <kernel-features.h>.
18576         [__ASSUME_32BITUIDS]: Make code unconditional.
18577         [!__ASSUME_32BITUIDS]: Remove conditional code.
18578         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
18579         <kernel-features.h>.
18580         [__ASSUME_32BITUIDS]: Make code unconditional.
18581         [!__ASSUME_32BITUIDS]: Remove conditional code.
18582
18583 2012-05-25  Richard Henderson  <rth@twiddle.net>
18584
18585         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
18586         dl_hwcap to ifunc resolver.
18587         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
18588         elf_ifunc_invoke.
18589         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
18590         dl_hwcap to ifunc resolver.
18591         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
18592
18593 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
18594
18595         [BZ #14153]
18596         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
18597         for |x| <= 2**-26, not 2**-57.
18598         * math/libm-test.inc (acos_test): Do not allow spurious underflow
18599         exception.
18600
18601 2012-05-24  Jeff Law  <law@redhat.com>
18602
18603         * stdio-common/Makefile (tests): Add bug25.
18604         * stdio-common/bug25.c: New test.
18605
18606 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18607
18608         [BZ #13576]
18609         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
18610         multiple of MALLOC_ALIGNMENT in size.
18611         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
18612
18613 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
18614
18615         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
18616         Require >= 256.
18617         (FILENAME_MAX): Use macro-int-constant.
18618         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
18619         (_IOFBF): Use macro-int-constant.
18620         (_IOLBF): Likewise.
18621         (_IONBF): Likewise.
18622         (SEEK_CUR): Likewise.
18623         (SEEK_END): Likewise.
18624         (SEEK_SET): Likewise.
18625         (TMP_MAX): Likewise.
18626         (EOF): Use macro-int-constant.  Require < 0.
18627         (NULL): Use macro-constant.  Require == 0.
18628         (stdin): Require type to be FILE *.
18629         (stdout): Likewise.
18630         (stderr): Likewise.
18631         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
18632         macro-int-constant.
18633         (EXIT_SUCCESS): Likewise.
18634         (NULL): Use macro-constant.  Require == 0.
18635         (RAND_MAX): Use macro-int-constant.
18636         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
18637         [C99-based standards] (strtof): Require function.
18638         [C99-based standards] (strtold): Likewise.
18639         [C99-based standards] (strtoll): Likewise.
18640         [C99-based standards] (strtoull): Likewise.
18641         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
18642         [ISO || ISO99 || ISO11] (limits.h): Likewise.
18643         [ISO || ISO99 || ISO11] (math.h): Likewise.
18644         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
18645         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
18646         [ISO || ISO99 || ISO11] (*_t): Do not allow.
18647
18648 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
18649
18650         [BZ #14132]
18651         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
18652         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
18653         * intl/dgettext.c (DCGETTEXT): Likewise.
18654         * intl/gettext.c (DCGETTEXT): Likewise.
18655         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
18656         * posix/regex_internal.h (gettext): Likewise.
18657         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
18658         Remove declaration.
18659         * include/argz.h (__argz_count_internal)
18660         (__argz_stringify_internal): Remove declaration.
18661         (__argz_count, __argz_stringify): Declare hidden proto.
18662         * intl/dcgettext.c: Remove use of INTDEF.
18663         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
18664         * string/argz-stringify.c: Likewise.
18665         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
18666         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
18667         Declare hidden proto.
18668         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
18669         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
18670         Declare hidden proto.
18671         * include/stdio.h (__asprintf_internal): Don't declare.
18672         (__asprintf): Don't define as macro.  Declare hidden proto.
18673         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
18674         (__fsetlocking): Declare hidden proto.
18675         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
18676         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
18677         hidden proto.
18678         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
18679         (_IO_setlinebuf): Remove use of INTUSE.
18680         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
18681         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
18682         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
18683         Remove declaration.
18684         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
18685         (_IO_do_flush): Remove use of INTUSE.
18686         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
18687         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
18688         (_IO_adjust_column, _IO_least_wmarker)
18689         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
18690         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
18691         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
18692         (_IO_default_doallocate, _IO_wdefault_doallocate)
18693         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
18694         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
18695         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
18696         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
18697         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
18698         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
18699         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
18700         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
18701         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
18702         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
18703         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
18704         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
18705         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
18706         proto.
18707         (_IO_flush_all_internal, _IO_adjust_column_internal)
18708         (_IO_default_uflow_internal, _IO_default_finish_internal)
18709         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
18710         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
18711         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
18712         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
18713         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
18714         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
18715         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
18716         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
18717         (_IO_file_close_internal, _IO_file_close_it_internal)
18718         (_IO_file_underflow_internal, _IO_file_overflow_internal)
18719         (_IO_file_init_internal, _IO_file_attach_internal)
18720         (_IO_file_fopen_internal, _IO_file_read_internal)
18721         (_IO_file_sync_internal, _IO_file_seek_internal)
18722         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
18723         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
18724         (_IO_str_underflow_internal, _IO_str_overflow_internal)
18725         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
18726         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
18727         (_IO_list_all_internal, _IO_link_in_internal)
18728         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
18729         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
18730         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
18731         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
18732         (_IO_do_write_internal, _IO_padn_internal)
18733         (_IO_getline_info_internal, _IO_getline_internal)
18734         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
18735         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
18736         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
18737         (_IO_vfscanf_internal, _IO_vfprintf_internal)
18738         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
18739         (_IO_init_internal, _IO_un_link_internal): Don't declare.
18740         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
18741         with libc_hidden_ver, remove use of INTUSE.
18742         * libio/genops.c: Likewise.
18743         * libio/freopen.c: Likewise.
18744         * libio/freopen64.c: Likewise.
18745         * libio/iofclose.c: Likewise.
18746         * libio/iofdopen.c: Likewise.
18747         * libio/iofflush.c: Likewise.
18748         * libio/iofflush_u.c: Likewise.
18749         * libio/iofgets.c: Likewise.
18750         * libio/iofgets_u.c: Likewise.
18751         * libio/iofopen.c: Likewise.
18752         * libio/iofopncook.c: Likewise.
18753         * libio/iofread.c: Likewise.
18754         * libio/iofread_u.c: Likewise.
18755         * libio/ioftell.c: Likewise.
18756         * libio/iofwrite.c: Likewise.
18757         * libio/iogetline.c: Likewise.
18758         * libio/iogets.c: Likewise.
18759         * libio/iogetwline.c: Likewise.
18760         * libio/iopadn.c: Likewise.
18761         * libio/iopopen.c: Likewise.
18762         * libio/ioseekoff.c: Likewise.
18763         * libio/ioseekpos.c: Likewise.
18764         * libio/iosetbuffer.c: Likewise.
18765         * libio/iosetvbuf.c: Likewise.
18766         * libio/ioungetc.c: Likewise.
18767         * libio/ioungetwc.c: Likewise.
18768         * libio/iovdprintf.c: Likewise.
18769         * libio/iovsprintf.c: Likewise.
18770         * libio/iovsscanf.c: Likewise.
18771         * libio/memstream.c: Likewise.
18772         * libio/obprintf.c: Likewise.
18773         * libio/oldfileops.c: Likewise.
18774         * libio/oldiofclose.c: Likewise.
18775         * libio/oldiofdopen.c: Likewise.
18776         * libio/oldiofopen.c: Likewise.
18777         * libio/oldiopopen.c: Likewise.
18778         * libio/oldstdfiles.c: Likewise.
18779         * libio/putc.c: Likewise.
18780         * libio/setbuf.c: Likewise.
18781         * libio/setlinebuf.c: Likewise.
18782         * libio/stdfiles.c: Likewise.
18783         * libio/strops.c: Likewise.
18784         * libio/vasprintf.c: Likewise.
18785         * libio/vscanf.c: Likewise.
18786         * libio/vsnprintf.c: Likewise.
18787         * libio/vswprintf.c: Likewise.
18788         * libio/wfiledoalloc.c: Likewise.
18789         * libio/wfileops.c: Likewise.
18790         * libio/wgenops.c: Likewise.
18791         * libio/wmemstream.c: Likewise.
18792         * libio/wstrops.c: Likewise.
18793         * libio/__fpurge.c: Likewise.
18794         * libio/__fsetlocking.c: Likewise.
18795         * assert/assert.c: Likewise.
18796         * debug/fgets_chk.c: Likewise.
18797         * debug/fgets_u_chk.c: Likewise.
18798         * debug/fread_chk.c: Likewise.
18799         * debug/fread_u_chk.c: Likewise.
18800         * debug/gets_chk.c: Likewise.
18801         * debug/obprintf_chk.c: Likewise.
18802         * debug/vasprintf_chk.c: Likewise.
18803         * debug/vdprintf_chk.c: Likewise.
18804         * debug/vsnprintf_chk.c: Likewise.
18805         * debug/vsprintf_chk.c: Likewise.
18806         * malloc/mtrace.c: Likewise.
18807         * misc/error.c: Likewise.
18808         * misc/syslog.c: Likewise.
18809         * stdio-common/asprintf.c: Likewise.
18810         * stdio-common/fxprintf.c: Likewise.
18811         * stdio-common/getw.c: Likewise.
18812         * stdio-common/isoc99_fscanf.c: Likewise.
18813         * stdio-common/isoc99_scanf.c: Likewise.
18814         * stdio-common/isoc99_vfscanf.c: Likewise.
18815         * stdio-common/isoc99_vscanf.c: Likewise.
18816         * stdio-common/isoc99_vsscanf.c: Likewise.
18817         * stdio-common/printf-prs.c: Likewise.
18818         * stdio-common/printf_fp.c: Likewise.
18819         * stdio-common/printf_fphex.c: Likewise.
18820         * stdio-common/printf_size.c: Likewise.
18821         * stdio-common/putw.c: Likewise.
18822         * stdio-common/scanf.c: Likewise.
18823         * stdio-common/sprintf.c: Likewise.
18824         * stdio-common/tmpfile.c: Likewise.
18825         * stdio-common/vfprintf.c: Likewise.
18826         * stdio-common/vfscanf.c: Likewise.
18827         * stdlib/strfmon_l.c: Likewise.
18828         * sunrpc/openchild.c: Likewise.
18829         * sunrpc/xdr_stdio.c: Likewise.
18830         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
18831         * sysdeps/mach/hurd/tmpfile.c: Likewise.
18832
18833 2012-05-24  Roland McGrath  <roland@hack.frob.com>
18834
18835         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
18836
18837         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
18838         in the third column, to generate for the shared library an IFUNC
18839         that uses _dl_vdso_vsym.
18840         * Makerules (COMPILE.c, compile-stdin.c): New variables.
18841         * Makeconfig (object-suffixes-noshared): New variable.
18842
18843         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
18844         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
18845         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
18846         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
18847
18848         [BZ #14132]
18849         * include/sys/time.h (__gettimeofday): Remove macro.
18850         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
18851         * time/gettimeofday.c (__gettimeofday): Remove #undef.
18852         Remove INTDEF.
18853         (__gettimeofday): Add libc_hidden_def.
18854         (gettimeofday): Add libc_hidden_weak.
18855         * sysdeps/mach/gettimeofday.c: Likewise.
18856         * sysdeps/posix/gettimeofday.c: Likewise.
18857         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18858         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
18859         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
18860         (__gettimeofday_internal): Remove strong_alias.
18861         (__gettimeofday): Add libc_hidden_def.
18862         (gettimeofday): Add libc_hidden_weak.
18863         * sysdeps/unix/syscalls.list (gettimeofday):
18864         Remove __gettimeofday_internal alias.
18865
18866 2012-05-24  Daniel Jacobowitz  <drow@false.org>
18867             H.J. Lu  <hongjiu.lu@intel.com>
18868
18869         [BZ #12495]
18870         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
18871         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
18872         (largebin_index_32_big): New.
18873         (largebin_index): Use it for 16-byte alignment.
18874         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
18875         correction with front_misalign.
18876
18877 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18878
18879         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
18880         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
18881         Likewise.
18882         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
18883         Likewise.
18884         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
18885         Likewise.
18886         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
18887         Likewise.
18888         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
18889         Likewise.
18890         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
18891         Likewise.
18892         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
18893         Likewise.
18894         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
18895         Likewise.
18896         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
18897         Likewise.
18898         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
18899         Likewise.
18900         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
18901         Likewise.
18902         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
18903         Likewise.
18904
18905         * scripts/data/c++-types-x32-linux-gnu.data: New file.
18906         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
18907
18908 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
18909
18910         [BZ #10846]
18911         [BZ #14036]
18912         * math/libm-test.inc (exp_test): Add test from bug 14036.
18913         (pow_test): Add test from bug 10846.
18914
18915         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
18916         and other flags.
18917         (special_function): Do not include flags in test name.
18918         (parse_args): Likewise.
18919         * sysdeps/i386/fpu/libm-test-ulps: Update.
18920         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18921         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
18922         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
18923         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18924
18925         * math/gen-libm-test.pl (%beautify): Add entries for underflow
18926         exceptions.
18927         * math/libm-test.inc ("Philosophy"): Update comment about
18928         exception testing.
18929         (UNDERFLOW_EXCEPTION): New macro.
18930         (UNDERFLOW_EXCEPTION_OK): Likewise.
18931         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
18932         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
18933         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
18934         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
18935         (INVALID_EXCEPTION_OK): Update value.
18936         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18937         (OVERFLOW_EXCEPTION_OK): Likewise.
18938         (IGNORE_ZERO_INF_SIGN): Likewise.
18939         (test_exceptions): Handle underflow exceptions.
18940         (acos_test): Update for underflow exception expectations.
18941         (cexp_test): Likewise.
18942         (clog_test): Likewise.
18943         (clog10_test): Likewise.
18944         (csqrt_test): Likewise.
18945         (ctan_test): Likewise.
18946         (ctanh_test): Likewise.
18947         (exp_test): Likewise.
18948         (exp10_test): Likewise.
18949         (exp2_test): Likewise.
18950         (expm1_test): Likewise.
18951         (fma_test): Likewise.
18952         (j0_test): Likewise.
18953         (jn_test): Likewise.
18954         (nexttoward_test): Likewise.
18955         (pow_test): Likewise.
18956         (scalbn_test): Likewise.
18957         (scalbln_test): Likewise.
18958         (tan_test): Likewise.
18959         (y1_test): Likewise.
18960         * sysdeps/i386/fpu/libm-test-ulps: Update.
18961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18962
18963 2012-05-23  David S. Miller  <davem@davemloft.net>
18964
18965         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
18966         (__libc_sigaction): Remove unused local variables.
18967
18968 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18969
18970         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
18971
18972 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18973
18974         mktime: avoid signed integer overflow
18975         * time/mktime.c (__mktime_internal): Do not mishandle the case
18976         where diff == INT_MIN.
18977
18978         mktime: simplify computation of average
18979         * time/mktime.c (ranged_convert): Use new time_t_avg function
18980         instead of rolling our own (probably-slower) code.
18981
18982         mktime: do not assume signed right shift propagates sign bit
18983         * time/mktime.c (isdst_differ): New static function.
18984         (__mktime_internal): No need to normalize tm_isdst now.
18985         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
18986         tm_isdst values.
18987
18988         mktime: merge another wrapv change from gnulib
18989         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
18990         from some compilers.
18991
18992         mktime: remove incorrect attempt at unusual arithmetics
18993         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
18994         The code didn't really work on such machines anyway.
18995         (TYPE_MINIMUM): Assume two's complement.
18996         (twos_complement_arithmetic): Verify that long_int and time_t
18997         are two's complement (or unsigned, in the latter case).
18998
18999         mktime: check signed shifts on long_int and time_t, too
19000         * time/mktime.c (SHR): Check that shifts work as desired
19001         on the types long_int and time_t too, as SHR is used on
19002         such types.
19003
19004         mktime: do not assume 'long' is wide enough
19005         * time/mktime.c (verify): Move decl up.
19006         (long_int): New type.
19007         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
19008         to remove assumption in the code that 'long' is wide enough to
19009         store year values.  This assumption is not true on x32 and on
19010         some non-glibc platforms.
19011
19012         mktime: merge wrapv change from gnulib
19013         * time/mktime.c (WRAPV): New macro.
19014         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
19015         (guess_time_tm, __mktime_internal): Do not assume that signed
19016         integer overflow wraps around; modern compilers generate code
19017         where this assumption is no longer valid.
19018
19019 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19020
19021         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
19022         Replace "jmp L(pseudo_end)" with "ret".
19023         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
19024         Likewise.
19025
19026 2012-05-23  Andreas Jaeger  <aj@suse.de>
19027
19028         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
19029         * sysdeps/unix/sysv/linux/poll.c: Remove file.
19030
19031 2012-05-23  Andreas Jaeger  <aj@suse.de>
19032             Maximilian Attems  <max@stro.at>
19033
19034         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
19035         New macros.
19036
19037 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19038
19039         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
19040         code so that pseudo_end is just ret and the stack pointer is
19041         correct also for static library in error case.
19042
19043 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
19044
19045         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
19046         move to syscalls.list.
19047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
19048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
19049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
19050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
19051
19052         * manual/install.texi (Running make install): Do not mention Linux
19053         kernel version for which pt_chown is not needed.
19054         (Linux): Do not mention problems with nscd with 2.0 kernels.
19055         * INSTALL: Regenerated.
19056
19057 2012-05-23  Andreas Jaeger  <aj@suse.de>
19058
19059         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
19060         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
19061         macro.
19062         * sysdeps/unix/sysv/linux/s390/bits/mman.h
19063         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19064         * sysdeps/unix/sysv/linux/sh/bits/mman.h
19065         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19066         * sysdeps/unix/sysv/linux/i386/bits/mman.h
19067         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19068         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
19069         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19070         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
19071         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19072         * sysdeps/unix/sysv/linux/bits/in.h
19073         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
19074
19075 2012-05-22  Roland McGrath  <roland@hack.frob.com>
19076
19077         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
19078         (PREPARE_VERSION): Just use assert instead, it will be elided
19079         under [NDEBUG] anyway.
19080
19081 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19082
19083         * sysdeps/unix/sysv/linux/Makefile: Include
19084         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
19085         (sysdep_routines): Remove sysctl.
19086         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
19087         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
19088         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
19089         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
19090         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
19091
19092 2012-05-22  Andreas Jaeger  <aj@suse.de>
19093
19094         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
19095         that pseudo_end is just ret and the stack pointer is correct also
19096         for static library in error case.
19097
19098 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19099
19100         [BZ #14122]
19101         * nss/nsswitch.c (defconfig_entries): New variable.
19102         (__nss_database_lookup): Don't leak defconfig entries.
19103         (nss_parse_service_list): Don't leak on error paths.
19104         (free_database_entries): New function.
19105         (free_defconfig): New function.
19106         (free_mem): Move common code to free_database_entries.
19107
19108 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19109
19110         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
19111         Add arch_prctl.
19112         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
19113
19114         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
19115         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
19116         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
19117         New macro.
19118         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
19119         (INTERNAL_SYSCALL_TYPES): Likewise.
19120         (LOAD_ARGS_TYPES_[1-6]): Likewise.
19121         (LOAD_REGS_TYPES_[1-6]): Likewise.
19122         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
19123         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
19124
19125 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19126
19127         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
19128         copysignl for GLIBC_2_0.
19129         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
19130         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
19131         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
19132         logbl for GLIBC_2_0.
19133         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
19134         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
19135
19136 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19137
19138         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
19139         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19140
19141         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
19142         Use "neg %eax".
19143
19144         * time/mktime.c: Update copyright years.
19145
19146 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19147
19148         mktime: merge comment-quoting-style change from gnulib
19149         * time/mktime.c: Quote 'like this' in comments.
19150         The GNU coding standards suggest that we no longer quote `like this',
19151         as "`" and "'" are typically rendered asymmetrically nowadays.
19152         The typical gnulib style is to quote 'like this' when quoting
19153         code, and "like this" when quoting English.
19154
19155         * time/mktime.c (compile-command): Add "-I.".
19156
19157         mktime: merge mktime-internal.h change from gnulib
19158         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
19159
19160         mktime: merge time_r change from gnulib
19161         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
19162
19163         mktime: merge DEBUG change from gnulib
19164         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
19165         case system <time.h> has a #define.
19166
19167         mktime: merge <sys/types.h> change from gnulib
19168         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
19169         since <time.t> is now guaranteed to define time_t.
19170
19171         mktime: merge HAVE_CONFIG_H change from gnulib
19172         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
19173
19174 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19175
19176         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
19177         Use "neg %eax".
19178
19179         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
19180         __rlim_t cast.
19181         (struct rusage): Use anonymous union to pad each field to
19182         __syscall_slong_t.
19183
19184 2012-05-21  David S. Miller  <davem@davemloft.net>
19185
19186         * Makefules (o-iterator): Remove .s cases.
19187         (compile-command.s): Delete.
19188         (COMPILE.s): Delete.
19189         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
19190
19191 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
19192
19193         * configure.in (libc_cv_predef_stack_protector): Only consider
19194         "foobar" and "__stack_chk_fail" lines in libc_undefs.
19195         * configure: Regenerated.
19196
19197 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19198
19199         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
19200         New macro.  Use R*LP on int and pointer.
19201         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
19202         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
19203         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
19204         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
19205
19206         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
19207         [__WORDSIZE_TIME64_COMPAT32] instead of
19208         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
19209         (struct utmp): Likewise.
19210         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
19211         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
19212         Renamed to ...
19213         (__WORDSIZE_TIME64_COMPAT32): This.
19214         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
19215         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
19216         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
19217         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
19218         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
19219         (__WORDSIZE_TIME64_COMPAT32): New macro.
19220
19221 2012-05-21  Andreas Jaeger  <aj@suse.de>
19222
19223         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
19224         only if [SHARED]. Add prototype for __wcschr_ia32.
19225
19226 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19227
19228         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
19229         of %rbp unmolested in the jmp_buf while mangling the low bits.
19230         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
19231         unmolested high bits of %rbp while demangling the low bits.
19232         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
19233
19234 2012-05-21  Andreas Jaeger  <aj@suse.de>
19235
19236         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
19237         * sunrpc/svc_simple.c: Use it for registerrpc.
19238         * sunrpc/xcrypt.c: Use it for passwd2des.
19239
19240         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
19241
19242 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19243
19244         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
19245         Don't define if [__SYSCALL_WORDSIZE != 32].
19246         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
19247         New macro.
19248
19249 2012-05-21  Bruno Haible  <bruno@clisp.org>
19250             Andreas Jaeger  <aj@suse.de>
19251
19252         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
19253         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
19254         inptr and inend for must_buffer_ch.
19255         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
19256         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
19257         * stdio-common/Makefile (tests): Remove bug15.
19258         (bug15-ENV): Remove macro.
19259         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
19260         anymore.
19261
19262 2012-05-19  Andreas Jaeger  <aj@suse.de>
19263             Roland McGrath  <roland@hack.frob.com>
19264
19265         * manual/contrib.texi: Completely rewritten. It contains now an
19266         alphabetical list of contributors and their contributions.
19267
19268 2012-05-21  Richard Henderson  <rth@twiddle.net>
19269
19270         * misc/getauxval.c (__getauxval): Use unsigned long int.
19271         * misc/sys/auxv.h: Include <sys/cdefs.h>.
19272         (getauxval): Use unsigned long int.
19273
19274 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19275
19276         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
19277
19278 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19279
19280         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
19281         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
19282         __alignof__ (long double).
19283
19284 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19285
19286         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19287
19288 2012-05-20  Richard Henderson  <rth@twiddle.net>
19289
19290         * misc/getauxval.c: New file.
19291         * misc/sys/auxv.h: New file.
19292         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
19293         (routines): Add getauxval.
19294         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
19295         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
19296         * elf/dl-sysdep.c (_dl_auxv): Remove.
19297         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
19298         * elf/dl-support.c (_dl_auxv): New variable.
19299         (_dl_aux_init): Initialize it.
19300         * manual/startup.texi (Auxiliary Vector): New node.
19301         * sysdeps/generic/bits/hwcap.h: New file.
19302         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
19303         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
19304         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
19305         * sysdeps/sparc/sysdep.h: ... here.  Include it.
19306         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
19307         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
19308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
19309         Update.
19310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
19311         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
19312         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
19313         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
19314         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
19315         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
19316         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
19317         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
19318
19319 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19320
19321         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19322
19323 2012-05-19  David S. Miller  <davem@davemloft.net>
19324
19325         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19326
19327 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
19328
19329         [BZ #14123]
19330         * math/s_ccosh.c: Include <float.h>
19331         (__ccosh): Avoid internal overflow calculating sinh and cosh
19332         values before multiplying by sin and cos values.
19333         * math/s_ccoshf.c: Likewise.
19334         * math/s_ccoshl.c: Likewise.
19335         * math/s_csin.c: Likewise.
19336         * math/s_csinf.c: Likewise.
19337         * math/s_csinl.c: Likewise.
19338         * math/s_csinh.c: Likewise.
19339         * math/s_csinhf.c: Likewise.
19340         * math/s_csinhl.c: Likewise.
19341         * math/libm-test.inc (ccos_test): Add more tests.
19342         (ccosh_test): Likewise.
19343         (csin_test): Likewise.
19344         (csinh_test): Likewise.
19345         * sysdeps/i386/fpu/libm-test-ulps: Update.
19346         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19347
19348 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
19349
19350         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
19351         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
19352
19353         * sysdeps/x86_64/x32/_itoa.h: Add comment.
19354
19355 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
19356
19357         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
19358         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
19359         * sysdeps/powerpc/soft-fp/Versions: Likewise.
19360         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
19361         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
19362         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
19363         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
19364         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
19365         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
19366         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
19367         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
19368         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
19369         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
19370         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
19371         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
19372         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
19373         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
19374         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
19375         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
19376         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
19377         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
19378         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
19379         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
19380         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
19381         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
19382         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
19383         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
19384         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
19385         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
19386         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
19387         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
19388
19389 2012-05-18  Andreas Jaeger  <aj@suse.de>
19390
19391         * csu/.gitignore: Delete.
19392
19393 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19394
19395         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
19396         (timex): Use __syscall_slong_t.
19397
19398 2012-05-18  Andreas Jaeger  <aj@suse.de>
19399             Carlos O'Donell  <carlos_odonell@mentor.com>
19400
19401         * manual/install.texi (Configuring and compiling): Update
19402         description about files modified in the source directory.
19403         * INSTALL: Regenerated.
19404
19405 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19406
19407         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
19408         value.  Use "or" to set return value to -1.
19409         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
19410         negate return value.
19411
19412 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19413
19414         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
19415         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
19416         failure if the compiler has Graphite support disabled.
19417         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
19418         Likewise.
19419         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
19420         CFLAGS-memmove.c): Likewise.
19421         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
19422         Likewise.
19423
19424 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19425
19426         * sysdeps/x86_64/x32/_itoa.h: New file.
19427
19428         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
19429         getdents system call only if kernel and user dirents have the
19430         same d_ino and d_off.
19431
19432         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
19433         LLONG_MAX != LONG_MAX.
19434         (_itoa_word): Use _ITOA_WORD_TYPE on value.
19435         (_fitoa_word): Likewise.
19436
19437         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
19438         years.
19439         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
19440         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
19441         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
19442
19443         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
19444         include <bits/wordsize.h>.  Check __x86_64__ instead of
19445         __WORDSIZE.
19446         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
19447         if __x86_64__ is defined.  Use anonymous union on fpstate.
19448
19449         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
19450         anonymous union.
19451
19452 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
19453
19454         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
19455         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
19456         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
19457         Refer to _rtld_local_ro instead of _rtld_global_ro.
19458         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
19459         Likewise.
19460         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
19461         Likewise.
19462         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
19463         Likewise.
19464         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
19465         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
19466         of _rtld_global, and rtld_progname instead of _dl_argv[0].
19467
19468         * sysdeps/powerpc/powerpc32/dl-machine.c
19469         (__elf_machine_runtime_setup) [PROF]: Don't reference
19470         _dl_prof_resolve.
19471
19472 2012-05-18  Andreas Jaeger  <aj@suse.de>
19473
19474         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
19475         function only available for GCCs before 3.4 since GCC 3.4
19476         introduced a builtin.
19477         (lrint): Likewise.
19478         (llrintf): Likewise.
19479         (llrint): Likewise.
19480         (fmaxf): Likewise.
19481         (fmax): Likewise.
19482         (fminf): Likewise.
19483         (fmin): Likewise.
19484         (rint): Likewise.
19485         (rintf): Likewise.
19486         (nearbyint): Likewise.
19487         (nearbyintf): Likewise.
19488         (ceil): Likewise.
19489         (ceilf): Likewise.
19490         (floor): Likewise.
19491         (floorf): Likewise.
19492
19493 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19494
19495         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
19496         on both fields and cast pointer to __syscall_ulong_t.
19497
19498         * bits/types.h (__fsword_t): New type.
19499         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
19500         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
19501         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19502         (__FSWORD_T_TYPE): Likewise.
19503         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19504         (__FSWORD_T_TYPE): Likewise.
19505         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19506         (__FSWORD_T_TYPE): Likewise.
19507         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
19508         (__FSWORD_T_TYPE): Likewise.
19509         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
19510         __SWORD_TYPE with __fsword_t.
19511         (statfs64): Likewise.
19512
19513 2012-05-17  David S. Miller  <davem@davemloft.net>
19514
19515         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
19516
19517 2012-05-17  Andreas Jaeger  <aj@suse.de>
19518
19519         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
19520         warning.
19521
19522 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19523
19524         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
19525
19526 2012-05-17  Andreas Jaeger  <aj@suse.de>
19527
19528         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
19529         when it is used.
19530
19531 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
19532
19533         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
19534
19535 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19536
19537         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
19538         * sysdeps/x86_64/tst-mallocalign1.c: New file.
19539
19540 2012-05-17  Andreas Jaeger  <aj@suse.de>
19541             Carlos O'Donell  <carlos_odonell@mentor.com>
19542
19543         [BZ #14059]
19544         * sysdeps/x86_64/multiarch/init-arch.h
19545         (bit_YMM_Usable): Rename to...
19546         (bit_AVX_Usable): ... this.
19547         (bit_FMA4_Usable): New macro.
19548         (bit_XMM_state): New macro.
19549         (bit_YMM_state): New macro.
19550         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
19551         [__ASSEMBLER__] (index_AVX_Usable): ... this.
19552         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
19553         (CPUID_OSXSAVE): New macro.
19554         (CPUID_AVX): New macro.
19555         (CPUID_FMA4): New macro.
19556         (index_YMM_Usable): Rename to...
19557         (index_AVX_Usable): ... this.
19558         (HAS_AVX): Use HAS_ARCH_FEATURE.
19559         (HAS_FMA4): Likewise.
19560         (HAS_YMM_USABLE): Remove.
19561         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19562         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
19563         are present.
19564         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
19565         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
19566         * sysdeps/x86_64/multiarch/Makefile: Likewise.
19567         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
19568         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
19569
19570 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
19571
19572         * math/libm-test.c: Support platforms without multiple rounding modes.
19573         * math/bug-nextafter.c: Support platforms without FP exceptions.
19574         * math/bug-nexttoward.c: Likewise.
19575         * math/test-fenv.c: Likewise.
19576         * math/test-misc.c: Likewise.
19577         * stdlib/bug-getcontext.c: Likewise.
19578
19579 2012-05-17  Andreas Jaeger  <aj@suse.de>
19580
19581         * manual/examples/search.c (critter_cmp): Change signature to
19582         avoid warnings.
19583         * manual/string.texi (Collation Functions): Likewise.
19584
19585 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19586
19587         * bits/types.h: Fold copyright years.
19588         * bits/typesizes.h: Likewise.
19589         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
19590         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
19591         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
19592         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
19593         * time/time.h: Likewise.
19594
19595 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
19596
19597         [BZ #208]
19598         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
19599         in instead of returning them.  Return void.
19600         (__libc_mallinfo): Accumulate over all arenas.
19601         (__malloc_stats): Adjust for change in int_mallinfo interface.
19602
19603 2012-05-16  Roland McGrath  <roland@hack.frob.com>
19604
19605         [BZ #10375]
19606         * configure.in (NM): Add AC_CHECK_TOOL for it.
19607         (libc_extra_cflags): New substituted variable.
19608         Check for -fstack-protector being used implicitly.
19609         * configure: Regenerated.
19610         * config.make.in (config-extra-cflags): New variable,
19611         gets @libc_extra_cflags@.
19612         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
19613
19614         [BZ #10375]
19615         * configure.in: Check for _FORTIFY_SOURCE being predefined.
19616         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
19617         * configure: Regenerated.
19618         * config.make.in (CPPUNDEFS): New substituted variable.
19619         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
19620         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
19621         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
19622
19623 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19624
19625         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
19626         (mq_attr): Use __syscall_slong_t.
19627
19628 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19629
19630         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
19631         Check __x86_64__ instead of __WORDSIZE.
19632         (_STAT_VER_LINUX): Likewise.
19633         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
19634         __syscall_ulong_t and __syscall_slong_t.
19635         (stat64): Likewise.
19636
19637 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19638
19639         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
19640
19641 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19642
19643         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
19644
19645 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19646
19647         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
19648         __syscall_ulong_t.
19649
19650         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
19651         include <bits/wordsize.h>.  Check __x86_64__ instead of
19652         __WORDSIZE.
19653         (greg_t): Use "__extension__ long long int" if __x86_64__ is
19654         defined.
19655         (mcontext_t): Replace "unsigned long" with "unsigned long long".
19656
19657         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
19658         include <bits/wordsize.h>.  Check __x86_64__ instead of
19659         __WORDSIZE.
19660         (user_regs_struct): Use "__extension__ unsigned long long"
19661         instead of "unsigned long" if __x86_64__ is defined.
19662         (user): Likewise.  Pad after pointer field if __ILP32__ is
19663         defined.
19664
19665 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
19666
19667         * configure.in (makeinfo): Require version 4.5 or later.  Allow
19668         versions 5 to 9.
19669         * configure: Regenerated.
19670         * manual/install.texi (texinfo): Increase version requirement to
19671         4.5 or later.
19672         * INSTALL: Regenerated.
19673
19674         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
19675
19676 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19677
19678         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
19679
19680         * sysdeps/x86_64/x32/ffs.c: New file.
19681
19682         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
19683         __syscall_ulong_t.
19684         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
19685         defined.  Use __syscall_ulong_t.
19686         (shminfo): Use __syscall_ulong_t.
19687         (shm_info): Likewise.
19688
19689         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
19690         __syscall_ulong_t.
19691
19692         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
19693         <bits/wordsize.h>.
19694         (msgqnum_t): Use __syscall_ulong_t.
19695         (msglen_t): Likewise.
19696         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
19697         __syscall_ulong_t.
19698
19699         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
19700         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19701
19702         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
19703
19704         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
19705         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
19706
19707         * sysvipc/sys/msg.h (msgbuf): Replace long int with
19708         __syscall_slong_t.
19709
19710         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
19711         include <bits/wordsize.h>.  Check __x86_64__ instead of
19712         __WORDSIZE.
19713
19714         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
19715         "unsigned long long int" if __x86_64__ is defined.
19716         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
19717
19718         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
19719         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19720         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
19721
19722         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
19723         <stdint.h>.
19724         (GET_PC): Cast to uintptr_t first.
19725         (GET_FRAME): Likewise.
19726         (GET_STACK): Likewise.
19727
19728         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
19729         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
19730         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
19731         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
19732         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
19733         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
19734         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
19735         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
19736         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
19737         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
19738         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
19739         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
19740         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
19741         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
19742         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
19743         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
19744         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
19745         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
19746         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
19747         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
19748         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
19749         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
19750         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
19751         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
19752         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
19753         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
19754         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
19755         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
19756         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
19757
19758 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
19759
19760         * Makerules (+depfiles): Also collect depfiles from .oS in
19761         $(extra-objs).
19762         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
19763         .oS, $(libnldbl-routines)).
19764
19765         * Makerules (native-compile-mkdep-flags): Define.
19766         * sunrpc/Makefile (extra-objs): Add $(addprefix
19767         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
19768         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
19769         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
19770         calling $(make-target-directory).
19771
19772 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19773
19774         * bits/types.h (__snseconds_t): Removed.
19775         * time/time.h (struct timespec): Replace __snseconds_t with
19776         __syscall_slong_t.
19777         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
19778         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
19779         Likewise.
19780         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19781         (__SNSECONDS_T_TYPE): Likewise.
19782         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19783         (__SNSECONDS_T_TYPE): Likewise.
19784         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19785         (__SNSECONDS_T_TYPE): Likewise.
19786
19787 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19788
19789         * sysdeps/mach/hurd/bits/typesizes.h
19790         (__SYSCALL_SLONG_TYPE): New macro.
19791         (__SYSCALL_ULONG_TYPE): Likewise.
19792
19793 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19794
19795         * bits/types.h (__syscall_slong_t): New type.
19796         (__syscall_ulong_t): Likewise.
19797
19798         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
19799         (__SYSCALL_ULONG_TYPE): Likewise.
19800         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19801         (__SYSCALL_SLONG_TYPE): Likewise.
19802         (__SYSCALL_ULONG_TYPE): Likewise.
19803         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19804         (__SYSCALL_SLONG_TYPE): Likewise.
19805         (__SYSCALL_ULONG_TYPE): Likewise.
19806         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19807         (__SYSCALL_SLONG_TYPE): Likewise.
19808         (__SYSCALL_ULONG_TYPE): Likewise.
19809
19810 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19811
19812         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
19813         Add sigaltstack-offsets.sym.
19814         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
19815         <sigaltstack-offsets.h>.
19816         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
19817         longjmp_msg pointer.
19818         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
19819         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
19820         signal stack.
19821         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
19822
19823 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
19824
19825         * elf/stackguard-macros.h: Remove file.
19826         * sysdeps/generic/stackguard-macros.h: New file.
19827         * sysdeps/i386/stackguard-macros.h: Likewise.
19828         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
19829         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
19830         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
19831         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
19832         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
19833         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
19834         * sysdeps/x86_64/stackguard-macros.h: Likewise.
19835         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
19836         <elf/stackguard-macros.h>.
19837
19838         [BZ #14109]
19839         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
19840         __aligned__ in attribute.
19841         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
19842         (gregset_t): Likewise.
19843
19844 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19845
19846         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
19847         * sysdeps/x86_64/64/Implies-after: Here.  New file.
19848         * sysdeps/x86_64/x32/Implies-after: New file.
19849
19850 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19851
19852         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
19853         and access return value for _dl_profile_fixup.  Use R10_LP to
19854         load frame size.
19855
19856 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19857
19858         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
19859
19860 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19861
19862         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
19863         * sysdeps/x86_64/x32/sysdep.h: New file.
19864
19865 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19866
19867         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
19868         * sysdeps/x86_64/setjmp.S: Likewise.
19869
19870 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19871
19872         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
19873         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
19874         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
19875         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
19876         remove unused global constant.
19877
19878 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
19879
19880         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
19881         include of <not-cancel.h>.
19882
19883 2012-05-15  Roland McGrath  <roland@hack.frob.com>
19884
19885         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
19886
19887 2012-05-15  Jeff Law  <law@redhat.com>
19888             Andreas Jaeger  <aj@suse.de>
19889
19890         [BZ #13594]
19891         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
19892         out from...
19893         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
19894         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
19895         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
19896         code changing __hst_map_handle.map.
19897
19898 2012-05-15  Roland McGrath  <roland@hack.frob.com>
19899
19900         * configure.in (sysnames): Look for Implies-before and Implies-after
19901         files.
19902         * configure: Regenerated.
19903
19904 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19905
19906         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
19907         8-byte data alignment with LP_SIZE alignment.
19908
19909 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19910
19911         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
19912         into R10_LP.
19913
19914 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19915
19916         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
19917
19918 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19919
19920         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
19921         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
19922         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
19923         Likewise.
19924         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
19925
19926 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19927
19928         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
19929         (stackinfo_sub_sp): Likewise.
19930
19931 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19932
19933         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
19934         RAX_LP.
19935
19936 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19937
19938         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
19939         into R*_LP.
19940
19941 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19942
19943         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
19944         sizes into R*_LP.
19945
19946 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19947
19948         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
19949
19950 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19951
19952         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
19953         into R11_LP and load __x86_64_shared_cache_size_half into
19954         R8_LP.
19955
19956 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19957
19958         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
19959         R8_LP.
19960
19961 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19962
19963         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
19964         logb for POWER7.
19965         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
19966         logbf for POWER7.
19967         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
19968         logbl for POWER7.
19969         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
19970         powerpc32/power7/fpu/s_logb.c via #include.
19971         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
19972         powerpc32/power7/fpu/s_logbf.c via #include.
19973         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
19974         powerpc32/power7/fpu/s_logbl.c via #include.
19975
19976 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
19977
19978         * README.libm: Remove file.
19979
19980 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19981
19982         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
19983         count for x32.  Use R*_LP and omit operand-size suffix.
19984
19985 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19986
19987         * shlib-versions: Move x86_64-.*-linux.* entries to ...
19988         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
19989         * sysdeps/x86_64/x32/shlib-versions: New file.
19990
19991 2012-05-14  Roland McGrath  <roland@hack.frob.com>
19992
19993         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
19994         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
19995         Use _dl_fatal_printf instead.
19996
19997 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
19998
19999         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
20000         set if not set by the user.  Do not allow for being unset.
20001         * sysdeps/unix/sysv/linux/configure: Regenerated.
20002
20003 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20004
20005         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
20006         the `q' suffix from lea and replace .quad with ASM_ADDR.
20007
20008 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20009
20010         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
20011         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
20012         instead of $17.
20013         (PTR_DEMANGLE): Likewise.
20014
20015 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20016
20017         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
20018         (LP_OP): Likewise.
20019         (ASM_ADDR): Likewise.
20020         (RAX_LP): Likewise.
20021         (RBP_LP): Likewise.
20022         (RBX_LP): Likewise.
20023         (RCX_LP): Likewise.
20024         (RDI_LP): Likewise.
20025         (RSI_LP): Likewise.
20026         (RSP_LP): Likewise.
20027         (R8_LP): Likewise.
20028         (R9_LP): Likewise.
20029         (R10_LP): Likewise.
20030         (R10_LP): Likewise.
20031         (R11_LP): Likewise.
20032         (R12_LP): Likewise.
20033         (R13_LP): Likewise.
20034         (R14_LP): Likewise.
20035         (R15_LP): Likewise.
20036
20037 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20038
20039         * sysdeps/x86_64/x32/dl-machine.h: New file.
20040
20041 2012-05-14  Andreas Jaeger  <aj@suse.de>
20042
20043         * manual/Makefile (subdir): Remove export of subdir.
20044         (all): Remove target.
20045         (.PHONY): Remove all from list.
20046         (mkinstalldirs): Remove.
20047         (.PHONY): Remove installdirs from list.
20048         ($(inst_infodir)/libc.info): Use make-target-directory.
20049         (installdirs): Remove.
20050         (subdir_%): Remove.
20051         (glibc-targets): Remove.
20052         (lib): Remove.
20053         (stubs): Remove.
20054         ($(objpfx)stubs ../po/manual.pot): Remove.
20055         ($(objpfx)stamp%): Remove.
20056         (make-target-directory): Remove.
20057         (subdir_install): Remove.
20058         (routines): Remove.
20059         (aux): Remove.
20060         (sources): Remove.
20061         (objects): Remove.
20062         (headers): Remove.
20063
20064         [BZ #13750]
20065         * manual/.gitignore: Remove, it's not needed anymore.
20066         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
20067         all files in it.
20068         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
20069         directory.
20070         (texis): Renamed to $(objpfx)texis.
20071         (texis-path): New, contains path to generated files.
20072         (chapters.%): Use texis-path for complete path, add extra argument
20073         libc-texinfo.sh.
20074         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
20075         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
20076         (summary,texi, stamp-summary): Use complete path of
20077         files. Generate files in build dir.
20078         (dir-add.texi): Build in build dir.
20079         (libm-err.texi,stamp-libm-err): Likewise.
20080         (version.texi, stamp-version): Likewise.
20081         (.%c.texi): Likewise.
20082         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
20083         (mostlyclean): Remove target.
20084         (realclean): Remove target.
20085         (generated): Add new variable with contents from mostlyclean and
20086         realclean, remove entries duplicated in common-mostlyclean, add
20087         stamp-libm-err and stamp-version.
20088         (generated-dirs): Add libc directory.
20089         ($(inst_infodir)/libc.info): Install files from build dir.
20090
20091         * manual/install.texi (Configuring and compiling): Adjust since
20092         the info files are not part of the tar ball anymore.
20093
20094 2012-05-14  Andreas Jaeger  <aj@suse.de>
20095
20096         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
20097         variable.
20098
20099 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
20100
20101         [BZ #13717]
20102         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
20103         to 2.2.0 where earlier.
20104         * sysdeps/unix/sysv/linux/configure: Regenerated.
20105         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
20106         Remove conditional code.
20107         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
20108         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
20109         Remove conditional code.
20110         [!__NR_lchown]: Likewise.
20111         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20112         [__NR_lchown]: Likewise.
20113         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
20114         comment referencing __ASSUME_LCHOWN_SYSCALL.
20115         * sysdeps/unix/sysv/linux/i386/sigaction.c
20116         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20117         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20118         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
20119         Remove conditional code.
20120         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
20121         (__protocol_available): Remove #if 0 code.
20122         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
20123         conditional code.
20124         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
20125         * sysdeps/unix/sysv/linux/kernel-features.h
20126         (__ASSUME_GETCWD_SYSCALL): Don't define.
20127         (__ASSUME_REALTIME_SIGNALS): Likewise.
20128         (__ASSUME_PREAD_SYSCALL): Likewise.
20129         (__ASSUME_PWRITE_SYSCALL): Likewise.
20130         (__ASSUME_POLL_SYSCALL): Likewise.
20131         (__ASSUME_LCHOWN_SYSCALL): Likewise.
20132         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
20133         non-SPARC.
20134         (__ASSUME_SIOCGIFNAME): Don't define.
20135         (__ASSUME_MSG_NOSIGNAL): Likewise.
20136         (__ASSUME_SENDFILE): Define unconditionally.
20137         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
20138         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
20139         conditional code.
20140         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
20141         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
20142         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
20143         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20144         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
20145         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
20146         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
20148         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20149         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
20151         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20152         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
20154         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20155         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
20157         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20158         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
20160         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20161         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
20163         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20164         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
20166         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20167         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
20169         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20170         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20171         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
20172         Remove conditional code.
20173         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20174         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
20175         Remove conditional code.
20176         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20177         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
20178         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
20179         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
20180         Remove conditional code.
20181         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20182         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
20183         Remove conditional code.
20184         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20185         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
20186         Remove conditional code.
20187         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20188         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
20189         Remove conditional code.
20190         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20191         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
20192         Remove conditional code.
20193         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20194         * sysdeps/unix/sysv/linux/sh/pwrite64.c
20195         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20196         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20197         * sysdeps/unix/sysv/linux/sigaction.c
20198         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20199         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20200         * sysdeps/unix/sysv/linux/sigpending.c
20201         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20202         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20203         * sysdeps/unix/sysv/linux/sigprocmask.c
20204         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20205         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20206         * sysdeps/unix/sysv/linux/sigsuspend.c
20207         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20208         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20209         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
20210         (__libc_missing_rt_sigs): Remove.
20211         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
20212         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
20213         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
20214         Remove conditional code.
20215         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
20216         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
20217         return 1.
20218         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
20219         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
20220         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
20221         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
20222
20223 2012-05-14  Andreas Jaeger  <aj@suse.de>
20224
20225         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
20226         it's not used in glibc.
20227         (__coshm1): Likewise.
20228         (__acosh1p): Likewise.
20229         (__sgn): Likewise.
20230
20231         * manual/string.texi (Copying and Concatenation): Add missing
20232         variable in concat example.
20233         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
20234
20235 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20236
20237         [BZ #14103]
20238         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
20239         __builtin_clzl with __builtin_clzll.
20240
20241 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20242
20243         [BZ #14104]
20244         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
20245         libc_freeres_ptr.
20246
20247 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20248
20249         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
20250         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
20251         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
20252         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
20253
20254 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
20255
20256         * NEWS: Update ia64 info.
20257
20258 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
20259
20260         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
20261         used as bcopy.
20262
20263 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
20264
20265         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
20266         * sysdeps/unix/syscalls.list (dup3): Likewise.
20267         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
20268         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
20269
20270 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20271
20272         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
20273         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
20274
20275 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20276
20277         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
20278         thread pointer.
20279         (TLS_IE): Use mov/add instead of movq/addq to load thread
20280         pointer.
20281         (TLS_GD_PREFIX): New.
20282         (TLS_GD): Use it.
20283
20284 2012-05-11  David S. Miller  <davem@davemloft.net>
20285
20286         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
20287         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
20288         (_FPU_SETCW): Likewise.
20289
20290 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20291
20292         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
20293         is 32-byte aligned.
20294
20295 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
20296
20297         [BZ #11837]
20298         * iconvdata/gb18030.c: Update tables.
20299         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
20300         characters specially.
20301         (BODY for TO_LOOP): Add encoding of missing ranges.
20302
20303 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
20304
20305         [BZ #13673]
20306         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
20307         * sysdeps/mach/hurd/dup3.c: Likewise.
20308         * sysdeps/mach/hurd/readlinkat.c: Likewise.
20309         * sysdeps/powerpc/memmove.c:: Likewise.
20310
20311 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20312
20313         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
20314         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
20315
20316 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20317
20318         * elf/elf.h (R_X86_64_RELATIVE64): New.
20319         (R_X86_64_NUM): Updated.
20320         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
20321         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
20322         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
20323         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
20324         tst-quad1pie tst-quad2pie
20325         (modules-names): Add tst-quadmod1 tst-quadmod2.
20326         ($(objpfx)tst-quad1): New dependency.
20327         ($(objpfx)tst-quad2): Likewise.
20328         ($(objpfx)tst-quad1pie): Likewise.
20329         ($(objpfx)tst-quad2pie): Likewise.
20330         * sysdeps/x86_64/tst-quad1.c: New file.
20331         * sysdeps/x86_64/tst-quad1pie.c: New file.
20332         * sysdeps/x86_64/tst-quad2.c: Likewise.
20333         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
20334         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
20335         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
20336         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
20337         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
20338
20339 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20340
20341         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
20342         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
20343         * streams/stropts.h (t_scalar_t): Define type.
20344
20345         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
20346         (_PATH_PRESERVE): Set to "/var/lib".
20347         (_PATH_RWHODIR): Set to "/var/spool/rwho".
20348
20349         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
20350         instead of int.
20351
20352         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
20353         if __dir_mkfile succeeded.
20354
20355         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
20356         checking for _hurd_dtablesize.  Unlock it right after having
20357         finished _hurd_dtable allocation.
20358
20359 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20360
20361         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
20362         * sysdeps/mach/hurd/configure: Regenerated.
20363         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
20364         special-casing to...
20365         * sysdeps/gnu/configure.in: ... this new file.
20366         * sysdeps/unix/sysv/linux/configure: Regenerated.
20367         * sysdeps/gnu/configure: New generated file.
20368
20369         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
20370         for Linux: use nsec instead of usec, as well as:
20371         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
20372         members of type struct timespec.
20373         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
20374         New macros.
20375         (struct stat64): Likewise.
20376         (_STATBUF_ST_NSEC): New macro.
20377         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
20378
20379         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20380         __strtoul_internal rather than strtoul.
20381
20382 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20383
20384         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
20385         and reject them.
20386
20387 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20388
20389         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
20390         which preserves existing values.
20391         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
20392
20393 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20394
20395         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
20396         TIMEOUT values.  Return EINVAL for NFDS values either negative or
20397         greater than FD_SETSIZE.
20398
20399 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20400
20401         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
20402         allocated, call __vm_protect to finish enabling the existing space, and
20403         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
20404         allocate the remainder.
20405
20406 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20407
20408         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
20409         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
20410
20411 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20412
20413         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
20414         sysdeps/mach/hurd/readlink.c.
20415
20416         * posix/tst-sysconf.c (posix_options): Only use
20417         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
20418         _POSIX_SYNCHRONIZED_IO when they are defined
20419         * sysdeps/mach/hurd/bits/posix_opt.h:
20420         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
20421         (_XOPEN_REALTIME): Undefine macro.
20422         (_XOPEN_REALTIME_THREADS): Undefine macro.
20423         (_XOPEN_SHM): Undefine macro.
20424         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
20425         macro to -1.
20426         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
20427         macro to -1.
20428         (_POSIX_ASYNC_IO): Undefine macro.
20429         (_POSIX_PRIORITIZED_IO): Undefine macro.
20430         (_POSIX_SPIN_LOCKS): Define macro to -1.
20431
20432         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
20433         SA_NODEFER, SA_RESETHAND.
20434         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
20435         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
20436         F_DUPFD_CLOEXEC.
20437
20438 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20439
20440         * elf/Makefile (pldd-modules): Define unconditionally.
20441
20442 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20443
20444         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
20445
20446 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20447
20448         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
20449         Return ENOENT when name is empty.
20450         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
20451
20452 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20453
20454         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
20455
20456         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
20457
20458 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20459
20460         Fix mlock in all cases except non-readable pages.
20461         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
20462         instead of VM_PROT_ALL as parameter to __vm_wire function.
20463
20464         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
20465         (__mkdir): When path is `/', just fail with EEXIST.
20466         * sysdeps/mach/hurd/mkdirat.c: Likewise.
20467
20468 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20469
20470         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
20471         <sys/uio.h> (for writev).
20472         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
20473         and <sys/param.h> (for MIN).
20474
20475 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20476
20477         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
20478         REQUESTED_TIME.  Properly set the remaining time and return EINTR
20479         if interrupted.
20480
20481 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20482
20483         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
20484         Depend on against $(link-rpcuserlibs).
20485
20486 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20487
20488         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
20489         (__libc_stack_end): Do not use attribute_relro.
20490         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
20491         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
20492         to libthread-provided value.
20493         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
20494         attribute_relro.
20495
20496 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20497
20498         [BZ #3748]
20499         * bits/libc-lock.h (__libc_once_get): New macro.
20500         * sysdeps/mach/bits/libc-lock.h: Likewise.
20501         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
20502         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
20503         instead of using implementation details.
20504
20505         * libio/fileops.c: Unconditionally include <kernel-features.h>.
20506         * libio/freopen.c: Likewise.
20507         * libio/freopen64.c: Likewise.
20508         * misc/syslog.c: Likewise.
20509         * nscd/connections.c: Likewise.
20510         * nscd/netgroupcache.c: Likewise.
20511         * sysdeps/posix/getcwd.c: Likewise.
20512
20513 2012-05-10  Roland McGrath  <roland@hack.frob.com>
20514
20515         * math/w_ilogbf.c: Add #include <limits.h>.
20516
20517 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20518
20519         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
20520         path instead of returning without unlocking.
20521
20522         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
20523         immediate-write ioctls.
20524         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
20525
20526 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20527
20528         * sysdeps/mach/hurd/i386/init-first.c (init): Use
20529         __builtin_frame_address instead of making assumptions about the
20530         location of the return address relative to DATA.  Force early load of
20531         the return address.
20532         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
20533         __builtin_frame_address.
20534
20535         dup3 for GNU Hurd.
20536         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
20537         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
20538         implement dup3 and do some further code clean-ups.
20539         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
20540         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
20541
20542 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20543
20544         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
20545
20546         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
20547         HURD_CRITICAL_END around holding _hurd_dtable_lock.
20548         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
20549         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
20550         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
20551         d->port.lock.
20552
20553         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
20554         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
20555         when handler == SIG_ERR, not when handler != SIG_ERR.
20556
20557 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20558
20559         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
20560         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
20561         definitions.
20562
20563         accept4 for GNU Hurd.
20564         * include/sys/socket.h (__libc_accept4): New prototype.
20565         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
20566         to implement __libc_accept4.
20567         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
20568         __libc_accept4.
20569         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
20570
20571         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
20572         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
20573         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
20574         signal-defines.sym.
20575
20576 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20577
20578         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
20579
20580 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20581
20582         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
20583         assertion on O_CLOEXEC flag.
20584         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
20585         * hurd/intern-fd.c: Likewise.
20586         * hurd/port2fd.c: Likewise.
20587
20588 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20589
20590         [BZ #3906]
20591         * bits/in.h (IPV6_PKTINFO): Define new macro.
20592         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
20593
20594 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20595
20596         [BZ #13954]
20597         [BZ #13955]
20598         [BZ #13956]
20599         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
20600         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
20601         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
20602         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
20603         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
20604         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
20605         * math/libm-test.inc (logb_test) : Additional logb tests.
20606
20607 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
20608             Andreas Jaeger  <aj@suse.de>
20609
20610         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
20611         * configure: Regenerated.
20612         * config.h.in (LINK_OBSOLETE_RPC): New macro.
20613         * config.make.in (link-obsolete-rpc): New substituted variable.
20614         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
20615         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
20616         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
20617         (shared-only-routines): Don't set it under [link-obsolete-rpc],
20618         so that libc.a contains the symbols.
20619         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
20620         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
20621         * sunrpc/auth_none.c: Likewise.
20622         * sunrpc/auth_unix.c: Likewise.
20623         * sunrpc/authdes_prot.c: Likewise.
20624         * sunrpc/authuxprot.c: Likewise.
20625         * sunrpc/clnt_gen.c: Likewise.
20626         * sunrpc/clnt_perr.c: Likewise.
20627         * sunrpc/clnt_raw.c: Likewise.
20628         * sunrpc/clnt_simp.c: Likewise.
20629         * sunrpc/clnt_tcp.c: Likewise.
20630         * sunrpc/clnt_udp.c: Likewise.
20631         * sunrpc/clnt_unix.c: Likewise.
20632         * sunrpc/des_crypt.c: Likewise.
20633         * sunrpc/des_soft.c: Likewise.
20634         * sunrpc/get_myaddr.c: Likewise.
20635         * sunrpc/key_call.c: Likewise.
20636         * sunrpc/key_prot.c: Likewise.
20637         * sunrpc/netname.c: Likewise.
20638         * sunrpc/pm_getmaps.c: Likewise.
20639         * sunrpc/pm_getport.c: Likewise.
20640         * sunrpc/pmap_clnt.c: Likewise.
20641         * sunrpc/pmap_prot.c: Likewise.
20642         * sunrpc/pmap_prot2.c: Likewise.
20643         * sunrpc/pmap_rmt.c: Likewise.
20644         * sunrpc/publickey.c: Likewise.
20645         * sunrpc/rpc_cmsg.c: Likewise.
20646         * sunrpc/rpc_common.c: Likewise.
20647         * sunrpc/rpc_dtable.c: Likewise.
20648         * sunrpc/rpc_prot.c: Likewise.
20649         * sunrpc/rpc_thread.c: Likewise.
20650         * sunrpc/rtime.c: Likewise.
20651         * sunrpc/svc.c: Likewise.
20652         * sunrpc/svc_auth.c: Likewise.
20653         * sunrpc/svc_raw.c: Likewise.
20654         * sunrpc/svc_run.c: Likewise.
20655         * sunrpc/svc_tcp.c: Likewise.
20656         * sunrpc/svc_udp.c: Likewise.
20657         * sunrpc/svc_unix.c: Likewise.
20658         * sunrpc/svcauth_des.c: Likewise.
20659         * sunrpc/xcrypt.c: Likewise.
20660         * sunrpc/xdr.c: Likewise.
20661         * sunrpc/xdr_array.c: Likewise.
20662         * sunrpc/xdr_float.c: Likewise.
20663         * sunrpc/xdr_intXX_t.c: Likewise.
20664         * sunrpc/xdr_mem.c: Likewise.
20665         * sunrpc/xdr_rec.c: Likewise.
20666         * sunrpc/xdr_ref.c: Likewise.
20667         * sunrpc/xdr_sizeof.c: Likewise.
20668         * sunrpc/xdr_stdio.c: Likewise.
20669
20670 2012-05-10  Roland McGrath  <roland@hack.frob.com>
20671
20672         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
20673         change.  Update copyright years.
20674
20675 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
20676
20677         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
20678
20679 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
20680             Joseph Myers  <joseph@codesourcery.com>
20681             Paul Pluzhnikov  <ppluzhnikov@google.com>
20682
20683         [BZ #14012]
20684         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
20685         requiring rpcgen.
20686         [cross-compiling] (extra-libs): Likewise.
20687         [cross-compiling] (extra-libs-others): Likewise.
20688         [cross-compiling] (librpcsvc-routines): Likewise.
20689         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
20690         [cross-compiling] (omit-deps): Likewise.
20691         (sunrpc-CPPFLAGS): New variable.
20692         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
20693         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
20694         (cross-rpcgen-objs): New variable.
20695         (extra-objs): Append $(cross-rpcgen-objs).
20696         ($(cross-rpcgen-objs)): New rule.
20697         ($(objpfx)cross-rpcgen): Likewise.
20698         (rpcgen-cmd): Define to use $(built-program-file).  Expand
20699         comment.
20700         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
20701         ($(objpfx)x%.stmp): Likewise.
20702         * sunrpc/proto.h [IS_IN_build] (_): Define.
20703         [IS_IN_build] (_libc_intl_domainname): Likewise.
20704
20705 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20706
20707         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
20708         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
20709         and R_X86_64_TPOFF64.
20710
20711 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
20712
20713         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
20714         sysdeps/unix/sysv/syscalls.list.
20715         (stime): Likewise.
20716         (utime): Likewise.
20717         * sysdeps/unix/sysv/syscalls.list: Remove file.
20718
20719 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
20720
20721         [BZ #3440]
20722         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
20723         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
20724         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
20725         (__LC_IDENTIFICATION): Make these macros useful in #if
20726         expressions, as required by C99.
20727
20728 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
20729
20730         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
20731         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
20732         after this.
20733
20734 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
20735
20736         * stdlib/longlong.h: Updated from GCC.
20737
20738 2012-05-09  Andreas Jaeger  <aj@suse.de>
20739
20740         * nscd/nscd.c (run_modes): Make named enum, reorder so that
20741         default is first entry.
20742         (run_mode): Set type.
20743         (main): Remove informal message about syslog.
20744         (options): Fix typo.
20745
20746         [BZ #14053]
20747         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
20748         to asm.
20749         (lrint): Likewise.
20750         (llrintf): Likewise.
20751         (llrint): Likewise.
20752         (rint): Likewise.
20753         (rintf): Likewise.
20754         (nearbyint): Likewise.
20755         (nearbyintf): Likewise.
20756
20757 2012-05-09  Andreas Jaeger  <aj@suse.de>
20758             Pedro Alves  <palves@redhat.com>
20759
20760         * nscd/nscd.c (run_mode): Use enum.
20761         (main): Cleanup coding style issue.
20762
20763 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
20764             Andreas Jaeger  <aj@suse.de>
20765
20766         * nscd/nscd.c (go_background): Replaced with...
20767         (run_mode): ... this.
20768         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
20769         (options): Add -F --foreground.
20770         (main): Implement it.
20771         (parse_opt): Parse it.
20772
20773 2012-05-09  Andreas Jaeger  <aj@suse.de>
20774
20775         [BZ #14083]
20776         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
20777         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
20778         -Wconversion warning.
20779         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
20780         Likewise.
20781
20782 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
20783
20784         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
20785         == 0.
20786         (LC_ALL): Use macro-int-constant.
20787         (LC_COLLATE): Likewise.
20788         (LC_CTYPE): Likewise.
20789         (LC_MESSAGES): Likewise.
20790         (LC_MONETARY): Likewise.
20791         (LC_NUMERIC): Likewise.
20792         (LC_TIME): Likewise.
20793         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
20794         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
20795         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20796         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
20797         Specify type.
20798         [C99-based standards] (float_t): Expect type.
20799         [C99-based standards] (double_t): Expect type.
20800         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
20801         type.
20802         [C99-based standards] (HUGE_VALL): Likewise.
20803         [C99-based standards] (INFINITY): Likewise.
20804         [C99-based standards] (NAN): Likewise.
20805         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
20806         [C99-based standards] (FP_NAN): Likewise.
20807         [C99-based standards] (FP_NORMAL): Likewise.
20808         [C99-based standards] (FP_SUBNORMAL): Likewise.
20809         [C99-based standards] (FP_ZERO): Likewise.
20810         [C99-based standards] (FP_FAST_FMA): Use
20811         optional-macro-int-constant.  Specify type.  Require == 1.
20812         [C99-based standards] (FP_FAST_FMAF): Likewise.
20813         [C99-based standards] (FP_FAST_FMAL): Likewise.
20814         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
20815         [C99-based standards] (FP_ILOGBNAN): Likewise.
20816         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
20817         Specify type.
20818         [C99-based standards] (MATH_ERREXCEPT): Likewise.
20819         [C99-based standards] (math_errhandling): Specify type.
20820         [ISO99 || ISO11] (signgam): Do not allow.
20821         [non-C99-based standards] (copysignf): Do not allow.
20822         [non-C99-based standards] (exp2f): Likewise.
20823         [non-C99-based standards] (log2f): Likewise.
20824         [non-C99-based standards] (modff): Allow.
20825         [non-C99-based standards] (erff): Do not allow.
20826         [non-C99-based standards] (erfcf): Likewise.
20827         [non-C99-based standards] (gammaf): Likewise.
20828         [non-C99-based standards] (hypotf): Likewise.
20829         [non-C99-based standards] (j0f): Likewise.
20830         [non-C99-based standards] (j1f): Likewise.
20831         [non-C99-based standards] (jnf): Likewise.
20832         [non-C99-based standards] (lgammaf): Likewise.
20833         [non-C99-based standards] (tgammaf): Likewise.
20834         [non-C99-based standards] (y0f): Likewise.
20835         [non-C99-based standards] (y1f): Likewise.
20836         [non-C99-based standards] (ynf): Likewise.
20837         [non-C99-based standards] (isnanf): Likewise.
20838         [non-C99-based standards] (acoshf): Likewise.
20839         [non-C99-based standards] (asinhf): Likewise.
20840         [non-C99-based standards] (atanhf): Likewise.
20841         [non-C99-based standards] (cbrtf): Likewise.
20842         [non-C99-based standards] (expm1f): Likewise.
20843         [non-C99-based standards] (ilogbf): Likewise.
20844         [non-C99-based standards] (log1pf): Likewise.
20845         [non-C99-based standards] (logbf): Likewise.
20846         [non-C99-based standards] (nextafterf): Likewise.
20847         [non-C99-based standards] (remainderf): Likewise.
20848         [non-C99-based standards] (rintf): Likewise.
20849         [non-C99-based standards] (scalbf): Likewise.
20850         [non-C99-based standards] (copysignl): Likewise.
20851         [non-C99-based standards] (exp2l): Likewise.
20852         [non-C99-based standards] (log2l): Likewise.
20853         [non-C99-based standards] (modfl): Allow.
20854         [non-C99-based standards] (erfl): Do not allow.
20855         [non-C99-based standards] (erfcl): Likewise.
20856         [non-C99-based standards] (gammal): Likewise.
20857         [non-C99-based standards] (hypotl): Likewise.
20858         [non-C99-based standards] (j0l): Likewise.
20859         [non-C99-based standards] (j1l): Likewise.
20860         [non-C99-based standards] (jnl): Likewise.
20861         [non-C99-based standards] (lgammal): Likewise.
20862         [non-C99-based standards] (tgammal): Likewise.
20863         [non-C99-based standards] (y0l): Likewise.
20864         [non-C99-based standards] (y1l): Likewise.
20865         [non-C99-based standards] (ynl): Likewise.
20866         [non-C99-based standards] (isnanl): Likewise.
20867         [non-C99-based standards] (acoshl): Likewise.
20868         [non-C99-based standards] (asinhl): Likewise.
20869         [non-C99-based standards] (atanhl): Likewise.
20870         [non-C99-based standards] (cbrtl): Likewise.
20871         [non-C99-based standards] (expm1l): Likewise.
20872         [non-C99-based standards] (ilogbl): Likewise.
20873         [non-C99-based standards] (log1pl): Likewise.
20874         [non-C99-based standards] (logbl): Likewise.
20875         [non-C99-based standards] (nextafterl): Likewise.
20876         [non-C99-based standards] (remainderl): Likewise.
20877         [non-C99-based standards] (rintl): Likewise.
20878         [non-C99-based standards] (scalbl): Likewise.
20879         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20880         [non-C99-based standards] (FP_*): Do not allow.
20881         [C99-based standards] (FP_*): Change to
20882         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
20883         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
20884         allow.
20885         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
20886         (SIG_ERR): Likewise.
20887         [X/Open-based standards] (SIG_HOLD): Likewise.
20888         (SIG_IGN): Likewise.
20889         (SIGABRT): Use macro-int-constant.  Specify type.  Require
20890         positive value.
20891         (SIGFPE): Likewise.
20892         (SIGILL): Likewise.
20893         (SIGINT): Likewise.
20894         (SIGSEGV): Likewise.
20895         (SIGTER): Likewise.
20896         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
20897         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
20898         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
20899         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
20900         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
20901         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
20902         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
20903         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
20904         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
20905         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
20906         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
20907         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
20908         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
20909         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
20910         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
20911         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
20912         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
20913         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
20914         [X/Open-based standards] (SIGTRAP): Likewise.
20915         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
20916         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
20917         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
20918         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
20919         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
20920         allow.
20921
20922 2012-05-08  Ian Wienand  <ianw@vmware.com>
20923
20924         [BZ #14080]
20925         * time/tzset.c (__tzset_parse_tz): Update default rules for
20926         daylight time changes in the Energy Policy Act of 2005.
20927
20928 2012-05-09  Andreas Jaeger  <aj@suse.de>
20929
20930         [BZ #13983]
20931         * elf/ldconfig.c (parse_conf): Change string to make clear that
20932         ldconfig only issued a warning if ld.so.conf does not exist.
20933
20934 2012-05-08  David S. Miller  <davem@davemloft.net>
20935
20936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
20937         movxtod instead of popping the value on the stack.
20938
20939         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20940
20941 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
20942
20943         * config.h.in: Add HAVE_ARM_PCS_VFP.
20944
20945 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
20946
20947         [BZ #13979]
20948         * include/features.h: Warn if user requests __FORTIFY_SOURCE
20949         checking but the checks are disabled for any reason.
20950
20951 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
20952
20953         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
20954         and ELF64_R_TYPE with ELFW(R_TYPE).
20955
20956 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
20957
20958         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
20959         (ulimit): Likewise.
20960
20961         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
20962         (settimeofday): Likewise.
20963
20964 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
20965
20966         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
20967         a struct th_u2 inside the union, and move tu_block/tu_code into
20968         a new th_u3 union of tu_block/tu_code inside of that.  Move
20969         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
20970         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
20971         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
20972         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
20973         (th_stuff): Change to th_u1.tu_stuff.
20974         (th_data): Define.
20975         (th_msg): Change to th_u1.th_u2.tu_data.
20976
20977 2012-05-07  David S. Miller  <davem@davemloft.net>
20978
20979         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20980
20981         [BZ #14074]
20982         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
20983         (SETUP_PIC_REG): Use it.
20984         (SETUP_PIC_REG_LEAF): Use it.
20985
20986 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
20987
20988         [BZ #13885]
20989         [BZ #13923]
20990         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
20991         USE_AS_EXPM1L.
20992         (EXPL_FINITE): Likewise.
20993         (FLDLOG): Likewise.
20994         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
20995         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
20996         e_expl.S.
20997         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
20998         USE_AS_EXPM1L.
20999         (EXPL_FINITE): Likewise.
21000         (FLDLOG): Likewise.
21001         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
21002         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
21003         e_expl.S.
21004         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
21005         test of -max_value argument for long double.
21006         * sysdeps/i386/fpu/libm-test-ulps: Update.
21007         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21008
21009 2012-05-06  David S. Miller  <davem@davemloft.net>
21010
21011         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
21012         quad soft-float symbols whose references which are compiler
21013         generated.
21014         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
21015
21016 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
21017
21018         [BZ #13884]
21019         [BZ #13914]
21020         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21021         USE_AS_EXP10L.
21022         (EXPL_FINITE): Likewise.
21023         (FLDLOG): Likewise.
21024         (c0): Likewise.
21025         (c1): Likewise.
21026         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
21027         Adjust comments for base varying.
21028         (__expl_finite): Change alias to EXPL_FINITE.
21029         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
21030         e_expl.S.
21031         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
21032         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
21033         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
21034         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
21035         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21036         USE_AS_EXP10L.
21037         (EXPL_FINITE): Likewise.
21038         (FLDLOG): Likewise.
21039         (c0): Likewise.
21040         (c1): Likewise.
21041         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
21042         Adjust comments for base varying.
21043         (__expl_finite): Change alias to EXPL_FINITE.
21044         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
21045         tests for bugs.
21046         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21047
21048         [BZ #14064]
21049         * math/libm-test.inc (check_float_internal): Correct ulp
21050         calculation for subnormal expected results.
21051
21052 2012-05-06  Andreas Jaeger  <aj@suse.de>
21053
21054         * Makeconfig (+math-flags): New, set to -frounding-math.
21055         (+cflags): Add +math-flags so that all of glibc gets compiled with
21056         it.
21057
21058         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
21059
21060 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
21061
21062         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
21063         Disable one test.
21064
21065         [BZ #13787]
21066         [BZ #13922]
21067         [BZ #14036]
21068         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
21069         (__ieee754_expl): Allow for and saturate large arguments.
21070         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
21071         (u_threshold): Likewise.
21072         (__exp): Call __ieee754_exp before checking for overflow and
21073         underflow.
21074         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
21075         (u_threshold): Likewise.
21076         (__expf): Call __ieee754_expf before checking for overflow and
21077         underflow.
21078         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
21079         (u_threshold): Likewise.
21080         (__expl): Call __ieee754_expl before checking for overflow and
21081         underflow.
21082         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
21083         (__ieee754_expl): Allow for and saturate large arguments.
21084         * math/libm-test.inc (exp_test): Add another test.  Do not allow
21085         missing overflow exception on overflow.
21086         (expm1_test): Do not allow missing overflow exception on overflow.
21087
21088         * sysdeps/i386/fpu/e_expl.c: Move to ...
21089         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
21090         rather than using inline asm.
21091         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
21092         * sysdeps/x86_64/fpu/e_expl.S: Copy from
21093         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
21094
21095         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
21096         (nice): Likewise.
21097         (poll): Likewise.
21098         (signal): Likewise.
21099         (time): Likewise.
21100         (times): Likewise.
21101
21102 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21103
21104         * sysdeps/unix/syscalls.list (adjtime): Add entry from
21105         sysdeps/unix/common/syscalls.list.
21106         (fchmod): Likewise.
21107         (fchown): Likewise.
21108         (ftruncate): Likewise.
21109         (getrusage): Likewise.
21110         (gettimeofday): Likewise.
21111         (setpgid): Likewise.
21112         (setregid): Likewise.
21113         (setreuid): Likewise.
21114         (sigaction): Likewise.
21115         (truncate): Likewise.
21116         (vhangup): Likewise.
21117         * sysdeps/unix/common/syscalls.list: Remove file.
21118         * sysdeps/unix/bsd/Implies: Don't include unix/common.
21119         * sysdeps/unix/sysv/linux/Implies: Likewise.
21120
21121 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21122
21123         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
21124         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
21125         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
21126         Moved to ...
21127         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
21128         Here.
21129         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
21130         to ...
21131         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
21132         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
21133         to ...
21134         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
21135         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
21136         to ...
21137         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
21138         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
21139         to ...
21140         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
21141         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
21142         to ...
21143         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
21144         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
21145         to ...
21146         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
21147         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
21148         to ...
21149         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
21150         Here.
21151         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
21152         to ...
21153         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
21154         Here.
21155         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
21156         to ...
21157         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
21158         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
21159         Moved to ...
21160         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
21161         Here.
21162         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
21163         to ...
21164         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
21165
21166 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21167
21168         * sysdeps/unix/common/bits/dirent.h: Remove file.
21169         * sysdeps/unix/common/bits/fcntl.h: Likewise.
21170
21171         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
21172         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
21173         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
21174         * sysdeps/unix/bsd/isatty.c: Likewise.
21175         * sysdeps/unix/bsd/tcdrain.c: Likewise.
21176         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
21177         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
21178
21179 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21180
21181         [BZ #13563]
21182         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
21183         long double comparison inaccuracies.
21184         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
21185         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21186
21187 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
21188
21189         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
21190         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
21191
21192 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21193
21194         [BZ #14049]
21195         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
21196         nonzero digits before rounding a hex value.
21197         * stdlib/tst-strtod.c (tests): Add another test.
21198
21199 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21200
21201         * sysdeps/s390/fpu/libm-test-ulps: Update.
21202
21203 2012-05-03  Andreas Jaeger  <aj@suse.de>
21204
21205         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
21206         does not get optimized out.
21207         (malloc_opt_barrier): New.
21208
21209 2012-05-03  Andreas Jaeger  <aj@suse.de>
21210             Roland McGrath  <roland@hack.frob.com>
21211
21212         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
21213         intermediate file deletion.
21214         (generated): Add .symlist files.
21215
21216 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
21217
21218         [BZ #13775]
21219         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
21220         Redirect under this condition.
21221         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
21222         [__USE_GNU] (__dprintf_chk): Not under this condition.
21223         [__USE_GNU] (__vdprintf_chk): Likewise.
21224         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
21225         under this condition.
21226         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
21227         [__USE_XOPEN2K8] (dprintf): Define under this condition.
21228         [__USE_XOPEN2K8] (vdprintf): Likewise.
21229         [__USE_GNU] (__dprintf_chk): Not under this condition.
21230         [__USE_GNU] (__vdprintf_chk): Likewise.
21231         [__USE_GNU] (dprintf): Likewise.
21232         [__USE_GNU] (vdprintf): Likewise.
21233
21234 2012-05-03  Roland McGrath  <roland@hack.frob.com>
21235
21236         * elf/Makefile (common-generated): Set this instead of generated for
21237         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
21238         $(all-built-dso)-derived lists.
21239
21240 2012-05-03  Andreas Jaeger  <aj@suse.de>
21241
21242         * sysdeps/i386/fpu/libm-test-ulps: Update.
21243
21244         * FAQ: Removed.
21245         * FAQ.in: Likewise.
21246         * scripts/gen-FAQ.pl: Likewise.
21247         * manual/install.texi (Installation): Point to online location of
21248         FAQ.
21249         * Makefile (files-for-dist): Remove FAQ.
21250         (FAQ): Remove.
21251
21252 2012-05-02  Allan McRae  <allan@archlinux.org>
21253
21254         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
21255         (LDFLAGS-reldepmod5.so): Likewise.
21256         (LDFLAGS-reldep6mod1.so): Likewise.
21257         (LDFLAGS-reldep6mod4.so): Likewise.
21258         (LDFLAGS-reldep8mod3.so): Likewise.
21259         (LDFLAGS-unload4mod1.so): Likewise.
21260         (LDFLAGS-unload4mod2.so): Likewise.
21261         (LDFLAGS-tst-initorder): Likewise.
21262         (LDFLAGS-tst-initordera2.so): Likewise.
21263         (LDFLAGS-tst-initordera3.so): Likewise.
21264         (LDFLAGS-tst-initordera4.so): Likewise.
21265         (LDFLAGS-tst-initorderb2.so): Likewise.
21266         (LDFLAGS-noload): Likewise.
21267         (LDFLAGS-next): Likewise.
21268         (LDFLAGS-order2mod1.so): Likewise.
21269         (LDFLAGS-order2mod2.so): Likewise.
21270         (LDFLAGS-tst-initorder2): Likewise.
21271         (LDFLAGS-tst-initorder2a.so): Likewise.
21272         (LDFLAGS-tst-initorder2b.so): Likewise.
21273         (LDFLAGS-tst-initorder2c.so): Likewise.
21274         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
21275
21276 2012-05-02  David S. Miller  <davem@davemloft.net>
21277
21278         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21279
21280 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
21281
21282         [BZ #14055]
21283         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
21284
21285 2012-05-02  Andreas Jaeger  <aj@suse.de>
21286
21287         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
21288         since we manipulate rounding mode.
21289         (CPPFLAGS-test-idouble.c): Likewise.
21290         (CPPFLAGS-test-ifloat.c): Likewise.
21291         (CFLAGS-test-ldouble.c): Likewise.
21292         (CFLAGS-test-double.c): Likewise.
21293         (CFLAGS-test-float.c): Likewise.
21294         (CFLAGS-test-misc.c): Likewise.
21295         (CFLAGS-test-test-fenv.c): Likewise.
21296
21297 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21298
21299         [BZ #2550]
21300         [BZ #2570]
21301         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
21302         comparisons to determine direction to adjust input.
21303
21304 2012-05-01  Roland McGrath  <roland@hack.frob.com>
21305
21306         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
21307         output to the target.
21308
21309         * scripts/localplt.awk: New file.
21310         * elf/Makefile ($(objpfx)check-localplt): Target removed.
21311         (check-localplt-CFLAGS): Variable removed.
21312         ($(all-built-dso:=.jmprel)): New static pattern rule.
21313         (generated): Add those targets.
21314         (localplt-built-dso): New variable.
21315         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
21316
21317         * elf/check-localplt.c: File removed.
21318
21319         * scripts/check-execstack.awk: New file.
21320         * elf/Makefile ($(objpfx)check-execstack): Target removed.
21321         (check-execstack-CFLAGS): Variable removed.
21322         ($(objpfx)check-execstack.h): Target removed.
21323         ($(objpfx)execstack-default): New target.
21324         (generated): Add that instead of check-execstack.h.
21325         ($(all-built-dso:=.phdr)): New static pattern rule.
21326         (generated): Add those targets.
21327         * elf/check-execstack.c: File removed.
21328
21329         * scripts/check-textrel.awk: New file.
21330         * elf/Makefile ($(objpfx)check-textrel): Target removed.
21331         (check-textrel-CFLAGS): Variable removed.
21332         (all-built-dso): Use := to define.o
21333         ($(all-built-dso:=.dyn)): New static pattern rule.
21334         (generated): Add those targets.
21335         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
21336         * config.make.in (READELF): New substituted variable.
21337         * elf/check-textrel.c: File removed.
21338
21339 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
21340
21341         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21342         allow.
21343         * conform/data/ctype.h-data [C99-based standards] (isblank):
21344         Expect function.
21345         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
21346         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
21347         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21348         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
21349         Specify type.  Require positive value.
21350         (EILSEQ): Likewise.
21351         (ERANGE): Likewise.
21352         [ISO || POSIX] (EILSEQ): Do not expect.
21353         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
21354         Specify type.  Require positive value.
21355         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
21356         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
21357         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
21358         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
21359         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
21360         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
21361         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
21362         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
21363         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
21364         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
21365         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
21366         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
21367         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
21368         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
21369         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
21370         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
21371         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
21372         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
21373         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
21374         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
21375         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
21376         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
21377         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
21378         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
21379         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
21380         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
21381         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
21382         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
21383         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
21384         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
21385         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
21386         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
21387         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
21388         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
21389         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
21390         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
21391         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
21392         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
21393         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
21394         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
21395         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
21396         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
21397         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
21398         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
21399         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
21400         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
21401         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
21402         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
21403         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
21404         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
21405         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
21406         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
21407         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
21408         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
21409         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
21410         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
21411         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
21412         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
21413         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
21414         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
21415         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
21416         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
21417         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
21418         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
21419         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
21420         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
21421         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
21422         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
21423         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
21424         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
21425         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
21426         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
21427         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
21428         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
21429         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
21430         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
21431         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
21432         Require >= 2.
21433         (FLT_ROUNDS): Expect as macro, not constant.
21434         (FLT_MANT_DIG): Use macro-int-constant.
21435         (DBL_MANT_DIG): Likewise.
21436         (LDBL_MANT_DIG): Likewise.
21437         (FLT_DIG): Likewise.
21438         (DBL_DIG): Likewise.
21439         (LDBL_DIG): Likewise.
21440         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
21441         (DBL_MIN_EXP): Likewise.
21442         (LDBL_MIN_EXP): Likewise.
21443         (FLT_MAX_EXP): Use macro-int-constant.
21444         (DBL_MAX_EXP): Likewise.
21445         (LDBL_MAX_EXP): Likewise.
21446         (FLT_MAX_10_EXP): Likewise.
21447         (DBL_MAX_10_EXP): Likewise.
21448         (LDBL_MAX_10_EXP): Likewise.
21449         (FLT_MAX): Use macro-constant.
21450         (DBL_MAX): Likewise.
21451         (LDBL_MAX): Likewise.
21452         (FLT_EPSILON): Use macro-constant.  Give upper bound.
21453         (DBL_EPSILON): Likewise.
21454         (LDBL_EPSILON): Likewise.
21455         (FLT_MIN): Likewise.
21456         (DBL_MIN): Likewise.
21457         (LDBL_MIN): Likewise.
21458         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
21459         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
21460         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
21461         [ISO11] (FLT_HAS_SUBNORM): Likewise.
21462         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
21463         [ISO11] (DBL_DECIMAL_DIG): Likewise.
21464         [ISO11] (FLT_DECIMAL_DIG): Likewise.
21465         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
21466         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
21467         [ISO11] (FLT_TRUE_MIN): Likewise.
21468         [ISO11] (LDBL_TRUE_MIN): Likewise.
21469         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21470         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
21471         (SCHAR_MIN): Use macro-int-constant.  Specify type.
21472         (SCHAR_MAX): Likewise.
21473         (UCHAR_MAX): Likewise.
21474         (CHAR_MIN): Likewise.
21475         (CHAR_MAX): Likewise.
21476         (MB_LEN_MAX): Use macro-int-constant.
21477         (SHRT_MIN): Use macro-int-constant.  Specify type.
21478         (SHRT_MAX): Likewise.
21479         (USHRT_MAX): Likewise.
21480         (INT_MAX): Likewise.
21481         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
21482         bound negative.
21483         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21484         bound with "U".
21485         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21486         bound with "L".
21487         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
21488         bound negative.  Suffix upper bound with "L".
21489         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21490         bound with "UL".
21491         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
21492         Specify type.
21493         [C99-based standards] (LLONG_MAX): Likewise.
21494         [C99-based standards] (ULLONG_MAX): Likewise.
21495         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
21496         == 0.
21497         [ISO11] (max_align_t): Require type.
21498         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21499
21500         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
21501         from $CFLAGS, without defining away __attribute__ calls.
21502         (checknamespace): Use $CFLAGS_namespace.
21503
21504         * conform/conformtest.pl (@keywords): Only include C99 keywords
21505         for standards based on C99 or C11.
21506
21507         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
21508         Disable tests.
21509         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
21510         UNIX98]: Likewise.
21511
21512         * conform/conformtest.pl: Handle "macro-int-constant" and test for
21513         usability of symbols in #if.
21514
21515         * conform/conformtest.pl: If macro or constant types start
21516         "promoted:", expect the symbol to be of the following type
21517         promoted by the integer promotions.
21518
21519         * conform/conformtest.pl: Parse all "constant" and "macro" lines
21520         in one place.  Also handle "macro-constant".
21521
21522         * conform/conformtest.pl: Only accept expected macro values with
21523         "==".  Parse all "macro" lines in one place.
21524         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
21525
21526         * conform/conformtest.pl: Handle braced types on "constant" lines
21527         instead of handling "typed-constant".
21528         * conform/data/signal.h-data: Use "constant" instead of
21529         "typed-constant".
21530
21531         * conform/conformtest.pl: Handle "optional-" at start of lines in
21532         one place rather than duplicating several cases.  Handle each
21533         format of "macro" line with initial "optional-".
21534
21535         * conform/conformtest.pl: Only accept expected constant or
21536         optional-constant values with "==".  Parse all "constant" lines in
21537         one place.  Parse all "optional-constant" lines in one place.
21538         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
21539         * conform/data/fmtmsg.h-data: Likewise.
21540         * conform/data/netinet/in.h-data: Likewise.
21541         * conform/data/tar.h-data: Likewise.
21542         * conform/data/limits.h-data: Use "==" form on "constant" and
21543         "optional-constant" lines.
21544
21545         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
21546         Use -std=c99 for XOPEN2K.
21547         (@knownproblems): Remove.
21548         (newtoken): Don't check %isknown.
21549
21550         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
21551         Do not expect macro.
21552         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
21553         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
21554         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
21555         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
21556         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
21557         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
21558         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
21559         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
21560         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
21561         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
21562         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
21563         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
21564         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
21565         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
21566         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
21567         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
21568         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
21569         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
21570         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
21571         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
21572         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
21573         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
21574         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
21575         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
21576         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
21577         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
21578         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
21579         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
21580         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
21581         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
21582         [XPG3] (acosh): Likewise.
21583         [XPG3] (asinh): Likewise.
21584         [XPG3] (atanh): Likewise.
21585         [XPG3] (cbrt): Likewise.
21586         [XPG3] (expm1): Likewise.
21587         [XPG3] (ilogb): Likewise.
21588         [XPG3] (log1p): Likewise.
21589         [XPG3] (logb): Likewise.
21590         [XPG3] (nextafter): Likewise.
21591         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
21592         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
21593         [XPG3] (remainder): Likewise.
21594         [XPG3] (rint): Likewise.
21595         [XPG3 || XPG4 || UNIX98] (round): Likewise.
21596         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
21597         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
21598         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
21599         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
21600         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
21601         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
21602         [UNIX98 || XOPEN2K] (scalb): Expect.
21603         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
21604         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
21605         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
21606         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
21607         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
21608         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
21609         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
21610         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
21611         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
21612         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
21613         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
21614         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
21615         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
21616         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
21617         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
21618         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
21619         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
21620         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
21621         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
21622         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
21623         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
21624         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
21625         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
21626         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
21627         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
21628         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
21629         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
21630         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
21631         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
21632         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
21633         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
21634         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
21635         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
21636         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
21637         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
21638         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
21639         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
21640         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
21641         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
21642         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
21643         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
21644         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
21645         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
21646         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
21647         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
21648         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
21649         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
21650         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
21651         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
21652         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
21653         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
21654         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
21655         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
21656         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
21657         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
21658         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
21659         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
21660         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
21661         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
21662         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
21663         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
21664         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
21665         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
21666         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
21667         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
21668         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
21669         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
21670         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
21671         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
21672         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
21673         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
21674         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
21675         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
21676         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
21677         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
21678         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
21679         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
21680         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
21681         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
21682         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
21683         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
21684         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
21685         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
21686         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
21687         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
21688         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
21689         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
21690         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
21691         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
21692         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
21693         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
21694         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
21695         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
21696         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
21697         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
21698         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
21699         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
21700         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
21701         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
21702         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
21703         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
21704         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
21705         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
21706         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
21707         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
21708         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
21709         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
21710         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
21711         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
21712         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
21713         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
21714         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
21715         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
21716         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
21717         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
21718         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
21719         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
21720         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
21721         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
21722         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
21723         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
21724         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
21725         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
21726         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
21727         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
21728         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
21729         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
21730         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
21731         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
21732         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
21733         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
21734         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
21735         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
21736         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
21737         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
21738         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
21739         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
21740
21741         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
21742         _XOPEN_SOURCE_EXTENDED for XPG4.
21743
21744         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
21745
21746         * Makeconfig (localtime): Remove variable.
21747         (inst_localtime-file): Likewise.
21748
21749 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
21750
21751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
21752         Update.
21753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21754         Update.
21755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
21756         Update.
21757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
21758         Update.
21759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
21760         Update.
21761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
21762         Update.
21763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21764         Update.
21765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
21766         Update.
21767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
21768         Update.
21769
21770 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
21771
21772         [BZ #2550]
21773         [BZ #2570]
21774         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
21775         comparisons to determine direction to adjust input.
21776         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
21777         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
21778         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
21779         Likewise.
21780         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
21781         Likewise.
21782         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
21783         Likewise.
21784         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
21785         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
21786         Likewise.
21787         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
21788         Likewise.
21789         * math/libm-test.inc (nexttoward_test): Add more tests.
21790
21791 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
21792
21793         [BZ #14040]
21794         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
21795         in version GLIBC_2.1, not GLIBC_2.0.
21796         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
21797         Likewise.
21798
21799 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
21800
21801         [BZ #13942]
21802         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
21803         (1 - x) * (1 + x).
21804         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
21805         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
21806         * math/libm-test.inc (acos_test): Add more tests.
21807         (asin_test): Likewise.
21808         * sysdeps/i386/fpu/libm-test-ulps: Update.
21809         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21810
21811         [BZ #14034]
21812         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
21813         of square root.
21814         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
21815         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
21816         * math/libm-test.inc (acos_test_tonearest): New function.
21817         (acos_test_towardzero): Likewise.
21818         (acos_test_downward): Likewise.
21819         (acos_test_upward): Likewise.
21820         (asin_test_tonearest): Likewise.
21821         (asin_test_towardzero): Likewise.
21822         (asin_test_downward): Likewise.
21823         (asin_test_upward): Likewise.
21824         (main): Call the new functions.
21825         * sysdeps/i386/fpu/libm-test-ulps: Update.
21826         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21827
21828         [BZ #13884]
21829         [BZ #13924]
21830         * math/e_exp10.c: Include <float.h>.
21831         (__ieee754_exp10): Handle underflow here rather than multiplying
21832         large negative argument by M_LN10.
21833         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
21834         of __ieee754_expf.
21835         * math/e_exp10l.c: Include <float.h>.
21836         (__ieee754_exp10l): Handle underflow here rather than multiplying
21837         large negative argument by M_LN10l.
21838         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
21839         spurious overflow exception on underflow.
21840
21841 2012-04-29  Marek Polacek  <polacek@redhat.com>
21842
21843         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
21844         (__fortify_function): New macro.
21845         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
21846         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
21847         __extern_always_inline.
21848         * libio/bits/stdio2.h: Likewise.
21849         * libio/bits/stdio.h: Likewise.
21850         * string/string.h: Likewise.
21851         * string/bits/string3.h: Likewise.
21852         * include/stdio.h: Likewise.
21853         * stdlib/bits/stdlib.h: Likewise.
21854         * stdlib/stdlib.h: Likewise.
21855         * rt/bits/mqueue2.h: Likewise.
21856         * rt/mqueue.h: Likewise.
21857         * posix/bits/unistd.h: Likewise.
21858         * posix/unistd.h: Likewise.
21859         * io/bits/poll2.h: Likewise.
21860         * io/bits/fcntl2.h: Likewise.
21861         * io/fcntl.h: Likewise.
21862         * io/sys/poll.h: Likewise.
21863         * misc/bits/syslog.h: Likewise.
21864         * misc/bits/syslog-ldbl.h: Likewise.
21865         * misc/sys/syslog.h: Likewise.
21866         * socket/bits/socket2.h: Likewise.
21867         * socket/sys/socket.h: Likewise.
21868         * debug/tst-chk1.c: Likewise.
21869         * wcsmbs/bits/wchar2.h: Likewise.
21870         * wcsmbs/bits/wchar-ldbl.h: Likewise.
21871         * wcsmbs/wchar.h: Likewise.
21872
21873 2012-04-29  Andreas Jaeger  <aj@suse.de>
21874
21875         * Makerules (tests): Remove enable-check-abi protection.
21876         (check-abi-warn): Remove.
21877         (check-abi-%): Remove check-abi-warn usage.
21878
21879         * configure.in: Remove check-abi configure option.
21880         * configure: Regenerated.
21881         * config.make.in (enable-check-abi): Remove.
21882
21883 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
21884
21885         [BZ #14033]
21886         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
21887         double functions to double *_finite functions.
21888
21889         [BZ #13941]
21890         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
21891         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
21892         LDBL_MIN_EXP.
21893         * stdio-common/Makefile (tests): Add tst-sprintf3.
21894         * stdio-common/tst-sprintf3.c: New file.
21895
21896         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
21897         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
21898
21899 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
21900
21901         * conform/conformtest.pl: Remove duplicate typed-constant
21902         handling.
21903
21904 2012-04-28  David S. Miller  <davem@davemloft.net>
21905
21906         * Makerules (%.abilist): Add vpath on sysdep_dirs.
21907         (check-abi-%): Remove AWK script prerequisite and explicit
21908         abilist directory.
21909         (check-abi): Rewrite to just diff the symlist with the abilist.
21910         (config-tls, config-abi-config): Delete, no longer used.
21911         (update-abi-%): Remove AWK script and explicit abilist directory.
21912         (update-abi): Rewrite to simply compare and conditionally copy the
21913         symlist and the sysdep abilist file.  Remove update-abi-config
21914         checks.
21915         * abilist/ld.abilist: Remove.
21916         * abilist/libBrokenLocale.abilist: Remove.
21917         * abilist/libanl.abilist: Remove.
21918         * abilist/libcrypt.abilist: Remove.
21919         * abilist/libdl.abilist: Remove.
21920         * abilist/librt.abilist: Remove.
21921         * abilist/libthread_db.abilist: Remove.
21922         * abilist/libutil.abilist: Remove.
21923         * scripts/extract-abilist.awk: Remove.
21924         * scripts/merge-abilist.awk: Remove.
21925         * sysdeps/generic/libcidn.abilist: New file.
21926         * sysdeps/generic/libnss_compat.abilist: New file.
21927         * sysdeps/generic/libnss_db.abilist: New file.
21928         * sysdeps/generic/libnss_dns.abilist: New file.
21929         * sysdeps/generic/libnss_files.abilist: New file.
21930         * sysdeps/generic/libnss_hesiod.abilist: New file.
21931         * sysdeps/generic/libnss_nis.abilist: New file.
21932         * sysdeps/generic/libnss_nisplus.abilist: New file.
21933         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
21934         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
21935         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
21936         file.
21937         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
21938         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
21939         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
21940         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
21941         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
21942         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
21943         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
21944         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
21945         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
21946         file.
21947         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
21948         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
21949         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
21950         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
21951         file.
21952         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
21953         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
21954         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
21955         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
21956         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
21957         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
21958         file.
21959         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
21960         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
21961         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
21962         file.
21963         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
21964         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
21965         New file.
21966         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
21967         New file.
21968         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
21969         New file.
21970         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
21971         New file.
21972         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
21973         New file.
21974         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
21975         New file.
21976         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
21977         New file.
21978         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
21979         New file.
21980         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
21981         New file.
21982         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
21983         New file.
21984         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
21985         New file.
21986         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
21987         New file.
21988         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
21989         New file.
21990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
21991         file.
21992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
21993         New file.
21994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
21995         New file.
21996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
21997         file.
21998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
21999         New file.
22000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
22001         New file.
22002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
22003         file.
22004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
22005         New file.
22006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
22007         New file.
22008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
22009         New file.
22010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
22011         New file.
22012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
22013         New file.
22014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
22015         New file.
22016         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
22017         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
22018         file.
22019         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
22020         New file.
22021         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
22022         file.
22023         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
22024         file.
22025         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
22026         file.
22027         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
22028         file.
22029         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
22030         file.
22031         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22032         New file.
22033         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
22034         file.
22035         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
22036         file.
22037         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
22038         New file.
22039         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
22040         file.
22041         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
22042         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
22043         file.
22044         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
22045         New file.
22046         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
22047         file.
22048         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
22049         file.
22050         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
22051         file.
22052         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
22053         file.
22054         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
22055         file.
22056         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22057         New file.
22058         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
22059         file.
22060         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
22061         file.
22062         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
22063         New file.
22064         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
22065         file.
22066         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22067         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
22068         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
22069         file.
22070         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
22071         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
22072         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
22073         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
22074         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
22075         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
22076         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
22077         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
22078         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
22079         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
22080         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
22081         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
22082         file.
22083         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
22084         New file.
22085         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
22086         file.
22087         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
22088         file.
22089         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
22090         file.
22091         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
22092         file.
22093         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
22094         file.
22095         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
22096         New file.
22097         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
22098         New file.
22099         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
22100         file.
22101         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
22102         New file.
22103         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
22104         file.
22105         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
22106         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
22107         file.
22108         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
22109         New file.
22110         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
22111         file.
22112         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
22113         file.
22114         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
22115         file.
22116         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
22117         file.
22118         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
22119         file.
22120         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
22121         New file.
22122         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
22123         New file.
22124         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
22125         file.
22126         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
22127         New file.
22128         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
22129         file.
22130
22131 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
22132
22133         * conform/conformtest.pl: Fix typo in handling typed-constant from
22134         allow-header.
22135
22136 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
22137
22138         * README: Cut down references to pre-2.6 Linux kernels and
22139         Linuxthreads.  Update lists of configurations in libc and ports
22140         and sort alphabetically.  Say "or newer" with Linux kernel version
22141         requirements.
22142
22143         * config.h.in [IS_IN_build]: Allow compiling without optimization.
22144
22145 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22146
22147         [BZ #887]
22148         * math/libm-test.inc (logb_test_downward): New test to expose
22149         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
22150         rounding mode.
22151
22152 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
22153
22154         [BZ #14027]
22155         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
22156         to be done.
22157         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
22158         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
22159
22160 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
22161
22162         * sysdeps/unix/i386/brk.S: Remove file.
22163         * sysdeps/unix/i386/dl-brk.S: Likewise.
22164         * sysdeps/unix/i386/pipe.S: Likewise.
22165         * sysdeps/unix/i386/sigreturn.S: Likewise.
22166         * sysdeps/unix/i386/syscall.S: Likewise.
22167         * sysdeps/unix/i386/vfork.S: Likewise.
22168         * sysdeps/unix/i386/wait.S: Likewise.
22169
22170         * sysdeps/unix/common/tcsendbrk.c: Move to ...
22171         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
22172
22173         * configure.in (arm*-none*): Do not allow without
22174         --enable-hacker-mode.
22175         (netbsd*): Remove case setting base_os.
22176         (386bsd*): Likewise.
22177         (freebsd*): Likewise.
22178         (bsdi*): Likewise.
22179         (osf*): Likewise.
22180         (sunos*): Likewise.
22181         (ultrix*): Likewise.
22182         (newsos*): Likewise.
22183         (dynix*): Likewise.
22184         (*bsd*): Likewise.
22185         (sysv*): Likewise.
22186         (isc*): Likewise.
22187         (esix*): Likewise.
22188         (sco*): Likewise.
22189         (minix*): Likewise.
22190         (irix4*): Likewise.
22191         (irix6*): Likewise.
22192         (solaris[2-9]*): Likewise.
22193         (none): Likewise.
22194         * configure: Regenerated.
22195
22196 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22197
22198         [BZ #11521]
22199         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
22200         overflow or cancellation in calculating denominator.
22201         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
22202         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
22203         down expression to avoid unexpected rounding in newer GCCs.
22204         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
22205
22206 2012-04-26  David S. Miller  <davem@davemloft.net>
22207
22208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
22209         long-double compat symbols.
22210         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22211         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
22212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
22213         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
22214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
22215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
22216         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
22217         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
22218         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
22219         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
22220         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
22221         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
22222         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
22223
22224 2012-04-25  David S. Miller  <davem@davemloft.net>
22225
22226         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
22227         HWCAP_* values only after the memory barriers have been defined.
22228         (atomic_full_barrier): Define.
22229         (atomic_read_barrier): Define.
22230         (atomic_write_barrier): Define.
22231
22232 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22233
22234         * shlib-versions: Add libgcc_s version information.
22235         * sysdeps/generic/libgcc_s.h: Remove.
22236         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
22237         libgcc_s.h.
22238         * sysdeps/gnu/unwind-resume.c: Likewise.
22239         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
22240
22241 2012-04-25  David S. Miller  <davem@davemloft.net>
22242
22243         * sysdeps/unix/sparc/brk.S: Delete.
22244         * sysdeps/unix/sparc/dl-brk.S: Delete.
22245         * sysdeps/unix/sparc/pipe.S: Delete.
22246         * sysdeps/unix/sparc/sysdep.S: Delete.
22247         * sysdeps/unix/sparc/sysdep.h: Delete.
22248         * sysdeps/unix/sparc/vfork.S: Delete.
22249         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
22250         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
22251         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
22252         ret_ERRVAL, r0, r1, MOVE): Define.
22253         (JUMPTARGET): Remove.
22254         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
22255         sysdeps/unix/sparc/sysdep.h
22256         (ENTRY, END): Remove.
22257         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
22258
22259 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
22260
22261         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
22262         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
22263         -DIS_IN_build.
22264
22265         * timezone/README: Update upstream location and email address for
22266         tzcode and tzdata.
22267         * timezone/zdump.c: Update from tzcode 2012b.
22268         * timezone/zic.c: Likewise.
22269
22270         * configure.in (libc_cv_as_needed): Remove test.
22271         * configure: Regenerated.
22272         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
22273         conditional definition.
22274         [$(have-as-needed) != yes] (no-as-needed): Likewise.
22275         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
22276         * config.make.in (have-as-needed): Remove variable.
22277
22278 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
22279             Paul Pluzhnikov  <ppluzhnikov@google.com>
22280
22281         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
22282         strings correctly.
22283
22284 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
22285
22286         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
22287         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
22288         * sysdeps/sh/strlen.S: Likewise.
22289
22290 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22291
22292         * sysdeps/unix/fork.S: Remove file.
22293         * sysdeps/unix/i386/fork.S: Likewise.
22294         * sysdeps/unix/sparc/fork.S: Likewise.
22295
22296         * sysdeps/unix/system.c: Remove file.
22297         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
22298
22299         * sysdeps/unix/getegid.S: Remove file.
22300         * sysdeps/unix/geteuid.S: Likewise.
22301
22302 2012-04-24  Roland McGrath  <roland@hack.frob.com>
22303
22304         * scripts/check-localplt.awk: New file.
22305         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
22306         of diff.
22307         * scripts/data/localplt-generic.data: Add a comment.
22308
22309         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
22310         NODE when __dir_mkfile failed.
22311         * sysdeps/mach/hurd/symlinkat.c: Likewise.
22312         Reported by Ludovic Courtès <ludo@gnu.org>.
22313
22314 2012-04-24  Andreas Jaeger  <aj@suse.de>
22315
22316         * Makerules (common-clean): Also remove gen-as-const-headers
22317         files.
22318
22319 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22320
22321         * Makerules (native-compile): Do not change working directory for
22322         build.  Use $(OUTPUT_OPTION) in command.
22323         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
22324
22325 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22326
22327         [BZ #13886]
22328         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
22329         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
22330         * math/libm-test.inc (floor_test): Add more tests.
22331         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
22332
22333 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22334
22335         * sysdeps/unix/getdents.c: Remove file.
22336         * sysdeps/unix/sysv/getdents.c: Likewise.
22337         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
22338
22339         * sysdeps/unix/syscalls.list (madvise): Add syscall from
22340         sysdeps/unix/mman/syscalls.list.
22341         (mmap): Likewise.
22342         (mprotect): Likewise.
22343         (msync): Likewise.
22344         (munmap): Likewise.
22345         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
22346         * sysdeps/unix/mman/syscalls.list: Remove.
22347         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
22348
22349         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
22350         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
22351         * configure: Regenerated.
22352         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
22353         $(libgcc_s_suffix).
22354         * config.make.in (libgcc_s_suffix): Remove variable.
22355
22356 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
22357
22358         * sysdeps/unix/sysv/gethostname.c: Move to ...
22359         * sysdeps/posix/gethostname.c: ... here.
22360
22361         * sysdeps/unix/execve.S: Remove file.
22362
22363         * sysdeps/unix/_exit.S: Remove file.
22364
22365 2012-04-23  Andreas Jaeger  <aj@suse.de>
22366
22367         [BZ #13739]
22368         * manual/Makefile: Remove make dist support, there's no
22369         need for a stand-alone documentation tar ball.
22370         (TEXI2DVI): Define always, it's not in Makeconfig.
22371         (dist): Removed.
22372         (tar-it): Removed.
22373         (edition): Removed.
22374         (glibc-doc-$(edition).tar): Removed
22375         (%.Z): Removed.
22376         (%.gz): Removed.
22377         (%.uu): Removed.
22378         (ETAGS): Remove, it's in Makeconfig.
22379         (move-if-change): Remove, it's in Makeconfig.
22380
22381 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
22382
22383         [BZ #13970]
22384         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
22385         (strtod, strtof, strtold, strtol, strtoul, strtoq)
22386         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
22387         (strtod_l, strtof_l, strtold_l): Remove __wur.
22388         It is not necessarily an error to ignore strtol's return value.
22389         One can reliably look at the stored endptr to decide whether
22390         the number had valid syntax.
22391
22392 2012-04-21  Andreas Jaeger  <aj@suse.de>
22393
22394         [BZ #13739]
22395         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
22396
22397 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
22398
22399         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
22400         * sysdeps/unix/sysv/Versions: Remove file.
22401
22402 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
22403
22404         [BZ #13927]
22405         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22406
22407 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
22408
22409         [BZ #7064]
22410         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
22411         version from __vm86.
22412
22413 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
22414
22415         * sysdeps/unix/common/lxstat.c: Remove file.
22416         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
22417
22418         * sysdeps/unix/sysv/Makefile: Remove file.
22419
22420         * sysdeps/unix/sysv/direct.h: Remove file.
22421
22422         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
22423         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
22424         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
22425         * sysdeps/unix/sysv/bits/signum.h: Likewise.
22426         * sysdeps/unix/sysv/bits/stat.h: Likewise.
22427         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
22428         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
22429
22430         * sysdeps/unix/sysv/setrlimit.c: Remove file.
22431
22432         * sysdeps/unix/xmknod.c: Remove file.
22433         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
22434
22435         * sysdeps/unix/sysv/settimeofday.c: Remove file.
22436
22437         * sysdeps/unix/sysv/i386/time.S: Remove file.
22438
22439         * sysdeps/unix/fxstat.c: Remove file.
22440         * sysdeps/unix/xstat.c: Likewise.
22441         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
22442
22443         * sysdeps/unix/sysv/sigaction.c: Remove file.
22444
22445         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
22446         (sysdep_headers): Remove variable.
22447         [termio.h not in sysdep_headers] (generated): Likewise.
22448         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
22449         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
22450         * sysdeps/unix/sysv/tcdrain.c: Likewise.
22451         * sysdeps/unix/sysv/tcflow.c: Likewise.
22452         * sysdeps/unix/sysv/tcflush.c: Likewise.
22453         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
22454         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
22455         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
22456         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
22457         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
22458
22459         * sysdeps/unix/siglist.c: Remove file.
22460
22461         * sysdeps/unix/getppid.S: Remove file.
22462
22463         * sysdeps/unix/mkdir.c: Remove file.
22464         * sysdeps/unix/rmdir.c: Likewise.
22465
22466 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
22467
22468         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
22469         ERR_MAX value.
22470         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
22471         errlist-compat value.
22472
22473 2012-04-18  David S. Miller  <davem@davemloft.net>
22474
22475         * sysdeps/generic/memcopy.h (reg_char): Delete.
22476         * debug/strcat_chk.c: Use char, not reg_char.
22477         * debug/strcpy_chk.c: Likewise.
22478         * debug/strncat_chk.c: Likewise.
22479         * debug/strncpy_chk.c: Likewise.
22480         * string/memchr.c: Likewise.
22481         * string/memrchr.c: Likewise.
22482         * string/rawmemchr.c: Likewise.
22483         * string/strcat.c: Likewise.
22484         * string/strchr.c: Likewise.
22485         * string/strchrnul.c: Likewise.
22486         * string/strcmp.c: Likewise.
22487         * string/strcpy.c: Likewise.
22488         * string/strncat.c: Likewise.
22489         * string/strncmp.c: Likewise.
22490         * string/strncpy.c: Likewise.
22491
22492 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22493
22494         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
22495         __builtin_memcopy is called when src and dest ranges are known to not
22496         overlap.
22497
22498 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22499
22500         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
22501         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
22502         fwd_align_merge macro call.
22503         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
22504         bwd_align_merge macro call.
22505         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
22506
22507 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22508
22509         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
22510         bwd_align_merge macros.
22511         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
22512         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
22513         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
22514
22515 2012-04-18  David S. Miller  <davem@davemloft.net>
22516
22517         * sysdeps/sparc/sparc64/memcopy.h: Delete.
22518
22519 2012-04-18  Andreas Jaeger  <aj@suse.de>
22520
22521         [BZ# 6794]
22522         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
22523         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
22524         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
22525
22526         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
22527         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
22528         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
22529
22530         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
22531         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
22532         Adjust for changed ldbl-128 files.
22533
22534         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
22535         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
22536         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
22537
22538 2012-04-17  David S. Miller  <davem@davemloft.net>
22539
22540         * sysdeps/sparc/sparc32/memcopy.h: Delete.
22541
22542 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
22543
22544         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
22545         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
22546         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
22547         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
22548         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
22549         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
22550
22551 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22552
22553         [BZ #6794]
22554         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
22555         * math/libm-test.inc: Add ilogb errno and exception tests.
22556         * math/w_ilogb.c: New file: ilogb wrapper.
22557         * math/w_ilogbf.c: New file: ilogbf wrapper.
22558         * math/w_ilogbl.c: New file: ilogbl wrapper.
22559         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
22560         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
22561         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
22562         exception being thrown with 0.0 as argument.
22563         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
22564         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
22565         exception being thrown with 0.0 as argument.
22566         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
22567         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
22568         exception being thrown with 0.0 as argument.
22569         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
22570         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
22571         exception being thrown with 0.0 as argument.
22572         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
22573         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
22574         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
22575         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
22576         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
22577         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
22578         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
22579         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
22580         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
22581
22582 2012-04-17  Petr Baudis  <pasky@ucw.cz>
22583
22584         * include/sys/uio.h: Change __vector to __iovec to avoid clash
22585         with altivec.
22586
22587 2012-04-16  Marek Polacek  <polacek@redhat.com>
22588
22589         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
22590
22591 2012-04-16  Marek Polacek  <polacek@redhat.com>
22592
22593         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
22594         operands of fdivp instruction.
22595
22596 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
22597
22598         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
22599         * elf/tst-auditmod3b.c: Likewise.
22600         * elf/tst-auditmod4b.c: Likewise.
22601         * elf/tst-auditmod5b.c: Likewise.
22602         * elf/tst-auditmod6b.c: Likewise.
22603         * elf/tst-auditmod6c.c: Likewise.
22604         * elf/tst-auditmod7b.c: Likewise.
22605         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
22606         * sysdeps/x86_64/preconfigure.in: Likewise.
22607         * sysdeps/x86_64/preconfigure: Regenerated.
22608
22609 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
22610
22611         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
22612         __ILP32__.
22613
22614 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
22615
22616         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
22617         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
22618
22619 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
22620
22621         [BZ #13973]
22622         * locale/iso-639.def: Fix gl language name. Spotted by
22623         Yaron Shahrabani.
22624
22625 2012-04-12  Roland McGrath  <roland@hack.frob.com>
22626
22627         [BZ #2074]
22628         * libio/libio.h (__io_write_fn): Update comment.
22629
22630 2012-04-12  Petr Baudis  <pasky@ucw.cz>
22631
22632         [BZ #2074]
22633         * stdio.texi (Hook Functions): The user provided writer function
22634         is not allowed to return -1.
22635
22636 2012-04-11  David S. Miller  <davem@davemloft.net>
22637
22638         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22639
22640 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
22641
22642         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
22643         Add a leading slash to rtkaio.
22644
22645 2012-04-11  Jim Meyering  <meyering@redhat.com>
22646
22647         [BZ #11959]
22648         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
22649         It is not necessarily an error to ignore fwrite's return
22650         value.  One can reliably use ferror to test for errors after
22651         the fact.
22652
22653 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22654
22655         * bits/types.h (__snseconds_t): New type.
22656         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
22657
22658         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
22659         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
22660         (__SNSECONDS_T_TYPE): Likewise.
22661         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
22662         (__SNSECONDS_T_TYPE): Likewise.
22663         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
22664         (__SNSECONDS_T_TYPE): Likewise.
22665
22666 2012-04-10  Andreas Jaeger  <aj@suse.de>
22667
22668         [BZ #2636]
22669         * manual/time.texi (Processor Time): Return type of times is
22670         elapsed real time since an arbitrary point in the past.
22671         (CPU Time): Move CLK_TCK from here...
22672         (Processor Time): ...to here.  Correct description.
22673         * manual/conf.texi (Constants for Sysconf): Correct description of
22674         _SC_CLK_TCK.
22675
22676 2012-04-10  David S. Miller  <davem@davemloft.net>
22677
22678         [BZ #13967]
22679         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
22680         where the is a gap between DT_REL(A) and DT_JMPREL.
22681
22682 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22683
22684         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
22685         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
22686         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
22687
22688 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
22689
22690         * elf/dl-support.c (_dl_inhibit_cache): New variable.
22691         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
22692         (dl_main): Handle --inhibit-cache.
22693         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
22694         _dl_inhibit_cache.
22695         * elf/dl-load.c (_dl_map_object): Use it.
22696         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
22697
22698 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
22699
22700         [BZ #13872]
22701         * sysdeps/i386/fpu/e_powl.S (p78): New object.
22702         (__ieee754_powl): Saturate large exponents rather than testing for
22703         overflow of y*log2(x).
22704         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
22705         * math/libm-test.inc (pow_test): Do not permit spurious overflow
22706         exceptions.
22707
22708         [BZ #11521]
22709         * math/s_ctan.c: Include <float.h>.
22710         (__ctan): Avoid internal overflow or cancellation in calculating
22711         denominator.
22712         * math/s_ctanf.c: Likewise.
22713         * math/s_ctanl.c: Likewise.
22714         * math/s_ctanh.c: Likewise.
22715         * math/s_ctanhf.c: Likewise.
22716         * math/s_ctanhl.c: Likewise.
22717         * math/libm-test.inc (ctan_test): Add more tests.
22718         (ctanh_test): Likewise.
22719         * sysdeps/i386/fpu/libm-test-ulps: Update.
22720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22721
22722 2012-04-09  Andreas Jaeger  <aj@suse.de>
22723
22724         [BZ #6894]
22725         * manual/filesys.texi (Directory Entries): Mention that d_namlen
22726         is an optional BSD extension.
22727
22728         [BZ #10254]
22729         * manual/stdio.texi (Opening Streams): Document additional fopen
22730         parameters.
22731
22732 2012-04-09  Roland McGrath  <roland@hack.frob.com>
22733
22734         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
22735         %eax without telling the compiler.
22736
22737 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
22738
22739         [BZ # 13963]
22740         * manual/install.texi: Use sourceware.org.
22741
22742 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
22743
22744         [BZ #13873]
22745         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
22746         (__ieee754_pow): Generate overflow and underflow using huge*huge
22747         and tiny*tiny rather than just returning constant infinity or zero
22748         for large exponents.
22749         * math/libm-test.inc (pow_test): Require overflow exceptions for
22750         applicable cases of large exponents.
22751
22752         [BZ #706]
22753         * sysdeps/i386/fpu/e_pow.S (p10): New object.
22754         (__ieee754_pow): Use iterative multiplication algorithm only for
22755         integer exponents with absolute value below 1024.  Check for odd
22756         integer exponents when using algorithm for real exponents.
22757         * math/libm-test.inc (pow_test): Add more tests.
22758         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22759
22760 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
22761
22762         [BZ #13705]
22763         * math/libm-test.inc (exp_test): Do not allow overflow exception
22764         on underflow test.
22765
22766 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
22767
22768         [BZ #13705]
22769         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
22770         instead of __kernel_standard_f.
22771
22772 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
22773
22774         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
22775         * sysdeps/x86_64/memset_chk.S: Likewise.
22776
22777 2012-04-08  Andreas Jaeger  <aj@suse.de>
22778
22779         [BZ #10153]
22780         * manual/startup.texi (Environment Access): Describe return value
22781         for putenv and setenv.
22782
22783         [BZ #6895]
22784         * manual/filesys.texi (Directory Entries): Add description for
22785         DT_LNK.
22786
22787         [BZ #6890]
22788         * manual/filesys.texi (Directory Entries): Clarify that it's file
22789         system not operating system in the description of DT_UNKNOWN.
22790
22791         [BZ #6578]
22792         * manual/syslog.texi (closelog): Fix reference, it's openlog.
22793
22794 2012-04-08  Stephen Compall  <s11@member.fsf.org>
22795
22796         [BZ #6649]
22797         * manual/llio.texi (Opening and Closing Files): Add cross
22798         reference to explain mode argument.
22799
22800 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
22801
22802         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
22803         * sysdeps/x86_64/memset_chk.S: Likewise.
22804
22805 2012-04-07  David S. Miller  <davem@davemloft.net>
22806
22807         * elf/elf.h (R_SPARC_WDISP10): Define.
22808         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
22809         R_SPARC_SIZE32.
22810         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
22811         R_SPARC_SIZE64 and R_SPARC_H34.
22812
22813 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
22814
22815         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
22816         conditions and remove no longer applicable assertion.
22817
22818 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
22819
22820         * bits/byteswap.h: Include <features.h>.
22821         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
22822         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
22823
22824 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
22825
22826         * bits/byteswap.h (__bswap_16): Removed.
22827         Include <bits/byteswap-16.h> to get __bswap_16.
22828         * sysdeps/i386/bits/byteswap.h: Likewise.
22829         * sysdeps/s390/bits/byteswap.h: Likewise.
22830         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22831         * bits/byteswap-16.h: New file.
22832         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22833         * sysdeps/s390/bits/byteswap-16.h: Likewise.
22834         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
22835         * string/Makefile (headers): Add bits/byteswap-16.h.
22836
22837 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
22838
22839         [BZ #13895]
22840         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
22841         extra indirection.
22842         * nss/Makefile (tests-static, tests): Add tst-nss-static.
22843         * nss/tst-nss-static.c: New.
22844
22845 2012-04-06  Robert Millan  <rmh@gnu.org>
22846
22847         [BZ #6486]
22848         * manual/llio.texi (File Position Primitive): lseek
22849         refers to WHENCE when it really means OFFSET.
22850
22851 2012-04-06  Andreas Jaeger  <aj@suse.de>
22852
22853         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
22854         strncmp declarations.
22855
22856         * abilist/libc.abilist: Add __poll and __ppoll.
22857
22858 2012-04-05  David S. Miller  <davem@davemloft.net>
22859
22860         * scripts/check-local-headers.sh: Accept a host triplet in the
22861         path matched by the exclude regexp.
22862
22863         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
22864         definition.
22865         * sysdeps/powerpc/powerpc32/dl-machine.h
22866         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
22867         * sysdeps/s390/s390-32/dl-machine.h
22868         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
22869         * sysdeps/sparc/sparc32/dl-machine.h
22870         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
22871         * sysdeps/sparc/sparc64/dl-machine.h
22872         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
22873
22874         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
22875         lazy binding.
22876         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
22877         undefined symbol errors.
22878
22879         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
22880         DT_NEEDED entries.
22881
22882 2012-04-05  Michael Matz  <matz@suse.de>
22883
22884         [BZ #13592]
22885         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
22886
22887 2012-04-05  Andreas Jaeger  <aj@suse.de>
22888
22889         [BZ #13908]
22890         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
22891         comment.
22892
22893 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22894
22895         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
22896         which ROUND is no valid rounding mode.
22897
22898 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22899
22900         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
22901         read again.
22902         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
22903
22904 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22905
22906         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
22907         an exception using FPU order intentionally.
22908
22909 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22910
22911         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
22912         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
22913         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
22914         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
22915
22916 2012-04-05  Simon Josefsson  <simon@josefsson.org>
22917
22918         [BZ #12340]
22919         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
22920         EINVAL when BUFLEN is too smal.
22921
22922 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
22923
22924         [BZ #13553]
22925         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
22926         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
22927
22928 2012-04-03  Andreas Jaeger  <aj@suse.de>
22929
22930         [BZ #13938]
22931         * manual/setjmp.texi (System V contexts): Fix sentence.
22932
22933         [BZ #13926]
22934         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
22935         New macro for this case.
22936         [!__GNUC__] (__bswap_64): New inline function for this case.
22937         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22938         * bits/byteswap.h: Likewise.
22939         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
22940         ull, guard with __GLIBC_HAVE_LONG_LONG.
22941
22942         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
22943         __GLIBC_HAVE_LONG_LONG.
22944
22945         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
22946         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
22947
22948 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22949
22950         [BZ #13691]
22951         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
22952         inptr and inend, rather than using last_ch.
22953
22954 2012-04-02  David S. Miller  <davem@davemloft.net>
22955
22956         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
22957         * stdio-common/printf-parse.h (read_int): Change return type to
22958         'int', return -1 on INT_MAX overflow.
22959         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
22960         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
22961         overflows INT_MAX.  Check for overflow of in-format-string precision
22962         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
22963         SIZE_MAX not INT_MAX for integer overflow test.
22964         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
22965         skip the construct in the format string but do not record anything.
22966         * stdio-common/bug22.c: Adjust to test both width/prevision
22967         INT_MAX overflow as well as total length INT_MAX overflow.  Check
22968         explicitly for proper errno values.
22969
22970 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
22971
22972         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
22973         CHAR_MAX.
22974         * string/test-strcmp.c [! WIDE]: Likewise.
22975         * time/tst-mktime2.c: Likewise for INT_MAX.
22976         * string/test-string.h: #include <sys/param.h> for MIN.
22977
22978         * csu/init-first.c (__libc_init_first): Call __ctype_init.
22979         * sysdeps/i386/init-first.c (init): Likewise.
22980         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
22981         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
22982         * sysdeps/sh/init-first.c (init): Likewise.
22983
22984 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
22985
22986         * po/ru.po: Update from translation team.
22987         * po/vi.po: Likewise.
22988
22989 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22990
22991         * resolv/nss_dns/dns-host.c: Merge copyright years.
22992
22993 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22994
22995         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
22996         Optimize memcpy with prefetch if
22997         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
22998         src, dst pointers have unequal 16 byte alignments.
22999
23000 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
23001
23002         [BZ #13928]
23003         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
23004         from a CNAME entry and return the minimum ttl for the query.
23005         (gaih_getanswer_slice): Likewise.
23006
23007 2012-03-30  Jeff Law  <law@redhat.com>
23008
23009         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
23010         due to long keys.
23011         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
23012         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
23013
23014         * resolv/nss_dns/dns-host.c: Update copyright year.
23015
23016 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
23017
23018         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
23019         requests to save a system call.  Fix check that all bytes are sent.
23020
23021         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
23022         comments for sendmmsg.
23023
23024 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23025
23026         [BZ #13691]
23027         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
23028         with only 1 character between 0x0041 and 0x01b0.
23029         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
23030         * wcsmbs/tst-mbsnrtowcs.c: New file.
23031
23032 2012-03-29  David S. Miller  <davem@davemloft.net>
23033
23034         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
23035         small copies by hand.
23036
23037 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23038
23039         [BZ #13761]
23040         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
23041         _nss_compat_initgroups_dyn): Fall back to malloc/free
23042         for large group memberships.
23043
23044 2012-03-28  David S. Miller  <davem@davemloft.net>
23045
23046         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
23047         that branches into memcpy.
23048         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
23049         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23050         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23051         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23052         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
23053         bits.
23054         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
23055         implementation too.
23056         * sysdeps/sparc/mempcpy.S: New file.
23057
23058         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
23059         the IFUNC routine in the libc case.
23060         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23061
23062         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
23063         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
23064         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
23065         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
23066         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
23067         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
23068         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
23069         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
23070
23071         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
23072         loop to 256 bytes instead of 64 bytes and fix test signedness.
23073
23074         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
23075         * sysdeps/sparc/sparc32/Makefile: rather than here...
23076         * sysdeps/sparc/sparc64/Makefile: and here.
23077
23078 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
23079
23080         * malloc/mallocbug.c: Avoid warnings about unused variables.
23081
23082 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
23083
23084         [BZ #13760]
23085         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
23086         in the right place. Discard and retry query if response is
23087         larger than input buffer size.
23088
23089 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
23090
23091         [BZ #369]
23092         [BZ #2678]
23093         [BZ #3866]
23094         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
23095         x for large integer exponent.
23096         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
23097         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
23098         sign of result as needed afterwards.
23099         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
23100         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
23101         result for underflowing pow the same as for overflow.
23102         (__kernel_standard_l): Handle powl overflow and underflow here
23103         rather than calling __kernel_standard.
23104         * math/libm-test.inc (pow_test): Add more tests.
23105
23106         [BZ #3868]
23107         [BZ #13879]
23108         [BZ #13910]
23109         [BZ #13911]
23110         [BZ #13912]
23111         [BZ #13913]
23112         [BZ #13915]
23113         [BZ #13916]
23114         [BZ #13917]
23115         [BZ #13918]
23116         [BZ #13919]
23117         [BZ #13920]
23118         [BZ #13921]
23119         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
23120         * sysdeps/ieee754/k_standard.c: Include <float.h>.
23121         (__kernel_standard_l): New function.
23122         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
23123         __kernel_standard.
23124         * math/w_acosl.c (__acosl): Likewise.
23125         * math/w_asinl.c (__asinl): Likewise.
23126         * math/w_atan2l.c (__atan2l): Likewise.
23127         * math/w_atanhl.c (__atanhl): Likewise.
23128         * math/w_coshl.c (__coshl): Likewise.
23129         * math/w_exp10l.c (__exp10l): Likewise.
23130         * math/w_exp2l.c (__exp2l): Likewise.
23131         * math/w_fmodl.c (__fmodl): Likewise.
23132         * math/w_hypotl.c (__hypotl): Likewise.
23133         * math/w_j0l.c (__j0l, __y0l): Likewise.
23134         * math/w_j1l.c (__j1l, __y1l): Likewise.
23135         * math/w_jnl.c (__jnl, __ynl): Likewise.
23136         * math/w_lgammal.c (__lgammal): Likewise.
23137         * math/w_log10l.c (__log10l): Likewise.
23138         * math/w_log2l.c (__log2l): Likewise.
23139         * math/w_logl.c (__logl): Likewise.
23140         * math/w_powl.c (__powl): Likewise.
23141         * math/w_remainderl.c (__remainderl): Likewise.
23142         * math/w_scalbl.c (sysv_scalbl): Likewise.
23143         * math/w_sinhl.c (__sinhl): Likewise.
23144         * math/w_sqrtl.c (__sqrtl): Likewise.
23145         * math/w_tgammal.c (__tgammal): Likewise.
23146         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
23147         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
23148         * math/libm-test.inc (acos_test): Add more tests.
23149         (acosh_test): Likewise.
23150         (asin_test): Likewise.
23151         (atanh_test): Likewise.
23152         (exp_test): Likewise.
23153         (exp10_test): Likewise.
23154         (exp2_test): Likewise.
23155         (expm1_test): Likewise.
23156         (lgamma_test): Likewise.
23157         (log_test): Likewise.
23158         (log10_test): Likewise.
23159         (log1p_test): Likewise.
23160         (log2_test): Likewise.
23161         (pow_test): Do not allow some spurious overflow exceptions.
23162         (sqrt_test): Add more tests.
23163         (tgamma_test): Likewise.
23164         (y0_test): Likewise.
23165         (y1_test): Likewise.
23166         (yn_test): Likewise.
23167
23168 2012-03-27  Anton Blanchard  <anton@samba.org>
23169
23170         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
23171         MAP_HUGETLB.
23172         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
23173         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
23174         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
23175
23176 2012-03-27  David S. Miller  <davem@davemloft.net>
23177
23178         * conform/Makefile: Run run-conformtest.sh using $(BASH).
23179
23180         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
23181         have-as-vis3 check.
23182
23183 2012-03-27  Andreas Jaeger  <aj@suse.de>
23184
23185         * sysdeps/x86_64/elf/configure.in: Moved to ...
23186         * sysdeps/x86_64/configure.in: ... here.
23187         * sysdeps/x86_64/elf/start.S: Moved to ...
23188         * sysdeps/x86_64/start.S: ... here.
23189         * sysdeps/x86_64/elf/configure: Delete.
23190
23191         * sysdeps/x86_64/configure.in: Merge contents from
23192         sysdeps/i386/configure.in (without i686 check).
23193
23194         * sysdeps/i386/elf/Versions: Merge into ...
23195         * sysdeps/i386/Versions: ... this.
23196         * sysdeps/i386/elf/Versions: Delete file.
23197         * sysdeps/i386/elf/start.S: Moved to ...
23198         * sysdeps/i386/start.S: ...here.
23199         * sysdeps/i386/elf/configure.in: Merge into...
23200         * sysdeps/i386/configure.in: ...here.
23201         * sysdeps/i386/elf/configure.in: Delete file.
23202         * sysdeps/i386/elf/configure: Delete file.
23203
23204         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
23205         * debug/backtracesyms.c: ... here.
23206         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
23207         * debug/backtracesymsfd.c: ... here.
23208         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
23209         * sysdeps/generic/ifunc-sel.h: ... here.
23210
23211         * sysdeps/unix/i386/start.c: Delete file.
23212         * sysdeps/unix/sparc/start.c: Delete file.
23213         * sysdeps/unix/start.c: Delete file.
23214
23215         * sysdeps/sh/elf/configure.in: Moved to ...
23216         * sysdeps/sh/configure.in: ... here.
23217         * sysdeps/sh/elf/start.S: Moved to ...
23218         * sysdeps/sh/start.S: ... here.
23219         * sysdeps/sh/elf/configure: Delete file.
23220
23221         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
23222         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
23223         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
23224         * sysdeps/powerpc/powerpc64/entry.h: ... here.
23225         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
23226         * sysdeps/powerpc/powerpc64/start.S: here.
23227         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
23228         * sysdeps/powerpc/powerpc64/Makefile: ... this.
23229         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
23230         * sysdeps/powerpc/powerpc64/configure.in: ... this.
23231         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
23232
23233         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
23234         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
23235         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
23236         * sysdeps/powerpc/powerpc32/start.S: ... here.
23237         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
23238         * sysdeps/powerpc/powerpc32/configure.in: ... this.
23239         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
23240
23241         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
23242         * sysdeps/powerpc/ifunc-sel.h: ... here.
23243         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
23244         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
23245
23246         * sysdeps/sparc/elf/configure.in: Moved to ...
23247         * sysdeps/sparc/configure.in: ... here.
23248         * sysdeps/sparc/elf/configure: Delete file.
23249         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
23250         * sysdeps/sparc/sparc32/start.S: ... here.
23251         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
23252         * sysdeps/sparc/sparc64/start.S: ... here.
23253         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
23254         * sysdeps/sparc/sparc32/Makefile: ... this.
23255         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
23256         * sysdeps/sparc/sparc64/Makefile: ... this.
23257
23258         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
23259         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
23260         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
23261         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
23262         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
23263         * sysdeps/s390/s390-32/setjmp.S: ... here.
23264         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
23265         * sysdeps/s390/s390-32/configure.in: ... here.
23266         * sysdeps/s390/s390-32/elf/configure: Delete file.
23267         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
23268         * sysdeps/s390/s390-32/start.S: ... here.
23269
23270         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
23271         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
23272         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
23273         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
23274         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
23275         * sysdeps/s390/s390-64/setjmp.S: ... here.
23276         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
23277         * sysdeps/s390/s390-64/configure.in: ... here
23278         * sysdeps/s390/s390-64/elf/configure: Delete file.
23279         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
23280         * sysdeps/s390/s390-64/start.S: ... here.
23281         * sysdeps/s390/s390-64/elf/configure: Delete.
23282
23283         * configure.in: Remove support for elf directories in sysdeps.
23284
23285         * configure: Regenerated.
23286         * sysdeps/i386/configure: Regenerated.
23287         * sysdeps/powerpc/powerpc32/configure: Regenerated.
23288         * sysdeps/powerpc/powerpc64/configure: Regenerated.
23289         * sysdeps/s390/s390-32/configure: Regenerated.
23290         * sysdeps/s390/s390-64/configure: Regenerated.
23291         * sysdeps/sh/configure: Regenerated.
23292         * sysdeps/sparc/configure: Regenerated.
23293         * sysdeps/x86_64/configure: Regenerated.
23294
23295 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
23296
23297         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23298
23299         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
23300         denormal result into account.
23301
23302 2012-03-25  Roland McGrath  <roland@hack.frob.com>
23303
23304         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
23305         Reported by Allan McRae <allan@archlinux.org>.
23306
23307 2012-03-23  Jeff Law  <law@redhat.com>
23308
23309         * nss/getnssent.c (__nss_getent): Fix typo.
23310
23311 2012-03-23  David S. Miller  <davem@davemloft.net>
23312
23313         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23314
23315 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
23316
23317         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
23318         to pad to uint64_t for each field.
23319         (dl_tls_index): Replace unsigned long with uint64_t.
23320
23321 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
23322         Paul Pluzhnikov  <ppluzhnikov@google.com>
23323
23324         [BZ #6528]
23325         * grp/Makefile (otherlibs): Don't set it.
23326         * inet/Makefile (otherlibs): Likewise.
23327         * login/Makefile (otherlibs): Likewise.
23328         * nscd/Makefile (otherlibs): Likewise.
23329         * posix/Makefile (otherlibs): Likewise.
23330         * pwd/Makefile (otherlibs): Likewise.
23331         * rt/Makefile (otherlibs): Likewise.
23332         * sunrpc/Makefile (otherlibs): Likewise.
23333         * nss/Makefile (otherlibs): Likewise.
23334         Add libnss_files to routines and static-only-routines.
23335         ($(objpfx)getent): Remove rule.
23336         * resolv/Makefile: Add libnss_dns and libresolv to routines and
23337         static-only-routines.
23338
23339 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
23340
23341         [BZ #13892]
23342         * math/s_cexp.c: Include <float.h>.
23343         (__cexp): Handle exp result overflowing not necessarily
23344         overflowing both real and imaginary parts of result.
23345         * math/s_cexpf.c: Likewise.
23346         * math/s_cexpl.c: Likewise.
23347         * math/libm-test.inc (cexp_test): Add more tests.
23348         * sysdeps/i386/fpu/libm-test-ulps: Update.
23349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23350
23351 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23352
23353         * include/link.h (ELFW): New macro.
23354         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
23355         Replace ELF64_R_TYPE with ELFW(R_TYPE).
23356
23357 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23358
23359         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
23360         with uint64_t.
23361
23362 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23363
23364         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
23365         declaration.
23366         (struct La_x32_retval): Likewise.
23367
23368 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23369
23370         * sysdeps/x86_64/preconfigure.in: New file.
23371         * sysdeps/x86_64/preconfigure: New generated file.
23372
23373 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
23374
23375         [BZ #13824]
23376         * math/e_exp2l.c: Include <float.h>.
23377         (__ieee754_exp2l): Handle overflow and underflow cases
23378         separately.  Only pass fractional part of argument to
23379         __ieee754_expl.
23380         * math/libm-test.inc (exp2_test): Add more tests.
23381
23382         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
23383         negating x to take absolute value.
23384         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
23385         Likewise.
23386         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
23387         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
23388         Likewise.
23389         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
23390         computing low part if x was negated.
23391         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
23392
23393 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23394
23395         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
23396         la_x32_gnu_pltexit.
23397         (pltexit): Cast int_retval to ptrdiff_t.
23398         * elf/tst-auditmod3b.c: Likewise.
23399         * elf/tst-auditmod4b.c: Likewise.
23400         * elf/tst-auditmod5b.c: Likewise.
23401         * elf/tst-auditmod6b.c: Likewise.
23402         * elf/tst-auditmod6c.c: Likewise.
23403         * elf/tst-auditmod7b.c: Likewise.
23404
23405         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
23406         and x32_gnu_pltexit.
23407
23408         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
23409         __ELF_NATIVE_CLASS.
23410         (La_x32_regs): New macro.
23411         (La_x32_retval): Likewise.
23412         (la_x32_gnu_pltenter): New function prototype.
23413         (la_x32_gnu_pltexit): Likewise.
23414
23415 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
23416
23417         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
23418         exponent.
23419
23420         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23421
23422         * configure.in (libc_cv_cc_nofma): Check for option to disable
23423         generation of FMA instructions.
23424         * configure: Regenerate.
23425         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
23426         * sysdeps/ieee754/dbl-64/Makefile: New file.
23427         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23428         Remove brandred-fma4.
23429         (CFLAGS-brandred-fma4.c): Remove.
23430         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
23431         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
23432         define.
23433         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
23434         define.
23435
23436 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23437
23438         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
23439         LLONG_MAX != LONG_MAX.
23440         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23441         (_fitoa_word): Likewise.
23442         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
23443         LLONG_MAX != LONG_MAX.
23444         * stdio-common/_itowa.h: Include <_itoa.h>.
23445         (_itowa_word): Use _ITOA_WORD_TYPE on value.
23446         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
23447         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
23448         only if not defined.
23449         (_ITOA_WORD_TYPE): Likewise.
23450         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23451         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
23452
23453 2012-03-21  David S. Miller  <davem@davemloft.net>
23454
23455         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23456
23457 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23458
23459         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
23460         of x86_64 when setting libc_cv_slibdir, libdir and
23461         libc_cv_localedir.
23462         * sysdeps/unix/sysv/linux/configure: Regenerated.
23463
23464 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23465
23466         * manual/lang.texi (Old Varargs): Remove section.
23467         (How Variadic): Update menu.
23468         (va_start): Do not mention varargs.h.
23469
23470 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
23471             Joseph Myers  <joseph@codesourcery.com>
23472
23473         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
23474         link test.
23475         * configure: Regenerated.
23476
23477 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
23478
23479         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
23480         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
23481         conformtest.pl
23482
23483 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23484
23485         * NOTES: Remove.
23486         * Makefile (files-for-dist): Remove NOTES.
23487         (NOTES): Remove rule.
23488         * README: Don't refer to NOTES.
23489         * manual/creature.texi: Don't include macros.texi.
23490         * manual/intro.texi (creature.texi): Remove comment referring to
23491         NOTES.
23492
23493         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
23494         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
23495         * configure: Regenerated.
23496         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
23497         LIBC_TRY_CC_OPTION.
23498         (libc_cv_as_i686): Likewise.
23499         (libc_cv_cc_avx): Likewise.
23500         (libc_cv_cc_sse2avx): Likewise.
23501         (libc_cv_cc_fma4): Likewise.
23502         (libc_cv_cc_novzeroupper): Likewise.
23503         * sysdeps/i386/configure: Regenerated.
23504
23505         [BZ #13883]
23506         * sysdeps/i386/fpu/s_cexp.S: Remove.
23507         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
23508         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
23509         * math/libm-test.inc (cexp_test): Add more tests.
23510         * sysdeps/i386/fpu/libm-test-ulps: Update.
23511         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23512
23513 2012-03-21  Allan McRae  <allan@archlinux.org>
23514
23515         * timezone/Makefile: Do not install iso3166.tab and zone.tab
23516
23517 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23518
23519         [BZ #13871]
23520         * math/w_exp2.c: Do not include <float.h>.
23521         (o_threshold, u_threshold): Remove.
23522         (__exp2): Calculate result before checking finiteness and calling
23523         __kernel_standard.
23524         * math/w_exp2f.c: Likewise.
23525         * math/w_exp2l.c: Likewise.
23526         * math/libm-test.inc (exp2_test): Require overflow exception for
23527         1e6 input.
23528
23529         [BZ #3866]
23530         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
23531         range of signed 64-bit integers before using fistpll.  Remove
23532         checks for whether integers fit in mantissa bits.
23533         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
23534         the range of signed 32-bit integers before using fistpl.  Remove
23535         checks for whether integers fit in mantissa bits.
23536         * sysdeps/i386/fpu/e_powl.S (p64): New object.
23537         (__ieee754_powl): Test for y outside the range of signed 64-bit
23538         integers before using fistpll.  Reduce 64-bit values to 63-bit
23539         ones as needed.
23540         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
23541         divide-by-zero is raised for zero to large negative powers.
23542         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
23543         (__ieee754_powl): Test for y outside the range of signed 64-bit
23544         integers before using fistpll.  Reduce 64-bit values to 63-bit
23545         ones as needed.
23546         * math/libm-test.inc (pow_test): Add more tests.
23547
23548 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23549
23550         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
23551         <stdio-common/_itoa.h>.
23552         * debug/segfault.c: Likewise.
23553         * elf/dl-cache.c: Likewise.
23554         * elf/dl-minimal.c: Likewise.
23555         * elf/dl-misc.c: Likewise.
23556         * elf/dl-sysdep.c: Likewise.
23557         * elf/dl-version.c: Likewise.
23558         * elf/rtld.c: Likewise.
23559         * hurd/hurdsock.c: Likewise.
23560         * hurd/lookup-retry.c: Likewise.
23561         * malloc/malloc.c: Likewise.
23562         * malloc/mtrace.c: Likewise.
23563         * nscd/nscd_getgr_r.c: Likewise.
23564         * nscd/nscd_getpw_r.c: Likewise.
23565         * nscd/nscd_getserv_r.c: Likewise.
23566         * posix/getopt_init.c: Likewise.
23567         * posix/wordexp.c: Likewise.
23568         * stdio-common/_itoa.c: Likewise.
23569         * stdio-common/printf_fphex.c: Likewise.
23570         * stdio-common/vfprintf.c: Likewise.
23571         * string/_strerror.c: Likewise.
23572         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
23573         * sysdeps/i386/i686/hp-timing.h: Likewise.
23574         * sysdeps/mach/_strerror.c: Likewise.
23575         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
23576         * sysdeps/mach/hurd/sethostid.c: Likewise.
23577         * sysdeps/mach/hurd/xmknodat.c: Likewise.
23578         * sysdeps/mach/xpg-strerror.c: Likewise.
23579         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23580         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
23581         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
23582         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
23583         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
23584         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
23585         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
23586         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
23587         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
23588         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
23589         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
23590         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
23591         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
23592         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
23593         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
23594         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
23595         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
23596         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
23597         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
23598         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
23599         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
23600
23601         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
23602
23603         * stdio-common/_itoa.h: Moved to ...
23604         * sysdeps/generic/_itoa.h: Here.
23605
23606         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
23607
23608         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
23609         instead of "_itoa.h" and "_itowa.h".
23610         * stdio-common/vfprintf.: Likewise.
23611
23612 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23613
23614         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
23615         <bits/wordsize.h>.
23616         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
23617         (__signbit): Likwise.
23618         (llrintf): Likwise.
23619         (llrint): Likwise.
23620
23621 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23622
23623         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
23624         __WORDSIZE != 64.
23625
23626 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
23627
23628         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
23629         OVERFLOW_EXCEPTION_OK.
23630         * math/libm-test.inc ("Philosophy"): Update comment about
23631         exception testing.
23632         (OVERFLOW_EXCEPTION): Define.
23633         (OVERFLOW_EXCEPTION_OK): Likewise.
23634         (INVALID_EXCEPTION_OK): Renumber.
23635         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
23636         (IGNORE_ZERO_INF_SIGN): Likewise.
23637         (test_exceptions): Handle FE_OVERFLOW.
23638         (exp10_test): Expect overflow exceptions.
23639         (exp2_test): Likewise.
23640         (expm1_test): Likewise.
23641         (nextafter_test): Likewise.
23642         (pow_test): Likewise.
23643         (scalbn_test): Likewise.
23644         (scalbln_test): Likewise.
23645
23646 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23647
23648         * sysdeps/x86_64/bits/atomic.h
23649         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
23650         64bit integer.
23651         (atomic_exchange_acq): Likewise.
23652         (__arch_exchange_and_add_body): Likewise.
23653         (__arch_add_body): Likewise.
23654         (atomic_add_negative): Likewise.
23655         (atomic_add_zero): Likewise.
23656
23657 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23658
23659         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
23660         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
23661
23662 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23663
23664         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
23665         Check __x86_64__ instead of __WORDSIZE.
23666
23667 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23668
23669         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
23670
23671 2012-03-19  David S. Miller  <davem@davemloft.net>
23672
23673         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23674
23675         * sysdeps/sparc/fpu/fenv_private.h: New file.
23676         * sysdeps/sparc/fpu/math_private.h: Use it.
23677         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
23678         Remove.
23679         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
23680         (libc_feholdexcept_setroundl): Remove.
23681         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
23682         Remove.
23683         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
23684         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
23685
23686 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23687
23688         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
23689         int64_t instead of long int.
23690         (INSERT_WORDS64): Likwise.
23691
23692 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23693
23694         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
23695         _Unwind_GetCFA return to _Unwind_Ptr first.
23696
23697 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
23698
23699         [BZ #13629]
23700         * math/s_clog.c: Include <float.h>.
23701         (__clog): Scale large or subnormal inputs.
23702         * math/s_clogf.c: Likewise.
23703         * math/s_clogl.c: Likewise.
23704         * math/s_clog10.c: Include <float.h>.
23705         (M_LOG10_2): Define.
23706         (__clog10): Scale large or subnormal inputs.
23707         * math/s_clog10f.c: Likewise.
23708         * math/s_clog10l.c: Likewise.
23709         * math/libm-test.inc (clog_test): Add more tests.
23710         (clog10_test): Likewise.
23711         * sysdeps/i386/fpu/libm-test-ulps: Update.
23712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23713
23714         [BZ #11451]
23715         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
23716         x and y.
23717         * math/libm-test.inc (atan2_test): Add another test.
23718
23719         * Makerules (common-objdir-compile): Remove.
23720         * sysdeps/unix/Makefile (config-generated): Do not add
23721         $(unix-generated) to variable.
23722         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
23723         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
23724         Remove rule.
23725         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
23726         Likewise.
23727         [generic bits/local_lim.h] (before-compile): Do not append to
23728         variable.
23729         [generic bits/local_lim.h] (common-generated): Likewise.
23730         [generic sys/param.h] (before-compile): Do not append to variable.
23731         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
23732         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
23733         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
23734         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
23735         include.
23736         [generic sys/param.h] (sys/param.h-includes): Remove variable.
23737         [generic sys/param.h] (sys/param.h-includes): Remove rule.
23738         [generic sys/param.h] ($(addprefix
23739         $(common-objpfx),$(sys/param.h-includes))): Likewise.
23740         [generic sys/param.h] (common-generated): Do not append to
23741         variable.
23742         [generic sys/param.h] (sysdep_headers): Likewise.
23743         [generic bits/errno.h] (before-compile): Do not append to
23744         variable.
23745         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
23746         rule.
23747         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
23748         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
23749         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
23750         [generic bits/errno.h] (common-generated): Do not append to
23751         variable.
23752         [generic bits/ioctls.h] (before-compile): Do not append to
23753         variable.
23754         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
23755         rule.
23756         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
23757         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
23758         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
23759         rule.
23760         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
23761         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
23762         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
23763         [generic bits/ioctls.h] (common-generated): Do not append to
23764         variable.
23765         [generic sys/syscall.h] (syscall.h): Remove variable.
23766         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
23767         rule.
23768         [generic sys/syscall.h] (before-compile): Do not append to
23769         variable.
23770         [generic sys/syscall.h] (common-generated): Likewise.
23771         * sysdeps/unix/errnos-tmpl.c: Remove file.
23772         * sysdeps/unix/errnos.awk: Likewise.
23773         * sysdeps/unix/ioctls-tmpl.c: Likewise.
23774         * sysdeps/unix/ioctls.awk: Likewise.
23775         * sysdeps/unix/mk-local_lim.c: Likewise.
23776         * sysdeps/unix/snarf-ioctls: Likewise.
23777
23778 2012-03-19  Richard Henderson  <rth@twiddle.net>
23779
23780         * sysdeps/i386/fpu/fenv_private.h: New file.
23781         * sysdeps/i386/fpu/math_private.h: Use it.
23782         (math_opt_barrier, math_force_eval): Remove.
23783         (libc_feholdexcept_setround_53bit): Remove.
23784         (libc_feupdateenv_53bit): Remove.
23785         * sysdeps/x86_64/fpu/math_private.h: Likewise.
23786         (math_opt_barrier, math_force_eval): Remove.
23787         (libc_feholdexcept): Remove.
23788         (libc_feholdexcept_setround): Remove.
23789         (libc_fetestexcept, libc_fesetenv): Remove.
23790         (libc_feupdateenv_test): Remove.
23791         (libc_feupdateenv, libc_feholdsetround): Remove.
23792         (libc_feresetround): Remove.
23793
23794         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
23795         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
23796
23797         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
23798         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
23799         (libc_feupdateenv_testl): New.
23800         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
23801         (libc_feupdateenv_testf): New.
23802         (libc_feupdateenv): Use libc_feupdateenv_test.
23803         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
23804         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
23805
23806         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
23807         (libc_feholdsetroundf, libc_feholdsetroundl): New.
23808         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
23809         (libc_feresetround_noex): New.
23810         (libc_feresetround_noexf): New.
23811         (libc_feresetround_noexl): New.
23812         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
23813         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
23814         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
23815         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
23816         SET_RESTORE_ROUND.
23817         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
23818         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
23819         (__cos): Likewise.
23820         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
23821         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
23822         SET_RESTORE_ROUND_NOEX.
23823         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
23824         SET_RESTORE_ROUND_NOEXF.
23825         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
23826         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
23827         (libc_feholdsetroundf): New.
23828         (libc_feresetround, libc_feresetroundf): New.
23829
23830         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
23831         (libc_feholdexcept_setround_53bit): Convert from macro to function.
23832         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
23833
23834         * sysdeps/generic/math_private.h: Include <fenv.h>.
23835         (default_libc_feholdexcept): New.
23836         (default_libc_feholdexcept_setround): New.
23837         (default_libc_fesetenv, default_libc_feupdateenv): New.
23838         (libc_feholdexcept): Only define if undefined.
23839         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
23840         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
23841         (libc_feholdexcept_setroundl): Likewise.
23842         (libc_feholdexcept_setround_53bit): Likewise.
23843         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
23844         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
23845         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
23846         (libc_feupdateenv_53bit): Likewise.
23847         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
23848         (libc_feholdexcept): Convert from macro to inline function.
23849         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
23850         (libc_fesetenv, libc_feupdateenv): Likewise.
23851
23852         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
23853         not previously defined.
23854         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
23855         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
23856         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
23857         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
23858         * sysdeps/ieee754/flt-32/math_private.h: New file.
23859         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
23860         math_private.h below SET_FLOAT_WORD.
23861         (__isnan, __isinf_ns, __finite): Remove.
23862         (__isnanf, __isinf_nsf, __finitef): Remove.
23863
23864 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
23865
23866         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23867
23868 2012-03-17  David S. Miller  <davem@davemloft.net>
23869
23870         [BZ #6471]
23871         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
23872         for 2.16.
23873
23874 2012-03-16  David S. Miller  <davem@davemloft.net>
23875
23876         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
23877         warnings.
23878
23879         [BZ #6471]
23880         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
23881         properly.
23882         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
23883         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
23884         sysdep_routines when subdir is sysvipc.
23885         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
23886         __getshmlba helper.
23887
23888         * sysdeps/sparc/fpu/libm-test/ulps: Update.
23889
23890 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23891
23892         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
23893         [__LP64__].
23894
23895 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23896
23897         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
23898         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
23899         (__lround): Renamed to ...
23900         (__llround): This.  Replace long int with long long int.
23901         Define lround functions as aliases of llround functions.
23902         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
23903
23904 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23905
23906         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
23907         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
23908         adresses to uintptr_t.  Replace "long int" and "unsigned long
23909         int" with "greg_t" on va_arg.
23910
23911 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23912
23913         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
23914         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
23915
23916         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
23917         Move e_machine check before EI_CLASS check.  Handle x32
23918         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
23919         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
23920         SKIP_EM_IA_64 and include
23921         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
23922
23923         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
23924         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
23925         (add_system_dir): New macro.
23926
23927         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
23928         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
23929
23930 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
23931
23932         [BZ #2551]
23933         [BZ #2552]
23934         [BZ #2553]
23935         [BZ #2554]
23936         [BZ #2562]
23937         [BZ #2563]
23938         [BZ #2565]
23939         [BZ #2566]
23940         [BZ #2576]
23941         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
23942         (y0): Likewise.
23943         * math/w_j0f.c (j0f): Likewise.
23944         (y0f): Likewise.
23945         * math/w_j0l.c (__j0l): Likewise.
23946         (__y0l): Likewise.
23947         * math/w_j1.c (j1): Likewise.
23948         (y1): Likewise.
23949         * math/w_j1f.c (j1f): Likewise.
23950         (y1f): Likewise.
23951         * math/w_j1l.c (__j1l): Likewise.
23952         (__y1l): Likewise.
23953         * math/w_jn.c (jn): Likewise.
23954         (yn): Likewise.
23955         * math/w_jnf.c (jnf): Likewise.
23956         (ynf): Likewise.
23957         * math/w_jnl.c (__jnl): Likewise.
23958         (__ynl): Likewise.
23959         * math/libm-test.inc (j0_test): Add more tests.
23960         (j1_test): Likewise.
23961         (jn_test): Likewise.  Add trailing semicolon to existing test.
23962         (y0_test): Likewise.
23963         (y1_test): Likewise.
23964         * sysdeps/i386/fpu/libm-test-ulps: Update.
23965         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23966
23967         [BZ #13851]
23968         [BZ #13854]
23969         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
23970         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
23971         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
23972         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
23973         (__tanl): Set errno for infinite argument.
23974         * sysdeps/i386/fpu/mptan.c: Remove.
23975         * sysdeps/i386/fpu/s_tan.S: Likewise.
23976         * sysdeps/i386/fpu/s_tanl.S: Likewise.
23977         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
23978         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
23979         * math/libm-test.inc (tan_test): Add more tests and enable more
23980         tests for double and long double.
23981         * sysdeps/i386/fpu/libm-test-ulps: Update.
23982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23983
23984 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
23985
23986         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
23987         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
23988
23989 2012-03-16  Roland McGrath  <roland@hack.frob.com>
23990
23991         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
23992         * configure.in: Use it for both main tree and add-ons.
23993         * configure: Regenerated.
23994
23995 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23996
23997         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
23998
23999 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
24000
24001         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
24002         in comment.
24003
24004         [BZ #13851]
24005         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
24006         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
24007         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
24008         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
24009         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
24010         infinite argument.
24011         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
24012         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
24013         != 0 for prec == 2.
24014         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
24015         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
24016         * sysdeps/i386/fpu/s_cosl.S: Likewise.
24017         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
24018         * sysdeps/i386/fpu/s_sinl.S: Likewise.
24019         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
24020         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
24021         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
24022         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
24023         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
24024         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
24025         * math/libm-test.inc (cos_test): Add more tests and enable more
24026         tests for long double.
24027         (sin_test): Likewise.
24028         (sincos_test): Likewise.
24029         * sysdeps/i386/fpu/libm-test-ulps: Update.
24030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24031
24032 2012-03-16  David S. Miller  <davem@davemloft.net>
24033
24034         * sysdeps/sparc/fpu/math_private.h: New file.
24035
24036 2012-03-15  David S. Miller  <davem@davemloft.net>
24037
24038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
24039         file.
24040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
24041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
24042         file.
24043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
24044         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
24045         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
24046         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
24047         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
24048         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
24049         sysdep routines.
24050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
24051
24052         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
24053         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
24054
24055         * sysdeps/sparc/sparc-ifunc.h: New file.
24056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
24057         sparc-ifunc.h
24058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
24059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
24060         Likewise.
24061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
24062         Likewise.
24063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
24064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
24065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
24066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
24067         Likewise.
24068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
24069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
24070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
24071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
24072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
24073         Likewise.
24074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
24075         Likewise.
24076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
24077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
24078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
24079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
24080         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
24081         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
24082         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
24083         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
24084         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
24085         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
24086         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
24087         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
24088         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
24089         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
24090         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
24091         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
24092         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
24093         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
24094         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
24095         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
24096         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
24097         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
24098         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
24099         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
24100
24101 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
24102
24103         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
24104         scaling.
24105         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24106
24107 2012-03-15  Andreas Jaeger  <aj@suse.de>
24108
24109         [BZ #13852]
24110         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
24111         ieee754/flt-32 implementation for sin, cos and sincos.
24112         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
24113         * sysdeps/i386/fpu/s_cosf.S: Likewise.
24114         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
24115         * sysdeps/i386/fpu/s_sinf.S: Likewise.
24116         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
24117         ieee754/flt-32 implementation for tan.
24118
24119         * math/libm-test.inc (cos_test): Enable some large input tests for
24120         float as well
24121         (sin_test): Likewise.
24122         (sincos_test): Likewise.
24123         (tan_test): Add tests for large input.
24124
24125         * sysdeps/i386/fpu/libm-test-ulps: Update.
24126
24127 2012-03-15  Andreas Jaeger  <aj@suse.de>
24128
24129         [BZ #13658]
24130         * math/libm-test.inc (cos_test): Add more test cases.
24131         (sin_test): Likewise.
24132         (sincos_test): Likewise.
24133
24134 2012-03-15  Andreas Jaeger  <aj@suse.de>
24135
24136         [BZ #13837]
24137         * math/libm-test.inc (cos_test): Add a test case for large input
24138         value.
24139         (sin_test): Likewise.
24140         (sincos_test): Likewise.
24141
24142 2012-03-15  Andreas Jaeger  <aj@suse.de>,
24143         Joseph Myers  <joseph@codesourcery.com>
24144
24145         [BZ #13658]
24146         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
24147         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
24148         * sysdeps/i386/fpu/branred.c: Likewise.
24149         * sysdeps/i386/fpu/dosincos.c: Likewise.
24150         * sysdeps/i386/fpu/mpa.c: Likewise.
24151         * sysdeps/i386/fpu/s_cos.S: Likewise.
24152         * sysdeps/i386/fpu/s_sin.S: Likewise.
24153         * sysdeps/i386/fpu/s_sincos.S: Likewise.
24154         * sysdeps/i386/fpu/sincos32.c: Likewise.
24155
24156         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
24157         Define.
24158         (libc_feupdateenv_53bit): Define.
24159         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
24160         Define.
24161         (libc_feupdateenv_53bit): Define.
24162
24163         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
24164         53 bit (without extend i386 double precision).
24165
24166         * math/libm-test.inc (sincos_test): Add tests for large input.
24167         (sin): Likewise.
24168         (cos): Likewise.
24169
24170         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
24171
24172 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
24173
24174         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24175
24176 2012-03-15  David S. Miller  <davem@davemloft.net>
24177
24178         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
24179         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
24180         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
24181         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
24182         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
24183         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
24184         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
24185         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
24186         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
24187         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
24188         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
24189         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
24190         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
24191         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
24192         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
24193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
24194         file.
24195         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
24196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
24197         file.
24198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
24199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
24200         file.
24201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
24202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
24203         file.
24204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
24205         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
24206         fmin/fmax sysdep routines.
24207         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
24208
24209 2012-03-14  David S. Miller  <davem@davemloft.net>
24210
24211         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
24212         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
24213         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
24214         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
24215         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
24216         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
24217         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
24218         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
24219         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
24220         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
24221         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
24222         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
24223         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
24224         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
24225         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
24226         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
24227         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
24228         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
24229         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
24230         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
24231         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
24232         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
24233         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
24234         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
24235         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
24236         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
24237         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
24238         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
24239         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
24240         routines.
24241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
24242         file.
24243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
24244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
24245         file.
24246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
24247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
24248         file.
24249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
24250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
24251         file.
24252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
24253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
24254         file.
24255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
24256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
24257         file.
24258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
24259         file.
24260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
24261         file.
24262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
24263         file.
24264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
24265         New file.
24266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
24267         file.
24268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
24269         file.
24270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
24271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
24272         file.
24273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
24274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
24275         file.
24276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
24277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
24278         file.
24279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
24280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
24281         VIS3 routines.
24282
24283         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
24284         New file.
24285
24286         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24287
24288         * sysdeps/sparc/configure.in: New file.
24289         * sysdeps/sparc/configure: Generate.
24290         * configure.in (libc_cv_sparc_as_vis3): Substitute.
24291         * configure: Regenerate.
24292         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
24293         * config.make.in (have-as-vis3): New.
24294         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
24295         available use -Av9d instead of -Av9a.
24296         * sysdeps/sparc/sparc64/Makefile: Likewise.
24297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
24298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
24299         New file.
24300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
24301         file.
24302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
24303         New file.
24304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
24305         file.
24306         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
24307         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
24308         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
24309         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
24310         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
24311
24312         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
24313         fzeros/fnegs to load 0x80000000 into a float register instead of
24314         using the stack.
24315         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
24316
24317 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
24318
24319         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24320         bits/syscall.h.
24321         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
24322         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
24323         ($(inst_includedir)/bits/syscall.h): Remove rule.
24324         ($(objpfx)bits/syscall.d): Include instead of
24325         $(objpfx)syscall-list.d.
24326         (generated): Change syscall-list.h and syscall-list.d to
24327         bits/syscall.h and bits/syscall.d.
24328
24329 2012-03-14  Roland McGrath  <roland@hack.frob.com>
24330
24331         [BZ #13846]
24332         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
24333
24334 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
24335
24336         [BZ #13841]
24337         * math/s_csqrt.c: Include <float.h>.
24338         (__csqrt): Scale large or subnormal inputs.
24339         * math/s_csqrtf.c: Likewise.
24340         * math/s_csqrtl.c: Likewise.
24341         * math/libm-test.inc (csqrt_test): Add more tests.
24342         * sysdeps/i386/fpu/libm-test-ulps: Update.
24343         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24344
24345         [BZ #13840]
24346         * math/libm-test.inc (hypot_test): Add more tests.
24347
24348 2012-03-13  David S. Miller  <davem@davemloft.net>
24349
24350         [BZ #13840]
24351         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
24352         double-precision for the calculation instead of scaling.
24353
24354 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
24355
24356         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
24357         manipulate bits before adding and subtracting TWO52[sx].
24358         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
24359         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
24360         Likewise.
24361         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
24362
24363 2012-03-13  David S. Miller  <davem@davemloft.net>
24364
24365         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
24366         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
24367         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
24368         rtld-global-offsets.h
24369         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24370
24371         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
24372         large parameters.
24373
24374         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
24375
24376         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
24377         'err' in the ifdef scope in which it is actually used.
24378
24379         * nss/nss_db/db-init.c: Include string.h
24380
24381 2012-03-12  David S. Miller  <davem@davemloft.net>
24382
24383         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
24384         masking out of the most significant byte of random value used.
24385         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24386         Fix coding style in previous change.
24387
24388         * sysdeps/unix/sysv/linux/kernel-features.h
24389         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
24390         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
24391         expression.
24392         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
24393         later.
24394
24395 2012-03-11  David S. Miller  <davem@davemloft.net>
24396
24397         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
24398         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
24399         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
24400         for 'resultvar' otherwise things get truncated on 64-bit.
24401
24402         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24403         Fix masking out of the most significant byte of random value used.
24404
24405         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24406
24407 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
24408
24409         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24410
24411 2012-03-09  David S. Miller  <davem@davemloft.net>
24412
24413         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
24414         variables with appropriate CPP guards.
24415         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
24416         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
24417         on resulting framesize and the management of the outregs buffer for pltexit.
24418         Preserve floating point return values across _dl_call_pltexit call.
24419         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
24420         framesize and the management of the outregs buffer for pltexit.
24421         Preserve floating point return values across _dl_call_pltexit
24422         call.
24423         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
24424         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
24425         (print_exit): Fix format string for return register value.
24426
24427 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
24428
24429         * sunrpc/Makefile (others): Add rpcgen.
24430         ($(objpfx)rpcgen): Remove special build rule and dependency on
24431         libc.
24432         * sunrpc/rpcgen.c: New file.
24433
24434 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
24435
24436         [BZ #13673]
24437         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
24438         * stdio-common/bug-vfprintf-nargs.c: Likewise.
24439         * sysdeps/i386/crti.S: Likewise.
24440         * sysdeps/i386/crtn.S: Likewise.
24441         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
24442         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
24443         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
24444         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
24445         * sysdeps/sh/crti.S: Likewise.
24446         * sysdeps/sh/crtn.S: Likewise.
24447         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
24448
24449         [BZ #13673]
24450         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
24451         with URL.
24452         * locale/programs/locfile-kw.gperf: Likewise.
24453         * locale/programs/charmap-kw.h: Regenerated.
24454         * locale/programs/locfile-kw.h: Likewise.
24455
24456         [BZ #13673]
24457         * intl/plural.y: Replace FSF snail mail address with URL.
24458         * intl/plural.c: Regenerated.
24459
24460 2012-03-09  Richard Henderson  <rth@twiddle.net>
24461
24462         * include/math_private.h: Remove file.
24463         * math/math_private.h: Move file ...
24464         * sysdeps/generic/math_private.h: ... here.
24465
24466         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
24467         * sysdeps/powerpc/fpu/math_private.h: Likewise.
24468         * sysdeps/x86_64/fpu/math_private.h: Likewise.
24469
24470         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
24471         and <math_private.h>.
24472         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
24473         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
24474         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
24475         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
24476         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
24477         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
24478         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
24479         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24480         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
24481         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24482         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24483         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24484         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
24485         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24486         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
24487         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
24488         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
24489         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
24490         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
24491         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
24492         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24493         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
24494         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
24495         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24496         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
24497         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
24498         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
24499         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24500         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24501         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
24502         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
24503         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24504         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
24505         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
24506         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
24507         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
24508         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
24509         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
24510         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
24511         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
24512         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
24513         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
24514         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
24515         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
24516         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
24517         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
24518         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
24519         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
24520         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
24521         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
24522         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
24523         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
24524         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
24525         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
24526         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
24527         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
24528         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
24529         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
24530         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
24531         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
24532         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
24533         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
24534         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24535         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
24536         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
24537         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
24538         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
24539         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
24540         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
24541         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
24542         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
24543         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
24544         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
24545         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
24546         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
24547         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
24548         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
24549         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
24550         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
24551         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
24552         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
24553         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
24554         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
24555         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
24556         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
24557         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
24558         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
24559         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
24560         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
24561         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
24562         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
24563         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
24564         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24565         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
24566         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
24567         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
24568         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
24569         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
24570         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24571         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
24572         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
24573         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
24574         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
24575         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
24576         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
24577         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
24578         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
24579         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
24580         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
24581         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
24582         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
24583         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
24584         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
24585         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
24586         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
24587         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
24588         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
24589         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
24590         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
24591         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
24592         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
24593         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
24594         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
24595         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
24596         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
24597         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
24598         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24599         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
24600         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
24601         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
24602         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
24603         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
24604         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
24605         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
24606         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
24607         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
24608         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
24609         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
24610         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
24611         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
24612         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
24613         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
24614         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
24615         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
24616         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
24617         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24618         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
24619         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
24620         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
24621         * sysdeps/ieee754/k_standard.c: Likewise.
24622         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
24623         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
24624         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
24625         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
24626         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
24627         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
24628         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
24629         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
24630         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
24631         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
24632         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24633         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
24634         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
24635         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
24636         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
24637         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
24638         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
24639         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
24640         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
24641         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
24642         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
24643         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
24644         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
24645         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
24646         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
24647         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
24648         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
24649         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
24650         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
24651         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
24652         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
24653         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
24654         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
24655         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
24656         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
24657         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
24658         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
24659         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
24660         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
24661         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
24662         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
24663         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
24664         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
24665         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
24666         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
24667         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
24668         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
24669         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
24670         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
24671         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
24672         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
24673         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
24674         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
24675         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
24676         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
24677         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
24678         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
24679         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
24680         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
24681         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
24682         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
24683         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
24684         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
24685         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
24686         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24687         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24688         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
24689         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
24690         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
24691         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
24692         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
24693         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24694         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
24695         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
24696         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
24697         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
24698         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
24699         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
24700         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24701         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
24702         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
24703         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
24704         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
24705         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
24706         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
24707         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24708         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
24709         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
24710         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
24711         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
24712         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
24713         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
24714         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24715         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
24716         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24717         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
24718         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
24719         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24720         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24721         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
24722         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
24723         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24724         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
24725         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
24726         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
24727         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
24728         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24729         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24730         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
24731         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
24732         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
24733         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
24734         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
24735         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
24736         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
24737         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24738         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
24739         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
24740         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24741         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
24742         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24743         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
24744         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
24745         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
24746         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
24747         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
24748         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
24749         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
24750         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
24751         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
24752         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
24753         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
24754         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
24755         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
24756         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
24757         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
24758         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
24759         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
24760         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
24761         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
24762         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
24763         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
24764         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
24765         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
24766         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
24767         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
24768         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
24769         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
24770         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
24771         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
24772         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
24773         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
24774         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
24775         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
24776         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
24777         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
24778         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
24779         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
24780         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
24781         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
24782         * sysdeps/ieee754/s_lib_version.c: Likewise.
24783         * sysdeps/ieee754/s_matherr.c: Likewise.
24784         * sysdeps/ieee754/s_signgam.c: Likewise.
24785         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
24786         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
24787         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
24788         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
24789         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
24790         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
24791         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
24792         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
24793         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
24794         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
24795         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
24796         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
24797         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
24798         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
24799         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
24800         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
24801         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
24802         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
24803         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
24804         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
24805         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
24806
24807 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
24808
24809         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
24810         * sunrpc/rpc_main.c: Likewise.
24811         * sunrpc/rpc_svcout.c: Likewise.
24812
24813 2012-03-09  David S. Miller  <davem@davemloft.net>
24814
24815         * include/math_private.h: New file.
24816
24817 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
24818
24819         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
24820         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
24821         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
24822         from <bits/socket_type.h>.
24823         (enum __socket_type): Don't define here.
24824         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
24825         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24826         bits/socket_type.h.
24827
24828         [BZ #13566]
24829         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
24830         checking __USE_GNU.
24831
24832         * Makerules ($(inst_includedir)/%.h): New rule.
24833         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
24834         (install-others): Remove variable setting.
24835         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
24836
24837 2012-03-08  Richard Henderson  <rth@twiddle.net>
24838
24839         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
24840         from macro to inline function; merge with the
24841         !__LIBC_INTERNAL_MATH_INLINES version.
24842         (__ieee754_sqrtf): Likewise.
24843
24844         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
24845         to inline function.
24846         (__rintf, __floor, __floorf): Likewise.
24847
24848         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
24849         macro to inline function.
24850         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
24851
24852         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
24853         not <math/math_private.h>.
24854
24855 2012-03-08  David S. Miller  <davem@davemloft.net>
24856
24857         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
24858         copyright year.
24859         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
24860
24861 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
24862
24863         * resolv/gai_misc.c (handle_requests): Fix struct timespec
24864         normalization.
24865         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
24866         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
24867
24868 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
24869
24870         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
24871         be defined individually, they must be defined as a block.  Define
24872         S for printing a string instead of hidint the different by using a
24873         macro for adding the 'l'.
24874         * stdio-common/tst-fphex-wide.c: Adjust.
24875
24876 2012-03-07  Marek Polacek  <polacek@redhat.com>
24877
24878         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
24879
24880 2012-03-08  Marek Polacek  <polacek@redhat.com>
24881
24882         [BZ #13806]
24883         * stdio-common/Makefile (tests): Add tst-fphex-wide.
24884         * stdio-common/tst-fphex.c: Define a few macros to make the
24885         test reusable.  Use them.
24886         * stdio-common/tst-fphex-wide.c: New file.
24887
24888 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
24889
24890         [BZ #6911]
24891         * manual/macros.texi (gnusystems): New macro.
24892         (nongnusystems): Likewise.
24893         (gnulinuxhurdsystems): Likewise.
24894         (gnuhurdsystems): Likewise..
24895         (gnulinuxsystems): Likewise.
24896         * manual/charset.texi: Use new macros or @theglibc{} to refer to
24897         variants of the GNU system, not "GNU system".
24898         * manual/conf.texi: Likewise.
24899         * manual/errno.texi: Likewise.  Update example of errno macro
24900         expansion.
24901         * manual/filesys.texi: Likewise.
24902         (getumask): Document as specific to GNU/Hurd.
24903         * manual/install.texi: Likewise.  Reword some references to
24904         GNU/Linux.
24905         * manual/intro.texi: Likewise.
24906         * manual/io.texi: Likewise.
24907         (File Name Portability): Detail which constraints are inapplicable
24908         to all GNU systems and which are only inapplicable to GNU/Hurd.
24909         * manual/job.texi: Likewise.
24910         * manual/llio.texi: Likewise.
24911         (O_NOCTTY): Document as present on GNU/Linux.
24912         * manual/maint.texi: Likewise.
24913         * manual/memory.texi: Likewise.
24914         * manual/pattern.texi: Likewise.
24915         * manual/pipe.texi: Likewise.
24916         * manual/process.texi: Likewise.
24917         * manual/resource.texi: Likewise.
24918         (RUSAGE_CHILDREN): Remove statement about specifying a particular
24919         child on GNU/Hurd.
24920         * manual/setjmp.texi: Likewise.
24921         * manual/signal.texi: Likewise.
24922         * manual/startup.texi: Likewise.
24923         * manual/stdio.texi: Likewise.
24924         * manual/terminal.texi: Likewise.
24925         (ONLCR): Document as POSIX.
24926         (OXTABS): Document availability on GNU/Linux as XTABS.
24927         (ONOEOT): Document availability separately from other bits.
24928         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
24929         * manual/time.texi: Likewise.
24930         * manual/users.texi: Likewise.
24931         * INSTALL: Regenerated.
24932         * sysdeps/gnu/errlist.c: Regenerated.
24933
24934         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
24935         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
24936         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
24937         puts.
24938         * configure: Regenerated.
24939
24940 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
24941
24942         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
24943         default includes instead of AC_HEADER_CHECK.
24944         * sysdeps/i386/configure: Regenerated.
24945
24946         [BZ #10716]
24947         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
24948         * math/s_cacoshf.c (__cacoshf): Likewise.
24949         * math/s_cacoshl.c (__cacoshl): Likewise.
24950         * math/s_casinh.c (__casinh): Set signs of result from argument.
24951         * math/s_casinhf.c (__casinhf): Likewise.
24952         * math/s_casinhl.c (__casinhl): Likewise.
24953         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
24954         (casinh_test): Add more tests.
24955         * sysdeps/i386/fpu/libm-test-ulps: Update.
24956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24957
24958 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
24959
24960         * po/zh_TW.po: Update from translation team.
24961
24962         * login/Makefile (distribute): Remove variable.
24963         * catgets/Makefile: Likewise.
24964         * mach/Makefile: Likewise.
24965         * malloc/Makefile: Likewise.
24966         * misc/Makefile: Likewise.
24967         * iconv/Makefile: Likewise.
24968         * nscd/Makefile: Likewise.
24969         * hurd/Makefile: Likewise.
24970         * manual/Makefile: Likewise.
24971         * locale/Makefile: Likewise.
24972         * intl/Makefile: Likewise.
24973         * conform/Makefile: Likewise.
24974         * nss/Makefile: Likewise.
24975         * time/Makefile: Likewise.
24976         * soft-fp/Makefile: Likewise.
24977         * dirent/Makefile: Likewise.
24978         * gmon/Makefile: Likewise.
24979         * po/Makefile: Likewise.
24980         * rt/Makefile: Likewise.
24981         * socket/Makefile: Likewise.
24982         * math/Makefile: Likewise.
24983         * signal/Makefile: Likewise.
24984         * debug/Makefile: Likewise.
24985         * elf/Makefile: Likewise.
24986         * timezone/Makefile: Likewise.
24987         * stdlib/Makefile: Likewise.
24988         * iconvdata/Makefile: Likewise.
24989         * sunrpc/Makefile: Likewise.
24990         * io/Makefile: Likewise.
24991         * argp/Makefile: Likewise.
24992         * inet/Makefile: Likewise.
24993         * hesiod/Makefile: Likewise.
24994         * grp/Makefile: Likewise.
24995         * csu/Makefile: Likewise.
24996         * wctype/Makefile: Likewise.
24997         * crypt/Makefile: Likewise.
24998         * libio/Makefile: Likewise.
24999         * string/Makefile: Likewise.
25000         * nis/Makefile: Likewise.
25001         * resolv/Makefile: Likewise.
25002         * stdio-common/Makefile: Likewise.
25003         * wcsmbs/Makefile: Likewise.
25004         * dlfcn/Makefile: Likewise.
25005         * posix/Makefile: Likewise.
25006
25007         [BZ #6959]
25008         * timezone/Makefile: Don't install timezone files, just the programs
25009         and scripts.
25010
25011 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
25012
25013         * nss/databases.def: Add missing gshadow entry.
25014
25015         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
25016
25017 2012-03-06  Marek Polacek  <polacek@redhat.com>
25018
25019         [BZ #13726]
25020         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
25021         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
25022         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
25023         * stdio-common/tst-long-dbl-fphex.c: New file.
25024
25025 2012-03-06  David S. Miller  <davem@davemloft.net>
25026
25027         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25028         (set_obp_int): New function.
25029         (get_obp_int): New function.
25030         (__get_clockfreq_via_dev_openprom): Likewise.
25031         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
25032         Avoid unused variable warnings on 'val' and use builtin_expect.
25033         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
25034         __builtin_expect.
25035         (INLINE_CLONE_SYSCALL): Likewise.
25036
25037 2012-03-05  David S. Miller  <davem@davemloft.net>
25038
25039         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25040
25041 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
25042
25043         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25044
25045         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
25046         only for |x| >= 40.
25047         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
25048
25049 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
25050
25051         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
25052         Replace gettimeofday with __vdso_gettimeofday.
25053
25054         * sysdeps/unix/sysv/linux/x86_64/init-first.c
25055         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
25056         __vdso_clock_gettime and __vdso_getcpu.
25057
25058         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
25059         time with __vdso_time.
25060
25061 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
25062
25063         * manual/lang.texi (size_t): Note types to which size_t may be
25064         equivalent with the GNU C Library, but do not describe when
25065         differences between them are significant.
25066
25067 2012-03-05  Andreas Jaeger  <aj@suse.de>
25068
25069         * sysdeps/i386/fpu/libm-test-ulps: Update.
25070
25071 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
25072
25073         [BZ #3976]
25074         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
25075         (__ieee754_pow): Save and restore rounding mode and use
25076         round-to-nearest for main computations.
25077         * math/libm-test.inc (pow_test_tonearest): New function.
25078         (pow_test_towardzero): Likewise.
25079         (pow_test_downward): Likewise.
25080         (pow_test_upward): Likewise.
25081         (main): Call the new functions.
25082         * sysdeps/i386/fpu/libm-test-ulps: Update.
25083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25084
25085         [BZ #3976]
25086         * math/libm-test.inc (cosh_test_tonearest): New function.
25087         (cosh_test_towardzero): Likewise.
25088         (cosh_test_downward): Likewise.
25089         (cosh_test_upward): Likewise.
25090         (sinh_test_tonearest): Likewise.
25091         (sinh_test_towardzero): Likewise.
25092         (sinh_test_downward): Likewise.
25093         (sinh_test_upward): Likewise.
25094         (main): Call the new functions.
25095         * sysdeps/i386/fpu/libm-test-ulps: Update.
25096         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25097
25098 2012-03-05  Tom de Vries  <tom@codesourcery.com>
25099
25100         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
25101         default stack guard is set in last bytes.
25102         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
25103
25104 2012-03-05  Kees Cook  <keescook@chromium.org>
25105
25106         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
25107
25108         [BZ #13656]
25109         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
25110         possibly allocate from heap instead of stack.
25111         * stdio-common/bug-vfprintf-nargs.c: New file.
25112         * stdio-common/Makefile (tests): Add nargs overflow test.
25113
25114 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
25115
25116         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25117
25118 2012-03-03  Marek Polacek  <polacek@redhat.com>
25119
25120         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
25121         * math/math_private.h: Likewise.
25122         * stdlib/tst-strtod.c: Likewise.
25123         * sysdeps/i386/i486/bits/atomic.h: Likewise.
25124         * sysdeps/x86_64/bits/atomic.h: Likewise.
25125
25126 2012-03-02  David S. Miller  <davem@davemloft.net>
25127
25128         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
25129         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
25130         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
25131         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
25132         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
25133         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
25134         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
25135         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
25136
25137 2012-03-02  Roland McGrath  <roland@hack.frob.com>
25138
25139         [BZ #13792]
25140         * manual/examples/README: New file, says the example source files
25141         can be used under GPL>=2.
25142         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
25143         line containing just "*/".
25144         * manual/examples/add.c: Add copyright header (GPL>=2).
25145         * manual/examples/argp-ex1.c: Likewise.
25146         * manual/examples/argp-ex2.c: Likewise.
25147         * manual/examples/argp-ex3.c: Likewise.
25148         * manual/examples/argp-ex4.c: Likewise.
25149         * manual/examples/atexit.c: Likewise.
25150         * manual/examples/db.c: Likewise.
25151         * manual/examples/dir.c: Likewise.
25152         * manual/examples/dir2.c: Likewise.
25153         * manual/examples/execinfo.c: Likewise.
25154         * manual/examples/filecli.c: Likewise.
25155         * manual/examples/filesrv.c: Likewise.
25156         * manual/examples/fmtmsgexpl.c: Likewise.
25157         * manual/examples/genpass.c: Likewise.
25158         * manual/examples/inetcli.c: Likewise.
25159         * manual/examples/inetsrv.c: Likewise.
25160         * manual/examples/isockad.c: Likewise.
25161         * manual/examples/longopt.c: Likewise.
25162         * manual/examples/memopen.c: Likewise.
25163         * manual/examples/memstrm.c: Likewise.
25164         * manual/examples/mkfsock.c: Likewise.
25165         * manual/examples/mkisock.c: Likewise.
25166         * manual/examples/mygetpass.c: Likewise.
25167         * manual/examples/pipe.c: Likewise.
25168         * manual/examples/popen.c: Likewise.
25169         * manual/examples/rprintf.c: Likewise.
25170         * manual/examples/search.c: Likewise.
25171         * manual/examples/select.c: Likewise.
25172         * manual/examples/setjmp.c: Likewise.
25173         * manual/examples/sigh1.c: Likewise.
25174         * manual/examples/sigusr.c: Likewise.
25175         * manual/examples/stpcpy.c: Likewise.
25176         * manual/examples/strdupa.c: Likewise.
25177         * manual/examples/strftim.c: Likewise.
25178         * manual/examples/strncat.c: Likewise.
25179         * manual/examples/subopt.c: Likewise.
25180         * manual/examples/swapcontext.c: Likewise.
25181         * manual/examples/termios.c: Likewise.
25182         * manual/examples/testopt.c: Likewise.
25183         * manual/examples/testpass.c: Likewise.
25184         * manual/examples/timeval_subtract.c: Likewise.
25185
25186         [BZ #13792]
25187         * manual/time.texi (Elapsed Time): Move timeval_subtract example
25188         function to ...
25189         * manual/timeval_subtract.c.texi: ... here, new file.
25190
25191 2012-03-02  David S. Miller  <davem@davemloft.net>
25192
25193         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
25194
25195 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
25196
25197         [BZ #3976]
25198         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
25199         (__sin): Save and restore rounding mode and use round-to-nearest
25200         for all computations.
25201         (__cos): Save and restore rounding mode and use round-to-nearest
25202         for all computations.
25203         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
25204         <fenv.h>.
25205         (tan): Save and restore rounding mode and use round-to-nearest for
25206         all computations.
25207         * math/libm-test.inc (cos_test_tonearest): New function.
25208         (cos_test_towardzero): Likewise.
25209         (cos_test_downward): Likewise.
25210         (cos_test_upward): Likewise.
25211         (sin_test_tonearest): Likewise.
25212         (sin_test_towardzero): Likewise.
25213         (sin_test_downward): Likewise.
25214         (sin_test_upward): Likewise.
25215         (tan_test_tonearest): Likewise.
25216         (tan_test_towardzero): Likewise.
25217         (tan_test_downward): Likewise.
25218         (tan_test_upward): Likewise.
25219         (main): Call the new functions.
25220         * sysdeps/i386/fpu/libm-test-ulps: Update.
25221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25222
25223         [BZ #10135]
25224         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
25225         small n, then large n, before computing and testing k+n.
25226         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
25227         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
25228         Likewise.
25229         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
25230         Likewise.
25231         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
25232         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
25233         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
25234         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
25235         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
25236         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
25237         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
25238         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
25239         * math/libm-test.inc (scalbn_test): Add more tests.
25240         (scalbln_test): Likewise.
25241
25242         * manual/filesys.texi (mode_t): Describe constraints on size and
25243         signedness, not exact equivalence to a particular type.
25244         (ino_t): Likewise.
25245         (ino64_t): Likewise.
25246         (dev_t): Likewise.
25247         (nlink_t): Likewise.
25248         (blkcnt_t): Likewise.
25249         (blkcnt64_t): Likewise.
25250         * manual/llio.texi (off_t): Likewise.
25251
25252         [BZ #3976]
25253         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
25254         (__ieee754_exp): Save and restore rounding mode and use
25255         round-to-nearest for all computations.
25256         * math/libm-test.inc (exp_test_tonearest): New function.
25257         (exp_test_towardzero): Likewise.
25258         (exp_test_downward): Likewise.
25259         (exp_test_upward): Likewise.
25260         (main): Call the new functions.
25261         * sysdeps/i386/fpu/libm-test-ulps: Update.
25262         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25263
25264 2012-03-01  Chris Demetriou  <cgd@google.com>
25265
25266         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
25267         have predictable order.
25268
25269 2012-03-01  David S. Miller  <davem@davemloft.net>
25270
25271         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
25272
25273         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
25274         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
25275         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
25276         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
25277
25278         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
25279         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
25280         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
25281         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
25282         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
25283         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
25284         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
25285         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
25286         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
25287
25288         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25289
25290         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
25291         * sysdeps/sparc/fpu/libm-test-ulps: to here.
25292         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
25293
25294         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
25295         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
25296         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
25297         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
25298         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
25299         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
25300         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
25301         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
25302         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
25303         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
25304         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
25305         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25306         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
25307         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
25308         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
25309         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25310         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
25311         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
25312         * sysdeps/sparc/elf/configure: Regenerated.
25313
25314 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
25315
25316         * configure.in (AS, LD): Require binutils 2.20 or later.
25317         * configure: Regenerated.
25318         * manual/install.texi (Tools for Compilation): Give binutils 2.20
25319         as required minimum version.
25320         * INSTALL: Regenerated.
25321
25322         [BZ #2541]
25323         [BZ #4108]
25324         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
25325         before squaring exponent.
25326         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
25327         bottom long double and 27 bits of top long double before squaring
25328         exponent.
25329         * math/libm-test.inc (erfc_test): Add more tests.
25330         * sysdeps/i386/fpu/libm-test-ulps: Update.
25331         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25332         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25333
25334 2012-03-01  Kai Tietz  <ktietz@redhat.com>
25335
25336         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
25337         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
25338         containing bit-fields.
25339         * soft-fp/extended.h (_FP_UNION_E): Likewise.
25340         * soft-fp/single.h (_FP_UNION_S): Likewise.
25341         * soft-fp/double.h (_FP_UNION_D): Likewise.
25342
25343 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
25344
25345         [BZ #13786]
25346         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
25347         not include ../strcmp.S.
25348         [USE_AS_STRNCASECMP_L]: Likewise.
25349         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
25350         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
25351         * sysdeps/i386/i686/multiarch/strncase_l-c.c
25352         (__strncasecmp_l_ia32): Define as alias to
25353         __strncasecmp_l_nonascii.
25354
25355         [BZ #5794]
25356         * math/libm-test.inc (expm1_test): Add test for bug 5794.
25357         * sysdeps/i386/fpu/libm-test-ulps: Update.
25358         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25359
25360         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
25361         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25362
25363 2012-02-29  Jeff Law  <law@redhat.com>
25364
25365         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
25366         out of bounds read.
25367
25368 2012-02-29  Marek Polacek  <polacek@redhat.com>
25369
25370         [BZ #13706]
25371         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
25372         * elf/Makefile: Add rules to run tst-unused-dep.out.
25373
25374 2012-02-28  David S. Miller  <davem@davemloft.net>
25375
25376         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
25377         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
25378         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
25379         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
25380         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
25381         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
25382
25383 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
25384
25385         * math/libm-test.inc (llround_test): Move one test from
25386         lround_test.  Use TEST_f_L in moved test.
25387         (lround_test): Move misplaced test to llround_test.  Add testcase
25388         from bug 2561.
25389
25390 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
25391
25392         * sysdeps/x86_64/fpu/e_expf.S: New file.
25393         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
25394
25395 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
25396
25397         [BZ #13637]
25398         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
25399         of remain_len that may cause incomplete multi-byte character and
25400         false match.
25401         * posix/bug-regex33.c: New file.
25402         * posix/Makefile (tests): Add bug-regex33.
25403
25404 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
25405
25406         * manual/macros.texi: New file.
25407         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
25408         * manual/libc.texinfo: Include macros.texi.
25409         * manual/creatute.texi: Likewise.
25410         * manual/install.texi: Likewise.
25411         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
25412         @glibcadj{} in references to the GNU C Library.
25413         * manual/charset.texi: Likewise.
25414         * manual/conf.texi: Likewise.
25415         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
25416         when not using those macros.
25417         * manual/creature.texi: Likewise.
25418         * manual/crypt.texi: Likewise.
25419         * manual/errno.texi: Likewise.
25420         * manual/filesys.texi: Likewise.
25421         * manual/header.texi: Likewise.
25422         * manual/install.texi: Likewise.
25423         * manual/intro.texi: Likewise.
25424         * manual/io.texi: Likewise.
25425         * manual/job.texi: Likewise.
25426         * manual/lang.texi: Likewise.
25427         * manual/libc.texiinfo: Likewise.
25428         * manual/llio.texi: Likewise.
25429         * manual/locale.texi: Likewise.
25430         * manual/maint.texi: Likewise.
25431         * manual/math.texi: Likewise.
25432         * manual/memory.texi: Likewise.
25433         * manual/message.texi: Likewise.
25434         * manual/nss.texi: Likewise.
25435         * manual/pattern.texi: Likewise.
25436         * manual/process.texi: Likewise.
25437         * manual/resource.texi: Likewise.
25438         * manual/search.texi: Likewise.
25439         * manual/setjmp.texi: Likewise.
25440         * manual/signal.texi: Likewise.
25441         * manual/socket.texi: Likewise.
25442         * manual/startup.texi: Likewise.
25443         * manual/stdio.texi: Likewise.
25444         * manual/string.texi: Likewise.
25445         * manual/sysinfo.texi: Likewise.
25446         * manual/syslog.texi: Likewise.
25447         * manual/terminal.texi: Likewise.
25448         * manual/time.texi: Likewise.
25449         * manual/users.texi: Likewise.
25450         * INSTALL: Regenerated.
25451         * NOTES: Regenerated.
25452         * sysdeps/gnu/errlist.c: Regenerated.
25453
25454 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
25455
25456         * include/dirent.h: Include <dirstream.h> before
25457         <dirent/dirent.h>.
25458
25459 2012-02-28  David S. Miller  <davem@davemloft.net>
25460
25461         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
25462         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
25463         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
25464         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
25465
25466 2012-02-27  David S. Miller  <davem@davemloft.net>
25467
25468         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
25469         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
25470         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
25471         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
25472
25473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
25474         frame pointer instead of stack pointer relative arg slot.
25475         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
25476         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
25477         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
25478
25479 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
25480
25481         [BZ #3992]
25482         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
25483
25484 2012-02-27  David S. Miller  <davem@davemloft.net>
25485
25486         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
25487         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
25488         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
25489         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
25490         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
25491         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
25492         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
25493         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
25494
25495 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
25496
25497         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
25498         later.  Allow versions 5-9.
25499         * configure: Regenerated.
25500         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
25501         required minimum version and 4.6 as recommended version.  Do not
25502         mention bugs in GCC 2.7 and 2.8.
25503         * INSTALL: Regenerated.
25504
25505 2012-02-27  David S. Miller  <davem@davemloft.net>
25506
25507         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
25508         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
25509         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
25510         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
25511         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
25512         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
25513         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
25514         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
25515
25516         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
25517         manipulate bits before adding and subtracting TWO112[sx].
25518         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
25519
25520 2012-02-27  Roland McGrath  <roland@hack.frob.com>
25521
25522         [BZ #13775]
25523         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
25524         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
25525         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
25526         being in POSIX, because they are in 1003.1-2008.
25527
25528         * rt/tst-aio.c: Include <fcntl.h>.
25529         * rt/tst-aio7.c: Likewise.
25530         * rt/tst-aio64.c: Likewise.
25531
25532         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
25533
25534 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
25535
25536         * manual/install.texi (--with-headers): Describe headers as
25537         interface headers, not private headers.
25538         (Specific advice for GNU/Linux systems): Describe use of headers
25539         from "make headers_install", not private headers from older
25540         kernels.
25541         * INSTALL: Regenerated.
25542         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
25543         Change to 2.6.19.
25544         * sysdeps/unix/sysv/linux/configure: Regenerated.
25545
25546         * manual/llio.texi (fclean): Remove documentation.
25547
25548         * manual/Makefile (libc-texi-generated): New variable.  Include
25549         version.texi.
25550         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
25551         $(libc-texi-generated), not duplicated list of files.
25552         (version.texi, stamp-version): New rules.
25553         (realclean): Remove $(libc-texi-generated), not individual files
25554         from that list.  Do not remove dir-add.texinfo.
25555         * manual/libc.texinfo: Comment out uses of edition numbers and
25556         references to printed manual.  Remove last-updated dates.
25557         (EDITION): Comment out.
25558         (ISBN): Likewise.
25559         (VERSION, UPDATED): Remove.
25560         (version.texi): Include.
25561
25562 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
25563
25564         * sysdeps/posix/spawni.c: Include <signal.h>.
25565         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
25566         * sysdeps/pthread/aio_fsync.c: Likewise.
25567
25568 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
25569
25570         * conform/Makefile (tests): Run only when not cross-compiling and
25571         when fast-check is not defined.
25572
25573         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
25574         * conform/data/limits.h-data: Fixes for POSIX2008.
25575         * conform/run-conformtest.sh: Run all tests.
25576         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
25577         headers.
25578         * include/bits/dlfcn.h: Likewise.
25579         * include/langinfo.h: Likewise.
25580         * include/monetary.h: Likewise.
25581         * include/sys/poll.h: Likewise.
25582
25583         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
25584         for __USE_GNU.
25585         * posix/spawn.h: Define __need_sigset_t.
25586         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
25587         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
25588         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
25589         to get sigevent_t only.
25590         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
25591         only for __USE_GNU.
25592         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
25593         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
25594         process_vm_writev only for __USE_GNU.
25595         * termios/termios.h: Declare tcgetsid also for POSIX2008.
25596
25597         * conform/Makefile: For now ignore errors from run-conformtest.
25598         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
25599         POSIX to avoid namespace pollution.  Don't prepend headers.
25600         * conform/data/aio.h-data: Fixes for POSIX testing.
25601         * conform/data/fcntl.h-data: Likewise.
25602         * conform/data/glob.h-data: Likewise.
25603         * conform/data/grp.h-data: Likewise.
25604         * conform/data/pthread.h-data: Likewise.
25605         * conform/data/pwd.h-data: Likewise.
25606         * conform/data/signal.h-data: Likewise.
25607         * conform/data/spawn.h-data: Likewise.
25608         * conform/data/stdio.h-data: Likewise.
25609         * conform/data/stdlib.h-data: Likewise.
25610         * conform/data/stropts.h-data: Likewise.
25611         * conform/data/sys/mman.h-data: Likewise.
25612         * conform/data/sys/stat.h-data: Likewise.
25613         * conform/data/sys/types.h-data: Likewise.
25614         * conform/data/sys/wait.h-data: Likewise.
25615         * conform/data/time.h-data: Likewise.
25616         * conform/data/unistd.h-data: Likewise.
25617         * conform/data/utime.h-data: Likewise.
25618
25619         * io/sys/stat.h: fchmod was always in POSIX.
25620         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
25621         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
25622         * rt/aio.h: Define __need_timespec before including <time.h>.
25623         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
25624         struct.  Add forward declaration of pthread_attr_t and use it in
25625         sigevent.
25626         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
25627         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
25628         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
25629         always remove CLK_TCK definition.
25630
25631 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
25632
25633         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
25634
25635 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
25636
25637         * conform/run-conformtest.sh: New file.
25638         * conform/Makefile: Run run-conformtest for tests.
25639         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
25640         support.
25641
25642         * conform/data/uchar.h-data: New file.
25643         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
25644         * conform/data/arpa/inet.h-data: Likewise.
25645         * conform/data/assert.h-data: Likewise.
25646         * conform/data/complex.h-data: Likewise.
25647         * conform/data/cpio.h-data: Likewise.
25648         * conform/data/ctype.h-data: Likewise.
25649         * conform/data/dirent.h-data: Likewise.
25650         * conform/data/dlfcn.h-data: Likewise.
25651         * conform/data/errno.h-data: Likewise.
25652         * conform/data/fcntl.h-data: Likewise.
25653         * conform/data/float.h-data: Likewise.
25654         * conform/data/fmtmsg.h-data: Likewise.
25655         * conform/data/fnmatch.h-data: Likewise.
25656         * conform/data/ftw.h-data: Likewise.
25657         * conform/data/glob.h-data: Likewise.
25658         * conform/data/grp.h-data: Likewise.
25659         * conform/data/iconv.h-data: Likewise.
25660         * conform/data/inttypes.h-data: Likewise.
25661         * conform/data/langinfo.h-data: Likewise.
25662         * conform/data/libgen.h-data: Likewise.
25663         * conform/data/limits.h-data: Likewise.
25664         * conform/data/locale.h-data: Likewise.
25665         * conform/data/math.h-data: Likewise.
25666         * conform/data/monetary.h-data: Likewise.
25667         * conform/data/mqueue.h-data: Likewise.
25668         * conform/data/ndbm.h-data: Likewise.
25669         * conform/data/net/if.h-data: Likewise.
25670         * conform/data/netdb.h-data: Likewise.
25671         * conform/data/netinet/in.h-data: Likewise.
25672         * conform/data/nl_types.h-data: Likewise.
25673         * conform/data/poll.h-data: Likewise.
25674         * conform/data/pthread.h-data: Likewise.
25675         * conform/data/pwd.h-data: Likewise.
25676         * conform/data/regex.h-data: Likewise.
25677         * conform/data/sched.h-data: Likewise.
25678         * conform/data/search.h-data: Likewise.
25679         * conform/data/semaphore.h-data: Likewise.
25680         * conform/data/setjmp.h-data: Likewise.
25681         * conform/data/signal.h-data: Likewise.
25682         * conform/data/spawn.h-data: Likewise.
25683         * conform/data/stdarg.h-data: Likewise.
25684         * conform/data/stdio.h-data: Likewise.
25685         * conform/data/stdlib.h-data: Likewise.
25686         * conform/data/string.h-data: Likewise.
25687         * conform/data/strings.h-data: Likewise.
25688         * conform/data/stropts.h-data: Likewise.
25689         * conform/data/sys/ipc.h-data: Likewise.
25690         * conform/data/sys/mman.h-data: Likewise.
25691         * conform/data/sys/msg.h-data: Likewise.
25692         * conform/data/sys/resource.h-data: Likewise.
25693         * conform/data/sys/select.h-data: Likewise.
25694         * conform/data/sys/sem.h-data: Likewise.
25695         * conform/data/sys/shm.h-data: Likewise.
25696         * conform/data/sys/socket.h-data: Likewise.
25697         * conform/data/sys/stat.h-data: Likewise.
25698         * conform/data/sys/statvfs.h-data: Likewise.
25699         * conform/data/sys/time.h-data: Likewise.
25700         * conform/data/sys/timeb.h-data: Likewise.
25701         * conform/data/sys/times.h-data: Likewise.
25702         * conform/data/sys/types.h-data: Likewise.
25703         * conform/data/sys/uio.h-data: Likewise.
25704         * conform/data/sys/un.h-data: Likewise.
25705         * conform/data/sys/utsname.h-data: Likewise.
25706         * conform/data/sys/wait.h-data: Likewise.
25707         * conform/data/syslog.h-data: Likewise.
25708         * conform/data/tar.h-data: Likewise.
25709         * conform/data/termios.h-data: Likewise.
25710         * conform/data/utime.h-data: Likewise.
25711         * conform/data/utmpx.h-data: Likewise.
25712         * conform/data/varargs.h-data: Likewise.
25713         * conform/data/wchar.h-data: Likewise.
25714         * conform/data/wctype.h-data: Likewise.
25715         * conform/data/wordexp.h-data: Likewise.
25716
25717         * include/stropts.h: New file.
25718         * include/uchar.h: New file.
25719         * include/aio.h: Changes to allow conformtest.pl to use the headers.
25720         * include/assert.h: Likewise.
25721         * include/ctype.h: Likewise.
25722         * include/dirent.h: Likewise.
25723         * include/dlfcn.h: Likewise.
25724         * include/fcntl.h: Likewise.
25725         * include/fnmatch.h: Likewise.
25726         * include/glob.h: Likewise.
25727         * include/grp.h: Likewise.
25728         * include/libio.h: Likewise.
25729         * include/locale.h: Likewise.
25730         * include/math.h: Likewise.
25731         * include/net/if.h: Likewise.
25732         * include/netdb.h: Likewise.
25733         * include/netinet/in.h: Likewise.
25734         * include/pthread.h: Likewise.
25735         * include/pwd.h: Likewise.
25736         * include/regex.h: Likewise.
25737         * include/sched.h: Likewise.
25738         * include/search.h: Likewise.
25739         * include/setjmp.h: Likewise.
25740         * include/signal.h: Likewise.
25741         * include/stdio.h: Likewise.
25742         * include/stdlib.h: Likewise.
25743         * include/string.h: Likewise.
25744         * include/sys/cdefs.h: Likewise.
25745         * include/sys/mman.h: Likewise.
25746         * include/sys/msg.h: Likewise.
25747         * include/sys/resource.h: Likewise.
25748         * include/sys/select.h: Likewise.
25749         * include/sys/socket.h: Likewise.
25750         * include/sys/stat.h: Likewise.
25751         * include/sys/statvfs.h: Likewise.
25752         * include/sys/time.h: Likewise.
25753         * include/sys/times.h: Likewise.
25754         * include/sys/uio.h: Likewise.
25755         * include/sys/utsname.h: Likewise.
25756         * include/sys/wait.h: Likewise.
25757         * include/termios.h: Likewise.
25758         * include/time.h: Likewise.
25759         * include/ulimit.h: Likewise.
25760         * include/unistd.h: Likewise.
25761         * include/utime.h: Likewise.
25762         * include/wchar.h: Likewise.
25763         * include/wctype.h: Likewise.
25764         * include/wordexp.h: Likewise.
25765
25766         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
25767
25768         * time/time.h: TIME_UTC must be a macro.
25769         Make timespec_get available for ISO C11 only as well.
25770
25771 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
25772
25773         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
25774         Reported by Peng Haitao <penght@cn.fujitsu.com>.
25775
25776 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
25777
25778         * configure.in: Use -o not -a in test for unsupported multi-arch.
25779
25780 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
25781
25782         * manual/texinfo.tex: Update to version 2012-01-19.16.
25783
25784 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
25785
25786         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
25787
25788 2012-02-24  Roland McGrath  <roland@hack.frob.com>
25789
25790         [BZ #13738]
25791         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
25792         * manual/fdl-1.3.texi: New file.
25793         * manual/fdl-1.1.texi: File removed.
25794
25795         [BZ #13738]
25796         * manual/libc.texinfo (FDL_VERSION): New @set.
25797         Use it for mention of FDL in cover text.
25798         (Documentation License): Use it in @include file name.
25799
25800 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25801             Roland McGrath  <roland@hack.frob.com>
25802
25803         [BZ #5461]
25804         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
25805         not LONG_LONG_MAX and LONG_LONG_MIN.
25806         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
25807         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
25808         name.
25809         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
25810
25811 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25812
25813         [BZ #2547]
25814         [BZ #11365]
25815         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
25816         manipulate bits before adding and subtracting TWO23[sx].
25817         * math/libm-test.inc (nearbyint_test): Add more tests.
25818
25819 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25820
25821         [BZ #2548]
25822         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
25823         bits before adding and subtracting TWO23[sx].
25824         * math/libm-test.inc (rint_test): Add more tests.
25825         (rint_test_tonearest): Likewise.
25826         (rint_test_towardzero): Likewise.
25827         (rint_test_downward): Likewise.
25828         (rint_test_upward: Likewise.
25829
25830 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25831
25832         [BZ #10110]
25833         * include/stdc-predef.h: New file.  Extracted from features.h.
25834         * include/features.h: Include stdc-predef.h.
25835         * Makefile (headers): Add stdc-predef.h.
25836         * CONFORMANCE (Compiler limitations): Update.
25837
25838 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25839
25840         * manual/libc.texinfo (VERSION, UPDATED): Revert.
25841
25842 2012-02-21  David S. Miller  <davem@davemloft.net>
25843
25844         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
25845         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
25846
25847 2012-02-20  David S. Miller  <davem@davemloft.net>
25848
25849         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
25850         using a normal save/restore sequence, rather than allocating a
25851         dummy stack frame just to store a frame pointer and restore.
25852         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25853
25854 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
25855
25856         * manual/install.texi: Fix stray word in line-wrapped comment.
25857
25858 2012-02-20  David S. Miller  <davem@davemloft.net>
25859
25860         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
25861         both binutils and gcc support GOTDATA.
25862
25863         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
25864         "rd %pc" in the PIC register setup sequences.
25865
25866         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
25867         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25868         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
25869         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25870         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
25871         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
25872         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25873         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25874         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
25875         (SYSCALL_ERROR_HANDLER): Likewise.
25876         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
25877         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
25878         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
25879         (SYSCALL_ERROR_HANDLER): Likewise.
25880
25881         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
25882         (HAVE_GCC_GOTDATA): New.
25883         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
25884         relocation support in both binutils and gcc.
25885         * sysdeps/sparc/elf/configure: Regenerate.
25886
25887         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
25888         * sysdeps/sparc/sparc32/elf/configure: Delete.
25889         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
25890         * sysdeps/sparc/sparc64/elf/configure: Delete.
25891         * sysdeps/sparc/elf/configure.in: New file.
25892         * sysdeps/sparc/elf/configure: Generate.
25893
25894         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
25895         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
25896         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
25897         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
25898         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
25899
25900 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
25901
25902         * manual/install.texi: Do not mention specific glibc version
25903         numbers.
25904         * manual/libc.texinfo (VERSION, UPDATED): Update.
25905         (@copying): Use @copyright{} and range of years.
25906
25907 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
25908
25909         [BZ #13695]
25910         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
25911         [crti.S not in sysdirs] (generated): Do not append.
25912         [crti.S not in sysdirs] (omit-deps): Likewise.
25913         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
25914         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
25915         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
25916         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
25917         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
25918         Likewise.
25919         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
25920         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
25921         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
25922         * csu/defs.awk: Remove file.
25923         * sysdeps/generic/initfini.c: Likewise.
25924         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
25925         variable.
25926         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
25927         Likewise.
25928
25929 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
25930
25931         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
25932         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
25933         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
25934         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
25935         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
25936         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
25937         <bits/epoll.h>.
25938         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
25939         (__EPOLL_PACKED): Define to empty if not defined by
25940         <bits/epoll.h>.
25941         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
25942         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25943         bits/epoll.h.
25944
25945 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
25946
25947         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
25948         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
25949         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
25950         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
25951         <bits/timerfd.h>.
25952         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
25953         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25954         bits/timerfd.h.
25955
25956 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
25957
25958         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
25959         in C locale.
25960         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25961         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
25962         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
25963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25964
25965 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
25966
25967         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25968         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
25969
25970 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
25971
25972         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
25973         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
25974         defined.
25975         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
25976         Likewise.
25977         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
25978         entry for 2.16.
25979
25980 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
25981
25982         * math/w_acos.c: Use non-signaling floating-point comparisons.
25983         * math/w_acosf.c: Likewise.
25984         * math/w_acosh.c: Likewise.
25985         * math/w_acoshf.c: Likewise.
25986         * math/w_acoshl.c: Likewise.
25987         * math/w_acosl.c: Likewise.
25988         * math/w_asin.c: Likewise.
25989         * math/w_asinf.c: Likewise.
25990         * math/w_asinl.c: Likewise.
25991         * math/w_atanh.c: Likewise.
25992         * math/w_atanhf.c: Likewise.
25993         * math/w_atanhl.c: Likewise.
25994         * math/w_exp2.c: Likewise.
25995         * math/w_exp2f.c: Likewise.
25996         * math/w_exp2l.c: Likewise.
25997         * math/w_j0.c: Likewise.
25998         * math/w_j0f.c: Likewise.
25999         * math/w_j0l.c: Likewise.
26000         * math/w_j1.c: Likewise.
26001         * math/w_j1f.c: Likewise.
26002         * math/w_j1l.c: Likewise.
26003         * math/w_jn.c: Likewise.
26004         * math/w_jnf.c: Likewise.
26005         * math/w_log.c: Likewise.
26006         * math/w_log10.c: Likewise.
26007         * math/w_log10f.c: Likewise.
26008         * math/w_log10l.c: Likewise.
26009         * math/w_log2.c: Likewise.
26010         * math/w_log2f.c: Likewise.
26011         * math/w_log2l.c: Likewise.
26012         * math/w_logf.c: Likewise.
26013         * math/w_logl.c: Likewise.
26014         * math/w_sqrt.c: Likewise.
26015         * math/w_sqrtf.c: Likewise.
26016         * math/w_sqrtl.c: Likewise.
26017         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
26018         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
26019         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
26020         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
26021         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
26022
26023 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26024
26025         [BZ #9739]
26026         * manual/string.texi (strnlen): Use correct parameter name in
26027         equivalent expression.
26028
26029 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26030
26031         [BZ #11174]
26032         * manual/users.texi (seteuid): Consistently use neweuid for
26033         argument name.
26034
26035 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26036
26037         [BZ #13704]
26038         * manual/nss.texi (Services in the NSS configuration): Correct
26039         list of services in example configuration file.
26040
26041 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
26042
26043         [BZ #11322]
26044         * manual/arith.texi: Remove statements about negative zero
26045         behaving identically to zero.
26046
26047 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
26048
26049         [BZ #5993]
26050         * manual/install.texi: Do not document upgrading from libc5.
26051
26052 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
26053
26054         [BZ #4596]
26055         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
26056
26057 2012-02-18  David S. Miller  <davem@davemloft.net>
26058
26059         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
26060         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
26061         %o7 across the call.
26062         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
26063         instead.
26064         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
26065         SETUP_PIC_REG_LEAF.
26066         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26067         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
26068         * sysdeps/sparc/crtn.S: Likewise.
26069
26070 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
26071
26072         * aout/Makefile: Remove.
26073
26074 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
26075
26076         [BZ #13058]
26077         * manual/examples/argp-ex1.c (main): Format definition in GNU
26078         style.
26079         * manual/examples/argp-ex2.c (main): Likewise.
26080         * manual/examples/argp-ex3.c (main): Likewise.
26081         * manual/examples/argp-ex4.c (main): Likewise.
26082         * manual/examples/longopt.c (main): Use new-style prototype
26083         definition.
26084         * manual/examples/strncat.c (main): Specify return type and use
26085         (void) for arguments.
26086         * manual/examples/subopt.c (main): Use char **argv argument.
26087
26088 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26089
26090         [BZ #5077]
26091         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
26092         rounding modes.
26093
26094 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
26095
26096         [BZ #6907]
26097         * manual/string.texi (strchr): Change when strchrnul is
26098         recommended.
26099
26100 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
26101
26102         [BZ #174]
26103         * manual/locale.texi (setlocale): Document LOCPATH.
26104
26105 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26106
26107         [BZ #10210]
26108         * manual/process.texi (execle): Move @dots{} before last argument.
26109
26110 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
26111
26112         [BZ #12047]
26113         * manual/charset.texi (Generic Charset Conversion): Fix typo
26114         (LC_TYPE -> LC_CTYPE).
26115
26116 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
26117
26118         [BZ #5805]
26119         * manual/arith.texi (scalbn): Use @var{} on parameter names.
26120         (scalbnf): Likewise.
26121         (scalbnl): Likewise.
26122         (scalbln): Likewise.
26123         (scalblnf): Likewise.
26124         (scalblnl): Likewise.
26125         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
26126         (vwarnx): Likewise.
26127         (verr): Likewise.
26128         (verrx): Likewise.
26129         * manual/filesys.texi (telldir): Use braces around return type.
26130         * manual/llio.texi (mmap): Add space after comma.
26131         (mmap64): Likewise.
26132         * manual/math.texi (jn): Use @var{} on parameter names.
26133         (jnf): Likewise.
26134         (jnl): Likewise.
26135         (yn): Likewise.
26136         (ynf): Likewise.
26137         (ynl): Likewise.
26138         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
26139         line.
26140         * manual/resource.texi (ulimit): Use @dots{} instead of literal
26141         "...".
26142         (sched_get_priority_min): Remove semicolon on @deftypefun line.
26143         (sched_get_priority_max): Likewise.
26144         * manual/signal.texi (sigvec): Add space after comma.
26145         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
26146         names.
26147         (if_indextoname): Likewise.
26148         (if_freenameindex): Likewise.
26149         (sendto): Use ',' instead of '.' in prototype.
26150         * manual/startup.texi (syscall): Use @dots{} instead of literal
26151         "...".
26152         * manual/stdio.texi (__fpending): Separate initial words of
26153         paragraph from @deftypefun line.
26154         * manual/syslog.texi (syslog): Use @dots{} instead of literal
26155         "...".
26156         (vsyslog): Use @var{} on parameter names.
26157         * manual/terminal.texi (stty): Use @var{} on parameter names.
26158         * manual/users.texi (getutmp): Use @var{} on parameter names.
26159         (getutmpx): Likewise.
26160
26161 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26162
26163         [BZ #6884]
26164         * manual/stdio.texi (fopen): Fix typos in description of
26165         ",ccs=STRING".
26166
26167 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
26168
26169         [BZ #4026]
26170         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
26171         get clock_id definition.
26172
26173 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
26174
26175         [BZ #4822]
26176         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
26177         (madvise): Cast every argument to void on its own.
26178
26179 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26180
26181         [BZ #9902]
26182         * manual/startup.texi (Exit Status): Fix typo.
26183
26184 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26185
26186         [BZ #10140]
26187         * manual/examples/argp-ex1.c: Include <stdlib.h>.
26188         * manual/examples/argp-ex2.c: Likewise.
26189         * manual/examples/argp-ex3.c: Likewise.
26190
26191 2012-02-16  Richard Henderson  <rth@redhat.com>
26192
26193         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
26194         * sysdeps/s390/s390-32/initfini.c: Remove.
26195         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
26196         * sysdeps/s390/s390-64/initfini.c: Remove.
26197
26198 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
26199
26200         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
26201         compiler output for sysdeps/generic/initfini.c.
26202         * sysdeps/sh/elf/initfini.c: Remove file.
26203
26204 2012-02-16  David S. Miller  <davem@davemloft.net>
26205
26206         [BZ #11494]
26207         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
26208
26209         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
26210         * sysdeps/sparc/crti.S: New file.
26211         * sysdeps/sparc/crtn.S: New file.
26212         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
26213         * sysdeps/sparc/sparc64/Makefile: Likewise.
26214
26215 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
26216
26217         [BZ #3335]
26218         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
26219
26220 2012-02-15  Roland McGrath  <roland@hack.frob.com>
26221
26222         [BZ #4822]
26223         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
26224
26225         * mach/devstream.c (cookie_io_functions_t): Macro removed.
26226         (write, read, close): Likewise.
26227         Patch by Aurelien Jarno <aurelien@aurel32.net>.
26228
26229 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
26230
26231         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
26232         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
26233         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
26234         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
26235         <bits/signalfd.h>.
26236         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
26237         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26238         bits/signalfd.h.
26239
26240 2012-02-14  Marek Polacek  <polacek@redhat.com>
26241
26242         * sysdeps/x86_64/crti.S: New file.
26243         * sysdeps/x86_64/crtn.S: New file.
26244         * sysdeps/x86_64/elf/initfini.c: Remove file.
26245
26246 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26247
26248         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
26249         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
26250         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
26251         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
26252         <bits/inotify.h>.
26253         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
26254         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26255         bits/inotify.h.
26256
26257 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26258
26259         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
26260         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
26261         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
26262         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
26263         <bits/eventfd.h>.
26264         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
26265         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26266         bits/eventfd.h.
26267
26268 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
26269
26270         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
26271         __feraiseexcept instead of feraiseexcept.
26272
26273         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
26274         nanosleep invocations.
26275         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
26276         strings, and add error checking for a nanosleep invocations.
26277
26278 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26279
26280         Replace FSF snail mail address with URLs, as per GNU coding standards.
26281         Most of the snail mail addresses were wrong anyway, and omitting
26282         them makes the source code easier to maintain.  Almost all of the
26283         changes are to license notices and to locale LC_IDENTIFICATION
26284         addresses, except for this one:
26285         * manual/libc.texinfo: In "Published by", give the FSF's URL,
26286         not its snail mail address.
26287
26288 2012-02-09  Richard Henderson  <rth@twiddle.net>
26289
26290         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
26291         of kernel-features.h.
26292
26293         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
26294
26295 2012-02-08  Marek Polacek  <polacek@redhat.com>
26296
26297         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
26298         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
26299         * sysdeps/gnu/_G_config.h: Likewise.
26300         * sysdeps/generic/_G_config.h: Likewise.
26301
26302 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
26303
26304         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
26305         tests.
26306         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26307
26308         * sysdeps/powerpc/powerpc32/crti.S: New file.
26309         * sysdeps/powerpc/powerpc32/crtn.S: New file.
26310         * sysdeps/powerpc/powerpc64/crti.S: New file.
26311         * sysdeps/powerpc/powerpc64/crtn.S: New file.
26312
26313         * Makeconfig (have-initfini): Don't set.
26314         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
26315         * configure.in (nopic_initfini): Don't substitute.
26316         * config.h.in (HAVE_INITFINI): Don't #undef.
26317         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
26318         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
26319
26320 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
26321
26322         Support crti.S and crtn.S provided directly by architectures.
26323         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
26324         [crti.S in sysdirs] (omit-deps): Likewise.
26325         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
26326         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
26327         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
26328         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
26329         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
26330         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
26331         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
26332         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
26333         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
26334         compiler output for sysdeps/generic/initfini.c.
26335         * sysdeps/i386/elf/Makefile: Remove file.
26336         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
26337
26338 2012-02-07  Marek Polacek  <polacek@redhat.com>
26339
26340         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
26341         * sysdeps/gnu/_G_config.h: Likewise.
26342         * sysdeps/mach/hurd/_G_config.h: Likewise.
26343
26344 2012-02-07  Marek Polacek  <polacek@redhat.com>
26345
26346         * math/Makefile (tests): Add tst-CMPLX2.
26347         * math/tst-CMPLX2.c: New file.
26348
26349 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
26350
26351         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
26352
26353         * math/libm-test.inc (jn_test): Add missing L suffix.
26354
26355 2012-02-06  Marek Polacek  <polacek@redhat.com>
26356
26357         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
26358         * sysdeps/i386/fpu/e_powf.S: Likewise.
26359         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
26360         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
26361         * sysdeps/i386/fpu/e_acosh.S: Likewise.
26362         * sysdeps/i386/fpu/e_pow.S: Likewise.
26363         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
26364         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
26365         * sysdeps/i386/fpu/s_expm1.S: Likewise.
26366         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
26367         * sysdeps/i386/fpu/e_log2.S: Likewise.
26368         * sysdeps/i386/fpu/e_log2l.S: Likewise.
26369         * sysdeps/i386/fpu/e_scalb.S: Likewise.
26370         * sysdeps/i386/fpu/e_powl.S: Likewise.
26371         * sysdeps/i386/fpu/s_log1p.S: Likewise.
26372         * sysdeps/i386/fpu/e_log10f.S: Likewise.
26373         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
26374         * sysdeps/i386/fpu/e_logl.S: Likewise.
26375         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
26376         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
26377         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
26378         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
26379         * sysdeps/i386/fpu/e_log2f.S: Likewise.
26380         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
26381         * sysdeps/i386/fpu/e_log.S: Likewise.
26382         * sysdeps/i386/fpu/s_cexp.S: Likewise.
26383         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
26384         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
26385         * sysdeps/i386/fpu/e_logf.S: Likewise.
26386         * sysdeps/i386/fpu/e_log10l.S: Likewise.
26387         * sysdeps/i386/fpu/e_atanh.S: Likewise.
26388         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
26389         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
26390         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
26391         * sysdeps/i386/fpu/e_log10.S: Likewise.
26392         * sysdeps/i386/fpu/s_frexp.S: Likewise.
26393         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
26394         * sysdeps/i386/fpu/s_asinh.S: Likewise.
26395         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
26396         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
26397         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
26398         * sysdeps/i386/asm-syntax.h: Likewise.
26399         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
26400         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
26401         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
26402         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
26403         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
26404         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
26405         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
26406         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
26407         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
26408         * sysdeps/powerpc/sysdep.h: Likewise.
26409         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
26410         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
26411
26412 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
26413
26414         [BZ #411]
26415         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
26416
26417 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
26418
26419         * sysdeps/i386/sysdep.h: Include <features.h>.
26420         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
26421         version.
26422
26423 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
26424
26425         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
26426         Define.
26427         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
26428         LOAD_PIC_REG_STR.
26429
26430 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26431
26432         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
26433         (SETUP_PIC_REG): Use GET_PC_THUNK.
26434         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
26435         macro.
26436
26437 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26438
26439         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
26440         for non-PIC compilation.
26441         (SETUP_PIC_REG): Add .p2align directive.
26442         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
26443         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
26444         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
26445         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
26446         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
26447         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
26448         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
26449         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26450         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
26451         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
26452         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
26453         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
26454         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
26455         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
26456         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
26457         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
26458         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
26459         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
26460         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
26461         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
26462         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
26463         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
26464         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
26465         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
26466         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
26467         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
26468         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26469         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
26470         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
26471         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
26472         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
26473         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26474         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
26475         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
26476         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
26477         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
26478         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
26479         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
26480         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
26481         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
26482         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
26483
26484 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26485
26486         * math/tst-CMPLX.c: Include <stdio.h>.
26487
26488 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
26489
26490         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
26491         float.
26492         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
26493         * sysdeps/sparc/bits/mathdef.h: Likewise.
26494
26495 2012-01-31  Marek Polacek  <polacek@redhat.com>
26496
26497         * libio/libio.h: Don't define _PARAMS.
26498         * locale/programs/config.h: Don't define PARAMS.
26499         * stdlib/strtol_l.c: Likewise.
26500         (__strtol_l): Remove PARAMS from the prototype.
26501
26502 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
26503
26504         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
26505         names.  Just use the correct names.  Remove unnecessary wrapper
26506         functions.
26507         * malloc/arena.c: Likewise.
26508         * malloc/hooks.c: Likewise.
26509
26510         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
26511         ARENA_TEST says not to.  Simplify test for creation of a new arena.
26512         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
26513
26514 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
26515
26516         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
26517         into tail calls.
26518         (update_get_addr): New function.
26519         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
26520         GET_ADDR_MODULE parameter.
26521
26522 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
26523
26524         * crypt/cert.c: Remove __STDC__ conditionals.
26525         * crypt/crypt-entry.c: Likewise.
26526         * crypt/crypt_util.c: Likewise.
26527         * libio/filedoalloc.c: Likewise.
26528         * libio/fileops.c: Likewise.
26529         * libio/genops.c: Likewise.
26530         * libio/iofclose.c: Likewise.
26531         * libio/iofdopen.c: Likewise.
26532         * libio/iofopen.c: Likewise.
26533         * libio/iofopen64.c: Likewise.
26534         * libio/iogetdelim.c: Likewise.
26535         * libio/iopopen.c: Likewise.
26536         * libio/obprintf.c: Likewise.
26537         * libio/oldfileops.c: Likewise.
26538         * libio/oldiofclose.c: Likewise.
26539         * libio/oldiofdopen.c: Likewise.
26540         * libio/oldiofopen.c: Likewise.
26541         * libio/oldiopopen.c: Likewise.
26542         * libio/wfiledoalloc.c: Likewise.
26543         * libio/wgenops.c: Likewise.
26544         * locale/programs/xmalloc.c: Likewise.
26545         * misc/syslog.c: Likewise.
26546         * stdio-common/xbug.c: Likewise.
26547         * string/memchr.c: Likewise.
26548         * string/memcmp.c: Likewise.
26549         * string/memrchr.c: Likewise.
26550         * string/rawmemchr.c: Likewise.
26551         * sysdeps/posix/getcwd.c: Likewise.
26552         * time/strftime_l.c: Likewise.
26553
26554 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
26555
26556         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
26557         * config.make.in (config-cflags-sse2avx): Define.
26558         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
26559         Fix typo.
26560
26561 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
26562
26563         * scripts/config.guess: Update from upstream config git repository.
26564         * scripts/config.sub: Likewise.
26565
26566 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
26567
26568         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
26569         (EM_NUM): Update.
26570         (R_TILEPRO_*, R_TILEGX_*): New macros.
26571
26572         * scripts/firstversions.awk: Fix bug in version range handling.
26573
26574         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
26575
26576         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
26577
26578         * include/sys/epoll.h: New file.
26579         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
26580         libc_hidden_def.
26581
26582 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
26583
26584         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
26585         Avoid unnecessary __WORDSIZE == 64 test.
26586         (fmaxf): Use VEX format if possible.
26587         (fmax): Likewise.
26588         (fminf): Likewise.
26589         (fmin): Likewise.
26590
26591         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
26592         * math/math_private.h: Remove libc_fegetround* and
26593         libc_fesetround*.
26594         * sysdeps/i386/configure.in: Check for -msse2avx.
26595         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
26596         also if SSE2AVX is defined.
26597         Remove libc_fegetround* and libc_fesetround*.
26598         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
26599         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
26600         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
26601         of HAS_YMM_USABLE.
26602         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
26603         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
26604         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
26605         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
26606         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
26607
26608         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
26609
26610 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26611
26612         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
26613         size is not set.
26614         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
26615
26616 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
26617
26618         [BZ #13618]
26619         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
26620         relocation.
26621         * Makeconfig (libm): Define.
26622         * elf/Makefile: Add rules to build and run tst-relsort1.
26623         * elf/tst-relsort1.c: New file.
26624         * elf/tst-relsort1mod1.c: New file.
26625         * elf/tst-relsort1mod2.c: New file.
26626
26627 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
26628
26629         * math/s_ldexp.c: Remove __STDC__ conditionals.
26630         * math/s_ldexpf.c: Likewise.
26631         * math/s_ldexpl.c: Likewise.
26632         * math/s_nextafter.c: Likewise.
26633         * math/s_nexttowardf.c: Likewise.
26634         * math/s_significand.c: Likewise.
26635         * math/s_significandf.c: Likewise.
26636         * math/s_significandl.c: Likewise.
26637         * math/w_jnl.c: Likewise.
26638         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
26639         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
26640         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
26641         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
26642         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
26643         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
26644         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
26645         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
26646         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
26647         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
26648         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
26649         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
26650         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
26651         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
26652         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
26653         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
26654         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
26655         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
26656         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
26657         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
26658         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
26659         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
26660         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
26661         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
26662         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
26663         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
26664         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
26665         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
26666         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
26667         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
26668         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
26669         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
26670         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
26671         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
26672         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
26673         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
26674         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
26675         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
26676         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
26677         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
26678         * sysdeps/ieee754/k_standard.c: Likewise.
26679         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
26680         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
26681         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
26682         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
26683         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
26684         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
26685         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
26686         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
26687         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
26688         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
26689         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
26690         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
26691         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
26692         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
26693         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
26694         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
26695         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
26696         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
26697         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
26698         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
26699         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
26700         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
26701         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
26702         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
26703         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
26704         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
26705         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
26706         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
26707         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
26708         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
26709         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
26710         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
26711         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
26712         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
26713         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
26714         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
26715         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
26716         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
26717         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
26718         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
26719         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
26720         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
26721         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
26722         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
26723         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
26724         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
26725         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
26726         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
26727         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
26728         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
26729         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
26730         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
26731         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
26732         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
26733         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
26734         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
26735         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
26736         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
26737         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
26738         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
26739         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
26740         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
26741         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
26742         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
26743         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
26744         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
26745         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
26746         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
26747         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
26748         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
26749         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
26750         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
26751         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
26752         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
26753         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
26754         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
26755         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
26756         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
26757         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
26758         * sysdeps/ieee754/s_matherr.c: Likewise.
26759         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
26760         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
26761         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
26762         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
26763
26764 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
26765
26766         * crypt/md5.h: Remove __STDC__ conditionals.
26767         * libio/libioP.h: Likewise.
26768         * locale/programs/config.h: Likewise.
26769         * sysdeps/generic/sysdep.h: Likewise.
26770         * sysdeps/i386/asm-syntax.h: Likewise.
26771         * sysdeps/s390/asm-syntax.h: Likewise.
26772         * sysdeps/unix/sysdep.h: Likewise.
26773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
26774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
26775
26776 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
26777
26778         * libio/libio.h: Remove __STDC__ conditionals.
26779         * malloc/obstack.h: Likewise.
26780         * math/complex.h: Likewise.
26781         * math/math.h: Likewise.
26782         * sysdeps/generic/_G_config.h: Likewise.
26783         * sysdeps/gnu/_G_config.h: Likewise.
26784         * sysdeps/mach/hurd/_G_config.h: Likewise.
26785         * sysdeps/powerpc/bits/mathdef.h: Likewise.
26786         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
26787         * sysdeps/sparc/bits/mathdef.h: Likewise.
26788
26789 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
26790
26791         [BZ #13583]
26792         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
26793         Clean up HAS_* macros.
26794         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
26795         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
26796         possible.
26797         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
26798         HAS_AVX.
26799         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
26800         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
26801         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
26802         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
26803         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
26804
26805 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
26806
26807         * elf/tst-unique3.cc (gets): Remove declaration.
26808         * elf/tst-unique3lib.cc (gets): Likewise.
26809         * elf/tst-unique3lib2.cc (gets): Likewise.
26810         * elf/tst-unique4.cc (gets): Likewise.
26811
26812 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
26813
26814         * include/stdio.h: Add C++ protection.  Add gets declarations and
26815         definitions.
26816         * debug/tst-chk1.c: Don't declare gets here.
26817         * stdio-common/tst-gets.c: Likewise.
26818
26819 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
26820
26821         * posix/glob: Remove directory.
26822
26823 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
26824
26825         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
26826
26827 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
26828
26829         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
26830         of the non-standard EPFNOSUPPORT.
26831
26832 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26833
26834         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
26835         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
26836         ANYWHERE set to 1 only on KERN_NO_SPACE error.
26837
26838 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
26839
26840         * wcsmbs/uchar.h: Test __STDC_VERSION__.
26841
26842 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
26843
26844         * nscd/aicache.c (addhstaiX): Do not cache negative results of
26845         transient errors.
26846         * nscd/grpcache.c (cache_addgr): Likewise.
26847         * nscd/hstcache.c (cache_addhst): Likewise.
26848         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26849         * nscd/pwdcache.c (cache_addpw): Likewise.
26850         * nscd/servicescache.c (cache_addserv): Likewise.
26851
26852 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
26853
26854         * malloc/malloc.c: Various cleanups.
26855         * malloc/hooks.c: Likewise.
26856
26857         * stdlib/Makefile (tests): Add bug-fmtmsg1.
26858         * stdlib/bug-fmtmsg1.c: New file.
26859
26860         * stdlib/fmtmsg.c (init): Add missing unlock.
26861         Patch by Peng Haitao <penght@cn.fujitsu.com>.
26862
26863 2012-01-12  Marek Polacek  <polacek@redhat.com>
26864
26865         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
26866         and _GNU_SOURCE.
26867
26868 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
26869
26870         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
26871         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
26872         macro to ensure uniqueness of label name.
26873         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
26874         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
26875
26876 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
26877
26878         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
26879
26880         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
26881         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
26882         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
26883         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
26884
26885 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
26886
26887         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
26888
26889         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
26890         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
26891         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
26892
26893         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
26894
26895         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
26896         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
26897         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
26898         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
26899
26900         * math/bits/math-finite.h: Add ldexp support.
26901
26902 2012-01-10  Marek Polacek  <polacek@redhat.com>
26903
26904         * locale/programs/localedef.h (show_archive_content): Add noreturn
26905         attribute.
26906
26907 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
26908
26909         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
26910
26911 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
26912
26913         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
26914
26915         * io/Makefile (headers): Add bits/poll2.h.
26916
26917 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
26918
26919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
26920         typo #include statement.
26921
26922 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
26923
26924         * include/sys/cdefs.h: Define __attribute_alloc_size.
26925         * catgets/gencat.c: Add alloc_size attribute and apply consistently
26926         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
26927         * elf/pldd.c: Likewise.
26928         * iconv/iconv_charmap.c: Likewise.
26929         * iconv/iconvconfig.c: Likewise.
26930         * iconv/strtab.c: Likewise.
26931         * locale/programs/locale.c: Likewise.
26932         * locale/programs/localedef.h: Likewise.
26933         * locale/programs/simple-hash.c: Likewise.
26934         * nscd/nscd.h: Likewise.
26935         * nss/makedb.c: Likewise.
26936         * sysdeps/generic/ldconfig.h: Likewise.
26937         * locale/programs/localedef.c: Remove xmalloc prototype.
26938         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
26939
26940 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26941
26942         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
26943         appropriate.
26944
26945 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
26946
26947         * math/Makefile (tests): Add tst-CMPLX.
26948         * math/tst-CMPLX.c: New file.
26949
26950         * math/complex.h (CMPLXL): Fix typo.
26951
26952         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
26953         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
26954         GLIBC_2.16.
26955         * debug/tst-chk1.c: Add poll and ppoll tests.
26956         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
26957         * include/sys/poll.h: Add hidden proto for ppoll.
26958         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
26959         * sysdeps/mach/hurd/ppoll.c: Likewise.
26960         * io/ppoll.c: Likewise.
26961         * debug/poll_chk.c: New file.
26962         * debug/ppoll_chk.c: New file.
26963         * include/bits/poll2.h: New file.
26964         * io/bits/poll2.h: New file.
26965
26966         [BZ #1350]
26967         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
26968
26969         * configure.in: static is always set to yes.  Remove.
26970         * config.make.in: Don't set build-static.
26971         * Makeconfig: Remove use of build-static.
26972         * dlfcn/Makefile: Likewise.
26973         * elf/Makefile: Likewise.
26974         * math/Makefile: Likewise.
26975         * misc/Makefile: Likewise.
26976         * nptl/Makefile: Likewise.
26977         * sysdeps/mach/hurd/Makefile: Likewise.
26978
26979         * configure.in: PWD_P is not used anymore.
26980         * config.make.in: Remove PWD_P entry.
26981
26982         * configure.in: Remove last remnants of RANLIB.
26983         No need to check for signed size_t anymore.
26984         Don't set libc_commonpagesize and libc_relro_required here for Alpha
26985         and IA-64.
26986         Remove __builtin_expect test because we require at least gcc 3.4.
26987         * aclocal.m4: Likewise.
26988
26989         * wcsmbs/mbrtoc16.c: Implement using towc function.
26990         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
26991         * wcsmbs/wcsmbsload.c: Likewise.
26992         * iconv/gconv_simple.c: Likewise.
26993         * iconv/gconv_int.h: Likewise.
26994         * iconv/gconv_builtin.h: Likewise.
26995         * iconv/iconv_prog.c: Remove CHAR16 handling.
26996
26997         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
26998
26999         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
27000
27001         * configure.in: Remove --with-elf and --enable-bounded options.
27002         Dont set base_machine for ia64.  More non-ELF conditions removed.
27003         Remove testing and setting of leading underscore information.
27004         * config.make.in (build-bounded): Set to no.
27005         * config.h.in: Remove NO_UNDERSCORES entry.
27006         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
27007         them.
27008         * csu/start.c: Remove !NO_UNDERSCORE code.
27009         * locale/localeinfo.h: Likewise.
27010         * sysdeps/generic/machine-gmon.h: Likewise.
27011         * sysdeps/generic/sysdep.h: Likewise.
27012         * sysdeps/i386/sysdep.h: Likewise.
27013         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
27014         * sysdeps/mach/sysdep.h: Likewise.
27015         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27016         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27017         * sysdeps/sh/sysdep.h: Likewise.
27018         * sysdeps/sparc/sparc32/alloca.S: Likewise.
27019         * sysdeps/unix/i386/sysdep.S: Likewise.
27020         * sysdeps/unix/sparc/start.c: Likewise.
27021         * sysdeps/unix/sparc/sysdep.S: Likewise.
27022         * sysdeps/unix/sparc/sysdep.h: Likewise.
27023         * sysdeps/unix/start.c: Likewise.
27024         * sysdeps/unix/x86_64/sysdep.S: Likewise.
27025         * sysdeps/x86_64/sysdep.h: Likewise.
27026
27027 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
27028
27029         [BZ #13553]
27030         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
27031         for non-gcc.
27032         * argp/argp-fmtstream.h: Use const instead __const.
27033         * argp/argp.h: Likewise.
27034         * assert/assert.h: Likewise.
27035         * bits/fenv.h: Likewise.
27036         * bits/sched.h: Likewise.
27037         * bits/sigset.h: Likewise.
27038         * bits/sigthread.h: Likewise.
27039         * catgets/nl_types.h: Likewise.
27040         * conform/data/pthread.h-data: Likewise.
27041         * crypt/crypt-private.h: Likewise.
27042         * crypt/crypt.h: Likewise.
27043         * crypt/crypt_util.c: Likewise.
27044         * ctype/ctype.h: Likewise.
27045         * debug/execinfo.h: Likewise.
27046         * debug/mbsnrtowcs_chk.c: Likewise.
27047         * debug/mbsrtowcs_chk.c: Likewise.
27048         * debug/wcsnrtombs_chk.c: Likewise.
27049         * debug/wcsrtombs_chk.c: Likewise.
27050         * debug/wcstombs_chk.c: Likewise.
27051         * dirent/dirent.h: Likewise.
27052         * dlfcn/dlfcn.h: Likewise.
27053         * elf/neededtest4.c: Likewise.
27054         * grp/grp.h: Likewise.
27055         * gshadow/gshadow.h: Likewise.
27056         * iconv/gconv.h: Likewise.
27057         * iconv/gconv_int.h: Likewise.
27058         * iconv/gconv_simple.c: Likewise.
27059         * iconv/iconv.h: Likewise.
27060         * iconv/loop.c: Likewise.
27061         * iconv/skeleton.c: Likewise.
27062         * include/aio.h: Likewise.
27063         * include/aliases.h: Likewise.
27064         * include/argz.h: Likewise.
27065         * include/arpa/inet.h: Likewise.
27066         * include/assert.h: Likewise.
27067         * include/dirent.h: Likewise.
27068         * include/dlfcn.h: Likewise.
27069         * include/execinfo.h: Likewise.
27070         * include/fcntl.h: Likewise.
27071         * include/fenv.h: Likewise.
27072         * include/glob.h: Likewise.
27073         * include/grp.h: Likewise.
27074         * include/libintl.h: Likewise.
27075         * include/mntent.h: Likewise.
27076         * include/netdb.h: Likewise.
27077         * include/pwd.h: Likewise.
27078         * include/rpc/netdb.h: Likewise.
27079         * include/sched.h: Likewise.
27080         * include/search.h: Likewise.
27081         * include/shadow.h: Likewise.
27082         * include/signal.h: Likewise.
27083         * include/stdio.h: Likewise.
27084         * include/stdlib.h: Likewise.
27085         * include/string.h: Likewise.
27086         * include/sys/socket.h: Likewise.
27087         * include/sys/stat.h: Likewise.
27088         * include/sys/statfs.h: Likewise.
27089         * include/sys/statvfs.h: Likewise.
27090         * include/sys/syslog.h: Likewise.
27091         * include/sys/time.h: Likewise.
27092         * include/sys/uio.h: Likewise.
27093         * include/time.h: Likewise.
27094         * include/unistd.h: Likewise.
27095         * include/utmp.h: Likewise.
27096         * include/wchar.h: Likewise.
27097         * include/wctype.h: Likewise.
27098         * inet/aliases.h: Likewise.
27099         * inet/arpa/inet.h: Likewise.
27100         * inet/netinet/ether.h: Likewise.
27101         * inet/netinet/in.h: Likewise.
27102         * intl/libintl.h: Likewise.
27103         * io/bits/fcntl2.h: Likewise.
27104         * io/fcntl.h: Likewise.
27105         * io/ftw.h: Likewise.
27106         * io/sys/poll.h: Likewise.
27107         * io/sys/stat.h: Likewise.
27108         * io/sys/statfs.h: Likewise.
27109         * io/sys/statvfs.h: Likewise.
27110         * io/utime.h: Likewise.
27111         * libio/bits/stdio.h: Likewise.
27112         * libio/bits/stdio2.h: Likewise.
27113         * libio/libio.h: Likewise.
27114         * libio/libioP.h: Likewise.
27115         * libio/stdio.h: Likewise.
27116         * locale/lc-ctype.c: Likewise.
27117         * locale/locale.h: Likewise.
27118         * login/utmp.h: Likewise.
27119         * malloc/arena.c: Likewise.
27120         * malloc/malloc.c: Likewise.
27121         * malloc/malloc.h: Likewise.
27122         * malloc/mcheck.c: Likewise.
27123         * malloc/mtrace.c: Likewise.
27124         * math/bits/mathcalls.h: Likewise.
27125         * math/fenv.h: Likewise.
27126         * math/math_private.h: Likewise.
27127         * misc/bits/error.h: Likewise.
27128         * misc/bits/syslog.h: Likewise.
27129         * misc/err.h: Likewise.
27130         * misc/error.h: Likewise.
27131         * misc/fstab.h: Likewise.
27132         * misc/mntent.h: Likewise.
27133         * misc/regexp.h: Likewise.
27134         * misc/search.h: Likewise.
27135         * misc/sgtty.h: Likewise.
27136         * misc/sys/mman.h: Likewise.
27137         * misc/sys/syslog.h: Likewise.
27138         * misc/sys/uio.h: Likewise.
27139         * misc/sys/xattr.h: Likewise.
27140         * misc/ttyent.h: Likewise.
27141         * nis/rpcsvc/ypclnt.h: Likewise.
27142         * nss/nss.h: Likewise.
27143         * posix/bits/unistd.h: Likewise.
27144         * posix/fnmatch.h: Likewise.
27145         * posix/glob.h: Likewise.
27146         * posix/sched.h: Likewise.
27147         * posix/spawn.h: Likewise.
27148         * posix/sys/wait.h: Likewise.
27149         * posix/unistd.h: Likewise.
27150         * posix/wordexp.h: Likewise.
27151         * pwd/pwd.h: Likewise.
27152         * resolv/netdb.h: Likewise.
27153         * resource/sys/resource.h: Likewise.
27154         * rt/aio.h: Likewise.
27155         * rt/bits/mqueue2.h: Likewise.
27156         * rt/mqueue.h: Likewise.
27157         * shadow/shadow.h: Likewise.
27158         * signal/signal.h: Likewise.
27159         * socket/send.c: Likewise.
27160         * socket/sendto.c: Likewise.
27161         * socket/sys/socket.h: Likewise.
27162         * stdio-common/printf.h: Likewise.
27163         * stdlib/bits/stdlib.h: Likewise.
27164         * stdlib/fmtmsg.h: Likewise.
27165         * stdlib/monetary.h: Likewise.
27166         * stdlib/stdlib.h: Likewise.
27167         * stdlib/ucontext.h: Likewise.
27168         * streams/stropts.h: Likewise.
27169         * string/argz.h: Likewise.
27170         * string/bits/string2.h: Likewise.
27171         * string/string.h: Likewise.
27172         * string/strings.h: Likewise.
27173         * sunrpc/rpc/auth.h: Likewise.
27174         * sunrpc/rpc/auth_des.h: Likewise.
27175         * sunrpc/rpc/clnt.h: Likewise.
27176         * sunrpc/rpc/netdb.h: Likewise.
27177         * sunrpc/rpc/pmap_clnt.h: Likewise.
27178         * sunrpc/rpc/xdr.h: Likewise.
27179         * sysdeps/generic/inttypes.h: Likewise.
27180         * sysdeps/generic/net/if.h: Likewise.
27181         * sysdeps/generic/sys/swap.h: Likewise.
27182         * sysdeps/gnu/net/if.h: Likewise.
27183         * sysdeps/gnu/utmpx.h: Likewise.
27184         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
27185         * sysdeps/i386/i486/bits/string.h: Likewise.
27186         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
27187         * sysdeps/s390/bits/string.h: Likewise.
27188         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
27189         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
27190         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27191         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
27192         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
27193         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
27194         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
27195         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
27196         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
27197         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27198         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
27199         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
27200         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
27201         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
27202         * sysdeps/unix/sysv/linux/readv.c: Likewise.
27203         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
27204         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
27205         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27206         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27207         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27208         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
27209         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
27210         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
27211         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
27212         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
27213         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
27214         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
27215         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
27216         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
27217         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
27218         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
27219         * sysvipc/sys/ipc.h: Likewise.
27220         * sysvipc/sys/msg.h: Likewise.
27221         * sysvipc/sys/sem.h: Likewise.
27222         * sysvipc/sys/shm.h: Likewise.
27223         * termios/termios.h: Likewise.
27224         * time/sys/time.h: Likewise.
27225         * time/time.h: Likewise.
27226         * wcsmbs/bits/wchar2.h: Likewise.
27227         * wcsmbs/uchar.h: Likewise.
27228         * wcsmbs/wchar.h: Likewise.
27229         * wctype/wctype.h: Likewise.
27230
27231         [BZ #13551]
27232         * Makeconfig: Remove all but ELF support including AIX support.
27233         * Makerules: Likewise.
27234         * config.h.in: Likewise.
27235         * config.make.in: Likewise.
27236         * configure: Likewise.
27237         * configure.in: Likewise.
27238         * csu/Makefile: Likewise.
27239         * csu/version.c: Likewise.
27240         * debug/Makefile: Likewise.
27241         * dlfcn/Makefile: Likewise.
27242         * elf/Makefile: Likewise.
27243         * extra-lib.mk: Likewise.
27244         * iconv/Makefile: Likewise.
27245         * include/libc-symbols.h: Likewise.
27246         * include/shlib-compat.h: Likewise.
27247         * resolv/Makefile: Likewise.
27248         * resolv/res_libc.c: Likewise.
27249         * rt/Makefile: Likewise.
27250         * sysdeps/i386/asm-syntax.h: Likewise.
27251         * sysdeps/i386/sysdep.h: Likewise.
27252         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
27253         * sysdeps/mach/sysdep.h: Likewise.
27254         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
27255         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
27256         * sysdeps/s390/asm-syntax.h: Likewise.
27257         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27258         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27259         * sysdeps/sh/sysdep.h: Likewise.
27260         * sysdeps/unix/sparc/sysdep.h: Likewise.
27261         * sysdeps/wordsize-32/divdi3.c: Likewise.
27262         * sysdeps/x86_64/sysdep.h: Likewise.
27263
27264         * argp/Versions: Remove _argp_unlock_xxx.
27265
27266         [BZ #13559]
27267         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
27268         * abilist/libBrokenLocale.abilist: Likewise.
27269         * abilist/libanl.abilist: Likewise.
27270         * abilist/libc.abilist: Likewise.
27271         * abilist/libcrypt.abilist: Likewise.
27272         * abilist/libdl.abilist: Likewise.
27273         * abilist/libm.abilist: Likewise.
27274         * abilist/libnsl.abilist: Likewise.
27275         * abilist/libpthread.abilist: Likewise.
27276         * abilist/libresolv.abilist: Likewise.
27277         * abilist/librt.abilist: Likewise.
27278         * abilist/libthread_db.abilist: Likewise.
27279         * abilist/libutil.abilist: Likewise.
27280         * abilist/libnss_db.abilist: New file.
27281
27282         * scripts/abilist.awk: Add support for indirect functions.
27283
27284         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
27285
27286         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
27287
27288         * shlib-versions: Remove entries for ports architectures.
27289
27290         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
27291         files in ports.
27292         * elf/stackguard-macros.h: Remove support for IA-64.
27293         * elf/tst-auditmod1.c: Likewise.
27294         * sysdeps/generic/ldsodefs.h: Likewise.
27295
27296         * sysdeps/unix/sysv/linux/configure.in: Ports should define
27297         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
27298         configure files.
27299
27300         [BZ #13552]
27301         * configure.in: Remove --enable-omitfp support.
27302         * FAQ.in: Adjust.
27303         * config.make.in: Likewise.
27304         * Makeconfig: Likewise.
27305         * manual/install.texi: Likewise.
27306
27307         In case anyone cares, the IA-64 architecture could move to ports.
27308         * sysdeps/ia64/*: Removed.
27309         * sysdeps/unix/sysv/linux/ia64/*: Removed.
27310         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
27311
27312         [BZ #13555]
27313         * configure.in: Remove entries for unsupported architectures.
27314
27315         [BZ #13533]
27316         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
27317         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
27318         routines.
27319         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
27320         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
27321         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
27322         fall back to using wcrtomb.
27323         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
27324         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
27325         renaming.
27326         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
27327         * wcsmbs/tst-c16c32-1.c: New file.
27328
27329         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
27330         local variable.
27331
27332         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
27333
27334         * elf/tst-unique3.cc: Add explicit declaration of gets.
27335         * elf/tst-unique3lib.cc: Likewise.
27336         * elf/tst-unique3lib2.cc: Likewise.
27337         * elf/tst-unique4.cc: Likewise.
27338
27339         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
27340
27341 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
27342
27343         [BZ #13566]
27344         * assert/assert.h (static_assert): Don't define for C++.
27345         * libio/stdio.h (gets): Do declare for C++ <= C++11.
27346         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
27347
27348 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
27349
27350         * iconv/loop.c (single loop): Fix assertion in storing of
27351         remaining bytes.
27352
27353         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
27354
27355 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
27356
27357         * posix/getconf.c: Update copyright year.
27358         * nss/getent.c: Likewise.
27359         * nss/makedb.c: Likewise.
27360         * iconv/iconvconfig.c: Likewise.
27361         * iconv/iconv_prog.c: Likewise.
27362         * elf/ldconfig.c: Likewise.
27363         * elf/pldd.c: Likewise.
27364         * elf/sotruss.ksh: Likewise.
27365         * catgets/gencat.c: Likewise.
27366         * csu/version.c: Likewise.
27367         * elf/ldd.bash.in: Likewise.
27368         * elf/sprof.c (print_version): Likewise.
27369         * locale/programs/locale.c: Likewise.
27370         * locale/programs/localedef.c: Likewise.
27371         * login/programs/pt_chown.c: Likewise.
27372         * nscd/nscd.c (print_version): Likewise.
27373         * debug/xtrace.sh: Likewise.
27374         * malloc/memusage.sh: Likewise.
27375         * malloc/mtrace.pl: Likewise.
27376         * debug/catchsegv.sh: Likewise.
27377
27378 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
27379
27380         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
27381         pure attribute.
27382
27383 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
27384
27385         [BZ #13533]
27386         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
27387         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
27388         transformations.
27389         * iconv/gconv_int.h: Likewise.
27390         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
27391         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
27392         from libc for GLIBC_2.16.
27393         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
27394         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
27395         * wcsmbs/uchar.h: Really define mbstate_t.
27396         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
27397         * wcsmbs/c16rtomb.c: New file.
27398         * wcsmbs/mbrtoc16.c: New file.
27399         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
27400         for C/POSIX locale.
27401         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
27402         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
27403
27404         * wcsmbs/wchar.h: Add missing __restrict.
27405
27406 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
27407
27408         [BZ #13532]
27409         * time/Makefile (routines): Add timespec_get.
27410         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
27411         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
27412         timespec for ISO C11.
27413         * time/timespec_get.c: New file.
27414         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
27415         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
27416
27417         [BZ #13531]
27418         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
27419         * stdlib/stdlib.h: Declare aligned_alloc.
27420         * Versions.def: Add GLIBC_2.16 for libc.
27421         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
27422
27423         [BZ 13527]
27424         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
27425         ISO C11.
27426
27427         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
27428         code.
27429
27430         [BZ #13528]
27431         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
27432
27433         [BZ #13529]
27434         * assert/assert.h (static_assert): Define.
27435
27436         * version.h: Update for 2.16 development version.
27437
27438         [BZ #13526]
27439         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
27440         _ISOC11_SOURCE.
27441
27442         * version.h (RELEASE): Bump for 2.15 release.
27443         * include/features.h (__GLIBC_MINOR__): Bump to 15.
27444
27445         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
27446         Patch by Marek Polacek <mpolacek@redhat.com>.
27447
27448         * bits/byteswap.h: Protect long long constants with __extension__.
27449         * sysdeps/i386/bits/byteswap.h: Likewise.
27450         * sysdeps/ia64/bits/byteswap.h: Likewise.
27451         * sysdeps/s390/bits/byteswap.h: Likewise.
27452         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27453
27454 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27455
27456         [BZ #13540]
27457         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
27458         destination buffer.
27459         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
27460
27461 2011-12-23  Marek Polacek  <polacek@redhat.com>
27462
27463         * elf/dl-addr.c (determine_info): Add inline keyword.
27464         * elf/tst-auditmod4b.c (check_avx): Likewise.
27465         * elf/tst-auditmod6b.c (check_avx): Likewise.
27466         * elf/tst-auditmod6c.c (check_avx): Likewise.
27467         * elf/tst-auditmod7b.c (check_avx): Likewise.
27468
27469 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
27470
27471         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
27472         !__SSE_MATH__.
27473
27474 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27475
27476         [BZ #13540]
27477         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
27478         processing for last bytes.
27479
27480 2011-08-06  Bruno Haible  <bruno@clisp.org>
27481
27482         [BZ #13061]
27483         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
27484         U+0385, not to U+1FEE.
27485
27486         [BZ #13062]
27487         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
27488         entry for U+00A5 U+0301.
27489
27490 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
27491
27492         [BZ #13166]
27493         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
27494         buffer for the output is too small.
27495
27496         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
27497         optimization.
27498
27499         [BZ #13185]
27500         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
27501         SSE flags if possible.
27502
27503 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27504
27505         [BZ #13540]
27506         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
27507         processing for last bytes.
27508
27509 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
27510
27511         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
27512         (syscall-list-default-options, syscall-list-default-condition)
27513         (syscall-list-includes): Define.
27514         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
27515         list of ABIs and options and #if conditions for each ABI.  Do not
27516         handle common syscalls between ABIs specially.
27517         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
27518         Remove.
27519         (syscall-list-variants, syscall-list-32bit-options)
27520         (syscall-list-32bit-condition, syscall-list-64bit-options)
27521         (syscall-list-64bit-condition): Define.
27522         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
27523         (syscall-list-variants, syscall-list-32bit-options)
27524         (syscall-list-32bit-condition, syscall-list-64bit-options)
27525         (syscall-list-64bit-condition): Define.
27526         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
27527         Remove.
27528         (syscall-list-variants, syscall-list-32bit-options)
27529         (syscall-list-32bit-condition, syscall-list-64bit-options)
27530         (syscall-list-64bit-condition): Define.
27531         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
27532         Remove.
27533         (syscall-list-variants, syscall-list-32bit-options)
27534         (syscall-list-32bit-condition, syscall-list-64bit-options)
27535         (syscall-list-64bit-condition): Define.
27536
27537 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
27538
27539         * locale/iso-639.def: Add brx entry.
27540
27541         [BZ #13328]
27542         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
27543         Proposed by Mariusz_Cukr <marcukr@op.pl>.
27544
27545         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
27546         __feraiseexcept_renamed.
27547
27548 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
27549
27550         [BZ #13538]
27551         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
27552         EPOLLET with unsigned values.
27553         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
27554         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
27555
27556         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
27557         to large cancellation.
27558         * math/s_cacoshf.c: Likewise.
27559         * math/s_cacoshl.c: Likewise.
27560
27561 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
27562
27563         [BZ #13305]
27564         [BZ #12786]
27565         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
27566         * math/s_cacoshf.c: Likewise.
27567         * math/s_cacoshl.c: Likewise.
27568
27569 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
27570
27571         [BZ #13439]
27572         * iconv/gconv.h: Define __GCONV_SWAP.
27573         * iconvdata/unicode.c: The swap bit must be stored in __flags.
27574         * iconvdata/utf-16.c: Likewise.
27575         * iconvdata/utf-32.c: Likewise.
27576
27577 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
27578
27579         [BZ #13524]
27580         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
27581         numerator after shifting it by one limb.
27582
27583 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
27584
27585         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
27586         under [__USE_EXTERN_INLINES].
27587
27588 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
27589
27590         [BZ #13446]
27591         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
27592
27593 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27594
27595         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
27596         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
27597         optimized code.
27598         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
27599         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
27600         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
27601         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
27602         for strncasecmp/strncasecmp_l compilation.
27603         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
27604         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
27605
27606 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
27607
27608         [BZ #13484]
27609         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
27610         of __asm__.
27611
27612 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
27613
27614         [BZ #13506]
27615         * time/tzfile.c (__tzfile_read): Check values from file header.
27616
27617 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
27618
27619         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
27620         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
27621         * powerpc/powerpc32/dl-start.S: Likewise.
27622         * powerpc/powerpc32/elf/start.S: Likewise.
27623         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
27624         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
27625         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
27626         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
27627         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
27628         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
27629         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
27630         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
27631         * powerpc/powerpc32/fpu/s_round.S: Likewise.
27632         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
27633         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
27634         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
27635         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
27636         * powerpc/powerpc32/memset.S: Likewise.
27637         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
27638         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
27639         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
27640         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
27641         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
27642         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
27643         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
27644         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
27645         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
27646         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
27647         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
27648         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
27649         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
27650
27651 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27652
27653         * math/libm-test.inc: Added more nearbyint tests.
27654         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
27655         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
27656         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
27657         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
27658
27659 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
27660
27661         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
27662         FD_CLOEXEC.
27663
27664 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27665
27666         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
27667         Add wcscpy-ssse3 wcscpy-c.
27668         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
27669         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
27670         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
27671         * sysdeps/x86_64/wcschr.S: New file.
27672         * sysdeps/x86_64/wcsrchr.S: New file.
27673         * string/test-strcmp.c: Remove checking of wcscmp function for
27674         wrong alignments.
27675         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
27676         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
27677         wcsrchr-sse2 wcsrchr-c.
27678         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
27679         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
27680         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
27681         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
27682         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
27683         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
27684         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
27685         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
27686         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
27687         * wcsmbc/wcschr.c (WCSCHR): New macro.
27688
27689 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27690
27691         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
27692         * wcsmbs/test-wcsrchr.c: New file.
27693         * string/test-strrchr.c: Add wcsrchr support.
27694         (WIDE): New macro.
27695         * wcsmbs/test-wcscpy.c: New file.
27696         * string/test-strcpy.c: Add wcscpy support.
27697         (WIDE): New macro.
27698
27699 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
27700
27701         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
27702         the inner loop.
27703
27704 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
27705
27706         [BZ #13472]
27707         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
27708
27709 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
27710
27711         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
27712         Minor optimizations.
27713
27714         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
27715         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
27716         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
27717
27718 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
27719
27720         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
27721         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
27722         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
27723         for gcc to avoid warnings.
27724         * inet/Makefile (tests): Add tst-checks.
27725         * inet/tst-checks.c: New file.
27726
27727         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
27728         warning.
27729
27730         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
27731         __wmemcmp_sse2.
27732
27733         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
27734         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
27735
27736         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
27737
27738 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
27739
27740         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
27741         problem.
27742
27743         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
27744
27745 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
27746
27747         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
27748         conditional on GCC version.
27749         (__arch_compare_and_exchange_val_8_acq)
27750         (__arch_compare_and_exchange_val_16_acq)
27751         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
27752         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
27753         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
27754
27755 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
27756
27757         * sysdeps/sh/backtrace.c: New file.
27758
27759 2011-12-02  Andreas Schwab  <schwab@redhat.com>
27760
27761         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
27762         parenthesis.
27763
27764 2011-12-01  Andreas Schwab  <schwab@redhat.com>
27765
27766         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
27767         falling back to utime.
27768
27769 2011-11-30  Andreas Schwab  <schwab@redhat.com>
27770
27771         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
27772         expectations for float.
27773
27774 2011-11-29  Andreas Schwab  <schwab@redhat.com>
27775
27776         * locale/weight.h (findidx): Add parameter len.
27777         * locale/weightwc.h (findidx): Likewise.
27778         * posix/fnmatch_loop.c (FCT): Adjust caller.
27779         * posix/regcomp.c (build_equiv_class): Likewise.
27780         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
27781         * posix/regexec.c (check_node_accept_bytes): Likewise.
27782         * string/strcoll_l.c (STRCOLL): Likewise.
27783         * string/strxfrm_l.c (STRXFRM): Likewise.
27784
27785 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
27786
27787         * Makefile.in: Remove CVSOPT handling.
27788         * configure.in: Remove use of AC_REVISION.
27789         * iconvdata/Makefile (distribute): No need to filter out CVS.
27790         * scripts/list-sources.sh: Remove CVS, subversion and monotone
27791         handling.
27792
27793 2011-11-16  Andreas Schwab  <schwab@redhat.com>
27794
27795         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
27796         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
27797         [USE_AS_STRNCASECMP_L]: Likewise.
27798         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
27799         NO_TLS_DIRECT_SEG_REFS.
27800         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
27801         Fix argument offsets for non-PIC.
27802         [USE_AS_STRNCASECMP_L]: Likewise.
27803         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
27804         NO_TLS_DIRECT_SEG_REFS.
27805
27806 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
27807
27808         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
27809         O_CLOEXEC.
27810         * locale/loadlocale.c (_nl_load_locale): Likewise.
27811
27812 2011-11-15  Andreas Schwab  <schwab@redhat.com>
27813
27814         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
27815         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
27816         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
27817         (SYSCALL_GETTIME): Set errno on error.
27818
27819         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
27820         count references to noai6ai_cached.
27821
27822 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
27823
27824         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
27825
27826         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
27827         FD_CLOEXEC for /proc/self/maps.
27828
27829         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
27830         FD_CLOEXEC for /proc/meminfo.
27831
27832         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
27833         gai.conf.
27834
27835         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
27836         FD_CLOEXEC for given file.
27837
27838         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
27839
27840         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
27841         FD_CLOEXEC for /etc/hosts.
27842         (_gethtent): Likewise.
27843
27844         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
27845
27846         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
27847         cancellation and set FD_CLOEXEC for /etc/netgroup.
27848
27849         * nss/nss_files/files-key.c (search): Don't allow cancellation when
27850         reading /etc/publickey.
27851
27852         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
27853         allow cancellation when reading /etc/group.
27854
27855         * nss/nss_files/files-alias.c (internal_setent): Don't allow
27856         cancellation.
27857         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
27858
27859         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
27860         when using data file.
27861
27862         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
27863
27864         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
27865         (write_nis_obj): Use "c" and "e" in fopen.
27866
27867         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
27868
27869         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
27870
27871         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
27872
27873         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
27874
27875         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
27876         locale.alias.
27877
27878         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
27879
27880         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
27881
27882         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
27883
27884         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
27885         file parsing and set FD_CLOEXEC.
27886
27887 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
27888
27889         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
27890
27891 2011-11-14  Andreas Schwab  <schwab@redhat.com>
27892
27893         * malloc/arena.c (arena_get2): Don't call reused_arena when
27894         _int_new_arena failed.
27895
27896 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
27897
27898         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
27899         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
27900         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
27901         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27902         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27903         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
27904         to compile strcasecmp and strncasecmp.
27905         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
27906         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
27907
27908         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
27909
27910 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
27911
27912         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
27913         locale-defines.sym to gen-as-const-headers.
27914         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
27915         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
27916         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
27917         to compile strcasecmp and strncasecmp.
27918         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
27919         strcasecmp_l and strncasecmp_l.
27920         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
27921         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
27922         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
27923         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
27924         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
27925         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
27926         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
27927         * sysdeps/i386/i686/multiarch/strncase.S: New file.
27928         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
27929         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
27930         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
27931
27932 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
27933
27934         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
27935         result of SYSDEP_GETTIME_CPU to retval.
27936         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
27937         parameter list to macro.  Remove trailing semicolon.  Adjust users.
27938
27939         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
27940         variable.
27941
27942         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
27943         mantissa words.
27944         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
27945
27946         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
27947         from unused variable.
27948
27949         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
27950         DWARF definitions.
27951         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
27952         for assembling.
27953
27954         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
27955         over namespaces.
27956
27957         * sunrpc/rpc_prot.c (rejected): Fix case value.
27958
27959         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
27960         unsigned long long int to avoid warnings in shift.
27961
27962         * posix/regex_internal.c (re_string_reconstruct): Actually use result
27963         of use of trans.
27964         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
27965         variable tmp.
27966
27967         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
27968         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
27969         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
27970
27971         * nis/nis_table.c (nis_list): Use variable of correct type for
27972         result of __follow_path call.
27973
27974 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27975
27976         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
27977         of math functions ceil, trunc, floor, round, and sqrt, when
27978         avaliable on the platform.
27979         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
27980         name clash.
27981         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
27982         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
27983         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
27984
27985 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
27986
27987         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
27988         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
27989
27990 2011-11-11  Roland McGrath  <roland@hack.frob.com>
27991
27992         * include/unistd.h: Fix __readlink return type.
27993         Reported by Chris Metcalf <cmetcalf@tilera.com>.
27994
27995 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
27996
27997         * stdlib/ucontext.h: Undo last change for makecontext.
27998
27999 2011-11-11  Andreas Schwab  <schwab@redhat.com>
28000
28001         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
28002
28003         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
28004         * setjmp/setjmp.h: Mark functions as non-leaf.
28005         * setjmp/bits/setjmp2.h: Likewise.
28006         * stdlib/ucontext.h: Likewise.
28007
28008 2011-11-10  Andreas Schwab  <schwab@redhat.com>
28009
28010         * malloc/arena.c (_int_new_arena): Don't increment narenas.
28011         (reused_arena): Don't check arena limit.
28012         (arena_get2): Atomically check arena limit.
28013
28014 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
28015
28016         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
28017         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
28018
28019         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
28020         instructions.
28021
28022 2011-11-07  Andreas Schwab  <schwab@redhat.com>
28023
28024         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
28025         handler when locking.
28026
28027         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
28028         Fix size of allocated buffer.
28029
28030 2011-11-04  Andreas Schwab  <schwab@redhat.com>
28031
28032         [BZ #10103]
28033         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
28034         declarations for long double functions.
28035         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
28036
28037         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
28038
28039 2011-11-03  Andreas Schwab  <schwab@redhat.com>
28040
28041         * nscd/nscd.c (main): Don't start AVC thread until credentials are
28042         installed.
28043
28044         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
28045         is disabled.
28046
28047 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28048
28049         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
28050
28051 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
28052
28053         * include/alloca.h (stackinfo_alloca_round): Define.
28054         (extend_alloca): Use it.
28055         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
28056         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
28057         here.
28058
28059         * scripts/check-local-headers.sh: Ignore libaudit.h.
28060
28061         * nscd/Makefile (extra-objs): Make recursively expanded.
28062
28063 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
28064
28065         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
28066         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
28067
28068         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
28069         * posix/tst-rfc3484-2.c: Likewise.
28070         * posix/tst-rfc3484-3.c: Likewise.
28071
28072         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
28073         process_vm_writev.
28074         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
28075         process_vm_writev.
28076         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
28077         process_vm_writev from libc using GLIBC_2.15 version.
28078
28079         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
28080
28081 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
28082
28083         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
28084         stack usage.
28085
28086 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
28087
28088         [BZ #13367]
28089         * nss/getent.c (initgroups_keys): Show error message in case no group
28090         names are given.
28091
28092         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
28093         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
28094         __bump_nl_timestamp.
28095         * nscd/connections (nscd_init): When host database is served open
28096         netlink socket and request notification about configuration changes.
28097         (main_loop_poll): Track netlink file descriptor and bump timestamp
28098         in case data becomes available.
28099         (main_loop_epoll): Likewise.
28100         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
28101         (database_pers_head): Add extra_data fileds.
28102         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
28103         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
28104         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
28105         Adjust caller.
28106         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
28107         in6ai data, call __free_in6ai.
28108         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
28109         Add -DHAVE_NETLINK.
28110         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
28111         interface information.  Reuse previous data if netlink timestamp
28112         is not changed.
28113         (__bump_nl_timestamp): New function.
28114         (__free_in6ai): New function.
28115
28116 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
28117
28118         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
28119         close_not_cancel_no_status here.
28120         (__check_pf): Reorganize code a bit to not call close twice if OOM.
28121
28122 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
28123
28124         [BZ #13276]
28125         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
28126         return value.
28127
28128         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
28129         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
28130         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
28131
28132 2011-07-03  Andreas Jaeger  <aj@suse.de>
28133
28134         [BZ #10709]
28135         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
28136         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
28137         * math/libm-test.inc (sin_test): Add test case.
28138
28139 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
28140
28141         [BZ #13337]
28142         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
28143         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
28144
28145         * elf/chroot_canon.c (chroot_canon): Cleanups.
28146
28147         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
28148
28149         [BZ #13335]
28150         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
28151         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
28152
28153         * string/test-strchr.c: Make usable for strchrnul testing.
28154         * string/test-strchrnul.c: New file.
28155         * string/Makefile (strop-tests): Add strchrnul.
28156
28157         * po/it.po: Update from translation team.
28158         * po/es.po: Likewise.
28159
28160 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
28161
28162         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
28163         the three constants needed as parameters.  Drop the others.
28164         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
28165         __m128i_strloadu_tolower.
28166         Create and initialize variable zero and use it in all the places
28167         where _mm_setzero_si128 was used.
28168
28169         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
28170         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
28171         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
28172         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
28173         anymore.
28174         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
28175         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
28176         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
28177         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
28178         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
28179         __mpranred, __mptan.
28180         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
28181         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
28182         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
28183         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
28184         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
28185         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
28186         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
28187         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
28188         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
28189
28190 2011-10-28  Andreas Schwab  <schwab@redhat.com>
28191
28192         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
28193         redefine if SHARED.
28194         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
28195
28196         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
28197         wide char related routines to wcsmbs subdir.
28198
28199 2011-10-27  Andreas Schwab  <schwab@redhat.com>
28200
28201         [BZ #13344]
28202         * misc/sys/cdefs.h (__THROWNL): Define.
28203         * posix/unistd.h: Use __THREADNL instead of __THREAD
28204         for memory synchronization functions.
28205
28206 2011-10-26  Roland McGrath  <roland@hack.frob.com>
28207
28208         [BZ #13349]
28209         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
28210         doesn't exist.
28211         * manual/stdio.texi (Obstack Streams): Node removed.
28212
28213 2011-10-26  Andreas Schwab  <schwab@redhat.com>
28214
28215         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
28216         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28217         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28218
28219         * math/math_private.h (math_force_eval): Allow non-addressable
28220         arguments.
28221         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
28222
28223 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28224
28225         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
28226         file is not needed.
28227
28228         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
28229         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
28230         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
28231         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
28232         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
28233         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
28234         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
28235         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
28236         Add AVX variants.
28237         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
28238         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
28239         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
28240         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
28241         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
28242         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
28243         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
28244         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
28245         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
28246         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
28247         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
28248         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
28249         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
28250         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
28251         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
28252         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
28253         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
28254         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
28255         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
28256
28257         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
28258         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
28259
28260         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
28261         place.  Use VEX encoding when compiling for AVX.
28262
28263 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28264
28265         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
28266         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
28267
28268         * string/test-strchr.c (do_test): Don't generate NUL bytes.
28269
28270 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28271
28272         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
28273         useless if() expression.
28274         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28275         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
28276         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
28277         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28278         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
28279         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28280         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28281         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28282         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
28283         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28284         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28285         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28286         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
28287         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28288         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
28289         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28290         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28291         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28292         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
28293
28294         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
28295
28296 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28297
28298         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
28299         condition.
28300         * elf/dl-fini.c (_dl_sort_fini): Likewise.
28301
28302 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28303
28304         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
28305         .text section.  Avoid duplicate constants.
28306         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
28307         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28308         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28309         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28310         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28311         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28312         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28313         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28314         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
28315         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
28316         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
28317         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
28318         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
28319         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
28320         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
28321         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
28322         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
28323         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
28324         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
28325         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28326         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
28327         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
28328         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
28329         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
28330         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
28331         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
28332         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
28333         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
28334         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
28335         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
28336         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
28337         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
28338         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
28339         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
28340         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
28341         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
28342         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
28343         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
28344         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
28345         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
28346         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
28347         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
28348         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
28349         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
28350         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
28351
28352 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
28353
28354         * sysdeps/x86_64/dla.h: Move to ...
28355         * sysdeps/x86_64/fpu/dla.h: ...here.
28356         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
28357         situations.  Use __builtin_fma only for gcc 4.6 and up.
28358
28359         * config.make.in: Add have-mfma4 entry.
28360         * configure.in: Substitute libc_cv_cc_fma4.
28361         * math/Makefile (dbl-only-routines): Add sincostab.
28362         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
28363         Use __sincostab not sincos.
28364         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
28365         name is a macro.
28366         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28367         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28368         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28369         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
28370         using __copysign.
28371         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
28372         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
28373         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
28374         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
28375         and __inv.
28376         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
28377         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
28378         __copysign.
28379         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
28380         define aliases when function name is a macro.
28381         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
28382         sysdeps/ieee754/dbl-64/sincos.tbl.
28383         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
28384         fma4-enabled routines.
28385         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
28386         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
28387         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
28388         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
28389         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
28390         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
28391         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
28392         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
28393         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
28394         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
28395         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
28396         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
28397         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
28398         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
28399         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
28400         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
28401         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
28402         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
28403         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
28404         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
28405         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
28406         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
28407         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
28408         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
28409         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
28410         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
28411         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
28412         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
28413         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
28414         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
28415
28416         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
28417         rename.
28418         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28419         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28420         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28421         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28422         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28423         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28424         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28425         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28426
28427 2011-10-24  Andreas Schwab  <schwab@redhat.com>
28428
28429         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
28430
28431 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28432
28433         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
28434
28435         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
28436         prediction.
28437         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
28438
28439         * string/strnlen.c: Don't define STRNLEN, reverse logic.
28440         Remove unused variable magic_bits.
28441         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
28442
28443         * string/strnlen.c: Define and use STRNLEN macro.
28444         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
28445         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
28446         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
28447         * wcsmbs/wcslen.c: Define and use WCSLEN.
28448         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
28449         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
28450         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
28451         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
28452         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
28453         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
28454         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
28455
28456 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28457
28458         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28459         strnlen-sse2-no-bsf.
28460         Rename strlen-no-bsf to strlen-sse2-no-bsf.
28461         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
28462         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
28463         Add strnlen support.
28464         (USE_AS_STRNLEN): New macro.
28465         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
28466         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
28467         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
28468         * sysdeps/x86_64/wcslen.S: New file.
28469
28470 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
28471
28472         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
28473         XMM-moves are used for copying on small sizes.
28474
28475 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28476
28477         * wcsmbs/Makefile (strop-tests): Add wcschr.
28478         * wcsmbs/test-wcschr.c: New file.
28479         * string/test-strchr.c: Update.
28480         Add wcschr support.
28481         (WIDE): New macro.
28482
28483 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28484
28485         * wcsmbs/Makefile (strop-tests): Add wcslen.
28486         * wcsmbs/test-wcslen.c: New file.
28487         * string/test-strlen.c: Update.
28488         Add wcslen support.
28489         (WIDE): New macro.
28490
28491 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28492
28493         * po/it.po: Update from translation team.
28494
28495 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28496
28497         * sysdeps/x86_64/wcscmp.S: Update.
28498         Fix wrong comparison semantics.
28499         wcscmp shall use signed comparison not unsigned.
28500         Don't use substraction to avoid overflow bug.
28501         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
28502         * wcsmbc/wcscmp.c: Likewise.
28503         * string/test-strcmp.c: Likewise.
28504         Add new tests to check cases with negative values.
28505
28506 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28507
28508         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
28509         * sysdeps/x86_64/dla.h: ...here.  New file.
28510         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
28511         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28512         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28513         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28514         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28515         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28516         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28517         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28518         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28519
28520 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
28521
28522         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
28523         __ynl_finite aliases.
28524
28525 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
28526
28527         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28528
28529         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
28530         define DLA_FMA.
28531         [DLA_FMA] (EMULV): Use DLA_FMA.
28532         [DLA_FMA] (MUL12): Use EMULV.
28533         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
28534         that are not needed.
28535         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28536         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28537         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28538         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28539         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28540         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28541         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28542
28543 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
28544
28545         * math/s_nan.c: Undef __nan.
28546         * math/s_nanf.c: Undef __nanf.
28547         * math/s_nanl.c: Undef __nanl.
28548         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
28549         "math_private.h".
28550
28551 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
28552
28553         * math/s_catan.c: Add branch predictions.
28554         * math/s_catanf.c: Likewise.
28555         * math/s_catanh.c: Likewise.
28556         * math/s_catanhf.c: Likewise.
28557         * math/s_catanhl.c: Likewise.
28558         * math/s_catanl.c: Likewise.
28559         * math/s_cexp.c: Likewise.
28560         * math/s_cexpf.c: Likewise.
28561         * math/s_cexpl.c: Likewise.
28562         * math/s_clog.c: Likewise.
28563         * math/s_clog10.c: Likewise.
28564         * math/s_clog10f.c: Likewise.
28565         * math/s_clog10l.c: Likewise.
28566         * math/s_clogf.c: Likewise.
28567         * math/s_clogl.c: Likewise.
28568         * math/s_csqrt.c: Likewise.
28569         * math/s_csqrtf.c: Likewise.
28570         * math/s_csqrtl.c: Likewise.
28571         * math/s_ctanf.c: Likewise.
28572         * math/s_ctanh.c: Likewise.
28573         * math/s_ctanhf.c: Likewise.
28574         * math/s_ctanhl.c: Likewise.
28575         * math/s_ctanl.c: Likewise.
28576
28577         * math/math_private.h: Define __nan, __nanf, __nanl.
28578         * math/s_cacosh.c: Include <math_private.h>.
28579         * math/s_cacoshl.c: Likewise.
28580         * math/s_casinh.c: Likewise.
28581         * math/s_casinhf.c: Likewise.
28582         * math/s_casinhl.c: Likewise.
28583         * math/s_ccos.c: Rely entire on ccosh.
28584         * math/s_ccosf.c: Rely entire on ccoshf.
28585         * math/s_ccosl.c: Rely entirely on ccoshl.
28586         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
28587         Remove tests for FE_INVALID.
28588         * math/s_ccoshf.c: Likewise.
28589         * math/s_ccoshl.c: Likewise.
28590         * math/s_csin.c: Likewise.
28591         * math/s_csinf.c: Likewise.
28592         * math/s_csinh.c Likewise.
28593         * math/s_csinhf.c: Likewise.
28594         * math/s_csinhl.c: Likewise.
28595         * math/s_csinl.c: Likewise.
28596         * math/s_ctan.c: Likewise.
28597         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
28598         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
28599         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
28600
28601 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
28602
28603         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
28604         compilation problems.
28605
28606         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
28607         __builtin_expect.
28608
28609 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
28610
28611         * sysdeps/i386/configure.in: Test for -mfma4 option.
28612         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
28613         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
28614         COMMON_CPUID_INDEX_80000001.
28615         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
28616         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
28617         use it if FMA3 is not supported.
28618         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
28619
28620         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
28621         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28622
28623 2011-10-20  Andreas Schwab  <schwab@redhat.com>
28624
28625         [BZ #12892]
28626         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
28627         it would create a cycle with a link time dependency.
28628
28629 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
28630
28631         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
28632         instruction.
28633         * string/Makefile (strop-tests): Add rawmemchr.
28634         * string/test-rawmemchr.c: New file.
28635
28636         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
28637         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
28638         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
28639         when compiling str{,n}casecmp and when AVX is available.  Hook up
28640         new optimized code in initializers.
28641
28642 2011-10-19  Andreas Schwab  <schwab@redhat.com>
28643
28644         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
28645         __feraiseexcept instead of feraiseexcept.
28646
28647 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
28648
28649         * math/math_private.h: Define defaults for libc_fetestexcept and
28650         libc_feupdateenv.
28651         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
28652         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
28653         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
28654         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
28655         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
28656         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
28657         libc_fetestexcept and libc_feupdateenv.
28658
28659         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
28660         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
28661         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
28662         * sysdeps/x86_64/fpu/math_private.h: Define special version of
28663         libc_feholdexcept_setround.
28664
28665         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
28666         Add s_nearbyint-c and s_nearbyintf-c.
28667         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
28668         nearbyintf inlines.
28669         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
28670         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
28671         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
28672         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
28673
28674         * math/math_private.h: Define defaults for libc_fegetround,
28675         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
28676         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
28677         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
28678         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
28679         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
28680         standard functions.
28681         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
28682         Remove comments and hacks for old compiler versions.
28683         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
28684         libc_fegetround, libc_fesetround, libc_feholdexcept, and
28685         libc_feholdexceptl.
28686
28687 2011-10-18  Andreas Schwab  <schwab@redhat.com>
28688
28689         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
28690         (__feraiseexcept_renamed): Add __NTH.
28691         (feraiseexcept): Add __NTH.  Rename local variables to fix
28692         namespace violations.
28693
28694 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
28695
28696         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
28697
28698         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
28699
28700         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
28701         recently added interfaces.
28702         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
28703
28704         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
28705         about macro parameter expansion.
28706
28707         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
28708         __NO_MATH_INLINES is defined.  Cleanups.
28709
28710         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
28711         and __floorf is target has SSE4.1.
28712         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
28713         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
28714         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
28715         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
28716
28717         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
28718         name.
28719         (floorf): Likewise.
28720
28721         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
28722
28723 2011-10-17  Andreas Schwab  <schwab@redhat.com>
28724
28725         * misc/sys/cdefs.h: Fix last change.
28726
28727         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
28728         database lookup.
28729
28730 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
28731
28732         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
28733
28734         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
28735         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28736         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
28737         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28738         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28739         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
28740         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28741         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28742         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
28743         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
28744         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
28745         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
28746         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
28747         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
28748         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
28749         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
28750         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
28751         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
28752         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
28753         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
28754         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
28755         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
28756
28757         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
28758         ceil, ceilf, floor, floorf.
28759
28760         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
28761         Perform IRELATIVE relocations last.
28762
28763         * elf/do-rel.h: Add another parameter nrelative, replacing the
28764         local variable with the same name.  Change name of the function
28765         to end in Rel or Rela (uppercase).
28766         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
28767         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
28768         elf_dynamic_do_##reloc function.
28769
28770 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
28771
28772         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
28773         is sufficient, at least on modern CPUs.
28774
28775         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
28776
28777         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
28778         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
28779
28780         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
28781         __expl_finite.
28782         * math/bits/math-finite.h: Add entries for exp.
28783         * math/e_expl.c: Add __*_finite alias.
28784         * sysdeps/i386/fpu/e_exp.S: Likewise.
28785         * sysdeps/i386/fpu/e_expf.S: Likewise.
28786         * sysdeps/i386/fpu/e_expl.c: Likewise.
28787         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28788         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
28789         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
28790         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
28791         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
28792         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
28793         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
28794
28795         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
28796         is sufficient, at least on modern CPUs.
28797
28798         * ctype/ctype-info.c (__ctype_init): Define.
28799         * include/ctype.h (__ctype_init): Declare.
28800         (__ctype_b_loc): The variable is always initialized.
28801         (__ctype_toupper_loc): Likewise.
28802         (__ctype_tolower_loc): Likewise.
28803         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
28804         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
28805
28806 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
28807
28808         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
28809
28810         * configure.in: Also look in $cxxmachine/include for C++ system
28811         headers.
28812
28813 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28814
28815         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
28816         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
28817         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
28818         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
28819         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
28820         (USE_AS_WMEMCMP): New macro.
28821         Fixing indents.
28822         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
28823         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
28824         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
28825         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
28826         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28827         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
28828         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
28829         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
28830         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
28831         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
28832         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
28833         (USE_AS_WMEMCMP): New macro.
28834         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
28835         * sysdeps/string/test-memcmp.c: Update.
28836         Fix simple_wmemcmp.
28837         Add new tests.
28838         * wcsmbs/wmemcmp.c: Update.
28839         (WMEMCMP): New macro.
28840         Fix overflow bug.
28841
28842 2011-10-12  Andreas Jaeger  <aj@suse.de>
28843
28844         [BZ #13268]
28845         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
28846
28847 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
28848
28849         * libio/iofwide.c (do_length): Avoid warning.
28850
28851         * ctype/ctype.h (__isctype_f): Add missing __THROW.
28852
28853 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
28854
28855         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
28856
28857         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
28858         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
28859         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
28860         * sysdeps/i386/i686/fpu/e_log.S: New file.
28861         * sysdeps/i386/i686/fpu/e_logf.S: New file.
28862         * sysdeps/i386/i686/fpu/e_logl.S: New file.
28863
28864         * ctype/ctype.h: Add support for inlined isXXX functions when
28865         compiling C++ code.
28866
28867 2011-10-14  Andreas Schwab  <schwab@redhat.com>
28868
28869         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
28870
28871         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
28872
28873 2011-10-13  Roland McGrath  <roland@hack.frob.com>
28874
28875         [BZ #13291]
28876         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
28877
28878 2011-10-13  Andreas Schwab  <schwab@redhat.com>
28879
28880         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
28881         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
28882         feraiseexcept.
28883
28884         * sysdeps/x86_64/memrchr.S: Check for zero size.
28885
28886         * string/stratcliff.c: Add memrchr tests.
28887
28888 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28889
28890         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28891         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
28892         rawmemchr-sse2 rawmemchr-sse2-bsf.
28893         * sysdeps/i386/i686/multiarch/memchr.S: New file.
28894         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
28895         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
28896         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
28897         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
28898         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
28899         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
28900         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
28901         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
28902         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
28903         * string/memrchr.c (MEMRCHR): New macro.
28904
28905 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
28906
28907         Add integration with gcc's -ffinite-math-only and optimize wrapper
28908         functions in libm.
28909         * Versions.def: Define GLIBC_2.15 version for libm.
28910         * math/Makefile (headers): Add bits/math-finite.h.
28911         * math/bits/math-finite.h: New file.
28912         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
28913         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
28914         * math/e_acoshl.c: Add __*_finite alias.
28915         * math/e_acosl.c: Likewise.
28916         * math/e_asinl.c: Likewise.
28917         * math/e_atan2l.c: Likewise.
28918         * math/e_atanhl.c: Likewise.
28919         * math/e_coshl.c: Likewise.
28920         * math/e_exp10.c: Likewise.
28921         * math/e_exp10f.c: Likewise.
28922         * math/e_exp10l.c: Likewise.
28923         * math/e_exp2l.c: Likewise.
28924         * math/e_fmodl.c: Likewise.
28925         * math/e_gammal_r.c: Likewise.
28926         * math/e_hypotl.c: Likewise.
28927         * math/e_j0l.c: Likewise.
28928         * math/e_j1l.c: Likewise.
28929         * math/e_jnl.c: Likewise.
28930         * math/e_lgammal_r.c: Likewise.
28931         * math/e_log10l.c: Likewise.
28932         * math/e_log2l.c: Likewise.
28933         * math/e_logl.c: Likewise.
28934         * math/e_powl.c: Likewise.
28935         * math/e_sinhl.c: Likewise.
28936         * math/e_sqrtl.c: Likewise.
28937         * math/e_scalb.c: Completely rewritten and optimized.
28938         * math/e_scalbf.c: Likewise.
28939         * math/e_scalbl.c: Likewise.
28940         * math/w_acos.c: Likewise.
28941         * math/w_acosf.c: Likewise.
28942         * math/w_acosl.c: Likewise.
28943         * math/w_acosh.c: Likewise.
28944         * math/w_acoshf.c: Likewise.
28945         * math/w_acoshl.c: Likewise.
28946         * math/w_asin.c: Likewise.
28947         * math/w_asinf.c: Likewise.
28948         * math/w_asinl.c: Likewise.
28949         * math/w_atan2.c: Likewise.
28950         * math/w_atan2f.c: Likewise.
28951         * math/w_atan2l.c: Likewise.
28952         * math/w_atanh.c: Likewise.
28953         * math/w_atanhf.c: Likewise.
28954         * math/w_atanhl.c: Likewise.
28955         * math/w_exp10.c: Likewise.
28956         * math/w_exp10f.c: Likewise.
28957         * math/w_exp10l.c: Likewise.
28958         * math/w_fmod.c: Likewise.
28959         * math/w_fmodf.c: Likewise.
28960         * math/w_fmodl.c: Likewise.
28961         * math/w_j0.c: Likewise.
28962         * math/w_j0f.c: Likewise.
28963         * math/w_j0l.c: Likewise.
28964         * math/w_j1.c: Likewise.
28965         * math/w_j1f.c: Likewise.
28966         * math/w_j1l.c: Likewise.
28967         * math/w_jn.c: Likewise.
28968         * math/w_jnf.c: Likewise.
28969         * math/w_log.c: Likewise.
28970         * math/w_logf.c: Likewise.
28971         * math/w_logl.c: Likewise.
28972         * math/w_log10.c: Likewise.
28973         * math/w_log10f.c: Likewise.
28974         * math/w_log10l.c: Likewise.
28975         * math/w_log2.c: Likewise.
28976         * math/w_log2f.c: Likewise.
28977         * math/w_log2l.c: Likewise.
28978         * math/w_pow.c: Likewise.
28979         * math/w_powf.c: Likewise.
28980         * math/w_powl.c: Likewise.
28981         * math/w_remainder.c: Likewise.
28982         * math/w_remainderf.c: Likewise.
28983         * math/w_remainderl.c: Likewise.
28984         * math/w_scalb.c: Likewise.
28985         * math/w_scalbf.c: Likewise.
28986         * math/w_scalbl.c: Likewise.
28987         * math/w_sqrt.c: Likewise.
28988         * math/w_sqrtf.c: Likewise.
28989         * math/w_sqrtl.c: Likewise.
28990         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
28991         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
28992         used.
28993         * math/math_private.h: Declare __kernel_standard_f.
28994         * math/w_cosh.c: Remove cruft and optimize a bit.
28995         * math/w_coshf.c: Likewise.
28996         * math/w_coshl.c: Likewise.
28997         * math/w_exp2.c: Likewise.
28998         * math/w_exp2f.c: Likewise.
28999         * math/w_exp2l.c: Likewise.
29000         * math/w_hypot.c: Likewise.
29001         * math/w_hypotf.c: Likewise.
29002         * math/w_hypotl.c: Likewise.
29003         * math/w_lgamma.c: Likewise.
29004         * math/w_lgamma_r.c: Likewise.
29005         * math/w_lgammaf.c: Likewise.
29006         * math/w_lgammaf_r.c: Likewise.
29007         * math/w_lgammal.c: Likewise.
29008         * math/w_lgammal_r.c: Likewise.
29009         * math/w_sinh.c: Likewise.
29010         * math/w_sinhf.c: Likewise.
29011         * math/w_sinhl.c: Likewise.
29012         * math/w_tgamma.c: Likewise.
29013         * math/w_tgammaf.c: Likewise.
29014         * math/w_tgammal.c: Likewise.
29015         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29016         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29017         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
29018         Minor optimizations.  Pretty printing.  Remove cruft.
29019         * sysdeps/i386/fpu/e_acosf.S: Likewise.
29020         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29021         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29022         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29023         * sysdeps/i386/fpu/e_acosl.c: Likewise.
29024         * sysdeps/i386/fpu/e_asin.S: Likewise.
29025         * sysdeps/i386/fpu/e_asinf.S: Likewise.
29026         * sysdeps/i386/fpu/e_atan2.S: Likewise.
29027         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
29028         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
29029         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29030         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29031         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29032         * sysdeps/i386/fpu/e_exp10.S: Likewise.
29033         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
29034         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
29035         * sysdeps/i386/fpu/e_exp2.S: Likewise.
29036         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
29037         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
29038         * sysdeps/i386/fpu/e_fmod.S: Likewise.
29039         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
29040         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
29041         * sysdeps/i386/fpu/e_hypot.S: Likewise.
29042         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
29043         * sysdeps/i386/fpu/e_log.S: Likewise.
29044         * sysdeps/i386/fpu/e_log10.S: Likewise.
29045         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29046         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29047         * sysdeps/i386/fpu/e_log2.S: Likewise.
29048         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29049         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29050         * sysdeps/i386/fpu/e_logf.S: Likewise.
29051         * sysdeps/i386/fpu/e_logl.S: Likewise.
29052         * sysdeps/i386/fpu/e_pow.S: Likewise.
29053         * sysdeps/i386/fpu/e_powf.S: Likewise.
29054         * sysdeps/i386/fpu/e_powl.S: Likewise.
29055         * sysdeps/i386/fpu/e_remainder.S: Likewise.
29056         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
29057         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
29058         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29059         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29060         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29061         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
29062         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
29063         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
29064         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
29065         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
29066         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29067         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
29068         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
29069         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
29070         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
29071         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
29072         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
29073         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
29074         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
29075         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
29076         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29077         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
29078         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
29079         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29080         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
29081         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
29082         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29083         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29084         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
29085         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
29086         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29087         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29088         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
29089         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
29090         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
29091         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
29092         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
29093         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
29094         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29095         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
29096         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29097         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
29098         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
29099         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
29100         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
29101         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
29102         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
29103         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
29104         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
29105         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
29106         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
29107         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
29108         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29109         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
29110         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
29111         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
29112         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
29113         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
29114         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
29115         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
29116         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
29117         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29118         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
29119         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
29120         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
29121         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
29122         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29123         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29124         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29125         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29126         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29127         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29128         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29129         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29130         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29131         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29132         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
29133         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29134         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29135         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29136         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29137         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29138         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29139         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29140         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
29141         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29142         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29143         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29144         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29145         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29146         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
29147         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29148         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29149         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29150         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29151         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29152         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29153         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29154         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29155         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29156         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29157         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
29158         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
29159         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
29160         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
29161         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
29162         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
29163         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
29164         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
29165         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
29166         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
29167         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
29168         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29169         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29170         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29171         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29172         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
29173         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29174         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
29175         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
29176         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
29177         (__isnanf): Likewise.
29178         (__isinf_ns): Likewise.
29179         (__isinf_nsf): Likewise.
29180         (__finite): Likewise.
29181         (__finitef): Likewise.
29182         (__ieee754_sqrt): Define as macro.
29183         (__ieee754_sqrtf): Define as macro.
29184         (__ieee754_sqrtl): Define as macro.
29185         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
29186         inlined copy.
29187         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
29188         __FINITE_MATH_ONLY__ consistent.
29189         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
29190
29191 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
29192
29193         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
29194         of rawmemchr.
29195
29196         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
29197
29198 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
29199
29200         * po/ja.po: Update from translation team.
29201
29202 2011-10-08  Roland McGrath  <roland@hack.frob.com>
29203
29204         * locale/programs/locarchive.c (prepare_address_space): New function.
29205         (create_archive, enlarge_archive, open_archive): Use it.
29206
29207         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
29208         inside [SHARED], where it is used.
29209
29210         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
29211
29212         * nss/getent.c (netgroup_keys): Remove unused variable.
29213         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29214
29215 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
29216
29217         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
29218         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
29219         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
29220         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
29221         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
29222         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
29223         * math/Makefile (libm-calls): Add s_isinf_ns.
29224         * math/divtc3.c: Use __isinf_nsl instead of isinf.
29225         * math/multc3.c: Likewise.
29226         * math/s_casin.c: Likewise.
29227         * math/s_casinf.c: Likewise.
29228         * math/s_casinl.c: Likewise.
29229         * math/s_ccos.c: Likewise.
29230         * math/s_ccosf.c: Likewise.
29231         * math/s_ccosl.c: Likewise.
29232         * math/s_ctan.c: Likewise.
29233         * math/s_ctanf.c: Likewise.
29234         * math/s_ctanh.c: Likewise.
29235         * math/s_ctanhf.c: Likewise.
29236         * math/s_ctanhl.c: Likewise.
29237         * math/s_ctanl.c: Likewise.
29238         * math/w_fmod.c: Likewise.
29239         * math/w_fmodf.c: Likewise.
29240         * math/w_fmodl.c: Likewise.
29241         * math/w_remainder.c: Likewise.
29242         * math/w_remainderf.c: Likewise.
29243         * math/w_remainderl.c: Likewise.
29244         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
29245         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
29246         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
29247         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
29248         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
29249         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
29250         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
29251         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
29252
29253         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
29254         of the number.
29255         * stdio-common/printf_fphex.c: Likewise.
29256         * stdio-common/printf_size.c: Likewise.
29257
29258         * math/e_exp10.c: Include math_private.h using <...> not "...".
29259         * math/e_exp10f.c: Likewise.
29260         * math/e_exp10l.c: Likewise.
29261         * math/e_exp2l.c: Likewise.
29262         * math/e_j0l.c: Likewise.
29263         * math/e_j1l.c: Likewise.
29264         * math/e_jnl.c: Likewise.
29265         * math/e_lgammal_r.c: Likewise.
29266         * math/e_rem_pio2l.c: Likewise.
29267         * math/e_scalb.c: Likewise.
29268         * math/e_scalbf.c: Likewise.
29269         * math/e_scalbl.c: Likewise.
29270         * math/k_cosl.c: Likewise.
29271         * math/k_sinl.c: Likewise.
29272         * math/k_tanl.c: Likewise.
29273         * math/s_cacoshf.c: Likewise.
29274         * math/s_catan.c: Likewise.
29275         * math/s_catanf.c: Likewise.
29276         * math/s_catanh.c: Likewise.
29277         * math/s_catanhf.c: Likewise.
29278         * math/s_catanhl.c: Likewise.
29279         * math/s_catanl.c: Likewise.
29280         * math/s_ccosh.c: Likewise.
29281         * math/s_ccoshf.c: Likewise.
29282         * math/s_ccoshl.c: Likewise.
29283         * math/s_cexp.c: Likewise.
29284         * math/s_cexpf.c: Likewise.
29285         * math/s_cexpl.c: Likewise.
29286         * math/s_clog.c: Likewise.
29287         * math/s_clog10.c: Likewise.
29288         * math/s_clog10f.c: Likewise.
29289         * math/s_clog10l.c: Likewise.
29290         * math/s_clogf.c: Likewise.
29291         * math/s_clogl.c: Likewise.
29292         * math/s_csin.c: Likewise.
29293         * math/s_csinf.c: Likewise.
29294         * math/s_csinh.c: Likewise.
29295         * math/s_csinhf.c: Likewise.
29296         * math/s_csinhl.c: Likewise.
29297         * math/s_csinl.c: Likewise.
29298         * math/s_csqrt.c: Likewise.
29299         * math/s_csqrtf.c: Likewise.
29300         * math/s_csqrtl.c: Likewise.
29301         * math/s_ctan.c: Likewise.
29302         * math/s_ctanf.c: Likewise.
29303         * math/s_ctanh.c: Likewise.
29304         * math/s_ctanhf.c: Likewise.
29305         * math/s_ctanhl.c: Likewise.
29306         * math/s_ctanl.c: Likewise.
29307         * math/s_ldexp.c: Likewise.
29308         * math/s_ldexpf.c: Likewise.
29309         * math/s_ldexpl.c: Likewise.
29310         * math/s_significand.c: Likewise.
29311         * math/s_significandf.c: Likewise.
29312         * math/s_significandl.c: Likewise.
29313         * math/w_acos.c: Likewise.
29314         * math/w_acosf.c: Likewise.
29315         * math/w_acosh.c: Likewise.
29316         * math/w_acoshf.c: Likewise.
29317         * math/w_acoshl.c: Likewise.
29318         * math/w_acosl.c: Likewise.
29319         * math/w_asin.c: Likewise.
29320         * math/w_asinf.c: Likewise.
29321         * math/w_asinl.c: Likewise.
29322         * math/w_atan2.c: Likewise.
29323         * math/w_atan2f.c: Likewise.
29324         * math/w_atan2l.c: Likewise.
29325         * math/w_atanh.c: Likewise.
29326         * math/w_atanhf.c: Likewise.
29327         * math/w_atanhl.c: Likewise.
29328         * math/w_cosh.c: Likewise.
29329         * math/w_coshf.c: Likewise.
29330         * math/w_coshl.c: Likewise.
29331         * math/w_dremf.c: Likewise.
29332         * math/w_exp10.c: Likewise.
29333         * math/w_exp10f.c: Likewise.
29334         * math/w_exp10l.c: Likewise.
29335         * math/w_exp2.c: Likewise.
29336         * math/w_exp2f.c: Likewise.
29337         * math/w_fmod.c: Likewise.
29338         * math/w_fmodf.c: Likewise.
29339         * math/w_fmodl.c: Likewise.
29340         * math/w_hypot.c: Likewise.
29341         * math/w_hypotf.c: Likewise.
29342         * math/w_hypotl.c: Likewise.
29343         * math/w_j0.c: Likewise.
29344         * math/w_j0f.c: Likewise.
29345         * math/w_j0l.c: Likewise.
29346         * math/w_j1.c: Likewise.
29347         * math/w_j1f.c: Likewise.
29348         * math/w_j1l.c: Likewise.
29349         * math/w_jn.c: Likewise.
29350         * math/w_jnf.c: Likewise.
29351         * math/w_jnl.c: Likewise.
29352         * math/w_lgamma.c: Likewise.
29353         * math/w_lgamma_r.c: Likewise.
29354         * math/w_lgammaf.c: Likewise.
29355         * math/w_lgammaf_r.c: Likewise.
29356         * math/w_lgammal.c: Likewise.
29357         * math/w_lgammal_r.c: Likewise.
29358         * math/w_log.c: Likewise.
29359         * math/w_log10.c: Likewise.
29360         * math/w_log10f.c: Likewise.
29361         * math/w_log10l.c: Likewise.
29362         * math/w_log2.c: Likewise.
29363         * math/w_log2f.c: Likewise.
29364         * math/w_log2l.c: Likewise.
29365         * math/w_logf.c: Likewise.
29366         * math/w_logl.c: Likewise.
29367         * math/w_pow.c: Likewise.
29368         * math/w_powf.c: Likewise.
29369         * math/w_powl.c: Likewise.
29370         * math/w_remainder.c: Likewise.
29371         * math/w_remainderf.c: Likewise.
29372         * math/w_remainderl.c: Likewise.
29373         * math/w_scalb.c: Likewise.
29374         * math/w_scalbf.c: Likewise.
29375         * math/w_scalbl.c: Likewise.
29376         * math/w_sinh.c: Likewise.
29377         * math/w_sinhf.c: Likewise.
29378         * math/w_sinhl.c: Likewise.
29379         * math/w_sqrt.c: Likewise.
29380         * math/w_sqrtf.c: Likewise.
29381         * math/w_sqrtl.c: Likewise.
29382         * math/w_tgamma.c: Likewise.
29383         * math/w_tgammaf.c: Likewise.
29384         * math/w_tgammal.c: Likewise.
29385
29386         * po/ja.po: Update from translation team.
29387
29388 2011-09-29  Andreas Jaeger  <aj@suse.de>
29389
29390         [BZ #13179]
29391         * sunrpc/netname.c (netname2host): Fix logic.
29392
29393         [BZ #6779]
29394         [BZ #6783]
29395         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
29396         correctly.
29397         * math/w_remainder.c (__remainder): Likewise.
29398         * math/w_remainderf.c (__remainderf): Likewise.
29399         * math/libm-test.inc (remainder_test): Add test cases.
29400
29401 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29402
29403         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
29404         sdiv_qrnnd.
29405
29406 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
29407
29408         * string/test-memcmp.c: Avoid unncessary #defines.
29409         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
29410
29411 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29412
29413         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
29414         Use new sse2 version for core i3 - i7 as it's faster
29415         than sse42 version.
29416         (bit_Prefer_PMINUB_for_stringop): New.
29417         * sysdeps/x86_64/rawmemchr.S: Update.
29418         Replace with faster SSE2 version.
29419         * sysdeps/x86_64/memrchr.S: New file.
29420         * sysdeps/x86_64/memchr.S: Update.
29421         Replace with faster SSE2 version.
29422
29423 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
29424
29425         * elf/dl-load.c (lose): Add cast to avoid warning.
29426
29427 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
29428
29429         * po/ca.po: Update from translation team.
29430
29431         * inet/getnetgrent_r.c: Hook up nscd.
29432         * nscd/Makefile (routines): Add nscd_netgroup.
29433         (nscd-modules): Add netgroupcache.
29434         (CFLAGS-netgroupcache.c): Define.
29435         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
29436         (cache_search): Add const to second parameter.
29437         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
29438         INNETGR.
29439         (dbs): Add netgrdb entry.
29440         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
29441         (verify_persistent_db): Handle netgrdb.
29442         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
29443         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
29444         GETFDNETGR.
29445         (netgroup_response_header): Define.
29446         (innetgroup_response_header): Define.
29447         (datahead): Add netgroup_response_header and innetgroup_response_header
29448         elements.
29449         * nscd/nscd.conf: Add entries for netgroup cache.
29450         * nscd/nscd.h (dbtype): Add netgrdb.
29451         (_PATH_NSCD_NETGROUP_DB): Define.
29452         (netgroup_iov_disabled): Declare.
29453         (xmalloc, xcalloc, xrealloc): Move declarations here.
29454         (cache_search): Adjust prototype.
29455         Add netgroup-related prototypes.
29456         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
29457         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
29458         (__nscd_innetgr): Declare.
29459         * nscd/selinux.c (perms): Use access_vector_t as element type and
29460         add netgroup-related initializers.
29461         * nscd/netgroupcache.c: New file.
29462         * nscd/nscd_netgroup.c: New file.
29463         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
29464         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
29465         For four parameters use innetgr.
29466         * nss/nss_files/files-init.c: Add definition and callback for netgr.
29467         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
29468         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
29469         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
29470
29471         * nscd/connections.c (register_traced_file): Don't register file
29472         for disabled databases.
29473
29474 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
29475
29476         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
29477
29478         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
29479         from tree and freeing node.
29480
29481 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
29482
29483         * nss/nsswitch.c (__nss_database_lookup): Handle
29484         nss_parse_service_list out of memory case.
29485
29486 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
29487
29488         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
29489         out of memory case.
29490
29491 2011-10-04  Andreas Schwab  <schwab@redhat.com>
29492
29493         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
29494         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
29495         pass it down.
29496         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
29497         elf_machine_rela, elf_machine_lazy_rel.
29498         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
29499         (ELF_DYNAMIC_DO_REL): Likewise.
29500         (ELF_DYNAMIC_DO_RELA): Likewise.
29501         (ELF_DYNAMIC_RELOCATE): Likewise.
29502         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
29503         to ELF_DYNAMIC_DO_REL.
29504         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
29505         (dl_main): In trace mode always set __RTLD_NOIFUNC.
29506         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
29507         elf_machine_rela.
29508         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
29509         skip_ifunc, don't call ifunc function if non-zero.
29510         (elf_machine_rela): Likewise.
29511         (elf_machine_lazy_rel): Likewise.
29512         (elf_machine_lazy_rela): Likewise.
29513         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
29514         (elf_machine_lazy_rel): Likewise.
29515         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
29516         Likewise.
29517         (elf_machine_lazy_rel): Likewise.
29518         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
29519         Likewise.
29520         (elf_machine_lazy_rel): Likewise.
29521         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
29522         (elf_machine_lazy_rel): Likewise.
29523         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
29524         (elf_machine_lazy_rel): Likewise.
29525         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
29526         (elf_machine_lazy_rel): Likewise.
29527         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
29528         (elf_machine_lazy_rel): Likewise.
29529         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
29530         (elf_machine_lazy_rel): Likewise.
29531         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
29532         (elf_machine_lazy_rel): Likewise.
29533
29534 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
29535
29536         * nss/nss_files/files-init.c (_nss_files_init): Use static
29537         initialization for all the *_traced_file variables.
29538
29539 2011-09-28  Andreas Schwab  <schwab@redhat.com>
29540
29541         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29542
29543 2011-09-27  Roland McGrath  <roland@hack.frob.com>
29544
29545         [BZ #13226]
29546         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
29547
29548 2011-09-27  Andreas Schwab  <schwab@redhat.com>
29549
29550         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
29551         Reread the line before reparsing it.
29552
29553 2011-09-26  Andreas Schwab  <schwab@redhat.com>
29554
29555         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
29556
29557 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
29558             Maxim Kuvyrkov  <maxim@codesourcery.com>
29559             Joseph Myers  <joseph@codesourcery.com>
29560
29561         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
29562         if needed for __stack_chk_guard.
29563
29564 2011-09-19  Roland McGrath  <roland@hack.frob.com>
29565
29566         * sysdeps/posix/spawni.c (script_execute): Always define it.
29567         It will be optimized away if unused.
29568         (maybe_script_execute): New function.
29569         (__spawni): Call it.
29570
29571         * Makerules: Don't include tls.make.
29572         (config-tls): Always set to thread.
29573         * tls.make.c: File removed.
29574
29575 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
29576
29577         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
29578         * config.make.in (CPPFLAGS-config): New substituted variable.
29579
29580 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
29581
29582         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
29583
29584         [BZ #13192]
29585         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
29586         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
29587
29588 2011-09-15  Roland McGrath  <roland@hack.frob.com>
29589
29590         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
29591         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
29592         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
29593         (CALL_FAIL): Likewise.
29594         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
29595         (CALL_FAIL): Macro removed.
29596         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
29597
29598 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
29599
29600         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
29601         for __FINITE_MATH_ONLY__ == 1.
29602
29603 2011-09-15  Andreas Schwab  <schwab@redhat.com>
29604
29605         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
29606         __ieee754_sqrt instead of sqrt.
29607         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
29608         __ieee754_sqrtf instead of sqrtf.
29609         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
29610         __floorf instead of floorf.
29611         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
29612         __floorf, __truncf instead of floorf, truncf.
29613
29614 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
29615
29616         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
29617
29618         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
29619         __extern_always_inline.
29620         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
29621         32-bit.
29622
29623 2011-09-14  Andreas Schwab  <schwab@redhat.com>
29624
29625         * elf/rtld.c (dl_main): Also relocate in dependency order when
29626         doing symbol dependency testing.
29627
29628 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
29629
29630         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
29631         Always define `refsym'.
29632
29633 2011-09-13  Andreas Schwab  <schwab@redhat.com>
29634
29635         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
29636         (__FD_ELT): Renamed from __FDELT.
29637         * misc/bits/select2.h (__FD_ELT): Likewise.
29638         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
29639         __FD_MASK instead of __FDELT, __FDMASK.
29640         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
29641         Likewise.
29642         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
29643         Likewise.
29644
29645         * elf/Makefile (gen-ldd): Fix pattern.
29646
29647         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
29648         (init_tls): Likewise.
29649
29650 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
29651
29652         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
29653
29654 2011-09-12  Andreas Schwab  <schwab@redhat.com>
29655
29656         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
29657         `struct cmsghdr *' instead of `void *'.
29658         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
29659         Likewise.
29660
29661 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
29662
29663         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
29664         if non-absolute.
29665         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
29666         ldd_rewrite_script.
29667
29668 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
29669
29670         * configure.in: Remove --with-tls option.
29671         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
29672         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
29673         out in case it is missing.
29674         * sysdeps/ia64/elf/configure.in: Likewise.
29675         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
29676         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
29677         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
29678         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
29679         * sysdeps/sh/elf/configure.in: Likewise.
29680         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
29681         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
29682         * sysdeps/x86_64/elf/configure.in: Likewise.
29683         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
29684         * sysdeps/mach/hurd/tls.h: Likewise.
29685
29686         [BZ #13067]
29687         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
29688
29689         [BZ #13090]
29690         * configure.in: Fix use of AC_INIT.
29691
29692         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
29693
29694 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
29695
29696         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
29697         __set_errno.
29698         * malloc/hooks.c: Likewise.
29699
29700         [BZ #11929]
29701         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
29702         variables statically.
29703         (narenas): Initialize.
29704         (list_lock): Initialize.
29705         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
29706         initializtion of main_arena and list_lock.  Small cleanups.
29707         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
29708         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
29709         Add initializers to main_arena and mp_.
29710         (malloc_state): Remove pagesize member.  Change all users to use
29711         GLRO(dl_pagesize).
29712
29713         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
29714         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
29715         is always initialized.
29716
29717         * malloc/malloc.c: Removed unused configurations and dead code.
29718         * malloc/arena.c: Likewise.
29719         * malloc/hooks.c: Likewise.
29720         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
29721
29722         * include/tls.h: Removed.  USE___THREAD must always be defined.
29723         * bits/libc-tsd.h: Don't handle !USE___THREAD.
29724         * elf/dl-libc.c: Likewise.
29725         * elf/dl-tsd.c: Likewise.
29726         * include/errno.h: Likewise.
29727         * include/netdb.h: Likewise.
29728         * include/resolv.h: Likewise.
29729         * inet/herrno-loc.c: Likewise.
29730         * inet/herrno.c: Likewise.
29731         * malloc/arena.c: Likewise.
29732         * malloc/hooks.c: Likewise.
29733         * malloc/malloc.c: Likewise.
29734         * resolv/res-state.c: Likewise.
29735         * resolv/res_libc.c: Likewise.
29736         * sysdeps/i386/dl-machine.h: Likewise.
29737         * sysdeps/ia64/dl-machine.h: Likewise.
29738         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29739         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29740         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29741         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29742         * sysdeps/sh/dl-machine.h: Likewise.
29743         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29744         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29745         * sysdeps/unix/i386/sysdep.S: Likewise.
29746         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
29747         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
29748         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
29749         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
29750         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
29751         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
29752         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
29753         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
29754         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29755         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
29756         * sysdeps/unix/x86_64/sysdep.S: Likewise.
29757         * sysdeps/x86_64/dl-machine.h: Likewise.
29758         * tls.make.c: Likewise.
29759
29760         * configure.in: Remove --with-__thread option.  Make tests for
29761         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
29762         tls_model attribute fail if no support is available.  Remove
29763         USE_IN_LIBIO.
29764         * Makeconfig: Adjust for dropped configure option.  All features are
29765         now mandatory.
29766         * Makerules: Likewise.
29767         * Versions.def: Likewise.
29768         * argp/argp-fmtstream.c: Likewise.
29769         * argp/argp-fmtstream.h: Likewise.
29770         * argp/argp-help.c: Likewise.
29771         * assert/assert.c: Likewise.
29772         * config.h.in: Likewise.
29773         * config.make.in: Likewise.
29774         * configure: Likewise.
29775         * configure.in: Likewise.
29776         * csu/Versions: Likewise.
29777         * csu/init.c: Likewise.
29778         * elf/tst-audit2.c: Likewise.
29779         * elf/tst-tls10.c: Likewise.
29780         * elf/tst-tls10.h: Likewise.
29781         * elf/tst-tls11.c: Likewise.
29782         * elf/tst-tls12.c: Likewise.
29783         * elf/tst-tls14.c: Likewise.
29784         * elf/tst-tlsmod11.c: Likewise.
29785         * elf/tst-tlsmod12.c: Likewise.
29786         * elf/tst-tlsmod13.c: Likewise.
29787         * elf/tst-tlsmod13a.c: Likewise.
29788         * elf/tst-tlsmod14a.c: Likewise.
29789         * elf/tst-tlsmod15b.c: Likewise.
29790         * elf/tst-tlsmod16a.c: Likewise.
29791         * elf/tst-tlsmod16b.c: Likewise.
29792         * elf/tst-tlsmod7.c: Likewise.
29793         * elf/tst-tlsmod8.c: Likewise.
29794         * elf/tst-tlsmod9.c: Likewise.
29795         * gmon/gmon.c: Likewise.
29796         * grp/fgetgrent_r.c: Likewise.
29797         * grp/putgrent.c: Likewise.
29798         * hurd/fopenport.c: Likewise.
29799         * include/libc-symbols.h: Likewise.
29800         * include/tls.h: Likewise.
29801         * intl/gettextP.h: Likewise.
29802         * intl/loadinfo.h: Likewise.
29803         * locale/global-locale.c: Likewise.
29804         * locale/localeinfo.h: Likewise.
29805         * mach/devstream.c: Likewise.
29806         * malloc/arena.c: Likewise.
29807         * malloc/set-freeres.c: Likewise.
29808         * misc/err.c: Likewise.
29809         * misc/getttyent.c: Likewise.
29810         * misc/mntent_r.c: Likewise.
29811         * posix/getopt.c: Likewise.
29812         * posix/wordexp.c: Likewise.
29813         * pwd/fgetpwent_r.c: Likewise.
29814         * resolv/Versions: Likewise.
29815         * resolv/res_hconf.c: Likewise.
29816         * shadow/fgetspent_r.c: Likewise.
29817         * shadow/putspent.c: Likewise.
29818         * stdio-common/printf_fphex.c: Likewise.
29819         * stdio-common/tmpfile.c: Likewise.
29820         * stdlib/abort.c: Likewise.
29821         * stdlib/fmtmsg.c: Likewise.
29822         * sunrpc/auth_unix.c: Likewise.
29823         * sunrpc/clnt_perr.c: Likewise.
29824         * sunrpc/clnt_tcp.c: Likewise.
29825         * sunrpc/clnt_udp.c: Likewise.
29826         * sunrpc/clnt_unix.c: Likewise.
29827         * sunrpc/openchild.c: Likewise.
29828         * sunrpc/svc_simple.c: Likewise.
29829         * sunrpc/svc_tcp.c: Likewise.
29830         * sunrpc/svc_udp.c: Likewise.
29831         * sunrpc/svc_unix.c: Likewise.
29832         * sunrpc/xdr.c: Likewise.
29833         * sunrpc/xdr_array.c: Likewise.
29834         * sunrpc/xdr_rec.c: Likewise.
29835         * sunrpc/xdr_ref.c: Likewise.
29836         * sunrpc/xdr_stdio.c: Likewise.
29837
29838 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
29839
29840         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29841
29842 2011-07-03  Andreas Jaeger  <aj@suse.de>
29843
29844         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
29845         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
29846         regenerate with gen-libm-tests.pl.
29847
29848 2010-05-12  Petr Baudis  <pasky@suse.cz>
29849
29850         [BZ #11589]
29851         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
29852         around j0() zero points by switching to j1().
29853         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29854         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29855         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29856         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29857
29858 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
29859
29860         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
29861         instead of 0.
29862         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
29863         instead of 0.
29864         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
29865         Patch in part by Pavel Roskin <proski@gnu.org>.
29866
29867         [BZ #13138]
29868         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
29869         realloc.
29870         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
29871         Free memory block if necessary.
29872
29873         [BZ #12847]
29874         * libio/genops.c (INTDEF): For string streams the _lock pointer can
29875         be NULL.  Don't lock in this case.
29876
29877 2011-09-09  Roland McGrath  <roland@hack.frob.com>
29878
29879         * elf/elf.h (ELFOSABI_GNU): New macro.
29880         (ELFOSABI_LINUX): Define to that.
29881
29882 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
29883
29884         * string/strncat.c (strncat): Undef the symbol in case it has been
29885         defined in bits/string.h.
29886
29887 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
29888
29889         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
29890
29891         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
29892         link map.
29893
29894 2011-08-17  Andreas Jaeger  <aj@suse.de>
29895
29896         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
29897
29898 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
29899             Ian Lance Taylor  <iant@google.com>
29900
29901         * math/libm-test.inc (lround_test): New testcase.
29902         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
29903
29904 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
29905
29906         * Makefile: Remove support for automatic cvs check-ins.
29907         * Makerules: Likewise.
29908         * config.make.in: Likewise.
29909         * configure.in: Likewise.
29910         * intl/Makefile: Likewise.
29911         * locale/Makefile: Likewise.
29912         * po/Makefile: Likewise.
29913         * posix/Makefile: Likewise.
29914         * sysdeps/gnu/Makefile: Likewise.
29915         * sysdeps/mach/hurd/Makefile: Likewise.
29916         * sysdeps/sparc/sparc32/Makefile: Likewise.
29917
29918         [BZ #13118]
29919         * posix/Makefile (bug-regex32-ENV): Define.
29920         Patch by John Stanley <jpsinthemix@verizon.net>.
29921
29922         * misc/Makefile (headers): Add bits/select2.h.
29923         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
29924         * misc/bits/select2.h: New file.
29925         * include/bits/select2.h: New file.
29926         * debug/Makefile (routines): Add fdelt_chk.
29927         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
29928         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
29929         FD_ISSET.
29930         * debug/fdelt_chk.c: New file.
29931
29932         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
29933         * wcsmbs/test-wmemcmp.c: Likewise.
29934         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
29935         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
29936
29937 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29938
29939         * string/Makefile (strop-tests): Add memcmp.
29940         * string/test-wmemcmp.c: New file.
29941         * string/test-memcmp.c: Add wmemcmp support.
29942
29943 2011-09-08  Roland McGrath  <roland@hack.frob.com>
29944
29945         [BZ #13153]
29946         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
29947         2011-07-19 change.
29948
29949         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
29950         garbage value in a __mach_port_mod_refs call in the cases of the
29951         task-self and thread-self ports.
29952
29953 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29954
29955         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
29956
29957 2011-09-08  Andreas Schwab  <schwab@redhat.com>
29958
29959         * elf/dl-load.c (lose): Check for non-null L.
29960
29961 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
29962
29963         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
29964
29965         * elf/dl-libc.c (dlerror_run): Pass back error code from
29966         dl_catch_error.
29967
29968         [BZ #13123]
29969         * elf/dl-load.c (lose): Free l_origin if it is valid.
29970
29971         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
29972         names.
29973         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
29974         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
29975         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
29976         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
29977         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
29978         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
29979
29980 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29981
29982         * sysdeps/powerpc/fpu/e_hypot.c: New file.
29983         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
29984         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
29985         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
29986         * sysdeps/powerpc/fpu/k_cosf.c: New file.
29987         * sysdeps/powerpc/fpu/k_sinf.c: New file.
29988         * sysdeps/powerpc/fpu/s_cosf.c: New file.
29989         * sysdeps/powerpc/fpu/s_sinf.c: New file.
29990         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
29991         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
29992
29993 2011-08-15  Alan Modra  <amodra@gmail.com>
29994
29995         [BZ #13092]
29996         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
29997         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
29998         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
29999         ppc_mcount to static-only-routines.
30000         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
30001         __mcount_internal.
30002         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
30003         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
30004
30005 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
30006
30007         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
30008         for finite and infinity parameters.
30009
30010 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
30011
30012         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
30013         and add nop instructions for throughput optimization.
30014         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
30015
30016 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
30017
30018         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
30019         aligned copy for power7 with vector-scalar instructions.
30020         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
30021
30022 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
30023
30024         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
30025         AVX check.
30026
30027 2011-09-07  Andreas Schwab  <schwab@redhat.com>
30028
30029         [BZ #13144]
30030         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
30031         last change.
30032
30033 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
30034
30035         * sysdeps/unix/sysv/linux/x86_64/init-first.c
30036         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
30037         syscall wrapper around clock_gettime in __vdso_clock_gettime.
30038         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
30039         clock_gettime.
30040
30041 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
30042
30043         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
30044         Forgot to demangle the pointer.
30045
30046         * sysdeps/i386/sysdep.h: Define atom_text_section.
30047         * sysdeps/x86_64/sysdep.h: Likewise.
30048         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
30049         section with atom_text_section.
30050         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30051         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30052         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
30053         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
30054         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
30055
30056         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
30057         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
30058         already be defined.  Change to take two parameters and don't assign
30059         result to variable.  Adjust all users.
30060         Define INTERNAL_GETTIME if not already defined.
30061         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
30062         call.
30063         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
30064         HAVE_CLOCK_GETTIME_VSYSCALL.
30065         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
30066
30067         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
30068         gettimeofday vsyscall, just use time.
30069
30070 2011-09-06  Andreas Schwab  <schwab@redhat.com>
30071
30072         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
30073         <errno.h>.
30074
30075 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
30076
30077         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
30078         syscall on x86-64.
30079         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
30080         syscall.
30081         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
30082         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
30083         syscall if possible.
30084
30085 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30086
30087         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
30088         e_ident.  Don't pass to find_mapsXX.
30089         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
30090
30091 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30092
30093         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30094         strchr-sse2-no-bsf strrchr-sse2-no-bsf
30095         * sysdeps/x86_64/multiarch/strchr.S: Update.
30096         Check bit_slow_BSF bit.
30097         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
30098         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
30099         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
30100
30101 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30102
30103         [BZ #13134]
30104         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
30105         before glibc 2.15.
30106         (tryshell): Define.
30107         (__spawni): Change last parameter to be flag.  Test
30108         SPAWN_XFLAGS_USE_PATH flag to use path or not.
30109         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
30110         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
30111         * posix/spawni.c: Likewise.
30112         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
30113         * posix/spawnp.c: Likewise.  Change normal version to use
30114         SPAWN_XFLAGS_USE_PATH.
30115         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
30116         SPAWN_XFLAGS_TRY_SHELL.
30117
30118         [BZ #13150]
30119         * posix/glob.h: Remove gcc 1.x support.
30120
30121         [BZ #13068]
30122         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
30123
30124 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30125
30126         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30127         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
30128         strrchr-sse2-bsf
30129         * sysdeps/i386/i686/multiarch/strchr.S: New file.
30130         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
30131         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
30132         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
30133         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
30134         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
30135
30136 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30137
30138         * sysdeps/x86_64/wcscmp.S: New file.
30139
30140         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
30141         wcscmp-c wcscmp-sse2
30142         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
30143         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
30144         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
30145         * wcsmbs/wcscmp.c: Allow renaming.
30146
30147 2011-09-05  David S. Miller  <davem@davemloft.net>
30148
30149         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
30150         stack slot, rather than the struct return pointer slot.
30151         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
30152         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
30153         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
30154         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
30155
30156 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30157
30158         * po/ja.po: Update from translation team.
30159
30160         [BZ #13144]
30161         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
30162         kernel in 64-bit binaries.
30163
30164 2011-09-01  David S. Miller  <davem@davemloft.net>
30165
30166         * elf/elf.h (HWCAP_SPARC_*): Move to..
30167         * sysdeps/sparc/sysdep.h: this new file and add new values.
30168         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
30169         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
30170         _DL_HWCAP_COUNT to 24.
30171         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
30172         entries.
30173         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
30174         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
30175         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
30176         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
30177         instead of magic constants.
30178         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30179
30180 2011-08-31  David S. Miller  <davem@davemloft.net>
30181
30182         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
30183         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
30184         Reimplement to do errno handling inline.
30185         (SYSCALL_ERROR_HANDLER): New macro.
30186         (__SYSCALL_STRING): Do not do errno handling in asm.
30187         (__CLONE_SYSCALL_STRING): Delete.
30188         (__INTERNAL_SYSCALL_STRING): Delete.
30189         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
30190         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
30191         (PSEUDO): Reimplement to do errno handling inline.
30192         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
30193         (SYSCALL_ERROR_HANDLER): New macro.
30194         (__SYSCALL_STRING): Do not do errno handling in asm.
30195         (__CLONE_SYSCALL_STRING): Delete.
30196         (__INTERNAL_SYSCALL_STRING): Delete.
30197         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
30198         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
30199         i386.
30200         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
30201         (inline_syscall*): Add 'err' argument.
30202         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
30203         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
30204         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
30205         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
30206
30207         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
30208         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
30209
30210 2011-08-30  Andreas Schwab  <schwab@redhat.com>
30211
30212         * elf/rtld.c (dl_main): Relocate objects in dependency order.
30213
30214 2011-08-29  Jiri Olsa <jolsa@redhat.com>
30215
30216         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
30217         directive.
30218
30219 2011-08-24  David S. Miller  <davem@davemloft.net>
30220
30221         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
30222
30223 2011-08-24  Andreas Schwab  <schwab@redhat.com>
30224
30225         * elf/Makefile: Add rules to build and run unload8 test.
30226         * elf/unload8.c: New file.
30227         * elf/unload8mod1.c: New file.
30228         * elf/unload8mod1x.c: New file.
30229         * elf/unload8mod2.c: New file.
30230         * elf/unload8mod3.c: New file.
30231
30232         * elf/dl-close.c (_dl_close_worker): Reset private search list if
30233         it wasn't used.
30234
30235 2011-08-23  David S. Miller  <davem@davemloft.net>
30236
30237         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
30238         subtract stack bias.
30239         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
30240         %sp not %fp in calculations.
30241         (_JMPBUF_UNWINDS_ADJ): Likewise.
30242
30243         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
30244         (aio_suspend): Call it to force an exception region around the
30245         AIO_MISC_WAIT() invocation.
30246
30247 2011-08-23  Andreas Schwab  <schwab@redhat.com>
30248
30249         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
30250         backslash.
30251
30252 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
30253
30254         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
30255         protection macro.
30256         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
30257         and <dl-machine.h>.
30258         (Elf64_FuncDesc): Remove.
30259
30260 2011-08-22  David S. Miller  <davem@davemloft.net>
30261
30262         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
30263         sigaltstack check, add missing cfi directives.
30264         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
30265         missing cfi directives, and sigaltstack handling.
30266
30267 2011-08-16  Andreas Schwab  <schwab@redhat.com>
30268
30269         [BZ #11724]
30270         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
30271         object is seen twice.
30272         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30273
30274         * elf/Makefile (distribute): Add tst-initorder2.c.
30275         (tests): Add tst-initorder2.
30276         (modules-names): Add tst-initorder2a tst-initorder2b
30277         tst-initorder2c tst-initorder2d.  Add rules to build them.
30278         ($(objpfx)tst-initorder2.out): New rule.
30279         * elf/tst-initorder2.c: New file.
30280         * elf/tst-initorder2.exp: New file.
30281
30282 2011-08-22  Andreas Schwab  <schwab@redhat.com>
30283
30284         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
30285
30286         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
30287         dependencies back to end of function.
30288
30289         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
30290         $(elfobjdir)/ld.so.
30291
30292 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
30293
30294         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
30295         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
30296         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
30297         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
30298         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
30299         of __vdso_gettimeofday.
30300         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
30301         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
30302         attribute_hidden.
30303         (_libc_vdso_platform_setup): Remove initialization of
30304         __vdso_gettimeofday and __vdso_time.
30305
30306 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30307
30308         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
30309         and fgetc_unlocked.
30310         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
30311         getc_unlocked.
30312
30313         * elf/dl-open.c (add_to_global): Report additions to the global scope
30314         for LD_DEBUG=scopes.
30315         (dl_open_worker): Also print scope of newly loaded dependencies.
30316         (_dl_show_scope): Indicate if there is no scope.
30317
30318         [BZ #13114]
30319         * stdio-common/Makefile (tests): Add bug24.
30320         * stdio-common/bug24.c: New file.
30321
30322 2011-08-19  Andreas Jaeger  <aj@suse.de>
30323
30324         [BZ #13114]
30325         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
30326         non-existant file when using close-on-exec mode.
30327
30328 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30329
30330         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
30331         the very first instruction.
30332
30333         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
30334         the CFI state in the end.
30335         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
30336         inclusion of dl-trampoline.h.
30337         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
30338
30339 2011-08-19  Andreas Schwab  <schwab@redhat.com>
30340
30341         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
30342         expectations for long double.
30343
30344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
30345         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
30346
30347 2011-08-14  David S. Miller  <davem@davemloft.net>
30348
30349         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
30350         artificual limit depends upon the system page size.
30351
30352 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
30353
30354         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
30355         * resolv/Makefile: Define CFLAGS-libresolv.
30356
30357 2011-08-17  Andreas Schwab  <schwab@redhat.com>
30358
30359         * nss/makedb.c (compute_tables): Make variables used in nested
30360         function static.
30361
30362 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
30363
30364         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
30365         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
30366         if buffer was too small.
30367
30368         * elf/pldd.c (main): Attach to all threads in the process.
30369         Rewrite /proc handling to use *at functions.
30370
30371 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
30372
30373         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
30374         specifies first scope to show.
30375         (dl_open_worker): Update callers.  Move printing scope of new
30376         object to before the relocation.
30377         * elf/rtld.c (dl_main): Update _dl_show_scope call.
30378         * sysdeps/generic/ldsodefs.h: Update declaration.
30379
30380         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
30381         string for the scope number.
30382
30383 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
30384
30385         * nscd/servicescache.c (cache_addserv): Make sure written is always
30386         initialized.
30387
30388 2011-08-14  Roland McGrath  <roland@hack.frob.com>
30389
30390         * sysdeps/i386/i486/bits/atomic.h
30391         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
30392         statement expression, so as to suppress "set but not used" warning.
30393         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
30394
30395         * string/strncat.c (STRNCAT): Use prototype definition.
30396
30397         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
30398         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
30399         -Iprograms here.
30400         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
30401         (localedef-modules): Add localedef.
30402         (locale-modules): Add locale.
30403
30404         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
30405         * elf/rtld.c (dl_main): Invert order of assignment in last change,
30406         to avoid a warning.
30407
30408 2011-08-14  David S. Miller  <davem@davemloft.net>
30409
30410         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
30411         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
30412
30413 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
30414
30415         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
30416         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
30417         * elf/rtld.c (dl_main): Set l_name of vDSO.
30418         Call _dl_show_scope when DL_DEBUG_SCOPES.
30419         (process_dl_debug): Recognize scopes flag and also set it for all.
30420         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
30421         Declare _dl_show_scope.
30422
30423         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
30424         (do_dlopen): Pass caller_dlopen to dl_open.
30425         (__libc_dlopen_mode): Initialize caller_dlopen.
30426
30427         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
30428         of libc.  Make tolower call locale-independent.  Optimize a bit by
30429         using isdigit instead of isalnum.
30430         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
30431
30432 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
30433
30434         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
30435         was a dependency or dynamically loaded.
30436
30437 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
30438
30439         * intl/l10nflist.c: Allow architecture-specific pop function.
30440         * sysdeps/x86_64/l10nflist.c: New file.
30441
30442         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
30443         classification.
30444
30445 2011-08-10  Andreas Schwab  <schwab@redhat.com>
30446
30447         * include/dirent.h: Add libc_hidden_proto for scandirat and
30448         scandirat64.  Don't declare __scandirat64.
30449         * dirent/scandirat.c: Add libc_hidden_def.
30450         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
30451         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
30452
30453 2011-08-10  David S. Miller  <davem@davemloft.net>
30454
30455         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
30456         enum.
30457         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30458         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30459         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30460
30461 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
30462
30463         * Versions.def [libc]: Add GLIBC_2.15.
30464         * dirent/Makefile (routines): Add scandirat and scandirat64.
30465         * dirent/Versions [libc]: Export scandirat and scandirat64 for
30466         GLIBC_2.15.
30467         * dirent/dirent.h: Declare scandirat and scandirat64.
30468         * dirent/scandirat.c: New file.
30469         * dirent/scandirat64.c: New file.
30470         * sysdeps/wordsize-64/scandirat.c: New file.
30471         * sysdeps/wordsize-64/scandirat64.c: New file.
30472         * dirent/opendir.c: Define opendirat.
30473         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
30474         using scandirat.
30475         * dirent/scandir64.c: Adjust for scandir.c change.
30476         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
30477         __scandirat64, and __scandir_cancel_handler.
30478         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
30479         additional parameter and use openat instead of open (outside of ld.so).
30480         Add new __opendir as wrapper around __opendirat.
30481         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
30482         here without requiring old scandirat implementation.
30483
30484 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
30485
30486         * dirent/scandir.c (cancel_handler): Renamed to
30487         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
30488         defined.  Adjust users.
30489         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
30490         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
30491
30492 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
30493
30494         * string/test-string.h (IMPL): Use __STRING to expand name and then
30495         stringify it.
30496
30497         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
30498         of cleanups.
30499
30500 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30501
30502         * string/Makefile: Update.
30503         (strop-tests): Append strncat.
30504         * string/test-wcscmp.c: New file.
30505         New comprehensive test for wcscmp.
30506         * string/test-strcmp.c: Update.
30507         (WIDE): New define.
30508
30509 2011-07-22  Andreas Schwab  <schwab@redhat.com>
30510
30511         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
30512         line.
30513
30514 2011-07-26  Andreas Schwab  <schwab@redhat.com>
30515
30516         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
30517         encoding to ACE if AI_IDN.
30518
30519 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
30520
30521         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
30522         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
30523
30524 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30525
30526         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
30527         Fix overflow bug in strncat.
30528         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
30529
30530         * string/test-strncat.c: Update.
30531         Add new tests for checking overflow bugs.
30532
30533 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30534
30535         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30536         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
30537         * sysdeps/i386/i686/multiarch/strcat.S: New file.
30538         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
30539         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
30540         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
30541         * sysdeps/i386/i686/multiarch/strncat.S: New file.
30542         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
30543         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
30544
30545         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
30546         (USE_AS_STRCAT): Define.
30547         Add strcat and strncat support.
30548         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30549
30550 2011-07-25  Andreas Schwab  <schwab@redhat.com>
30551
30552         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
30553         __n bigger than INT_MAX+1.
30554         (__strncmp_g): Likewise.
30555
30556 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
30557
30558         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
30559         * libio/stido.h: Likewise.
30560
30561         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
30562         (AF_NFC): Define.
30563         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
30564         (AF_NFC): Define.
30565
30566         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
30567         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30568         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30569         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30570         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30571
30572         [BZ #13021]
30573         * scripts/test-installation.pl: Don't expect libnss_test1 to be
30574         installed.
30575
30576         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
30577         typo.
30578         (_dl_x86_64_save_sse): Likewise.
30579
30580 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
30581
30582         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
30583         OSXSAVE.
30584         (_dl_x86_64_save_sse): Likewise.
30585
30586         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
30587
30588         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
30589
30590 2011-07-21  Andreas Schwab  <schwab@redhat.com>
30591
30592         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
30593         change.
30594         (_dl_x86_64_save_sse): Use correct AVX check.
30595
30596 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30597
30598         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
30599         bug in strncpy/strncat.
30600         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
30601
30602 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
30603
30604         * string/tester.c (test_strcat): Add tests for different alignments
30605         of source and destination.
30606         (test_strncat): Likewise.
30607
30608 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
30609
30610         [BZ #12852]
30611         * posix/glob.c (glob): Check passed in values before using them in
30612         expressions to avoid some overflows.
30613         (glob_in_dir): Likewise.
30614
30615         [BZ #13007]
30616         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
30617         check for AVX enablement so that we don't crash with old kernels and
30618         new hardware.
30619         * elf/tst-audit4.c: Add same checks here.
30620         * elf/tst-audit6.c: Likewise.
30621
30622         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
30623
30624 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
30625
30626         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
30627
30628 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
30629
30630         * po/cs.po: Update from translation team.
30631         * po/bg.po: Likewise.
30632
30633 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
30634
30635         * misc/sys/cdefs.h: Add support for const attribute.
30636         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
30637         to gnu_dev_{major,minor,makedev} functions.
30638
30639 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
30640
30641         * intl/dcigettext.c (get_output_charset): Add missing bracket.
30642
30643 2011-07-20  Andreas Schwab  <schwab@redhat.com>
30644
30645         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
30646         strlen results.
30647
30648 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30649
30650         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
30651         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
30652         register in order to avoid conflicts with the soft frame pointer
30653         being held in r11 when necessary.
30654         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30655         (INTERNAL_VSYSCALL_NCS): Likewise.
30656
30657 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
30658
30659         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
30660         * elf/dl-fini.c (_dl_fini): Adjust caller.
30661         * elf/dl-close.c (_dl_close_worker): Likewise.
30662         * sysdeps/generic/ldsodefs.h: Adjust declaration.
30663
30664 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
30665
30666         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
30667         "aux_cache->nlibs < 0".
30668
30669         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
30670         in the reload-count case.
30671
30672 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30673
30674         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30675         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
30676         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
30677         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
30678         * sysdeps/x86_64/multiarch/strcat.S: New file.
30679         * sysdeps/x86_64/multiarch/strncat.S: New file.
30680         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
30681         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
30682         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
30683         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
30684         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
30685         (USE_AS_STRCAT): Define.
30686         Add strcat and strncat support.
30687         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
30688         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
30689         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
30690         * string/strncat.c: Update.
30691         (USE_AS_STRNCAT): Define.
30692         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30693         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
30694         and i7.
30695         * sysdeps/x86_64/multiarch/init-arch.h
30696         (bit_Prefer_PMINUB_for_stringop): New.
30697         (index_Prefer_PMINUB_for_stringop): Likewise.
30698         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
30699         bit_Prefer_PMINUB_for_stringop.
30700
30701 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
30702
30703         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
30704         buffer64.
30705         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
30706         of casting of buffer.
30707         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
30708         buffer32 and buffer64.
30709         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
30710         writes instead of casting of buffer.
30711         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
30712         buffer32.
30713         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
30714         casting of buffer.
30715
30716 2011-07-19  Andreas Schwab  <schwab@redhat.com>
30717
30718         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
30719
30720 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
30721
30722         * nscd/nscd.c (termination_handler): Don't do anything for a database
30723         if it has not yet been initialized.
30724
30725 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
30726
30727         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
30728
30729 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
30730
30731         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
30732
30733 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
30734
30735         * po/nl.po: Update from translation team.
30736         * po/sv.po: Likewise.
30737
30738 2011-07-16  Roland McGrath  <roland@hack.frob.com>
30739
30740         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
30741         now disallowed by GCC.
30742
30743         * configure.in (use-default-link): Default to yes if a test -shared
30744         link meets our qualifications.
30745         * configure: Regenerated.
30746
30747         * config.make.in (output-format): New variable.
30748         * configure.in: Check for ld --print-output-format support.
30749         * configure: Regenerated.
30750         * Makerules ($(common-objpfx)format.lds)
30751         [$(output-format) != unknown]: Just use $(output-format),
30752         instead of the linker-script munging.
30753
30754 2011-07-14  Roland McGrath  <roland@hack.frob.com>
30755
30756         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
30757         of $(common-objpfx)shlib.lds.
30758         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
30759
30760         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
30761         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
30762
30763         * configure.in (-z relro check): Adjust test code to add a large
30764         writable data section after it.
30765         * configure: Regenerated.
30766
30767 2011-07-11  Roland McGrath  <roland@hack.frob.com>
30768
30769         * configure.in (-z relro check): Fix test code to make the variable
30770         truly const.
30771         * configure: Regenerated.
30772
30773 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
30774
30775         * nscd/nscd.h (struct traced_file): Define.
30776         (struct database_dyn): Remove inotify_descr, reset_res, and filename
30777         elements.  Add traced_files.
30778         (inotify_fd): Declare.
30779         (register_traced_file): Declare.
30780         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
30781         (inotify_fd): Export.
30782         (resolv_conf_descr): Remove.
30783         (nscd_init): Move inotify descriptor creation to main.
30784         Don't register files for notification here.
30785         (register_traced_file): New function.
30786         (invalidate_cache): Don't use reset_res to determine whether to call
30787         res_init, go through the list of registered files.
30788         (main_loop_poll): The inotify descriptors are now stored in the
30789         structures for the traced files.
30790         (main_loop_epoll): Likewise
30791         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
30792         to __nss_disable_nscd.
30793         * nscd/cache.c (prune_cache): There is no single inotify descriptor
30794         for a database anymore.  Check the records for all the registered
30795         files instead.
30796         * nss/Makefile (libnss_files-routines): Add files-init.
30797         (libnss_db-routines): Add db-init.
30798         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
30799         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
30800         * nss/nss_db/db-init.c: New file.
30801         * nss/nss_files/files-init.c: New file.
30802         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
30803         __nss_lookup_function.
30804         (__nss_lookup_function): Call nss_load_library.
30805         (nss_load_all_libraries): New function.
30806         (__nss_disable_nscd): Take parameter with callback function for files
30807         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
30808         used for the cached services.
30809         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
30810         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
30811         options for features to all the files in nscd.
30812
30813         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
30814
30815 2011-07-10  Roland McGrath  <roland@hack.frob.com>
30816
30817         * csu/elf-init.c (__libc_csu_init): Comment typo.
30818
30819 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
30820
30821         * po/pl.po: Update from translation team.
30822         * po/ja.po: Likewise.
30823         * po/ru.po: Likewise.
30824         * po/ko.po: Likewise.
30825         * po/fr.po: Likewise.
30826
30827 2011-07-09  Roland McGrath  <roland@hack.frob.com>
30828
30829         * configure.in (.ctors/.dtors header and trailer check):
30830         Use an empirical test on a built program.
30831         * configure: Regenerated.
30832
30833         * configure.in (-z relro check): Use an empirical test on a built DSO.
30834         Detect, but do not require, on ia64.
30835         * configure: Regenerated.
30836
30837         * configure.in (READELF): Find it with AC_CHECK_TOOL.
30838         Update tests that use readelf to use $READELF instead.
30839         * configure: Regenerated.
30840
30841 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
30842
30843         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
30844         if the result is not used.
30845
30846 2011-07-05  Andreas Jaeger  <aj@suse.de>
30847
30848         [BZ#9696]
30849         * stdlib/tst-strtod.c: Add testcase.
30850
30851 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
30852
30853         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
30854         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
30855         The latter has a higher limit.  Take additional parameter to pass to
30856         the new function.
30857         (__pathconf): Pass file to __statfs_link_max.
30858         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
30859         __statfs_link_max.
30860         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
30861         __statfs_link_max.
30862
30863         [BZ #12868]
30864         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
30865         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
30866         Handle Lustre.
30867         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
30868         (__statfs_filesize_max): Likewise.
30869         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
30870
30871 2011-07-05  Andreas Jaeger  <aj@suse.de>
30872
30873         * resolv/res_comp.c (dn_skipname): Remove unused variable.
30874
30875 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
30876
30877         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
30878         `status' variable.
30879         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
30880         Likewise.
30881
30882 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
30883
30884         * Makefile (strop-tests): Add strncat.
30885         * string/test-strncat.c: New file.
30886
30887 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
30888
30889         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
30890
30891 2011-06-21  Andreas Jaeger  <aj@suse.de>
30892
30893         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
30894         Copy rule from iconvdata/Makefile.
30895
30896 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
30897
30898         [BZ #12922]
30899         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
30900         but no long options are defined, just return 'W'.
30901
30902 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
30903
30904         [BZ #9696]
30905         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
30906
30907 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
30908
30909         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
30910         netgroups to read.
30911         (innetgr): Likewise.
30912
30913 2011-07-05  Roland McGrath  <roland@hack.frob.com>
30914
30915         * config.make.in (install_root): Default to $(DESTDIR).
30916
30917 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
30918
30919         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
30920
30921 2011-07-02  Roland McGrath  <roland@hack.frob.com>
30922
30923         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
30924
30925         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
30926         containing directory rather than embedding absolute directory names.
30927
30928         * scripts/check-local-headers.sh: Rewritten using awk.
30929         Match by word, not by line.  Print error messages for matches.
30930         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
30931
30932         * Makerules [shlib-lds-flags empty]:
30933         ($(common-objpfx)libc_pic.opts): New target.
30934         ($(common-objpfx)libc_pic.os.clean): New target.
30935         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
30936
30937         * config.make.in (OBJCOPY): New variable.
30938         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
30939         * configure: Regenerated.
30940
30941         * config.make.in (use-default-link): New variable.
30942         * configure.in (use_default_link): Grok --with-default-link to set it.
30943         * configure: Regenerated.
30944         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
30945         (shlib-lds, shlib-lds-flags): Define to empty.
30946
30947         * Makerules (shlib-lds): New variable.
30948         (shlib-lds-flags): New variable.
30949         (build-shlib, build-moduile, build-module-asneeded): Use it.
30950         ($(common-objpfx)libc.so): Use $(shlib-lds).
30951         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
30952         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
30953
30954         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
30955         DT_FLAGS/DT_FLAGS_1 with zero flags.
30956
30957         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
30958         linker script munging.
30959
30960 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
30961
30962         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
30963         as 128-bit value.
30964         * crypt/sha512.c (sha512_process_block): Perform total addition using
30965         128-bit if possible.
30966         (__sha512_finish_ctx): Likewise.
30967         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
30968         as 64-bit value.
30969         * crypt/sha256.c (SWAP64): Define.
30970         (sha256_process_block): Perform total addition using 64-bit if
30971         possible.
30972         (__sha256_finish_ctx): Likewise.
30973
30974 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
30975
30976         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
30977         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30978         * nscd/hstcache.c (cache_addhst): Likewise.
30979         * nscd/grpcache.c (cache_addgr): Likewise.
30980         * nscd/aicache.c (addhstaiX): Likewise
30981         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
30982
30983 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
30984
30985         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
30986         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30987         * nscd/hstcache.c (cache_addhst): Likewise.
30988         * nscd/grpcache.c (cache_addgr): Likewise.
30989         * nscd/aicache.c (addhstaiX): Likewise
30990
30991 2011-07-01  Andreas Schwab  <schwab@redhat.com>
30992
30993         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
30994         domain only when needed.
30995
30996 2011-06-30  Andreas Schwab  <schwab@redhat.com>
30997
30998         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
30999         is always restored.
31000
31001 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
31002
31003         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
31004         are re-adding the entry.
31005         * nscd/servicescache.c (cache_addserv): Likewise.
31006
31007 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
31008
31009         * sysdeps/generic/dl-irel.h: fix protection against multiple
31010         inclusions.
31011         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
31012
31013 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
31014
31015         [BZ #12935]
31016         * malloc/memusage.sh: Fix quoting in message.
31017         * debug/xtrace.sh: Likewise.
31018
31019         * configure.in: Remove support for --experimental-malloc option, make
31020         it the default.
31021         * config.make.in: Likewise.
31022         * malloc/Makefile: Likewise.
31023
31024 2011-06-27  Andreas Schwab  <schwab@redhat.com>
31025
31026         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
31027         two-byte characters.
31028
31029 2011-06-27  Roland McGrath  <roland@hack.frob.com>
31030
31031         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
31032         AC_CACHE_CHECK invocation.
31033         * configure: Regenerated.
31034
31035         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
31036
31037 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
31038
31039         [BZ #12350]
31040         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
31041         bit from old_res_options.
31042
31043         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
31044
31045         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
31046         value type for setfct.
31047
31048 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
31049
31050         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
31051         __gettimeofday instead of gettimeofday.
31052
31053 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
31054
31055         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
31056
31057 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
31058
31059         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
31060
31061         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
31062         info.
31063
31064 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
31065
31066         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31067         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
31068         strcpy-sse2-unaligned strncpy-sse2-unaligned
31069         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
31070         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
31071         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
31072         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
31073         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
31074         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
31075         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
31076         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
31077         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
31078         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
31079         (STRCPY): Support SSE2 and SSSE3 versions.
31080
31081 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
31082
31083         [BZ #12874]
31084         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
31085         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
31086         kernels which artificially limit size of requests.
31087
31088 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
31089
31090         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31091         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
31092         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
31093         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
31094         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
31095         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
31096         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
31097         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
31098         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
31099         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
31100         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
31101         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
31102         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
31103         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
31104         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
31105         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31106         Enable unaligned load optimization for Intel Core i3, i5 and i7
31107         processors.
31108         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
31109         Define.
31110         (index_Fast_Unaligned_Load): Define.
31111         (HAS_FAST_UNALIGNED_LOAD): Define.
31112
31113 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
31114
31115         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
31116
31117 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
31118
31119         [BZ #12907]
31120         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
31121         until it is clear that the information is realy needed.
31122         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
31123
31124 2011-06-22  Andreas Schwab  <schwab@redhat.com>
31125
31126         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
31127
31128 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
31129
31130         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
31131         /sys/devices/system/cpu/online if it is usable.
31132
31133         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
31134         reading the information from the /proc filesystem to once a second.
31135
31136 2011-06-21  Andreas Jaeger  <aj@suse.de>
31137
31138         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
31139         NULL after inclusion of kernel headers.
31140
31141 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
31142
31143         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
31144         calls to internal_setent.
31145
31146         [BZ #12885]
31147         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
31148         addresses using gethostbyname4_r ignore IPv4 addresses.
31149
31150         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
31151         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
31152
31153         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
31154
31155 2011-06-20  David S. Miller  <davem@davemloft.net>
31156
31157         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
31158         inclusions.
31159         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
31160
31161         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
31162         (elf_irel): Use it.
31163         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
31164         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
31165         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
31166         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
31167         * sysdeps/x86_64/dl-irel.h: Likewise.
31168
31169         * elf/dl-runtime.c: Use elf_ifunc_invoke.
31170         * elf/dl-sym.c: Likewise.
31171
31172 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
31173
31174         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
31175         need to dereference resplen2.
31176
31177 2011-06-14  Andreas Schwab  <schwab@redhat.com>
31178
31179         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
31180
31181 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
31182
31183         * Makeconfig: Define vardbdir and inst_vardbdir.
31184         * nss/Makefile: Add rules to install db-Makefile.
31185
31186         * nss/nss_db/db-XXX.c: Cleanup.
31187
31188         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
31189         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
31190         GLIBC_PRIVATE.
31191         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
31192         * nss/makedb.c: Implement -g option to specify that value strings
31193         are generated and should not be added to table iterated over for
31194         get*ent calls.
31195         * nss/nss_db/db-initgroups.c: New file.
31196
31197         * nss/getent.c: Add support for initgroups lookups through getgrouplist
31198         interface.
31199
31200         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
31201         (internal_getgrouplist): Adjust to name change.
31202         Update use_initgroups_entry if this is not the first call.
31203         * nss/databases.def: Add initgroups entry.
31204
31205         * nss/makedb.c (compute_tables): Check result of multiple hash table
31206         sizes to minimize maximum chain length.
31207
31208 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
31209
31210         * Versions.def: Add entry for libnss_db.
31211         * shlib-versions: Likewise.
31212         * nss/Makefile: Add rules to build libnss_db.
31213         * nss/Versions: Add libnss_db information.  Organize libnss_files
31214         entries better.
31215         * nss/db-Makefile: Add gshadow support.  Change rules for the new
31216         makedb progra.  Some minor improvements to generate smaller files.
31217         * nss/nss_db/nss_db.h: Move NSS database header data structures to
31218         here from...
31219         * nss/makedb.c: ...here.
31220         Improve database format to be smaller and require less memory at
31221         runtime.
31222         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
31223         db anymore.
31224         * nss/nss_db/db-netgrp.c: Likewise.
31225         * nss/nss_db/db-open.c: Likewise.
31226         * nss/nss_files/flies-XXX.x: Adjust comments.
31227         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
31228         * nss/nss_files/files-grp.c: Likewise.
31229         * nss/nss_files/files-hosts.c: Likewise.
31230         * nss/nss_files/files-network.c: Likewise.
31231         * nss/nss_files/files-proto.c: Likewise.
31232         * nss/nss_files/files-pwd.c: Likewise.
31233         * nss/nss_files/files-rpc.c: Likewise.
31234         * nss/nss_files/files-service.c: Likewise.
31235         * nss/nss_files/files-sgrp.c: Likewise.
31236         * nss/nss_files/files-spwd.c: Likewise.
31237         * nss/nss_db/db-alias.c: Removed.
31238         * nss/nss_db/dummy-db.h: Removed.
31239
31240 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
31241
31242         * nss/makedb.c: Rewritten to not use database library.
31243         * nss/Makefile: Update to build new makedb program.
31244
31245 2011-06-14  Andreas Jaeger  <aj@suse.de>
31246
31247         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
31248         memset declaration.
31249
31250 2011-06-10  Andreas Schwab  <schwab@redhat.com>
31251
31252         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
31253         tmpbuf.
31254
31255 2011-06-10  Roland McGrath  <roland@hack.frob.com>
31256
31257         * Makerules (shlib.lds): Fail if the linker script comes out empty.
31258         * elf/Makefile ($(objpfx)ld.so): Likewise.
31259
31260         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
31261         Don't list ld.so twice in dependencies.
31262
31263         * posix/bug-regex31.c: Include <stdlib.h>.
31264
31265         * nscd/hstcache.c (cache_addhst): Remove unused variable.
31266
31267         * nis/nss_compat/compat-spwd.c
31268         (getspent_next_nss_netgr): Remove unused variable.
31269         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
31270
31271         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
31272         nonmembers" output to use the right array.
31273
31274         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
31275
31276         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
31277
31278         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
31279         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
31280         * catgets/gencat.c (read_input_file): Likewise.
31281         * locale/programs/locarchive.c (enlarge_archive): Likewise.
31282
31283         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
31284         variable definition inside #if's controlling its use.
31285
31286         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
31287
31288         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
31289
31290         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
31291
31292         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
31293         unreachable code.
31294
31295         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
31296
31297         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
31298         * configure: Regenerated.
31299
31300         * Makerules: Revert last change.
31301         * elf/Makefile: Likewise.
31302
31303 2011-06-09  Roland McGrath  <roland@hack.frob.com>
31304
31305         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
31306         * elf/Makefile ($(objpfx)librtld.os): Likewise.
31307         (reloc-link): Likewise.
31308
31309 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
31310
31311         * elf/Makefile: Add rules to build pldd.
31312         * elf/pldd.c: New file.
31313         * elf/pldd-xx.c: New file.
31314
31315 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
31316
31317         * version.h: Update for 2.15 development version.
31318
31319 2011-06-07  David S. Miller  <davem@davemloft.net>
31320
31321         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
31322         ifuncs.
31323         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
31324         elf_machine_lazy_rel): Likewise.
31325         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
31326         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
31327         elf_machine_lazy_rel): Likewise.
31328         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
31329         dl_hwcap via passed in argument.
31330         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
31331         Likewise.
31332
31333 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31334
31335         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
31336
31337 2011-06-06  Roland McGrath  <roland@hack.frob.com>
31338
31339         [BZ #12849]
31340         * manual/fdl-1.1.texi: New file, verbatim from:
31341         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
31342         * manual/lgpl-2.1.texi: New file, verbatim from:
31343         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
31344         * manual/Makefile (licenses): New variable, list those new file names.
31345         (texis): Use it.
31346         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
31347
31348         * manual/fdl.texi: File removed.
31349         * manual/lesser.texi: File removed.
31350         * manual/libc.texinfo (Copying, Documentation License):
31351         Use new @include file names, put @appendix directive before @include.
31352
31353 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
31354
31355         [BZ #12841]
31356         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
31357         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
31358         (mq_open): Add __NTH.
31359
31360 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
31361
31362         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31363         Assume Intel Core i3/i5/i7 processor if AVX is available.
31364
31365 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
31366
31367         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
31368         typo.
31369
31370 2011-05-31  Andreas Schwab  <schwab@redhat.com>
31371
31372         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
31373         memory.  Use alloca_account.  Fix memory leak when retrying.
31374
31375 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
31376
31377         * version.h (RELEASE): Bump for 2.14 release.
31378         * include/features.h (__GLIBC_MINOR__): Bump to 14.
31379
31380         * config.make.in (RANLIB): Remove entry.
31381
31382 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
31383
31384         * po/Makefile (po-sed-cmd): Add ksh to extensions.
31385         (libc.pot): Work around missing support for .ksh extension in xgettext.
31386
31387         [BZ #12684]
31388         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
31389         if both request failed.
31390         (send_dg): In case of server errors clear resplen or *resplen2.
31391
31392         [BZ #12454]
31393         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
31394         when there are multiple maps.
31395         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
31396         (_dl_fini): Remove test here.
31397
31398         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
31399
31400 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
31401
31402         [BZ #12350]
31403         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
31404         bit from old_res_options.
31405         (gaih_inet): Likewise.
31406
31407         [BZ #11099]
31408         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
31409         as signed.
31410
31411         * resolv/res_init.c (res_setoptions): Make the code more compact.
31412
31413         [BZ #11558]
31414         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
31415         set RES_USEVC.
31416
31417         [BZ #11634]
31418         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
31419
31420         * malloc/malloc.h: Mark malloc hook variables as deprecated.
31421
31422         [BZ #11781]
31423         * malloc/malloc.h: Declare malloc hook variables as volatile.
31424
31425         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
31426         in last patch.
31427
31428         [BZ #11799]
31429         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
31430         raise in the comment.
31431         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
31432         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
31433         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
31434
31435 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
31436
31437         [BZ #12811]
31438         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
31439         grow the buffers more if it already has to be sufficient.
31440         (build_wcs_upper_buffer): Likewise.
31441         * posix/regexec.c (check_matching): Likewise.
31442         (clean_state_log_if_needed): Likewise.
31443         (extend_buffers): Don't enlarge buffers beyond size of the input
31444         buffer.
31445         Patches mostly by Emil Wojak <emil@wojak.eu>.
31446         * posix/bug-regex32.c: New file.
31447         * posix/Makefile (tests): Add bug-regex32.
31448
31449         * locale/findlocale.c (_nl_find_locale): Return right away if
31450         _nl_explode_name failed.
31451         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
31452
31453         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
31454
31455         * debug/xtrace.sh: Unify messages.
31456         * malloc/memusage.sh: Likewise.
31457
31458         [BZ #12813]
31459         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
31460         time symbol from vDSO.  Substitute with vsyscall if not available.
31461         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
31462         __vdso_time.
31463
31464         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
31465         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
31466         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
31467         Add sendmmsg and internal_sendmmsg.
31468         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
31469         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
31470         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
31471
31472         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
31473         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
31474         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
31475
31476 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
31477
31478         [BZ #12813]
31479         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
31480         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
31481         available.
31482         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
31483         __vdso_getcpu.
31484
31485         [BZ #12814]
31486         * iconvdata/Makefile (tests): Add bug-iconv9.
31487         * iconvdata/bug-iconv9.c: New file.
31488
31489 2011-05-27  Andreas Schwab  <schwab@redhat.com>
31490
31491         [BZ #12814]
31492         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
31493
31494 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
31495
31496         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
31497         (struct user_regs_struct): Change intcs field back to cs.
31498
31499 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
31500
31501         * po/ja.po: Update from translation team.
31502
31503 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
31504
31505         [BZ #12795]
31506         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
31507         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
31508
31509 2011-05-20  Andreas Schwab  <schwab@redhat.com>
31510
31511         * stdlib/longlong.h: Update from GCC.
31512
31513 2011-05-23  Andreas Schwab  <schwab@redhat.com>
31514
31515         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
31516         parameter name.
31517         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
31518         Add parameter name.
31519         (__sysconf): Pass it down.
31520
31521 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
31522
31523         [BZ #12671]
31524         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
31525         some situations.
31526         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31527         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
31528         add in in __libc_use_alloca calls.  Adjust callers.
31529         (glob): Use malloc in some situations.
31530
31531         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
31532         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
31533         pltexit.
31534
31535 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
31536
31537         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
31538         and CLOCK_BOOTTIME_ALARM.
31539
31540         [BZ #12782]
31541         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
31542         is returned.
31543
31544         * string/_strerror.c (__strerror_r): Print negative errors as signed
31545         numbers.
31546
31547         [BZ #12777]
31548         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
31549         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
31550         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
31551
31552         * configure.in: Fix typo in redirection and correct removal of test
31553         files in two cases.
31554
31555         [BZ #12788]
31556         * locale/setlocale.c (new_composite_name): Fix test to check for
31557         identical name of all categories.
31558
31559         [BZ #12792]
31560         * libio/filedoalloc.c (local_isatty): New function.
31561         (_IO_file_doallocate): Use local_isatty.
31562         * stdio-common/perror.c (perror): In case a new stream is used
31563         forward the stream error.
31564         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
31565         error flag.
31566
31567 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
31568
31569         [BZ #11869]
31570         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
31571         alloca.
31572         * include/alloca.h (extend_alloca_account): Define.
31573
31574         [BZ #11857]
31575         * posix/regex.h: Fix comments with documentation of user-accessible
31576         fields after compilation and describe correct free'ing of pattern
31577         after re_compile_pattern.
31578         Patch by Reuben Thomas <rrt@sc3d.org>.
31579
31580 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
31581
31582         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
31583         and -mno-altivec to prevent the compiler from using Altivec and/or
31584         VSX instructions when the corresponding registers are not available.
31585
31586 2011-05-19  Andreas Schwab  <schwab@redhat.com>
31587
31588         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
31589
31590 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
31591
31592         * libio/freopen.c (freopen): Use __dup2, not dup2.
31593         * libio/freopen64.c (freopen64): Likewise.
31594
31595 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31596
31597         [BZ #12775]
31598         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
31599         * math/Makefile (tests): Add test-powl.
31600         (CFLAGS-test-powl.c): Define.
31601         * math/test-powl.c: New file.
31602
31603 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31604
31605         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
31606
31607 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
31608
31609         [BZ #11837]
31610         * iconvdata/gb18030.c: Update to GB18020-2005.
31611
31612 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
31613
31614         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
31615         RE_SYNTAX_POSIX_AWK): Update to match recent development.
31616         Patch by Aharon Robbins <arnold@skeeve.com>.
31617
31618         [BZ #11892]
31619         * stdlib/putenv.c (putenv): Don't always create copy of the variable
31620         on the stack.
31621
31622         [BZ #11895]
31623         * misc/pselect.c (__pselect): Handle timeout value errors hidden
31624         through underflows.
31625
31626         [BZ #12766]
31627         * misc/error.c (error_at_line): Ensure file_name and old_file_name
31628         point to strings before performing equality test for error_one_per_line
31629         mode.
31630
31631         [BZ #11697]
31632         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
31633
31634         [BZ #11820]
31635         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
31636         (struct user_fpregs_struct): Avoid __uint*_t types.
31637
31638         [BZ #6420]
31639         * malloc/mtrace.c (tr_where): Add additional parameter to point to
31640         symbol info.  Use it instead of calling _dl_addr locally.
31641         (lock_and_info): New function.
31642         (tr_freehook): Call lock_and_info and pass symbol info as additional
31643         parameter to tr_where.
31644         (tr_mallochook): Likewise.
31645         (tr_reallochook): Likewise.
31646         (tr_memalignhook): Likewise.
31647
31648         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
31649         used and couldn't be at all thread-safe.
31650
31651 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
31652
31653         * libio/freopen.c (freopen): Don't close old file descriptor
31654         before the new one is opened.  Instead dup the new file descriptor
31655         to the old one after the new stream is created.
31656         * libio/freopen64.c (freopen64): Likewise.
31657         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
31658         * libio/fileops.c (_IO_new_file_close_it): Handle new
31659         _IO_FLAGS2_NOCLOSE flag.
31660         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
31661         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
31662         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
31663         _IO_FLAGS2_NOCLOSE flag.
31664         * include/unistd.h: Add hidden_proto for dup3.
31665         Define __have_dup3.
31666         * io/dup3.c: Define hidden symbol.
31667         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
31668
31669         [BZ #7101]
31670         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
31671         when an incomplete long option is used.
31672         * posix/tst-getopt_long1.c: New file.
31673         * posix/Makefile (tests): Add tst-getopt_long1.
31674
31675         [BZ #10138]
31676         * scripts/config.guess: Update from autoconf-2.68.
31677         * scripts/config.sub: Likewise.
31678
31679         [BZ #10157]
31680         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
31681         tests into ...
31682         (has_cpuclock): ...this.  New function.
31683         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
31684         macro here based on has_cpuclock code.
31685
31686         [BZ #10149]
31687         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
31688         First byte (not low byte) is now always NUL.
31689         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
31690
31691         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
31692         Use non-cancelable interfaces.
31693
31694         [BZ #9809]
31695         * locale/iso-639.def: Add entry for Sorani.
31696
31697         [BZ #11901]
31698         * include/stdlib.h: Move include protection to the right place.
31699         Define abort_msg_s.  Declare __abort_msg with it.
31700         * stdlib/abort.c (__abort_msg): Adjust type.
31701         * assert/assert.c (__assert_fail_base): New function.  Majority
31702         of code from __assert_fail.  Allocate memory for __abort_msg with
31703         mmap.
31704         (__assert_fail): Now call __assert_fail_base.
31705         * assert/assert-perr.c: Remove bulk of implementation.  Use
31706         __assert_fail_base.
31707         * include/assert.hL Declare __assert_fail_base.
31708         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
31709         mmap.
31710         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
31711
31712 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
31713
31714         [BZ #11952]
31715         [BZ #12453]
31716         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
31717         until all modules are registered in the DTV.
31718         * elf/Makefile: Add rules to build and run tst-tls19.
31719         * elf/tst-tls19.c: New file.
31720         * elf/tst-tls19mod1.c: New file.
31721         * elf/tst-tls19mod2.c: New file.
31722         * elf/tst-tls19mod3.c: New file.
31723         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
31724
31725         [BZ #12083]
31726         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
31727         correctly.
31728
31729         [BZ #12601]
31730         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
31731         two-byte sequence errors.
31732         * iconvdata/Makefile (tests): Add bug-iconv8.
31733         * iconvdata/bug-iconv8.c: New file.
31734
31735         [BZ #12626]
31736         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
31737         buf2 definition.
31738
31739         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
31740
31741         [BZ #12432]
31742         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
31743         (dummy_getcfa): New function.
31744         (init): Get _Unwind_GetCFA address, use dummy if not found.
31745         (backtrace_helper): In recursion check, also check whether CFA changes.
31746         (__backtrace): Completely initialize arg.
31747
31748         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
31749         storing incomplete byte sequence in state object.  Avoid testing for
31750         guaranteed too small input if we know there is enough data available.
31751
31752 2011-05-11  Andreas Schwab  <schwab@redhat.com>
31753
31754         * Makeconfig (+link-pie): Indent.
31755         * Rules (binaries-pie): Define if $(have-fpie) and
31756         $(build-shared).
31757         (binaries-shared): Also filter out $(binaries-pie).
31758         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
31759         * nscd/Makefile (others-pie): Add nscd.
31760         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
31761         ($(objpfx)nscd): Remove command override.
31762         * login/Makefile (others-pie): Add pt_chown.
31763         ($(objpfx)pt_chown): Remove command override.
31764         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
31765         remove command overrides.
31766
31767 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
31768
31769         * libio/tst_putwc.c: Fix error messages.
31770
31771         [BZ #12724]
31772         * libio/fileops.c (_IO_new_file_close_it): Always flush when
31773         currently writing and seek to current position when not.
31774         * libio/Makefile (tests): Add bug-fclose1.
31775         * libio/bug-fclose1.c: New file.
31776
31777 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
31778
31779         [BZ #12511]
31780         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
31781         don't set DF_1_NODELETE here.
31782         (do_lookup_x): When entering new entry test for copy relocation
31783         and if necessary set DF_1_NODELETE flag.
31784         * elf/tst-unique4.cc: New file.
31785         * elf/tst-unique4.h: New file.
31786         * elf/tst-unique4lib.cc: New file.
31787         * elf/Makefile: Add rules to build and run tst-unique4.
31788         Patch by Piotr Bury <pbury@goahead.com>.
31789
31790 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
31791
31792         [BZ #12052]
31793         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
31794
31795         [BZ #12625]
31796         * misc/mntent_r.c (addmntent): Flush the stream after the output
31797
31798         [BZ #12393]
31799         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
31800         (is_trusted_path_normalize): Skip initial colon.  Append slash
31801         to empty buffer.  Duplicate is_trusted_path code but allow
31802         constructed patch to be prefix.
31803         (is_dst): Allow $ORIGIN followed by /.
31804         (_dl_dst_substitute): Correct clearing of check_for_trusted.
31805         Correct testing of result of is_trusted_path_normalize
31806         (decompose_rpath): Fix warning.
31807
31808 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
31809
31810         [BZ #11257]
31811         * grp/initgroups.c (internal_getgrouplist): When we found the service
31812         list through the initgroups entry in nsswitch.conf do not always
31813         continue on a successful lookup.  Don't always use the
31814         __nss_group_database value if it is set.
31815         * nss/nsswitch.conf (initgroups): Change action for successful db
31816         lookup to continue for compatibility.
31817
31818 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
31819
31820         [BZ #11532]
31821         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
31822         and CP774 modules.
31823         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
31824         and CP774 modules.
31825         * iconvdata/tst-tables.sh: Likewise.
31826         * iconvdata/cp770.c: New file.
31827         * iconvdata/cp771.c: New file.
31828         * iconvdata/cp772.c: New file.
31829         * iconvdata/cp773.c: New file.
31830         * iconvdata/cp774.c: New file.
31831         * iconvdata/testdata/CP770: New file.
31832         * iconvdata/testdata/CP770..UTF8: New file.
31833         * iconvdata/testdata/CP771: New file.
31834         * iconvdata/testdata/CP771..UTF8: New file.
31835         * iconvdata/testdata/CP772: New file.
31836         * iconvdata/testdata/CP772..UTF8: New file.
31837         * iconvdata/testdata/CP773: New file.
31838         * iconvdata/testdata/CP773..UTF8: New file.
31839         * iconvdata/testdata/CP774: New file.
31840         * iconvdata/testdata/CP774..UTF8: New file.
31841
31842         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
31843         END CHARMAP line.
31844         * iconvdata/gen-8bit-gap.sh: Likewise.
31845         * iconvdata/gen-8bit.sh: Likewise.
31846
31847         * locale/iso-639.def: Add ary entry.
31848
31849         [BZ #11258]
31850         * locale/C-translit.h.in: Add U20A1 transliteration.
31851
31852         [BZ #12178]
31853         * locale/iso-639.def: Add wae entry.
31854         Patch by Kevin Bortis <bortis@translate-wae.ch>.
31855
31856         [BZ #12545]
31857         * locale/programs/localedef.c (construct_output_path): Use ssize_t
31858         for n.
31859
31860         [BZ #12711]
31861         * locale/C-translit.h.in: Add entry for U20B9.
31862         Patch by pravin.d.s@gmail.com.
31863
31864 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
31865
31866         [BZ #12713]
31867         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
31868         ENAMETOOLONG use generic getcwd.
31869         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
31870         in rtld.  Use *stat64.
31871         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
31872         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
31873         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
31874         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
31875         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
31876         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
31877         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
31878         __fstatat64 macros.
31879         * include/dirent.h: Add libc_hidden_proto for rewinddir.
31880         * dirent/rewinddir.c: Add libc_hidden_def.
31881         * sysdeps/mach/hurd/rewinddir.c: Likewise.
31882         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
31883
31884         * include/dirent.h (__alloc_dir): Add flags parameter.
31885         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
31886         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
31887         __alloc_dir.
31888         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
31889         from fdopendir if O_CLOEXEC is already set.
31890
31891 2011-03-15  Alan Modra  <amodra@gmail.com>
31892
31893         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
31894         l_tls_firstbyte_offset non-zero.  Save padding offset in
31895         l_tls_firstbyte_offset for later use.
31896         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
31897         freeing static tls block.
31898
31899 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
31900
31901         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
31902         where #ifdef was intended.  The intent is to prevent ARG_MAX from
31903         being defined by the kernel headers.
31904
31905 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
31906
31907         [BZ #12734]
31908         * resolv/resolv.h: Define RES_NOTLDQUERY.
31909         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
31910         no-tld-query and set RES_NOTLDQUERY.
31911         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
31912         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
31913         modern BIND to search name as TLD unless forbidden.
31914
31915 2011-05-07  Petr Baudis  <pasky@suse.cz>
31916             Ulrich Drepper  <drepper@gmail.com>
31917
31918         [BZ #12393]
31919         * elf/dl-load.c (fillin_rpath): Move trusted path check...
31920         (is_trusted_path): ...to here.
31921         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
31922         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
31923         using is_trusted_path_normalize() in setuid scripts.
31924
31925 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
31926
31927         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
31928         __BEGIN/__END_DECLS.
31929
31930 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
31931
31932         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
31933         NSS_STATUS_NOTFOUND if no record was found.
31934
31935 2011-05-05  Andreas Schwab  <schwab@redhat.com>
31936
31937         * sunrpc/Makefile (headers): Add rpc/netdb.h.
31938         (headers-not-in-tirpc): Remove rpc/netdb.h
31939         * resolv/netdb.h: Revert last change.
31940
31941 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
31942
31943         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
31944         circular dependency between libgcc.a and libc.a.
31945
31946 2011-05-05  Andreas Schwab  <schwab@redhat.com>
31947
31948         * resolv/netdb.h: Don't include <rpc/netdb.h>.
31949         * nis/Makefile: Don't install rpcsvc/*.
31950         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
31951         instead of <rpc/types.h>.
31952         (MAXHOSTNAMELEN): Define.
31953
31954 2011-05-03  Andreas Schwab  <schwab@redhat.com>
31955
31956         * elf/ldconfig.c (add_dir): Don't crash on empty path.
31957
31958 2011-04-28  Maciej Babinski  <mbabinski@google.com>
31959
31960         [BZ #12714]
31961         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
31962         gethostbyname4_r when IPv6 results are possible.
31963
31964 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
31965
31966         [BZ #12723]
31967         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
31968         _PC_PIPE_BUF handling.
31969
31970 2011-04-30  Bruno Haible  <bruno@clisp.org>
31971
31972         [BZ #12717]
31973         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
31974         * resolv/netdb.h (getnameinfo): Change type of flags parameter
31975         to 'int'.
31976         * inet/getnameinfo.c (getnameinfo): Likewise.
31977
31978 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
31979
31980         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
31981         to groups setting in database lookup.
31982         * nss/nsswitch.conf: Add initgroups entry.
31983
31984 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
31985
31986         [BZ #12685]
31987         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
31988         mode string.
31989         Patch by Eric Blake <eblake@redhat.com>.
31990
31991 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
31992
31993         * sunrpc/Makefile (need-export-routines): Add svc_run.
31994         (routines): Remove svc_run.
31995         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
31996         * sunrpc/clnt_perr.c (clnt_perrno): Export.
31997         * sunrpc/svc_run.c (svc_run): Likewise.
31998         * sunrpc/svc_udp.c (svcudp_create): Likewise.
31999
32000 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
32001
32002         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
32003         problem in reallocation in last patch.
32004
32005 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
32006
32007         * sunrpc/Makefile: Move inclusion of Rules.
32008
32009 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
32010
32011         * nss/nss_files/files-initgroups.c: New file.
32012         * nss/Makefile (libnss_files-routines): Add files-initgroups.
32013         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
32014         _nss_files_initgroups_dyn.
32015
32016 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
32017
32018         * elf/elf.h (R_ARM_IRELATIVE): Define.
32019
32020 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
32021
32022         * po/ru.po: Update from translation team.
32023
32024 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
32025
32026         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
32027         dependencies.
32028
32029 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
32030
32031         [BZ #12653]
32032         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
32033         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
32034         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32035         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32036         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
32037
32038 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
32039
32040         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
32041         differing bytes.
32042         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
32043         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
32044         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
32045
32046 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
32047
32048         [BZ #12420]
32049         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
32050         storing it.
32051         * stdlib/bug-getcontext.c: New file.
32052         * stdlib/Makefile: Add rules to build and run bug-getcontext.
32053
32054 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32055
32056         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
32057         instructions into .machine "z9-109".
32058         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
32059         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
32060
32061 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32062
32063         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
32064         between environment variables and auxiliary vector.
32065
32066 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
32067
32068         * Makefile: Add rules to build linkobj/libc.so.
32069         * include/libc-symbols.h: Define libc_hidden_nolink.
32070         * include/rpc/auth.h: Mark functions which are to be hidden.
32071         * include/rpc/auth_des.h: Likewise.
32072         * include/rpc/auth_unix.h: Likewise.
32073         * include/rpc/clnt.h: Likewise.
32074         * include/rpc/des_crypt.h: Likewise.
32075         * include/rpc/key_prot.h: Likewise.
32076         * include/rpc/pmap_clnt.h: Likewise.
32077         * include/rpc/pmap_prot.h: Likewise.
32078         * include/rpc/pmap_rmt.h: Likewise.
32079         * include/rpc/rpc_msg.h: Likewise.
32080         * include/rpc/svc.h: Likewise.
32081         * include/rpc/svc_auth.h: Likewise.
32082         * include/rpc/xdr.h: Likewise.
32083         * nis/Makefile: Link all DSOs against linkobj/libc.so.
32084         * nss/Makefile: Likewise.
32085         * sunrpc/Makefile: Don't install headers.  Build library with normal
32086         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
32087         * sunrpc/auth_des.c: Hide exported symbols by default, export some
32088         for the compat linking library.  Remove use of INTDEF/INTUSE.
32089         * sunrpc/auth_none.c: Likewise.
32090         * sunrpc/auth_unix.c: Likewise.
32091         * sunrpc/authdes_prot.c: Likewise.
32092         * sunrpc/authuxprot.c: Likewise.
32093         * sunrpc/clnt_gen.c: Likewise.
32094         * sunrpc/clnt_perr.c: Likewise.
32095         * sunrpc/clnt_raw.c: Likewise.
32096         * sunrpc/clnt_simp.c: Likewise.
32097         * sunrpc/clnt_tcp.c: Likewise.
32098         * sunrpc/clnt_udp.c: Likewise.
32099         * sunrpc/clnt_unix.c: Likewise.
32100         * sunrpc/des_crypt.c: Likewise.
32101         * sunrpc/des_soft.c: Likewise.
32102         * sunrpc/get_myaddr.c: Likewise.
32103         * sunrpc/key_call.c: Likewise.
32104         * sunrpc/key_prot.c: Likewise.
32105         * sunrpc/netname.c: Likewise.
32106         * sunrpc/pm_getmaps.c: Likewise.
32107         * sunrpc/pm_getport.c: Likewise.
32108         * sunrpc/pmap_clnt.c: Likewise.
32109         * sunrpc/pmap_prot.c: Likewise.
32110         * sunrpc/pmap_prot2.c: Likewise.
32111         * sunrpc/pmap_rmt.c: Likewise.
32112         * sunrpc/publickey.c: Likewise.
32113         * sunrpc/rpc_cmsg.c: Likewise.
32114         * sunrpc/rpc_common.c: Likewise.
32115         * sunrpc/rpc_dtable.c: Likewise.
32116         * sunrpc/rpc_prot.c: Likewise.
32117         * sunrpc/rpc_thread.c: Likewise.
32118         * sunrpc/rtime.c: Likewise.
32119         * sunrpc/svc.c: Likewise.
32120         * sunrpc/svc_auth.c: Likewise.
32121         * sunrpc/svc_authux.c: Likewise.
32122         * sunrpc/svc_raw.c: Likewise.
32123         * sunrpc/svc_run.c: Likewise.
32124         * sunrpc/svc_simple.c: Likewise.
32125         * sunrpc/svc_tcp.c: Likewise.
32126         * sunrpc/svc_udp.c: Likewise.
32127         * sunrpc/svc_unix.c: Likewise.
32128         * sunrpc/svcauth_des.c: Likewise.
32129         * sunrpc/xcrypt.c: Likewise.
32130         * sunrpc/xdr.c: Likewise.
32131         * sunrpc/xdr_array.c: Likewise.
32132         * sunrpc/xdr_float.c: Likewise.
32133         * sunrpc/xdr_intXX_t.c: Likewise.
32134         * sunrpc/xdr_mem.c: Likewise.
32135         * sunrpc/xdr_rec.c: Likewise.
32136         * sunrpc/xdr_ref.c: Likewise.
32137         * sunrpc/xdr_sizeof.c: Likewise.
32138         * sunrpc/xdr_stdio.c: Likewise.
32139
32140 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
32141
32142         [BZ #12650]
32143         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
32144         * sysdeps/ia64/dl-tls.h: Likewise.
32145         * sysdeps/powerpc/dl-tls.h: Likewise.
32146         * sysdeps/s390/dl-tls.h: Likewise.
32147         * sysdeps/sh/dl-tls.h: Likewise.
32148         * sysdeps/sparc/dl-tls.h: Likewise.
32149         * sysdeps/x86_64/dl-tls.h: Likewise.
32150         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
32151
32152 2011-03-14  Andreas Schwab  <schwab@redhat.com>
32153
32154         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
32155         rpath element also skip the following colon.
32156         (expand_dynamic_string_token): Add is_path parameter and pass
32157         down to DL_DST_REQUIRED and _dl_dst_substitute.
32158         (decompose_rpath): Call expand_dynamic_string_token with
32159         non-zero is_path.  Ignore empty rpaths.
32160         (_dl_map_object_from_fd): Call expand_dynamic_string_token
32161         with zero is_path.
32162
32163 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
32164
32165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
32166         Make cancelable.
32167
32168 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
32169
32170         [BZ #12655]
32171         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
32172         Patch by Filipe David Manana <fdmanana@apache.org>.
32173
32174 2011-04-07  Andreas Schwab  <schwab@redhat.com>
32175
32176         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
32177         Maintain aligned stack.
32178         (CHECK_RSP): Remove unused macro.
32179
32180 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
32181
32182         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
32183         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
32184
32185 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
32186
32187         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
32188
32189         * include/features.h: Mention __USE_XOPEN2K8 in comment.
32190
32191 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
32192
32193         [BZ #12518]
32194         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
32195         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
32196         * sysdeps/x86_64/memmove.c: New file.
32197         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
32198         (memcpy): Renamed to ...
32199         (__new_memcpy): This.
32200         (memcpy): Provide GLIBC_2_14 memcpy.
32201         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
32202         (memcpy): Provide GLIBC_2_2_5 memcpy.
32203
32204 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32205
32206         [BZ #12631]
32207         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
32208
32209 2011-03-30  Andreas Schwab  <schwab@redhat.com>
32210
32211         * misc/syncfs.c: New file.
32212         * misc/Makefile (routines): Add syncfs.
32213         * posix/unistd.h: Declare syncfs.
32214         * sysdeps/unix/syscalls.list: Add syncfs.
32215
32216 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32217
32218         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
32219         open_by_handle_at.
32220         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
32221         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32222         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32223         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32224         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32225         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
32226         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32227
32228 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32229
32230         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
32231         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32232         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
32233         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32234         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32235         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32236         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32237
32238         * io/Makefile: Compile fallocate.c, fallocate64.c, and
32239         sync_file_range.c with -fexceptions.
32240         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
32241         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
32242         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
32243         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
32244         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
32245         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
32246         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
32247         sync_file_range as cancellation point
32248         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
32249         now a wrapper around __call_sync_file_range with cancellation handling.
32250         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
32251         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
32252         function name to __call_sync_file_range.
32253         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
32254         Add call_sync_file_range.
32255
32256 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32257
32258         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
32259         bits/timex.h.
32260
32261 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32262
32263         * iconv/iconv.h: Fix typo in comment.
32264         * io/fcntl.h: Likewise.
32265         * libio/stdio.h: Likewise.
32266         * posix/spawn.h: Likewise.
32267         * posix/unistd.h: Likewise.
32268         * stdlib/stdlib.h: Likewise.
32269         * time/time.h: Likewise.
32270         * wcsmbs/wchar.h: Likewise.
32271
32272         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
32273         open_by_handle): Add.
32274         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
32275         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
32276         Augment a few comments.
32277         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32278         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32279         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32280         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32281         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32282         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
32283         open_by_handle.
32284
32285         * io/fcntl.h (AT_EMPTY_PATH): Define.
32286
32287 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
32288
32289         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
32290         * sysdeps/unix/sysv/linux/bits/time.h: New file.
32291         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
32292         to...
32293         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
32294         * Versions.def: Add GLIBC_2.14.
32295         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
32296         Export.
32297
32298 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
32299
32300         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
32301         round counter.
32302         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32303
32304 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
32305
32306         [BZ #12597]
32307         * string/test-strncmp.c (do_page_test): New function.
32308         (check2): Likewise.
32309         (test_main): Call check2.
32310         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
32311
32312 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
32313
32314         [BZ #12587]
32315         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
32316         Handle cache information in CPU leaf 4.
32317         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32318
32319 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
32320
32321         [BZ #12583]
32322         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
32323         character representation.
32324         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
32325
32326 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
32327
32328         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
32329         END(__isnan) to END(__isnanf) to match function entry point/label
32330         EALIGN(__isnanf,...).
32331
32332 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
32333
32334         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
32335
32336 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
32337
32338         [BZ #12510]
32339         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
32340         copy from the symbol referenced in the relocation to initialize the
32341         used variable.
32342         Patch by Piotr Bury <pbury@goahead.com>.
32343         * elf/Makefile: Add rules to build and tst-unique3.
32344         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
32345         * elf/tst-unique3.cc: New file.
32346         * elf/tst-unique3.h: New file.
32347         * elf/tst-unique3lib.cc: New file.
32348         * elf/tst-unique3lib2.cc: New file.
32349
32350         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
32351
32352 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
32353
32354         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
32355         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
32356         to _start.
32357
32358 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
32359
32360         * elf/dl-load.c (_dl_map_object): If we are looking for the first
32361         to-be-loaded object along a path to loader is ld.so.
32362
32363 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
32364             Ulrich Drepper  <drepper@gmail.com>
32365
32366         * sysdeps/x86_64/memset.S: After aligning destination, code
32367         branches to different locations depending on the value of
32368         misalignment, when multiarch is enabled. Fix this.
32369
32370 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
32371
32372         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
32373         Set _x86_64_preferred_memory_instruction for AMD processsors.
32374         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32375         Set bit_Prefer_SSE_for_memop for AMD processors.
32376
32377 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
32378
32379         * libio/fmemopen.c (fmemopen): Optimize a bit.
32380
32381 2011-03-03  Andreas Schwab  <schwab@redhat.com>
32382
32383         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
32384
32385 2011-03-03  Roland McGrath  <roland@redhat.com>
32386
32387         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
32388
32389 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
32390
32391         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
32392         __bzero_ultra1 instead of __memset_ultra1.
32393
32394 2011-02-23  Andreas Schwab  <schwab@redhat.com>
32395             Ulrich Drepper  <drepper@gmail.com>
32396
32397         [BZ #12509]
32398         * include/link.h (struct link_map): Add l_orig_initfini.
32399         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
32400         returning unsuccessfully.
32401         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
32402         close of a file loaded at startup, restore the original l_initfini
32403         list.
32404         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
32405         list, store the pointer.
32406         * elf/Makefile ($(objpfx)noload-mem): New rule.
32407         (noload-ENV): Define.
32408         (tests): Add $(objpfx)noload-mem.
32409         * elf/noload.c: Include <memcheck.h>.
32410         (main): Call mtrace.  Close all opened handles.
32411
32412 2011-02-17  Andreas Schwab  <schwab@redhat.com>
32413
32414         [BZ #12454]
32415         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
32416         dependencies are missing.
32417
32418 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32419
32420         Fix __if_freereq crash: Unlike the generic version which uses free,
32421         Hurd needs munmap.
32422         * sysdeps/mach/hurd/ifreq.h: New file.
32423
32424 2011-01-27  Petr Baudis  <pasky@suse.cz>
32425             Ulrich Drepper  <drepper@gmail.com>
32426
32427         [BZ 12445]#
32428         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
32429         to extend_alloca().
32430         * stdio-common/bug23.c: New file.
32431         * stdio-common/Makefile (tests): Add bug23.
32432
32433 2010-09-28  Andreas Schwab  <schwab@redhat.com>
32434             Ulrich Drepper  <drepper@gmail.com>
32435
32436         [BZ #12489]
32437         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
32438         before performing relro protection.  At old place add assertion
32439         to make sure nothing changed.
32440
32441 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
32442             Glauber de Oliveira Costa  <glommer@gmail.com>
32443
32444         * elf/elf.h: Add new ARM TLS relocs.
32445
32446 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
32447
32448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
32449         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
32450         cast from r3.
32451         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
32452         'tests' variable.
32453         * sysdeps/wordsize-64/tst-writev.c: New file.
32454
32455 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
32456
32457         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
32458         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
32459         insns in _dl_start to prevent a TOC reference before relocs are
32460         resolved.
32461
32462 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
32463
32464         [BZ #12469]
32465         * Makeconfig: Remove RANLIB definition.
32466         * Makerules: Don't use RANLIB.
32467         * aclocal.m4: Remove ranlib test.
32468         * configure.in: No need to check for ranlib.
32469         * elf/rtld-Rules: Don't use RANLIB.
32470
32471 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32472
32473         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
32474         protection macro.
32475         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
32476         inclusion protection macro.
32477
32478         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
32479         SIGRTMIN and SIGRTMAX and print information in that case only when
32480         SIGRTMIN is defined.
32481
32482 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
32483
32484         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
32485         arginfo fn returning -1.
32486
32487         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
32488         and thousands string is zero terminated.
32489
32490 2011-02-03  Andreas Schwab  <schwab@redhat.com>
32491
32492         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
32493         sysdeps/unix/sysv/linux/bits/socket.h.
32494
32495 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32496
32497         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
32498         (__CPU_COUNT): Remove old macros.
32499         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
32500         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
32501         (__CPU_ALLOC, __CPU_FREE): Add macros.
32502         (__sched_cpualloc, __sched_cpufree): Add declarations.
32503
32504 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
32505
32506         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
32507         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
32508         * nscd/aicache.c (addhstaiX): Return timeout of added value.
32509         (readdhstai): Return value of addhstaiX call.
32510         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
32511         (addgrbyX): Return value returned by cache_addgr.
32512         (readdgrbyname): Return value returned by addgrbyX.
32513         (readdgrbygid): Likewise.
32514         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
32515         (addpwbyX): Return value returned by cache_addpw.
32516         (readdpwbyname): Return value returned by addhstbyX.
32517         (readdpwbyuid): Likewise.
32518         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
32519         (addservbyX): Return value returned by cache_addserv.
32520         (readdservbyname): Return value returned by addservbyX:
32521         (readdservbyport): Likewise.
32522         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
32523         (addhstbyX): Return value returned by cache_addhst.
32524         (readdhstbyname): Return value returned by addhstbyX.
32525         (readdhstbyaddr): Likewise.
32526         (readdhstbynamev6): Likewise.
32527         (readdhstbyaddrv6): Likewise.
32528         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
32529         (readdinitgroups): Return value returned by addinitgroupsX.
32530         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
32531         (prune_cache): Keep track of timeout value of re-added entries.
32532         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
32533         * nscd/nscd.h: Adjust prototypes of readd* functions.
32534
32535 2011-02-04  Roland McGrath  <roland@redhat.com>
32536
32537         * nis/nis_server.c (nis_servstate): Use the right name for 0.
32538         (nis_stats): Likewise.
32539         * nis/nis_modify.c (nis_modify): Likewise.
32540         * nis/nis_remove.c (nis_remove): Likewise.
32541         * nis/nis_add.c (nis_add): Likewise.
32542
32543         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
32544
32545         * posix/fnmatch_loop.c: Add some consts.
32546
32547         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
32548
32549 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
32550
32551         [BZ #12460]
32552         * config.make.in (config-cflags-novzeroupper): Define.
32553         * configure.in: Substitute libc_cv_cc_novzeroupper.
32554         * elf/Makefile (AVX-CFLAGS): Define.
32555         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
32556         (CFLAGS-tst-auditmod4a.c): Likewise.
32557         (CFLAGS-tst-auditmod4b.c): Likewise.
32558         (CFLAGS-tst-auditmod6b.c): Likewise.
32559         (CFLAGS-tst-auditmod6c.c): Likewise.
32560         (CFLAGS-tst-auditmod7b.c): Likewise.
32561         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
32562
32563 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
32564
32565         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
32566         function to the callback.
32567         Patch partly by Jiri Olsa <jolsa@redhat.com>.
32568
32569 2011-02-02  Andreas Schwab  <schwab@redhat.com>
32570
32571         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
32572         of errno.
32573
32574 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
32575
32576         [BZ #11724]
32577         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
32578         of constructors.
32579         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
32580         of destructors.
32581         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
32582
32583         [BZ #11724]
32584         * elf/Makefile: Add rules to build and run new test.
32585         * elf/tst-initorder.c: New file.
32586         * elf/tst-initorder.exp: New file.
32587         * elf/tst-initordera1.c: New file.
32588         * elf/tst-initordera2.c: New file.
32589         * elf/tst-initordera3.c: New file.
32590         * elf/tst-initordera4.c: New file.
32591         * elf/tst-initorderb1.c: New file.
32592         * elf/tst-initorderb2.c: New file.
32593         * elf/tst-order-a1.c: New file.
32594         * elf/tst-order-a2.c: New file.
32595         * elf/tst-order-a3.c: New file.
32596         * elf/tst-order-a4.c: New file.
32597         * elf/tst-order-b1.c: New file.
32598         * elf/tst-order-b2.c: New file.
32599         * elf/tst-order-main.c: New file.
32600         New test case by George Gensure <werkt0@gmail.com>.
32601
32602 2010-10-01  Andreas Schwab  <schwab@redhat.com>
32603
32604         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
32605         decoding ACE if AI_CANONIDN.
32606
32607 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
32608
32609         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
32610
32611 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
32612
32613         * version.h (RELEASE): Bump for 2.13 release.
32614         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
32615
32616         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
32617
32618         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
32619         MADV_NOHUGEPAGE.
32620         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
32621         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
32622         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
32623         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
32624         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
32625         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
32626
32627         * posix/getconf.c: Update copyright year.
32628         * catgets/gencat.c: Likewise.
32629         * csu/version.c: Likewise.
32630         * debug/catchsegv.sh: Likewise.
32631         * debug/xtrace.sh: Likewise.
32632         * elf/ldconfig.c: Likewise.
32633         * elf/ldd.bash.in: Likewise.
32634         * elf/sprof.c (print_version): Likewise.
32635         * iconv/iconv_prog.c: Likewise.
32636         * iconv/iconvconfig.c: Likewise.
32637         * locale/programs/locale.c: Likewise.
32638         * locale/programs/localedef.c: Likewise.
32639         * malloc/memusage.sh: Likewise.
32640         * malloc/mtrace.pl: Likewise.
32641         * nscd/nscd.c (print_version): Likewise.
32642         * nss/getent.c: Likewise.
32643
32644         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
32645         PF_CAIF, and PF_ALG.
32646         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
32647
32648 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
32649
32650         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
32651         (modules-names): Use them.
32652         (ifunc-test-modules, ifunc-pie-tests): Define.
32653         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
32654         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
32655         (test-extras): Likewise.
32656         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
32657         $(compile-command.c).
32658         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
32659         (all-built-dso): Define.
32660         (check-textrel.out, check-execstack.out): Depend on it.
32661
32662         * configure.in: Don't override --enable-multi-arch.
32663
32664 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
32665
32666         [BZ #6812]
32667         * nscd/hstcache.c (tryagain): Define.
32668         (cache_addhst): Return tryagain not notfound for temporary errors.
32669         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
32670         failed.
32671
32672 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
32673
32674         [BZ #10563]
32675         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
32676         to make the syscall.
32677         * sysdeps/unix/sysv/linux/setgroups.c: New file.
32678
32679         [BZ #12378]
32680         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
32681         and fall back to matching as normal character if the string ends before
32682         the matching ']' is found.  This is what POSIX requires.
32683         * posix/testfnm.c: Adjust test result.
32684         * posix/globtest.sh: Adjust test result.  Add new test.
32685         * posix/tst-fnmatch.input: Likewise.
32686         * posix/tst-fnmatch2.c: Add new test.
32687
32688 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
32689
32690         * elf/Makefile (check-execstack): Revert last change.  Depend on
32691         check-execstack.h.
32692         (check-execstack.h): New target.
32693         (generated): Add check-execstack.h.
32694         * elf/check-execstack.c: Include "check-execstack.h".
32695         (main): Revert last change.
32696         (handle_file): Return zero if GNU_STACK is absent and
32697         DEFAULT_STACK_PERMS doesn't include PF_X.
32698
32699 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
32700
32701         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
32702         in child fails because the descriptor is already closed.
32703         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
32704         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
32705         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
32706
32707         [BZ #12397]
32708         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
32709         syscall.
32710
32711         [BZ #10484]
32712         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
32713         temporary buffer used to handle multi lookups locally.
32714         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
32715
32716 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
32717
32718         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
32719         loader is ld.so.
32720
32721 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
32722
32723         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
32724         alignment for SSE2.
32725
32726 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
32727
32728         [BZ #12394]
32729         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
32730         characters.  When rounding increased number of integer digits recompute
32731         number of groups.
32732         * stdio-common/tst-grouping.c: New file.
32733         * stdio-common/Makefile: Add rules to build and run tst-grouping.
32734
32735 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
32736
32737         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
32738         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
32739
32740         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
32741         void.
32742         * bits/select.h: Likewise.
32743
32744 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
32745
32746         * po/ja.po: Update from translation team.
32747
32748 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
32749
32750         [BZ #11155]
32751         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
32752         implementation just like for lxstat, fxstatat, et al.
32753
32754 2010-12-27  Jim Meyering  <meyering@redhat.com>
32755
32756         [BZ #12348]
32757         * posix/regexec.c (build_trtable): Return failure indication upon
32758         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
32759
32760 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
32761
32762         [BZ #12201]
32763         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
32764         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
32765         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
32766         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
32767
32768         [BZ #12207]
32769         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
32770
32771         [BZ #12204]
32772         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
32773         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
32774
32775 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
32776
32777         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
32778         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
32779         script has SORT_BY_INIT_PRIORITY.
32780         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
32781         NO_CTORS_DTORS_SECTIONS is defined.
32782         * elf/soinit.c: Likewise.
32783         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
32784         NO_CTORS_DTORS_SECTIONS is defined.
32785         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
32786         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
32787         * sysdeps/sh/init-first.c: Likewise.
32788         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
32789
32790 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
32791
32792         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
32793         always use the slow path.
32794
32795 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
32796
32797         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
32798         similar rule which adds the sysdep directories to the header search in
32799         order to pick up the correct platform stackinfo.h.
32800         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
32801         perform test if it is, otherwise return successfully without testing.
32802         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
32803         DEFAULT_STACK_PERMS define in stackinfo.h.
32804         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
32805         defined in stackinfo.h.
32806         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
32807         DEFAULT_STACK_PERMS defined in stackinfo.h.
32808         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
32809         * sysdeps/ia64/stackinfo.h: Likewise.
32810         * sysdeps/s390/stackinfo.h: Likewise.
32811         * sysdeps/sh/stackinfo.h: Likewise.
32812         * sysdeps/sparc/stackinfo.h: Likewise.
32813         * sysdeps/x86_64/stackinfo.h: Likewise.
32814         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
32815         PF_X for powerpc64.  Retain PF_X for powerpc32.
32816
32817 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
32818
32819         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
32820         accurately.
32821         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
32822         GETDENTS_64BIT_ALIGNED.
32823
32824 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
32825
32826         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
32827
32828 2010-12-10  Andreas Schwab  <schwab@redhat.com>
32829
32830         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
32831         _GNU_SOURCE.
32832
32833         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
32834         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
32835         Remove __restrict.
32836         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
32837         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
32838
32839 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
32840
32841         [BZ #11655]
32842         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
32843         are initialized.
32844
32845 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
32846
32847         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
32848
32849 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
32850
32851         * po/it.po: Update from translation team.
32852
32853 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
32854
32855         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
32856         unused codes.
32857
32858 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
32859
32860         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
32861
32862 2010-11-24  Andreas Schwab  <schwab@redhat.com>
32863
32864         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
32865         specially.
32866         (gaih_getanswer_slice): Likewise.
32867
32868 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
32869
32870         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
32871
32872 2010-05-31  Petr Baudis  <pasky@suse.cz>
32873
32874         [BZ #11149]
32875         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
32876         silently even in the chroot mode.
32877
32878 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
32879
32880         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
32881         last patch a bit.  Pretty printing
32882
32883 2010-05-31  Petr Baudis <pasky@suse.cz>
32884
32885         [BZ #10085]
32886         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
32887         initialization of skip_initgroups_dyn.
32888
32889 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
32890
32891         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
32892         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
32893
32894 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
32895
32896         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
32897
32898 2010-11-11  Andreas Schwab  <schwab@redhat.com>
32899
32900         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
32901         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
32902         (tst-fnmatch-ENV): Set MALLOC_TRACE.
32903         ($(objpfx)tst-fnmatch-mem): New rule.
32904         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
32905         * posix/tst-fnmatch.c (main): Call mtrace.
32906
32907 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
32908
32909         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32910         Support Intel processor model 6 and model 0x2c.
32911
32912 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
32913
32914         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
32915           signed comparison.
32916
32917 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
32918
32919         [BZ #12205]
32920         * string/test-strncasecmp.c (check_result): New function.
32921         (do_one_test): Use it.
32922         (check1): New function.
32923         (test_main): Use it.
32924         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
32925         Support strcasecmp and strncasecmp.
32926
32927 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
32928
32929         [BZ #12194]
32930         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
32931         * sysdeps/x86_64/bits/byteswap.h: Likewise.
32932
32933 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
32934
32935         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
32936         IFUNC support.
32937         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32938         memset-x86-64.
32939         * sysdeps/x86_64/multiarch/bzero.S: New file.
32940         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
32941         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
32942         * sysdeps/x86_64/multiarch/memset.S: New file.
32943         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
32944         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32945         Set bit_Prefer_SSE_for_memop for Intel processors.
32946         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
32947         Define.
32948         (index_Prefer_SSE_for_memop): Define.
32949         (HAS_PREFER_SSE_FOR_MEMOP): Define.
32950
32951 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
32952
32953         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
32954         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
32955
32956 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
32957
32958         [BZ #12191]
32959         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
32960         (__x86_64_raw_data_cache_size_half): Likewise.
32961         (__x86_64_raw_shared_cache_size): Likewise.
32962         (__x86_64_raw_shared_cache_size_half): Likewise.
32963
32964         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
32965         (__x86_64_raw_data_cache_size_half): Likewise.
32966         (__x86_64_raw_shared_cache_size): Likewise.
32967         (__x86_64_raw_shared_cache_size_half): Likewise.
32968         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
32969         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
32970         and __x86_64_raw_shared_cache_size_half.  Round
32971         __x86_64_data_cache_size_half, __x86_64_data_cache_size
32972         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
32973         to multiple of 256 bytes.
32974
32975 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
32976
32977         [BZ #12167]
32978         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
32979         of inacessible symlinks.  Verify result of symlink before returning it.
32980         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
32981         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
32982
32983 2010-10-28  Erich Ritz  <erichritz@gmail.com>
32984
32985         * math/math.h (isinf): Fix typo in comment.
32986
32987 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
32988
32989         * po/da.po: Update from translation team.
32990
32991 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
32992
32993         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
32994         is added to the list.
32995
32996 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32997             Ulrich Drepper  <drepper@gmail.com>
32998
32999         * elf/dl-object.c (_dl_new_object): Don't append the new object to
33000         the global list here.  Move code to...
33001         (_dl_add_to_namespace_list): ...here.  New function.
33002         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
33003         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
33004         * elf/dl-load.c (lose): Don't remove the element from the list.
33005         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
33006         (_dl_map_object): Likewise.
33007
33008 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
33009
33010         [BZ #12159]
33011         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
33012         into all bytes of SSE register.
33013         Patch by Richard Li <richardpku@gmail.com>.
33014
33015 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
33016
33017         [BZ #12140]
33018         * malloc/malloc.c (_int_free): Fill correct number of bytes when
33019         perturbing.
33020
33021 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
33022
33023         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
33024         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
33025         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
33026         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
33027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
33028         submachine.
33029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
33030
33031 2010-10-22  Andreas Schwab  <schwab@redhat.com>
33032
33033         * include/dlfcn.h (__RTLD_SECURE): Define.
33034         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
33035         mode & __RTLD_SECURE instead.
33036         (open_path): Rename preloaded parameter to secure.
33037         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
33038         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
33039         * elf/dl-deps.c (openaux): Likewise.
33040         * elf/rtld.c (struct map_args): Remove is_preloaded.
33041         (map_doit): Don't use it.
33042         (dl_main): Likewise.
33043         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
33044         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
33045
33046 2010-09-09  Andreas Schwab  <schwab@redhat.com>
33047
33048         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
33049         (sysd-rules-targets): Remove duplicates.
33050         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
33051         rtld-%.$o dependency.
33052
33053 2010-10-18  Andreas Schwab  <schwab@redhat.com>
33054
33055         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
33056         _dl_map_object do it.
33057
33058 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
33059
33060         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
33061         fast fma builtins, define the macros in the C99 standard.
33062         (FP_FAST_FMAF): Likewise.
33063         (FP_FAST_FMAL): Likewise.
33064         * sysdeps/x86_64/bits/mathdef.h: Likewise.
33065
33066         * bits/mathdef.h: Update copyright year.
33067         * sysdeps/powerpc/bits/mathdef.h: Likewise.
33068
33069 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
33070
33071         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
33072         builtins, define the macros in the C99 standard.
33073         (FP_FAST_FMAF): Likewise.
33074         (FP_FAST_FMAL): Likewise.
33075         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
33076         multiply/add.
33077         (FP_FAST_FMAF): Likewise.
33078
33079 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
33080
33081         [BZ #3268]
33082         * math/libm-test.inc (fma_test): Some new testcases.
33083         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
33084         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
33085         y and infinite z.  Do multiplication by C already in long double.
33086         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
33087         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
33088         y and infinite z.  Do bitwise or of inexact bit into u.d.
33089         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
33090         * sysdeps/i386/fpu/s_fmaf.S: Removed.
33091         * sysdeps/i386/fpu/s_fma.S: Removed.
33092         * sysdeps/i386/fpu/s_fmal.S: Removed.
33093
33094 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
33095
33096         [BZ #3268]
33097         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
33098         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
33099         computation is not scheduled after fetestexcept.  Fix value
33100         of minimum denormal long double.
33101
33102 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
33103
33104         [BZ #3268]
33105         * math/libm-test.inc (fma_test): Add some more tests.
33106         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
33107         correctly.
33108
33109 2010-10-15  Andreas Schwab  <schwab@redhat.com>
33110
33111         * scripts/data/localplt-s390-linux-gnu.data: New file.
33112         * scripts/data/localplt-s390x-linux-gnu.data: New file.
33113
33114 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
33115
33116         [BZ #3268]
33117         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
33118         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
33119         instead of dbl-64.
33120         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
33121         inlines.
33122         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
33123         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
33124         if one of x and y is very large and the other is subnormal.
33125         * sysdeps/s390/fpu/s_fmaf.c: New file.
33126         * sysdeps/s390/fpu/s_fma.c: New file.
33127         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
33128         * sysdeps/powerpc/fpu/s_fma.S: New file.
33129         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
33130         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
33131         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
33132
33133 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
33134
33135         [BZ #3268]
33136         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
33137         fma tests.
33138         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
33139         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
33140         * sysdeps/i386/i686/multiarch/s_fma.c: Include
33141         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
33142         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
33143         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
33144         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
33145
33146 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
33147
33148         [BZ #12078]
33149         * posix/regcomp.c (parse_branch): One more memory leak plugged.
33150         * posix/bug-regex31.input: Add test case.
33151
33152 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
33153
33154         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
33155         * posix/bug-regex31.input: New file.
33156
33157         [BZ #12078]
33158         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
33159         (parse_sub_exp): Fix last change, use postorder.
33160
33161         * posix/bug-regex31.c: New file.
33162         * posix/Makefile: Add rules to build and run bug-regex31.
33163
33164         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
33165
33166         [BZ #12078]
33167         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
33168
33169         [BZ #12108]
33170         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
33171         to have entries in sys_siglist.
33172
33173         [BZ #12093]
33174         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
33175         be NULL.
33176
33177 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
33178
33179         [BZ #3268]
33180         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
33181         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
33182         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
33183         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
33184         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33185         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
33186         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
33187         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
33188         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
33189         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
33190         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
33191         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
33192         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
33193         * math/ftestexcept.c (fetestexcept): Likewise.
33194         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
33195         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
33196         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
33197         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
33198         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
33199         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
33200         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
33201
33202 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
33203
33204         [BZ #12107]
33205         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
33206         newline.
33207
33208 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
33209
33210         * string/bug-strstr1.c: New file.
33211         * string/Makefile: Add rules to build and run bug-strstr1.
33212
33213 2010-10-05  Eric Blake  <eblake@redhat.com>
33214
33215         [BZ #12092]
33216         * string/str-two-way.h (two_way_long_needle): Always clear memory
33217         when skipping input due to the shift table.
33218
33219 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
33220
33221         [BZ #12005]
33222         * malloc/mcheck.c: Handle large requests.
33223
33224         [BZ #12077]
33225         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
33226         for strncmp and strncasecmp.
33227         * string/stratcliff.c: Add tests for strcmp and strncmp.
33228         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
33229
33230 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33231
33232         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
33233         __set_fpscr.
33234
33235 2010-09-30  Andreas Jaeger  <aj@suse.de>
33236
33237         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
33238         (CGROUP_SUPER_MAGIC): Define.
33239         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
33240         Handle btrfs and cgroup file systems.
33241         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
33242         Likewise.
33243
33244 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
33245
33246         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
33247         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
33248
33249 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33250
33251         [BZ #12067]
33252         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
33253         trying to locate the ELF header.
33254
33255 2010-09-27  Andreas Schwab  <schwab@redhat.com>
33256
33257         [BZ #11611]
33258         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
33259         Mask out sign-bit copies when constructing f_fsid.
33260
33261 2010-09-24  Petr Baudis <pasky@suse.cz>
33262
33263         * debug/stack_chk_fail_local.c: Add missing licence exception.
33264         * debug/warning-nop.c: Likewise.
33265
33266 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
33267
33268         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
33269         implementing getdents64 using getdents syscall, set d_type if
33270         __ASSUME_GETDENTS32_D_TYPE.
33271
33272 2010-09-16  Andreas Schwab  <schwab@redhat.com>
33273
33274         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
33275         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
33276
33277 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
33278
33279         [BZ #12037]
33280         * posix/unistd.h: Undo change of feature selection for ftruncate from
33281         2010-01-11.
33282
33283 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
33284
33285         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
33286         detection.
33287
33288 2010-09-20  Andreas Schwab  <schwab@redhat.com>
33289
33290         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
33291         fanotify_mark.
33292         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
33293
33294 2010-09-14  Andreas Schwab  <schwab@redhat.com>
33295
33296         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
33297         variables after CHECK_SP call.
33298         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
33299
33300 2010-09-13  Andreas Schwab  <schwab@redhat.com>
33301             Ulrich Drepper  <drepper@redhat.com>
33302
33303         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
33304         re-relocationg ld.so.
33305         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
33306         _dl_init_paths call.
33307         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
33308         here anymore.
33309
33310 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
33311
33312         * resolv/res_init.c (__res_vinit): Count the default server we added.
33313
33314 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
33315             Ulrich Drepper  <drepper@redhat.com>
33316
33317         [BZ #11968]
33318         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
33319         (____longjmp_chk): Use %ebx for saving value across system call.
33320         Add unwind info.
33321
33322 2010-09-06  Andreas Schwab  <schwab@redhat.com>
33323
33324         * manual/Makefile: Don't mix pattern rules with normal rules.
33325
33326 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
33327
33328         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
33329         operation.
33330         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
33331         * libio/iofopncook.c (_IO_cookie_init): Likewise.
33332         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
33333         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
33334         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33335         Likewise.
33336
33337 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
33338
33339         [BZ #11979]
33340         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
33341         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
33342
33343 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
33344
33345         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
33346         * sysdeps/x86_64/addmul_1.S: Likewise.
33347         * sysdeps/x86_64/lshift.S: Likewise.
33348         * sysdeps/x86_64/mul_1.S: Likewise.
33349         * sysdeps/x86_64/rshift.S: Likewise.
33350         * sysdeps/x86_64/sub_n.S: Likewise.
33351         * sysdeps/x86_64/submul_1.S: Likewise.
33352
33353 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33354
33355         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
33356         Define __sched_param instead of SCHED_* and sched_param when
33357         <bits/sched.h> is included with __need_schedparam defined.
33358         * bits/sched.h [__need_schedparam]
33359         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
33360         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
33361         (__defined_schedparam): Define to 1.
33362         (__sched_param): New structure, identical to sched_param.
33363         (__need_schedparam): Undefine.
33364
33365 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
33366
33367         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
33368         (epoll_create1): Declare.
33369
33370         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
33371
33372 2010-08-31  Andreas Schwab  <schwab@redhat.com>
33373
33374         [BZ #7066]
33375         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
33376         shifting retval into place.
33377
33378 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
33379
33380         * nis/rpcsvc/nis.h: Update copyright notice.
33381         * nis/rpcsvc/nis.x: Likewise.
33382         * nis/rpcsvc/nis_callback.h: Likewise.
33383         * nis/rpcsvc/nis_callback.x: Likewise.
33384         * nis/rpcsvc/nis_object.x: Likewise.
33385         * nis/rpcsvc/nis_tags.h: Likewise.
33386         * nis/rpcsvc/yp.h: Likewise.
33387         * nis/rpcsvc/yp.x: Likewise.
33388         * nis/rpcsvc/ypupd.h: Likewise.
33389         * nis/yp_xdr.c: Likewise.
33390         * nis/ypupdate_xdr.c: Likewise.
33391
33392         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
33393         mainly the body of pmap_getport.  Add parameters to specify timeouts.
33394         (pmap_getport): Use __libc_rpc_getport.
33395         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
33396         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
33397         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
33398
33399 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
33400
33401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
33402         fanotify_mark.
33403
33404 2010-08-27  Roland McGrath  <roland@redhat.com>
33405
33406         * sysdeps/i386/i686/multiarch/Makefile
33407         (CFLAGS-varshift.c): New variable.
33408
33409 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
33410
33411         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
33412         * sysdeps/i386/i686/multiarch/varshift.c: New file.
33413
33414         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
33415
33416         * sysdeps/x86_64/strlen.S: Minimal code improvement.
33417
33418 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
33419
33420         * sysdeps/x86_64/strlen.S: Unroll the loop.
33421         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33422         strlen-sse2 strlen-sse2-bsf.
33423         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
33424         __strlen_no_bsf if bit_Slow_BSF is set.
33425         (__strlen_sse42): Removed.
33426         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
33427         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
33428
33429 2010-08-25  Roland McGrath  <roland@redhat.com>
33430
33431         * sysdeps/x86_64/multiarch/varshift.S: File removed.
33432         * sysdeps/x86_64/multiarch/varshift.c: New file.
33433         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
33434         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
33435         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
33436         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
33437
33438 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
33439
33440         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33441         strlen-sse2 strlen-sse2-bsf.
33442         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
33443         __strlen_sse2_bsf if bit_Slow_BSF is unset.
33444         (__strlen_sse2): Removed.
33445         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
33446         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
33447         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
33448         bit_Slow_BSF for Atom.
33449         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
33450         (index_Slow_BSF): Define.
33451         (HAS_SLOW_BSF): Define.
33452
33453 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
33454
33455         [BZ #10851]
33456         * resolv/res_init.c (__res_vinit): When no server address at all
33457         is given default to loopback.
33458
33459 2010-08-24  Roland McGrath  <roland@redhat.com>
33460
33461         * configure.in: Remove config-name.h generation.
33462         * configure: Regenerated.
33463         * config-name.in: File removed.
33464         * scripts/config-uname.sh: New file.
33465         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
33466         ($(objdir)config-name.h): New target.
33467
33468         * sunrpc/rpc_parse.h: Avoid nested comment.
33469
33470 2010-08-24  Richard Henderson  <rth@redhat.com>
33471             Ulrich Drepper  <drepper@redhat.com>
33472             H.J. Lu  <hongjiu.lu@intel.com>
33473
33474         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
33475         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
33476         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
33477         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
33478         _mm_alignr_epi8 with _mm_loadu_si128.
33479         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
33480         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
33481         (__m128i_shift_right): Removed.
33482         * sysdeps/i386/i686/multiarch/varshift.h: New file.
33483         * sysdeps/i386/i686/multiarch/varshift.S: New file.
33484         * sysdeps/x86_64/multiarch/varshift.h: New file.
33485         * sysdeps/x86_64/multiarch/varshift.S: New file.
33486
33487 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
33488
33489         * configure.in: Move assembler checks to before sysdep dir checking.
33490
33491 2010-08-20  Petr Baudis  <pasky@suse.cz>
33492
33493         * LICENSES: Sync the sunrpc license.
33494
33495 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
33496
33497         * sunrpc/auth_des.c: Update copyright notice once again.
33498         * sunrpc/auth_none.c: Likewise.
33499         * sunrpc/auth_unix.c: Likewise.
33500         * sunrpc/authdes_prot.c: Likewise.
33501         * sunrpc/authuxprot.c: Likewise.
33502         * sunrpc/bindrsvprt.c: Likewise.
33503         * sunrpc/clnt_gen.c: Likewise.
33504         * sunrpc/clnt_perr.c: Likewise.
33505         * sunrpc/clnt_raw.c: Likewise.
33506         * sunrpc/clnt_simp.c: Likewise.
33507         * sunrpc/clnt_tcp.c: Likewise.
33508         * sunrpc/clnt_udp.c: Likewise.
33509         * sunrpc/clnt_unix.c: Likewise.
33510         * sunrpc/des_crypt.c: Likewise.
33511         * sunrpc/des_soft.c: Likewise.
33512         * sunrpc/get_myaddr.c: Likewise.
33513         * sunrpc/getrpcport.c: Likewise.
33514         * sunrpc/key_call.c: Likewise.
33515         * sunrpc/key_prot.c: Likewise.
33516         * sunrpc/openchild.c: Likewise.
33517         * sunrpc/pm_getmaps.c: Likewise.
33518         * sunrpc/pm_getport.c: Likewise.
33519         * sunrpc/pmap_clnt.c: Likewise.
33520         * sunrpc/pmap_prot.c: Likewise.
33521         * sunrpc/pmap_prot2.c: Likewise.
33522         * sunrpc/pmap_rmt.c: Likewise.
33523         * sunrpc/rpc/auth.h: Likewise.
33524         * sunrpc/rpc/auth_unix.h: Likewise.
33525         * sunrpc/rpc/clnt.h: Likewise.
33526         * sunrpc/rpc/des_crypt.h: Likewise.
33527         * sunrpc/rpc/key_prot.h: Likewise.
33528         * sunrpc/rpc/netdb.h: Likewise.
33529         * sunrpc/rpc/pmap_clnt.h: Likewise.
33530         * sunrpc/rpc/pmap_prot.h: Likewise.
33531         * sunrpc/rpc/pmap_rmt.h: Likewise.
33532         * sunrpc/rpc/rpc.h: Likewise.
33533         * sunrpc/rpc/rpc_des.h: Likewise.
33534         * sunrpc/rpc/rpc_msg.h: Likewise.
33535         * sunrpc/rpc/svc.h: Likewise.
33536         * sunrpc/rpc/svc_auth.h: Likewise.
33537         * sunrpc/rpc/types.h: Likewise.
33538         * sunrpc/rpc/xdr.h: Likewise.
33539         * sunrpc/rpc_clntout.c: Likewise.
33540         * sunrpc/rpc_cmsg.c: Likewise.
33541         * sunrpc/rpc_common.c: Likewise.
33542         * sunrpc/rpc_cout.c: Likewise.
33543         * sunrpc/rpc_dtable.c: Likewise.
33544         * sunrpc/rpc_hout.c: Likewise.
33545         * sunrpc/rpc_main.c: Likewise.
33546         * sunrpc/rpc_parse.c: Likewise.
33547         * sunrpc/rpc_parse.h: Likewise.
33548         * sunrpc/rpc_prot.c: Likewise.
33549         * sunrpc/rpc_sample.c: Likewise.
33550         * sunrpc/rpc_scan.c: Likewise.
33551         * sunrpc/rpc_scan.h: Likewise.
33552         * sunrpc/rpc_svcout.c: Likewise.
33553         * sunrpc/rpc_tblout.c: Likewise.
33554         * sunrpc/rpc_util.c: Likewise.
33555         * sunrpc/rpc_util.h: Likewise.
33556         * sunrpc/rpcinfo.c: Likewise.
33557         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
33558         * sunrpc/rpcsvc/key_prot.x: Likewise.
33559         * sunrpc/rpcsvc/klm_prot.x: Likewise.
33560         * sunrpc/rpcsvc/mount.x: Likewise.
33561         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
33562         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
33563         * sunrpc/rpcsvc/rex.x: Likewise.
33564         * sunrpc/rpcsvc/rstat.x: Likewise.
33565         * sunrpc/rpcsvc/rusers.x: Likewise.
33566         * sunrpc/rpcsvc/sm_inter.x: Likewise.
33567         * sunrpc/rpcsvc/spray.x: Likewise.
33568         * sunrpc/rpcsvc/yppasswd.x: Likewise.
33569         * sunrpc/rtime.c: Likewise.
33570         * sunrpc/svc.c: Likewise.
33571         * sunrpc/svc_auth.c: Likewise.
33572         * sunrpc/svc_authux.c: Likewise.
33573         * sunrpc/svc_raw.c: Likewise.
33574         * sunrpc/svc_run.c: Likewise.
33575         * sunrpc/svc_simple.c: Likewise.
33576         * sunrpc/svc_tcp.c: Likewise.
33577         * sunrpc/svc_udp.c: Likewise.
33578         * sunrpc/svc_unix.c: Likewise.
33579         * sunrpc/svcauth_des.c: Likewise.
33580         * sunrpc/xcrypt.c: Likewise.
33581         * sunrpc/xdr.c: Likewise.
33582         * sunrpc/xdr_array.c: Likewise.
33583         * sunrpc/xdr_float.c: Likewise.
33584         * sunrpc/xdr_mem.c: Likewise.
33585         * sunrpc/xdr_rec.c: Likewise.
33586         * sunrpc/xdr_ref.c: Likewise.
33587         * sunrpc/xdr_sizeof.c: Likewise.
33588         * sunrpc/xdr_stdio.c: Likewise.
33589
33590         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
33591         handling.
33592
33593 2010-08-19  Andreas Schwab  <schwab@redhat.com>
33594
33595         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
33596
33597 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
33598
33599         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
33600         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
33601         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
33602         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
33603         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
33604         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
33605         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
33606         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
33607         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
33608         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
33609         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
33610         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
33611         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
33612         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
33613
33614 2010-07-26  Anton Blanchard  <anton@samba.org>
33615
33616         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
33617         * malloc/arena.c (heap_trim): Likewise.
33618
33619 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
33620
33621         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
33622         here.  Not...
33623         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
33624         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
33625
33626 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
33627
33628         * sysdeps/i386/elf/Makefile: New file.
33629
33630 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
33631
33632         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
33633         from fanotify_init.
33634         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
33635         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
33636
33637 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
33638
33639         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
33640         of strncasecmp_l.
33641         * sysdeps/multiarch/strcmp.S: Likewise.
33642
33643 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
33644
33645         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
33646         strncase_l-nonascii.
33647         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
33648         Add strncase_l-ssse3.
33649         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
33650         * sysdeps/x86_64/strcmp.S: Likewise.
33651         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
33652         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
33653         * sysdeps/x86_64/strncase.S: New file.
33654         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
33655         * sysdeps/x86_64/strncase_l.S: New file.
33656         * string/Makefile (strop-tests): Add strncasecmp.
33657         * string/test-strncasecmp.c: New file.
33658
33659         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
33660         warning.
33661
33662         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
33663         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
33664
33665 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
33666
33667         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
33668
33669 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
33670
33671         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
33672         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
33673         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
33674
33675 2010-05-01  Alan Modra  <amodra@gmail.com>
33676
33677         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
33678         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
33679         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
33680         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
33681         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
33682         tidying.  Don't tail-call __sigjmp_save for static lib.
33683         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
33684         save location.
33685         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
33686         (CALL_MCOUNT): Add eh info, and nop after bl.
33687         (TAIL_CALL_SYSCALL_ERROR): New macro.
33688         (PSEUDO_RET): Use it.
33689         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
33690         Correct save location of integer regs and cr.
33691         (_dl_profile_resolve): Correct cr save location.  Delete nops
33692         after bl when SHARED.  Reduce cfi size a little by better
33693         placement of cfi directives.
33694         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
33695         make a stack frame.  Instead use parm save area as a temp.
33696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
33697         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
33698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
33699         Don't make a stack frame for parent, use parm save area.
33700         Increase child stack frame to 112 bytes.  Don't save unused reg,
33701         and adjust reg usage.  Set up cfi on error recovery and
33702         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
33703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
33704         (__makecontext): Add dummy nop after jump to exit.
33705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
33706         Use correct parm save area and cr save, reduce stack frame.
33707         Correct cfi for possible PSEUDO_RET frame setup.
33708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
33709         Branch to local label emitted by PSEUDO_RET rather than
33710         __syscall_error.
33711
33712 2010-08-12  Andreas Schwab  <schwab@redhat.com>
33713
33714         [BZ #11904]
33715         * locale/programs/locale.c (print_assignment): New function.
33716         (show_locale_vars): Use it.
33717
33718 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
33719
33720         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
33721         field.
33722         (struct statfs64): Likewise.
33723         (_STATFS_F_FLAGS): Define.
33724         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
33725         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
33726         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
33727         (ST_VALID): Define locally.
33728         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
33729         __statvfs_getflags, use the provided value.
33730         * sysdeps/unix/sysv/linux/kernel-features.h: Define
33731         __ASSUME_STATFS_F_FLAGS.
33732
33733         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
33734
33735         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
33736         Add sys/fanotify.h.
33737         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
33738         fanotify_mask for GLIBC_2.13.
33739         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
33740         fanotify_init and fanotify_mark.
33741         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
33742         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
33743
33744         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
33745         Add prlimit.
33746         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
33747         prlimit64 for GLIBC_2.13.
33748         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
33749         prlimit64.
33750         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
33751         syscall.
33752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
33753         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
33754         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
33755         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
33756         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
33757         add prlimit alias.
33758         * sysdeps/unix/sysv/linux/prlimit.c: New file.
33759
33760         [BZ #11903]
33761         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
33762         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
33763
33764         * nss/Makefile: Add rules to build and run tst-nss-test1.
33765         * shlib-versions: Add entry for libnss_test1.
33766         * nss/nss_test1.c: New file.
33767         * nss/tst-nss-test1.c: New file.
33768
33769         * nss/nsswitch.c (__nss_database_custom): Define new variable.
33770         (__nss_configure_lookup): Set appropriate entry in
33771         __nss_configure_lookup to true.
33772         * nss/nsswitch.h: Define enum with indeces of databases in
33773         databases and __nss_database_custom arrays.  Declare
33774         __nss_database_custom.
33775         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
33776         to avoid using nscd when custom rules are installed.
33777         * nss/getXXbyYY_r.c: Likewise.
33778         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
33779
33780         * nss/nss_files/files-parse.c: Whitespace fixes.
33781
33782 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
33783
33784         [BZ #11883]
33785         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
33786         * posix/fnmatch_loop.c: Likewise.
33787
33788 2010-07-17  Andi Kleen  <ak@linux.intel.com>
33789
33790         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
33791         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
33792         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
33793         * Versions.def [GLIBC_2.13]: Add.
33794
33795 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
33796
33797         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33798         Also fail if tpwd after pwuid call is NULL.
33799
33800 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33801
33802         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
33803         when converting to ms.
33804
33805 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33806
33807         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
33808         EOPNOTSUPP errors with ENOTTY.
33809         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
33810         EOPNOTSUPP errors with ENOTTY.
33811
33812 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
33813
33814         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
33815         Add strcasecmp_l-ssse3.
33816         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
33817         strcasecmp.
33818         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
33819         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
33820         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
33821
33822 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
33823
33824         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
33825
33826         * string/Makefile (strop-tests): Add strcasecmp.
33827         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
33828         strcasecmp_l-nonascii.
33829         (gen-as-const-headers): Add locale-defines.sym.
33830         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
33831         * sysdeps/x86_64/strcasecmp.S: New file.
33832         * sysdeps/x86_64/strcasecmp_l.S: New file.
33833         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
33834         * sysdeps/x86_64/locale-defines.sym: New file.
33835         * string/test-strcasecmp.c: New file.
33836
33837         * string/test-strcasestr.c: Test both ends of the range of characters.
33838         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
33839
33840 2010-07-29  Roland McGrath  <roland@redhat.com>
33841
33842         [BZ #11856]
33843         * manual/locale.texi (Yes-or-No Questions): Fix example code.
33844
33845 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
33846
33847         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
33848         for ld.so.
33849
33850 2010-07-27  Andreas Schwab  <schwab@redhat.com>
33851
33852         * manual/memory.texi (Malloc Tunable Parameters): Document
33853         M_PERTURB.
33854
33855 2010-07-26  Roland McGrath  <roland@redhat.com>
33856
33857         [BZ #11840]
33858         * configure.in (-fgnu89-inline check): Set and substitute
33859         gnu89_inline, not libc_cv_gnu89_inline.
33860         * configure: Regenerated.
33861         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
33862
33863 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
33864
33865         * string/test-strnlen.c: New file.
33866         * string/Makefile (strop-tests): Add strnlen.
33867         * string/tester.c (test_strnlen): Add a few more test cases.
33868         * string/tst-strlen.c: Better error reporting.
33869
33870         * sysdeps/x86_64/strnlen.S: New file.
33871
33872 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
33873
33874         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
33875         lower-latency instructions.
33876
33877 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
33878
33879         * string/test-strcasestr.c: New file.
33880         * string/test-strstr.c: New file.
33881         * string/Makefile (strop-tests): Add strstr and strcasestr.
33882         * string/str-two-way.h: Don't undefine MAX.
33883         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
33884
33885 2010-07-21  Andreas Schwab  <schwab@redhat.com>
33886
33887         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33888         strcasestr-nonascii.
33889         (CFLAGS-strcasestr-nonascii.c): Define.
33890         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
33891         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
33892         Remove unused attribute.
33893
33894 2010-07-20  Roland McGrath  <roland@redhat.com>
33895
33896         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
33897         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
33898         ld.so.cache was broken.  With it, there is no way to disable dsocaps
33899         like LD_HWCAP_MASK can disable hwcaps.
33900
33901 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
33902
33903         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
33904
33905 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
33906
33907         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
33908         call in strcasestr.
33909         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
33910         __strcasestr_sse42_nonascii.
33911         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
33912         strcasestr-nonascii.c.
33913         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
33914
33915 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
33916
33917         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
33918         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
33919         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
33920         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
33921
33922 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
33923
33924         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
33925         fcntl.
33926
33927 2010-07-06  Andreas Schwab  <schwab@redhat.com>
33928
33929         [BZ #11577]
33930         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
33931         dl_signal_cerror.
33932
33933 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
33934
33935         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
33936         _PC_PIPE_BUF using F_GETPIPE_SZ.
33937
33938 2010-07-05  Roland McGrath  <roland@redhat.com>
33939
33940         * manual/arith.texi (Rounding Functions): Fix rint description
33941         implicit in round description.
33942
33943 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
33944
33945         * elf/Makefile: Fix linking for a few tests to make recent linker
33946         happy.
33947
33948 2010-06-30  Andreas Schwab  <schwab@redhat.com>
33949
33950         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
33951         $(common-objpfx)libc_nonshared.a.
33952
33953 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
33954
33955         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
33956         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
33957         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
33958         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
33959         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
33960         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
33961         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
33962         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
33963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
33964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
33965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
33966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
33967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
33968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
33969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
33970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
33971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
33972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
33973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
33974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
33975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
33976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
33977         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
33978         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
33979         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
33980         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
33981         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
33982         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
33983         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
33984         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
33985         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
33986         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
33987         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
33988         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
33989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
33990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
33991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
33992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
33993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
33994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
33995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
33996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
33997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
33998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
33999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
34000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
34001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
34002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
34003
34004 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
34005
34006         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
34007         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
34008         * string/memmove.c (memmove): Renamed to ...
34009         (MEMMOVE): ...this.  Default to memmove.
34010         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
34011         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
34012         (END_CHK): Define.
34013         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34014         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
34015         mempcpy-ssse3-back memmove-ssse3-back.
34016         * sysdeps/x86_64/multiarch/bcopy.S: New file .
34017         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
34018         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
34019         * sysdeps/x86_64/multiarch/memcpy.S: New file.
34020         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
34021         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
34022         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
34023         * sysdeps/x86_64/multiarch/memmove.c: New file.
34024         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
34025         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
34026         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
34027         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
34028         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
34029         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
34030         Define.
34031         (index_Fast_Copy_Backward): Define.
34032         (HAS_ARCH_FEATURE): Define.
34033         (HAS_FAST_REP_STRING): Define.
34034         (HAS_FAST_COPY_BACKWARD): Define.
34035
34036 2010-06-21  Andreas Schwab  <schwab@redhat.com>
34037
34038         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34039         Restore proper fallback handling.
34040
34041 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
34042
34043         [BZ #11701]
34044         * posix/group_member.c (__group_member): Correct checking loop.
34045
34046         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
34047         OOM in getpwuid_r correctly.  Return error number when the caller
34048         should return, otherwise -1.
34049         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
34050         call returning > 0 value.
34051         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
34052
34053 2010-06-07  Andreas Schwab  <schwab@redhat.com>
34054
34055         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
34056         libc_nonshared.a from targets in modules-names.
34057
34058 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
34059
34060         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
34061         requires it.
34062
34063 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
34064
34065         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
34066         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
34067         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
34068         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
34069
34070 2010-06-02  Andreas Schwab  <schwab@redhat.com>
34071
34072         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
34073
34074 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
34075
34076         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
34077         and F_GETPIPE_SZ.
34078         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
34079         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
34080         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
34081         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
34082         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
34083         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
34084
34085 2010-06-14  Roland McGrath  <roland@redhat.com>
34086
34087         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
34088
34089 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
34090
34091         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
34092         __REDIRECT followed by __THROW.
34093         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
34094         * posix/getopt.h (getopt): Likewise.
34095
34096 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
34097
34098         * hurd/lookup-at.c (__file_name_lookup_at): Accept
34099         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
34100         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
34101         in AT_FLAGS.
34102         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
34103         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
34104
34105 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
34106
34107         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
34108
34109 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
34110
34111         [BZ #11640]
34112         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34113         Properly check family and model.
34114
34115 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
34116
34117         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
34118
34119 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
34120
34121         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
34122
34123 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
34124
34125         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
34126         symbol reference.
34127
34128 2010-05-19  Andreas Schwab  <schwab@redhat.com>
34129
34130         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
34131         symbol reference.
34132
34133 2010-05-21  Andreas Schwab  <schwab@redhat.com>
34134
34135         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
34136         and internal_recvmmsg.
34137         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
34138         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
34139         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
34140         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
34141
34142         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
34143         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
34144         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
34145
34146 2010-05-20  Andreas Schwab  <schwab@redhat.com>
34147
34148         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
34149
34150 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
34151
34152         POWER7 optimizations.
34153         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
34154         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
34155
34156 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
34157
34158         * version.h: Update for 2.13 development version.
34159
34160 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
34161
34162         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
34163         exceptions.  Return 0.
34164
34165 2010-05-07  Roland McGrath  <roland@redhat.com>
34166
34167         * elf/ldconfig.c (main): Add a const.
34168
34169 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
34170
34171         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
34172         (args_options): Add no-idn option.
34173         (ahosts_keys_int): Add idn_flags to ai_flags.
34174         (parse_option): Handle 'i' option to clear idn_flags.
34175
34176         * malloc/malloc.c (_int_free): Possible race in the most recently
34177         added check.  Only act on the data if no current modification
34178         happened.
34179
34180 See ChangeLog.17 for earlier changes.